OSPF不使用TCP或UDP,它承载在IP数据包内 OSPF组播地址:224.0.0.5--公告 224.0.0.6--监听 OSPF协议号89 · 链路状态数据库中的每个条目都称为LSA(链路状态通告) · 常见LSA有六种 LSA1:路由LSA,最基本的LSA通告 LSA2:网络LSA,由DR发出 LSA3:网络汇总LSA,由ABR始发 LSA4:ASBR网络汇总LSA,由ABR始发 LSA5:外部LSA路由重分发,始发于ASBR LSA7:NSSA外部LSA,始发于ASBR · R1(config)#router ospf 1 R1(config-router)#router-id 1.1.1.1 R1(config-router)#network 1.1.1.1 0.0.0.0 area 0 R1(config-router)#network 12.0.0.0 0.0.0.255 area 0 · R2(config)#router ospf 1 R2(config-router)#router-id 2.2.2.2 R2(config-router)#network 2.2.2.2 0.0.0.0 area 0 R2(config-router)#network 12.0.0.0 0.0.0.255 area 0 R2(config-router)#network 13.0.0.0 0.0.0.255 area 1 R2(config-router)#network 14.0.0.0 0.0.0.255 area 2 · R3(config)#router ospf 1 R3(config-router)#router-id 3.3.3.3 R3(config-router)#network 3.3.3.3 0.0.0.0 area 1 R3(config-router)#network 13.0.0.0 0.0.0.255 area 1 · R4(config)#router ospf 1 R4(config-router)#router-id 4.4.4.4 R4(config-router)#network 4.4.4.4 0.0.0.0 area 2 R4(config-router)#network 14.0.0.0 0.0.0.255 area 2