网
工
圈
然后他的现象就是:OSPF邻居没有起来。
R1配置:
[Huawei]SYS R1
[R1]
[R1]ip vpn-instance 1
[R1-vpn-instance-1]ipv4-family
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip binding vpn-instance 1
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]qu
[R1]ospf 20 router-id 1.1.1.1
[R1-ospf-20]area 0
[R1-ospf-20-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R1-ospf-20-area-0.0.0.0]qu
[R1-ospf-20]
R4配置:
[Huawei]SYS R4
[R4]
[R4]int lo 0
[R4-LoopBack0]ip add 4.4.4.4 32
[R4-LoopBack0]qu
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[R4-GigabitEthernet0/0/0]qu
[R4]ospf 20 ro
[R4]ospf 20 router-id 4.4.4.4
[R4-ospf-20]area 0
[R4-ospf-20-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-20-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R4-ospf-20-area-0.0.0.0]qu
查看一下OSPF邻居:
[R1]ospf 20 router-id 1.1.1.1 vpn-instance 1
[R1-ospf-20]area 0
[R1-ospf-20-area-0.0.0.0]net 192.168.1.0 0.0.0.255
[R1-ospf-20-area-0.0.0.0]qu
现在邻居有了吧!
以上是我个人见解,欢迎大家在评论区留言,批评指正或分享见解,才能共同进步。
联系客服