OSPF动态协议:开放最短路径优先
1、区域(Area)
2、标识(Rourer ID)唯一的
3、度量值(开销 Cost)
4、报文类型:Hello—>DD—>LSR—>LSU—>LSACK
AR1路由器配置
u t m
sys
int g0/0/0
ip add 192.168.1.1 24
quit
ospf 1 router-id 1.1.1.1 #配置router-id
area 0 #配置区域
network 192.168.1.0 0.0.0.255 #添加相邻的网段
quit
AR2路由器配置
u t m
sys
int g0/0/0
ip add 192.168.1.2 24
int g0/0/1
ip add 192.168.2.1 24
quit
ospf 1 router-id 2.2.2.2
area 0
network 192.168.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255
quit
AR3路由器配置
u t m
sys
int g0/0/1
ip add 192.168.2.2 24
int g0/0/2
ip add 192.168.3.1 24
q
ospf 1 router-id 3.3.3.3
area 0
network 192.168.2.0 0.0.0.255
network 192.168.3.0 0.0.0.255
quit
AR4路由器配置
u t m
sys
int g0/0/2
ip add 192.168.3.2 24
q
ospf 1 router-id 4.4.4.4
area 0
network 192.168.3.0 0.0.0.255
quit