1、OSPF 实验总结虚连接OSPF Virtual-link 实验总结使用3台路由器模拟实验,OSPF路由器进入FULL状态,路由生成。配置如下:R1#sh verCisco IOS Software, 3600 Software (C3640-JS-M), Version 12.4(17), RELEASE SOFTWARE (fc1)Technical Support: Copyright (c) 1986-2007 by Cisco Systems, Inc.Compiled Fri 07-Sep-07 20:35 by prod_rel_teamROM: ROMMON Emulation
2、 MicrocodeROM: 3600 Software (C3640-JS-M), Version 12.4(17), RELEASE SOFTWARE (fc1)R1 uptime is 10 minutesSystem returned to ROM by unknown reload cause - suspect boot_dataBOOT_COUNT 0x0, BOOT_COUNT 0, BOOTDATA 19System image file is tftp:/255.255.255.255/unknownCisco 3640 (R4700) processor (revisio
3、n 0xFF) with 94208K/4096K bytes of memory.Processor board ID 00000000R4700 CPU at 100MHz, Implementation 33, Rev 1.24 Ethernet interfaces4 Serial interfacesDRAM configuration is 64 bits wide with parity enabled.125K bytes of NVRAM.8192K bytes of processor board System flash (Read/Write)Configuration
4、 register is 0x2102R1#sh runBuilding configuration.Current configuration : 1501 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip doma
5、in lookup!interface Loopback0 ip address 200.17.1.1 255.255.255.0!interface Loopback1 ip address 100.1.64.4 255.255.255.255 ip ospf 1 area 2!interface Loopback2 ip address 100.1.64.5 255.255.255.255 ip ospf 1 area 2!interface Loopback3 ip address 100.1.64.6 255.255.255.255 ip ospf 1 area 2!interface
6、 Loopback4 ip address 100.1.64.7 255.255.255.255 ip ospf 1 area 2!interface Ethernet0/0 ip address 132.17.12.1 255.255.255.0 ip ospf authentication ip ospf authentication-key sdx full-duplex!interface Ethernet0/1 no ip address shutdown half-duplex!interface Ethernet0/2 no ip address shutdown half-du
7、plex!interface Ethernet0/3 no ip address shutdown half-duplex!interface Serial1/0 no ip address shutdown serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdo
8、wn serial restart-delay 0!router ospf 1 log-adjacency-changes network 132.17.12.1 0.0.0.0 area 2 network 200.17.1.1 0.0.0.0 area 2!ip http serverip forward-protocol nd!control-plane!line con 0line aux 0line vty 0 4 login!endR1#R2#sh runBuilding configuration.Current configuration : 1381 bytes!versio
9、n 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup!interface Loopback0 ip address 200.17.2.2 255.255.255.0!interface Ethernet0/0 ip a
10、ddress 132.17.23.2 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 sdx full-duplex!interface Ethernet0/1 ip address 132.17.12.2 255.255.255.0 ip ospf authentication ip ospf authentication-key sdx full-duplex!interface Ethernet0/2 no ip address shutdown half-duple
11、x!interface Ethernet0/3 no ip address shutdown half-duplex!interface Serial1/0 no ip address shutdown serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown
12、serial restart-delay 0!router ospf 1 log-adjacency-changes area 1 virtual-link 200.17.3.3 authentication authentication-key sdx network 132.17.12.2 0.0.0.0 area 2 network 132.17.23.2 0.0.0.0 area 1 network 200.17.2.2 0.0.0.0 area 2!ip http serverip forward-protocol nd!control-plane!line con 0line au
13、x 0line vty 0 4 login!endR2#R3#sh runBuilding configuration.Current configuration : 1276 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R3!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefn
14、o ip domain lookup!interface Loopback0 ip address 200.17.3.3 255.255.255.0!interface Ethernet0/0 no ip address shutdown half-duplex!interface Ethernet0/1 ip address 132.17.23.3 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 sdx full-duplex!interface Ethernet0/2
15、no ip address shutdown half-duplex!interface Ethernet0/3 no ip address shutdown half-duplex!interface Serial1/0 no ip address shutdown serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface
16、Serial1/3 no ip address shutdown serial restart-delay 0!router ospf 1 log-adjacency-changes area 1 virtual-link 200.17.2.2 authentication authentication-key sdx network 132.17.23.3 0.0.0.0 area 1 network 200.17.3.3 0.0.0.0 area 0!ip http serverip forward-protocol nd!control-plane!line con 0line aux
17、0line vty 0 4 login!endR3#注:如果Virtual-link没有建立成功,R1和R2的OSPF路由可以互通;R2和R3的OSPF路由可以互通;R1学不到R3的路由但R3可以学到R1路由,出现单通情况。在R1和R2的OSPF 路由进程内增加 area 2 stub 语句后,路由变化情况如下:R1#sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1
18、- OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route
19、Gateway of last resort is 132.17.12.2 to network 0.0.0.0 100.0.0.0/32 is subnetted, 4 subnetsC 100.1.64.5 is directly connected, Loopback2C 100.1.64.4 is directly connected, Loopback1C 100.1.64.7 is directly connected, Loopback4C 100.1.64.6 is directly connected, Loopback3C 200.17.1.0/24 is directly
20、 connected, Loopback0 200.17.2.0/32 is subnetted, 1 subnetsO 200.17.2.2 110/11 via 132.17.12.2, 00:00:19, Ethernet0/0 200.17.3.0/32 is subnetted, 1 subnetsO IA 200.17.3.3 110/21 via 132.17.12.2, 00:00:19, Ethernet0/0 132.17.0.0/24 is subnetted, 2 subnetsO IA 132.17.23.0 110/20 via 132.17.12.2, 00:00
21、:19, Ethernet0/0C 132.17.12.0 is directly connected, Ethernet0/0O*IA 0.0.0.0/0 110/11 via 132.17.12.2, 00:00:20, Ethernet0/0在R1的OSPF 路由进程内增加 area 2 stub 语句,在R2的OSPF 路由进程内增加 area 2 stub no-summary 后的路由变化情况如下:R1#sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX -
22、EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static r
23、oute o - ODR, P - periodic downloaded static routeGateway of last resort is 132.17.12.2 to network 0.0.0.0 100.0.0.0/32 is subnetted, 4 subnetsC 100.1.64.5 is directly connected, Loopback2C 100.1.64.4 is directly connected, Loopback1C 100.1.64.7 is directly connected, Loopback4C 100.1.64.6 is direct
24、ly connected, Loopback3C 200.17.1.0/24 is directly connected, Loopback0 200.17.2.0/32 is subnetted, 1 subnetsO 200.17.2.2 110/11 via 132.17.12.2, 00:07:53, Ethernet0/0 132.17.0.0/24 is subnetted, 1 subnetsC 132.17.12.0 is directly connected, Ethernet0/0O*IA 0.0.0.0/0 110/11 via 132.17.12.2, 00:00:09, Ethernet0/0R1#
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1