2016年5月23日 星期一

OSPF router-id

OSPF Router-id 是維一用來標示一個OSPF路由器,用於LSDB中來識別不同的路由器

Router-id的形成順序
  1. 使用手動配置router-id的指令。
  2. 如果有一個loopback interface 被配置,那麼它將成為路由器 router-id,如果有多個loopback interface,那麼使用最高 ip address 為 router-id。
  3. default 的情況下,選擇 router-id 是路由器 Active interface 上的 ip address 最高的為router-id。


建議使用loopback interface或者使用手動指令 router-id來指定
  1. 雖然Router-id只是一個以 ip address 的表示法,並非一定是要路由器上的 ip address,可以配置一個任意的32 bit 的值,但建議以 loopback 為 router-id。
Router-id是非強佔的
  1. 如果修改Router-id是必需要去clear ip ospf process 才會生效,切記切記。
  2. 查看方式如下:
R1#sh ip ospf
 Routing Process "ospf 1" with ID 11.1.1.1
 Start time: 00:00:22.420, Time elapsed: 00:00:27.232
 Supports only single TOS(TOS0) routes
    Area BACKBONE(0) (Inactive)
        Number of interfaces in this area is 3 (2 loopback)
        Area has no authentication
        SPF algorithm last executed 00:00:19.284 ago
        SPF algorithm executed 1 times
        Area ranges are
        Number of LSA 1. Checksum Sum 0x00F42A
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

沒有留言:

張貼留言