- R1:
- interface Loopback0
- ip address 10.255.1.1 255.255.255.255
- interface Loopback1
- ip address 10.100.1.1 255.255.255.0
- ip ospf network point-to-point
- interface Loopback2
- ip address 10.200.1.1 255.255.255.0
- ip ospf network point-to-point
- interface Ethernet0/0
- ip address 10.1.12.1 255.255.255.0
- interface Ethernet0/1
- ip address 10.1.13.1 255.255.255.0
- interface Ethernet0/2
- no ip address
- interface Ethernet0/2.1
- encapsulation dot1Q 10
- ip address 10.1.14.1 255.255.255.0
- interface Ethernet0/2.2
- encapsulation dot1Q 20
- ip address 10.2.14.1 255.255.255.0
- router ospf 1
- router-id 10.255.1.1
- network 10.1.12.0 0.0.0.255 area 1
- network 10.1.13.0 0.0.0.255 area 1
- network 10.1.14.0 0.0.0.255 area 1
- network 10.2.14.0 0.0.0.255 area 2
- network 10.100.1.1 0.0.0.0 area 1
- network 10.200.1.1 0.0.0.0 area 2
- network 10.255.1.1 0.0.0.0 area 1
- R2:
- interface Loopback0
- ip address 10.255.2.2 255.255.255.255
- interface Loopback1
- ip address 10.100.2.2 255.255.255.0
- ip ospf network point-to-point
- interface Loopback2
- ip address 10.200.2.2 255.255.255.0
- ip ospf network point-to-point
- interface Ethernet0/0
- ip address 10.1.12.2 255.255.255.0
- interface Ethernet0/1
- no ip address
- interface Ethernet0/1.1
- encapsulation dot1Q 10
- ip address 10.1.23.2 255.255.255.0
- interface Ethernet0/1.2
- encapsulation dot1Q 20
- ip address 10.2.23.2 255.255.255.0
- interface Ethernet0/2
- ip address 10.1.24.2 255.255.255.0
- router ospf 1
- router-id 10.255.2.2
- network 10.1.12.0 0.0.0.255 area 1
- network 10.1.23.0 0.0.0.255 area 1
- network 10.1.24.0 0.0.0.255 area 2
- network 10.2.23.0 0.0.0.255 area 2
- network 10.100.2.2 0.0.0.0 area 1
- network 10.200.2.2 0.0.0.0 area 2
- network 10.255.2.2 0.0.0.0 area 2
- R3:
- interface Loopback0
- ip address 10.255.3.3 255.255.255.255
- interface Ethernet0/0
- no ip address
- interface Ethernet0/0.1
- encapsulation dot1Q 10
- ip address 10.1.23.3 255.255.255.0
- interface Ethernet0/0.2
- encapsulation dot1Q 20
- ip address 10.2.23.3 255.255.255.0
- interface Ethernet0/1
- ip address 10.1.13.3 255.255.255.0
- interface Ethernet0/2
- ip address 10.1.34.3 255.255.255.0
- interface Serial1/1
- no ip address
- encapsulation frame-relay
- no keepalive
- serial restart-delay 0
- interface Serial1/1.1 point-to-point
- ip address 10.1.35.3 255.255.255.0
- no keepalive
- frame-relay interface-dlci 100
- interface Serial1/1.2 point-to-point
- ip address 10.2.35.3 255.255.255.0
- ip ospf cost 100
- no keepalive
- frame-relay interface-dlci 200
- router ospf 1
- router-id 10.255.3.3
- network 10.1.13.0 0.0.0.255 area 1
- network 10.1.23.0 0.0.0.255 area 1
- network 10.1.34.0 0.0.0.255 area 0
- network 10.1.35.0 0.0.0.255 area 1
- network 10.2.23.0 0.0.0.255 area 2
- network 10.2.35.0 0.0.0.255 area 2
- network 10.255.3.3 0.0.0.0 area 1
- R4:
- interface Loopback0
- ip address 10.255.4.4 255.255.255.255
- interface Ethernet0/0
- ip address 10.1.34.4 255.255.255.0
- interface Ethernet0/1
- ip address 10.1.24.4 255.255.255.0
- interface Ethernet0/2
- no ip address
- interface Ethernet0/2.1
- encapsulation dot1Q 10
- ip address 10.1.14.4 255.255.255.0
- interface Ethernet0/2.2
- encapsulation dot1Q 20
- ip address 10.2.14.4 255.255.255.0
- interface Serial1/1
- no ip address
- encapsulation frame-relay
- no keepalive
- serial restart-delay 0
- interface Serial1/1.1 point-to-point
- ip address 10.1.45.4 255.255.255.0
- ip ospf cost 100
- no keepalive
- frame-relay interface-dlci 100
- interface Serial1/1.2 point-to-point
- ip address 10.2.45.4 255.255.255.0
- no keepalive
- frame-relay interface-dlci 200
- router ospf 1
- router-id 10.255.4.4
- network 10.1.14.0 0.0.0.255 area 1
- network 10.1.24.0 0.0.0.255 area 2
- network 10.1.34.0 0.0.0.255 area 0
- network 10.1.45.0 0.0.0.255 area 1
- network 10.2.14.0 0.0.0.255 area 2
- network 10.2.45.0 0.0.0.255 area 2
- network 10.255.4.4 0.0.0.0 area 2
- R5:
- interface Loopback0
- ip address 10.255.5.5 255.255.255.255
- interface Loopback1
- ip address 10.100.5.5 255.255.255.0
- ip ospf network point-to-point
- interface Loopback2
- ip address 10.200.5.5 255.255.255.0
- ip ospf network point-to-point
- interface Serial1/0
- no ip address
- encapsulation frame-relay
- no keepalive
- serial restart-delay 0
- interface Serial1/0.1 point-to-point
- ip address 10.1.35.5 255.255.255.0
- no keepalive
- frame-relay interface-dlci 100
- interface Serial1/0.2 point-to-point
- ip address 10.2.35.5 255.255.255.0
- ip ospf cost 100
- no keepalive
- frame-relay interface-dlci 200
- interface Serial1/1
- no ip address
- encapsulation frame-relay
- no keepalive
- serial restart-delay 0
- interface Serial1/1.1 point-to-point
- ip address 10.1.45.5 255.255.255.0
- ip ospf cost 100
- no keepalive
- frame-relay interface-dlci 100
- interface Serial1/1.2 point-to-point
- ip address 10.2.45.5 255.255.255.0
- no keepalive
- frame-relay interface-dlci 200
- router ospf 1
- router-id 10.255.5.5
- network 10.1.35.0 0.0.0.255 area 1
- network 10.1.45.0 0.0.0.255 area 1
- network 10.2.35.0 0.0.0.255 area 2
- network 10.2.45.0 0.0.0.255 area 2
- network 10.100.5.5 0.0.0.0 area 1
- network 10.200.5.5 0.0.0.0 area 2
- network 10.255.5.5 0.0.0.0 area 1
断开 R3 的 s1/1 前, R5 的路由表
- r5#show ip route
- Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
- D - EIGRP, EX - 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 route
- o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
来源: http://www.bubuko.com/infodetail-2548469.html