在eNSP中,首先你需要通过命令行界面登录到需要配置OSPF路由协议的路由器。例如,登录到路由器R1,你可能会看到这样的提示符: text <Huawei> 进入全局配置模式: 输入system-view命令进入全局配置模式: text <Huawei> system-view [Huawei] 配置Router ID: Router ID是OSPF路由器的一个唯一标识符。
ospf 1 router-id 1.1.1.1 //跑ospf,手动配置router-id area 0 //区域0 net 192.168.0.1 0.0.0.0 //网段和反掩码 1. 2. 3. 4. 5. 6. 7. 8. 配置R2 sys sys R2 int g0/0/0 ip add 192.168.0.2 24 ospf 1 router-id 2.2.2.2 area 0 net 192.168.0.0 0.0.0.255 1. 2. 3. 4. 5. ...
当然,可以为协议配置私有Router ID,不使用全局Router ID,比如在开启OSPF的时候同时指定Router ID(例ospf 1 router-id x.x.x.x),这在某些情况下非常有用。Router ID如果重新配置,不将相关进程重启,新的Router ID是不会生效的。
[SW1]int vlan 10 [SW1-Vlanif10]vrrp vrid 1 virtual-ip 192.168.10.254 [SW1-Vlanif10]vrrp vrid 1 priority 120 [SW1-Vlanif10]vrrp vrid 1 track interface e0/0/2 [SW1]int vlan 20 [SW1-Vlanif20]vrrp vrid 2 virtual-ip 192.168.20.254 [SW1-Vlanif20]vrrp vrid 2 priority 115 [...
Router-ID :是ospf网络中用于区分路由器的唯一标识,router-id遵循如下规则:1.如果有手动配置,那么就优先使用手动配置的 2.如果1不满足,且配置有配置逻辑接口(回环口),那么就会默认使用该路由器上的逻辑口来作为router ID ,如果存在多个,那么根据数值最大的来作为router id 3.如果1 和 2 都不满足,那么路由器会...
[AR1]display ospf peer OSPF Process 1 with Router ID 10.0.1.1 Neighbors Area 0.0.0.0 interface 10.0.12.1(GigabitEthernet0/0/0)'s neighbors Router ID: 10.0.1.2 Address: 10.0.12.2 State: Full Mode:Nbr is Master Priority: 1 DR: 10.0.12.2 BDR: 10.0.12.1 MTU: 0 ...
[R1]router id 1.1.1.1 Info: Router ID has been modified, please reset the relative protocols manually to update the Router ID.4、ospf的私有Router-ID。 使用ospf Router-ID命令来配置ospf协议的私有Router-ID,如果不配置则默认使用全局下的Router-ID。需要注意设备...
模拟NBMA网络单区域ospf配置: R1配置如下: sys interface GigabitEthernet0/0/0 ip address 123.1.1.1 24 interface LoopBack0 ip address 1.1.1.1 32 ospf 1 router-id 1.1.1.1 area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 123.1.1.0 0.0.0.255 ...
Router-ID:是ospf网络中用于区分路由器的唯一标识,router-id遵循以下规则: 1.如果有手动配置,那么就优先使用手动配置的。 2.如果1不满足,且配置有配置逻辑接口(回环口),那么就会默认使用该路由器上的逻辑口来作为router ID ,如果存在多...
验证:display ip routing-table protocol ospf 各个路由器配置命令 sys sysname R1 int g0/0/0 ip add 192.168.0.1 24 ospf dr-pri 200 ospf 1 router-id 1.1.1.1 area 0 network 192.168.0.0 0.0.0.255 int g0/0/0 ospf authentication-mode md5 1 cipher huawei ...