ospf单区域配置

Rt1
-------------------------------
en
conf t
host RtA
no ip do lo
lin c 0
no exec-t
logg s
exit
int lo 0
ip add 1.1.1.1 255.255.255.255
no sh
int f0/0
ip add 14.0.0.1 255.255.255.0
no sh
int s1/1
ip add 12.0.0.1 255.255.255.0
no sh
exit
router ospf 1
netw 1.1.1.1 0.0.0.0 area 0
netw 14.0.0.0 0.0.0.255 area 0
netw 12.0.0.0 0.0.0.255 area 0
-------------------------------
Rt2
-------------------------------
en
conf t
host RtB
no ip do lo
lin c 0
no exec-t
logg s
exit
int lo 0
ip add 2.2.2.2 255.255.255.255
no sh
int s1/0
ip add 12.0.0.2 255.255.255.0
no sh
int s1/1
ip add 23.0.0.1 255.255.255.0
no sh
exit
router ospf 1
netw 2.2.2.2 0.0.0.0 area 0
netw 12.0.0.0 0.0.0.255 area 0
netw 23.0.0.0 0.0.0.255 area 0
-------------------------------
Rt3
-------------------------------
en
conf t
host RtC
no ip do lo
lin c 0
no exec-t
logg s
exit
int lo 0
ip add 3.3.3.3 255.255.255.255
no sh
int s1/0
ip add 23.0.0.2 255.255.255.0
no sh
int s1/1
ip add 34.0.0.2 255.255.255.0
no sh
exit
router ospf 1
netw 3.3.3.3 0.0.0.0 area 0
netw 23.0.0.0 0.0.0.255 area 0
netw 34.0.0.0 0.0.0.255 area 0
-------------------------------
Rt4
-------------------------------
en
conf t
host RtD
no ip do lo
lin c 0
no exec-t
logg s
exit
int lo 0
ip add 4.4.4.4 255.255.255.255
no sh
int f0/0
ip add 14.0.0.2 255.255.255.0
no sh
int s1/0
ip add 34.0.0.1 255.255.255.0
no sh
exit
router ospf 1
netw 4.4.4.4 0.0.0.0 area 0
netw 14.0.0.0 0.0.0.255 area 0
netw 34.0.0.0 0.0.0.255 area 0

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