OSPF(Open Shortest Path Firstå¼æ¾å¼æçè·¯å¾ä¼å
ï¼[1]æ¯ä¸ä¸ªå
é¨ç½å
³åè®®(Interior Gateway Protocolï¼ç®ç§°IGPï¼ï¼ç¨äºå¨åä¸èªæ²»ç³»ç»ï¼autonomous system,ASï¼å
å³çè·¯ç±ãä¸RIPç¸æ¯ï¼OSPFæ¯é¾è·¯ç¶æè·¯ç±åè®®ï¼èRIPæ¯è·ç¦»ç¢éè·¯ç±åè®®ã
å®ä¾1 æ å®å
¨ï¼æ è·¯ç±æ»ç»çOSPF设置
ãã
ãã
ãã2511ï¼1ç设置
ãã
ããCurrent configurationï¼
ãã
ããï¼
ãã
ããversion 11.3
ãã
ããno service password-encryption
ãã
ãã!
ãã
ããhostname 2511-1
ãã
ãã!
ãã
ããenable password cisco
ãã
ãã!
ãã
ããinterface Ethernet0
ãã
ããip address 192.4.1.1 255.255.255.0
ãã
ãã!
ãã
ããinterface Serial0
ãã
ããip address 192.3.1.1 255.255.255.0
ãã
ããencapsulation frame-relay IETF
ãã
ããno ip mroute-cache
ãã
ããbandwidth 2000
ãã
ããframe-relay map ip 192.3.1.2 100 broadcast
ãã
ããframe-relay lmi-type cisco
ãã
ãã!
ãã
ããinterface Serial1
ãã
ããip address 192.1.1.1 255.255.255.0
ãã
ããencapsulation ppp
ãã
ããbandwidth 64
ãã
ãã!
ãã
ããrouter ospf 1
ãã
ããpassive-interface Ethernet0
ãã
ããnetwork 192.1.1.0 0.0.0.255 area 0
ãã
ããnetwork 192.3.1.0 0.0.0.255 area 0
ãã
ããnetwork 192.4.1.0 0.0.0.255 area 0
ãã
ããneighbor 192.1.1.2 priority 1
ãã
ããneighbor 192.3.1.2 priority 1
ãã
ãã!
ãã
ããip classless
ãã
ãã!
ãã
ããline con 0
ãã
ããline 1 8
ãã
ããline aux 0
ãã
ããline vty 0 4
ãã
ãã!
ãã
ããend
ãã
ãã2505ç设置
ãã
ããCurrent configuration:
ãã
ãã!
ãã
ããversion 11.2
ãã
ããno service udp-small-servers
ãã
ããno service tcp-small-servers
ãã
ãã!
ãã
ããhostname 2505
ãã
ãã!
ãã
ããenable secret 5 $1$GbYT$OR05giiLZxI4hEAO0F8kV1
ãã
ãã!
ãã
ããhub ether 0 1
ãã
ããlink-test
ãã
ããauto-polarity
ãã
ãã!
ãã
ããhub ether 0 2
ãã
ããlink-test
ãã
ããauto-polarity
ãã
ãã!
ãã
ããhub ether 0 3
ãã
ããlink-test
ãã
ããauto-polarity
ãã
ãã!
ãã
ããhub ether 0 4
ãã
ããlink-test
ãã
ããauto-polarity
ãã
ãã!
ãã
ããhub ether 0 5
ãã
ããlink-test
ãã
ããauto-polarity
ãã
ãã!
ãã
ããhub ether 0 6
ãã
ããlink-test
ãã
ããauto-polarity
ãã
ãã!
ãã
ããhub ether 0 7
ãã
ããlink-test
ãã
ããauto-polarity
ãã
ãã!
ãã
ããhub ether 0 8
ãã
ããlink-test
ãã
ããauto-polarity
ãã
ãã!
ãã
ããinterface Ethernet0
ãã
ããip address 192.1.4.1 255.255.255.0
ãã
ãã!
ãã
ããinterface Serial0
ãã
ããip address 192.1.2.1 255.255.255.0
ãã
ããip ospf network non-broadcast
ãã
ããbandwidth 2000
ãã
ããclockrate 2000000
ãã
ãã!
ãã
ããinterface Serial1
ãã
ããip address 192.1.1.2 255.255.255.0
ãã
ããenpsuration ppp
ãã
ããip ospf network non-broadcast
ãã
ããbandwidth 64
ãã
ããclockrate 64000
ãã
ãã!
ãã
ããrouter ospf 1
ãã
ããpassive-interface Ethernet0
ãã
ããnetwork 192.1.1.0 0.0.0.255 area 0
ãã
ããnetwork 192.1.2.0 0.0.0.255 area 2
ãã
ããnetwork 192.1.4.0 0.0.0.255 area 2
ãã
ããneighbor 192.1.1.1 priority 1
ãã
ããneighbor 192.1.2.2 priority 1
ãã
ãã!
ãã
ããno ip classless
ãã
ããip ospf name-lookup
ãã
ãã!
ãã
ããline con 0
ãã
ããline aux 0
ãã
ããline vty 0 4
ãã
ããlogin
ãã
ãã!
ãã
ããend
ãã
ããinternal -2ç设置
ãã
ããCurrent configuration :
ãã
ãã!
ãã
ããversion 11.2
ãã
ããno service udp-small-servers
ãã
ããno service tcp-small-servers
ãã
ãã!
ãã
ããhostname internal-2
ãã
ãã!
ãã
ããenable secret 5 $1$KX00$rTI/2TvDokWxT4xC6wvmi/
ãã
ãã!
ãã
ããinterface Ethernet0
ãã
ããno ip address
ãã
ããshutdown
ãã
ãã!
ãã
ããinterface Serial0
ãã
ããip address 192.1.2.2 255.255.255.0
ãã
ããip ospf network non-broadcast
ãã
ãã!
ãã
ããinterface Serial1
ãã
ããno ip address
ãã
ããshutdown
ãã
ãã!
ãã
ããrouter ospf 1
ãã
ããnetwork 192.1.2.0 0.0.0.255 area 2
ãã
ããneighbor 192.1.2.1 priority 1
ãã
ãã!
ãã
ããno ip classless
ãã
ãã!
ãã
ããline con 0
ãã
ããline 1 16
ãã
ããline aux 0
ãã
ããline vty 0 4
ãã
ãã!
ãã
ããend
ãã
ããã
ãã
ãã2514ç设置
ãã
ããCurrent configuration :
ãã
ãã!
ãã
ããversion 11.2
ãã
ããno service udp-small-servers
ãã
ããno service tcp-small-servers
ãã
ãã!
ãã
ããhostname 2514
ãã
ãã!
ãã
ããenable secret 5 $1$uoHU$Vks/lY CRi33z4TXs4qekI0
ãã
ãã!
ãã
ããframe-relay switching
ãã
ãã!
ãã
ããinterface Ethernet0
ãã
ããip address 192.5.1.1 255.255.255.0
ãã
ãã!
ãã
ããinterface Ethernet1
ãã
ããno ip address
ãã
ããshutdown
ãã
ãã!
ãã
ããinterface Serial0
ãã
ããip address 192.3.1.2 255.255.255.0
ãã
ããencapsulation frame-relay IETF
ãã
ããbandwidth 2000
ãã
ããclockrate 2000000
ãã
ããframe-relay map ip 192.3.1.1 100 broadcast
ãã
ããframe-relay intf-type dce
ãã
ãã!
ãã
ããinterface Serial1
ãã
ããip address 192.2.1.1 255.255.255.0
ãã
ããno ip mroute-cache
ãã
ããencapsulation X25 dce
ãã
ããbandwidth 64
ãã
ããx25 address 1234
ãã
ããx25 htc 16
ãã
ããx25 nvc 4
ãã
ããxæ¥èªï¼æ±å©å¾å°çåç
温馨提示:答案为网友推荐,仅供参考