拓扑图:
实验要求:
1.
全网互通配置如图说是的2条vc
2.
Area0 指定R2为DR
3.
配置虚拟链路
4.
合适的LSA泛洪
实验知识点:
1.
帧中继网络的NBMA的ospf配置,配成广播形式。指定相应的邻居,指定DR,配置优先级。
2.
配置完全末节网络totally stub的ospf,减少LSA的泛洪。(area 1 3 4)
3.
路由器的重新发布,rip和ospf
4.
Ospf的虚链路配置。
配置步骤:
1.
R9模拟帧中继交换网络:
Router#sh run
Building configuration...
!
frame-relay switching //启用帧中继交换
!
interface Serial1/0
no ip address
encapsulation frame-relay
no fair-queue
serial restart-delay 0
frame-relay intf-type dce
frame-relay route 203 interface Serial1/1 302
frame-relay route 204 interface Serial1/2 402
!
interface Serial1/1
no ip address
encapsulation frame-relay
serial restart-delay 0
frame-relay intf-type dce
frame-relay route 302 interface Serial1/0 203
frame-relay route 304 interface Serial1/2 403
!
interface Serial1/2
no ip address
encapsulation frame-relay
serial restart-delay 0
frame-relay intf-type dce
frame-relay route 402 interface Serial1/0 204
frame-relay route 403 interface Serial1/1 304
Router#sh frame-relay route //显示帧中继路由
Input Intf Input Dlci Output Intf Output Dlci Status
Serial1/0 203 Serial1/1 302 active
Serial1/0 204 Serial1/2 402 active
Serial1/1 302 Serial1/0 203 active
Serial1/1 304 Serial1/2 403 active
Serial1/2 402 Serial1/0 204 active
Serial1/2 403 Serial1/1 304 active
R1.配置:
R1#sh run
Building configuration...
interface Loopback0
ip address 172.16.0.1 255.255.255.0
!
interface Loopback1
ip address 172.16.1.1 255.255.255.0
!
interface Loopback2
ip address 172.16.2.1 255.255.255.0
!
interface Loopback3
ip address 172.16.3.1 255.255.255.0
interface Serial1/1
ip address 10.1.1.1 255.255.255.0
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 1 stub
network 10.1.1.0 0.0.0.255 area 1
network 172.16.0.0 0.0.0.255 area 1
network 172.16.1.0 0.0.0.255 area 1
network 172.16.2.0 0.0.0.255 area 1
network 172.16.3.0 0.0.0.255 area 1
end
R2配置:
R2#sh run
Building configuration...
interface Serial1/0
ip address 10.1.1.2 255.255.255.0
no fair-queue
serial restart-delay 0
!
interface Serial1/1
no ip address
encapsulation frame-relay
shutdown
serial restart-delay 0
!
interface Serial1/2
ip address 172.17.1.1 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 172.17.1.3 204 broadcast
frame-relay map ip 172.17.1.2 203 broadcast
no frame-relay inverse-arp
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 1 stub no-summary
area 1 range 172.16.0.0 255.255.252.0
network 10.1.1.0 0.0.0.255 area 1
network 172.17.1.0 0.0.0.255 area 0
neighbor 172.17.1.2
neighbor 172.17.1.3
End
R3:配置
!
interface Serial1/1
ip address 10.1.2.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
ip address 172.17.1.2 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
serial restart-delay 0
frame-relay map ip 172.17.1.1 302 broadcast
frame-relay map ip 172.17.1.3 304 broadcast
no frame-relay inverse-arp
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 4 nssa default-information-originate no-summary
network 10.1.2.0 0.0.0.255 area 4
network 172.17.1.0 0.0.0.255 area 0
!
R4配置:
interface Serial1/1
ip address 10.1.3.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
ip address 172.17.1.3 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
serial restart-delay 0
frame-relay map ip 172.17.1.1 402 broadcast
frame-relay map ip 172.17.1.2 403 broadcast
no frame-relay inverse-arp
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 2 virtual-link 172.18.1.1
area 2 virtual-link 10.1.3.2
network 10.1.3.0 0.0.0.255 area 2
network 172.17.1.0 0.0.0.255 area 0
!
R5配置:
interface Serial1/0
ip address 10.1.2.2 255.255.255.0
no fair-queue
serial restart-delay 0
!
interface Serial1/1
ip address 192.168.255.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 4 nssa
redistribute rip metric 100 subnets
network 10.1.2.0 0.0.0.255 area 4
network 172.16.0.0 0.0.0.255 area 4
network 172.19.0.0 0.0.0.255 area 4
network 172.19.1.0 0.0.0.255 area 4
!
router rip
version 2
redistribute ospf 1 metric 10
network 192.168.255.0
no auto-summary
R6配置:
interface Loopback0
ip address 192.168.1.1 255.255.255.0
!
interface Loopback1
ip address 192.168.3.1 255.255.255.0
!
interface Serial1/0
ip address 192.168.255.2 255.255.255.0
no fair-queue
serial restart-delay 0
!
!
router rip
version 2
network 192.168.1.0
network 192.168.3.0
network 192.168.255.0
no auto-summary
R7配置:
interface Loopback0
ip address 172.18.0.1 255.255.255.0
!
interface Loopback1
ip address 172.18.1.1 255.255.255.0
interface Serial1/0
ip address 10.1.3.2 255.255.255.0
no fair-queue
serial restart-delay 0
!
interface Serial1/1
ip address 10.1.4.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 2 virtual-link 172.17.1.3
area 3 stub no-summary
network 10.1.3.0 0.0.0.255 area 2
network 10.1.4.0 0.0.0.255 area 3
network 172.18.0.0 0.0.0.255 area 2
network 172.18.1.0 0.0.0.255 area 2
!
R8配置:
interface Loopback0
ip address 172.20.1.1 255.255.255.0
!
interface Loopback1
ip address 172.20.2.1 255.255.255.0
!
interface Serial1/0
ip address 10.1.4.2 255.255.255.0
no fair-queue
serial restart-delay 0
router ospf 1
log-adjacency-changes
area 3 stub
network 10.1.4.0 0.0.0.255 area 3
network 172.20.1.0 0.0.0.255 area 3
network 172.20.2.0 0.0.0.255 area 3