实验目的:dom
掌握OSPF的虚链路ide
实验环境拓扑图及要求:oop
实验步骤:【必写】测试
分类写出你的实验进行中的步骤,可用文字或图片加水印标记router
配置文档:blog
RA:图片
enip
conf t文档
host RAget
no ip domain-lookup
int loop 0
ip add 10.0.0.1 255.255.0.0 //配置loop端口的IP
exit
int f0/0
ip add 192.168.1.2 255.255.255.0 //配置端口IP
no sh
exit
router ospf 250 //启用OSPF协议
network 0.0.0.0 255.255.255.255 area 0 //宣告网段并将加入骨干区域
end
RB:
en
conf t
host RB
no ip domain-lookup
int loop 0
ip add 10.0.0.2 255.255.0.0
exit
int f0/0
ip add 192.168.1.1 255.255.255.0
no sh
exit
int f1/0
ip add 192.168.0.1 255.255.255.0
no sh
exit
router ospf 250
network 192.168.1.0 0.0.0.255 area 0
network 10.0.0.0 0.0.255.255 area 1
network 192.168.0.0 0.0.0.255 area 1
area 1 virtual-link 10.0.0.3 //在区域1上配置一条虚链路并指定router ID
end
RC:
en
conf t
host RC
no ip domain-lookup
int loop 0
ip add 10.0.0.3 255.255.0.0
exit
int f0/0
ip add 192.168.0.2 255.255.255.0
no sh
exit
int f1/0
ip add 172.16.0.1 255.255.255.0
no sh
exit
router ospf 250
network 192.168.0.0 0.0.0.255 area 1
network 10.0.0.0 0.0.255.255 area 2
network 172.16.0.0 0.0.0.255 area 2
area 1 virtual-link 10.0.0.2
end
Rd:
en
conf t
host RD
no ip domain-lookup
int loop 0
ip add 10.0.0.4 255.255.0.0
exit
int f0/0
ip add 172.16.0.2 255.255.255.0
no sh
exit
router ospf 250
network 0.0.0.0 255.255.255.255 area 2
end
测试截图: