![图片[1]-8.12 VRRP-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片22-8.png)
1.配置R1的OSPF
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]net
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 13.1.1.0 0.0.0.255
2.配置R2的OSPF
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
3.配置R3的OSPF
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 13.1.1.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
4.配置R2的VRRP
[R2]interface GigabitEthernet 0/0/2
[R2-GigabitEthernet0/0/2]vrrp vrid 1 virtual-ip 23.1.1.254
[R3-GigabitEthernet0/0/2]vrrp vrid 1 priority 110
5.配置R3的VRRP
[R3]interface GigabitEthernet 0/0/2
[R3-GigabitEthernet0/0/2]vrrp vrid 1 virtual-ip 23.1.1.254
6.查看vrrp信息
[R2]display vrrp brief
Total:1 Master:1 Backup:0 Non-active:0
VRID State Interface Type Virtual IP
1 Master GE0/0/2 Normal 23.1.1.254
[R3]display vrrp brief
Total:1 Master:0 Backup:1 Non-active:0
VRID State Interface Type Virtual IP
1 Backup GE0/0/2 Normal 23.1.1.254
[R3]dis
[R3]display vr
[R3]display vrrp
GigabitEthernet0/0/2 | Virtual Router 1
State : Backup
Virtual IP : 23.1.1.254
Master IP : 23.1.1.2
PriorityRun : 100
PriorityConfig : 100
MasterPriority : 110
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Backup-forward : disabled
Create time : 2023-02-02 15:29:48 UTC-08:00
Last change time : 2023-02-02 15:29:48 UTC-08:00
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容