第八章 Ospf实验

 

clip_image002

ospf配置思路:

对于路由器:

1:命名

2:配置loopback IP

3:配置相应端口IP

4:配置ospf

5:宣告网段

-----------------------------------------------

RA:

en

conf t

host RA

int loopback 0 //配置loop的IP

ip add 20.1.1.1 255.0.0.0

exit

int s0/1

clock rate 128000 //配置端口的时钟频率

ip add 192.168.10.1 255.255.255.0 //配置IP地址

no sh

exit

int f1/0

ip add 192.168.20.1 255.255.255.0 //配置IP地址

no sh

exit

router ospf 20 //配置OSPF

network 192.168.10.0 0.0.0.255 area 0 //宣告网段

network 192.168.20.0 0.0.0.255 area 0

end

----------------------------------------------

RB:

en

conf t

host RB

int loopback 0

ip add 10.1.1.1 255.0.0.0

exit

int s0/1

clock rate 128000

ip add 192.168.10.2 255.255.255.0

no sh

exit

router ospf 10

network 192.168.10.0 0.0.0.255 area 0

network 10.0.0.0 0.255.255.255 area 0

end

---------------------------------------------------

RC:

en

conf t

host RC

int loopback 0

ip add 30.1.1.1 255.0.0.0

exit

int f0/0

ip add 192.168.20.2 255.255.255.0

no sh

exit

router ospf 30

network 30.0.0.0 0.255.255.255 area 0

network 192.168.20.0 0.0.0.255 area 0

end

实验截图:

clip_image004

clip_image006clip_image008clip_image010

clip_image012clip_image014clip_image016clip_image018

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