OSPF的高级配置

实验目的:

掌握OSPF的虚链路

实验环境拓扑图及要求:

 

image

实验步骤:【必写】

分类写出你的实验进行中的步骤,可用文字或图片加水印标记

配置文档:

RA:

en

conf t

host RA

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

测试截图:

clip_image002clip_image004clip_image006clip_image008

你可能感兴趣的:(职场,高级,休闲,ospf)