Typical Configuration Of VRRP on AR28、AR46 Series Routers
[Requirements]
The PC gateway points to the virtual IP addresses of two routers and these two routers employ the VRRP to implement the host backup.
[Networking diagram]
[Configuration script
Configuration script of RouterA
#
sysname RouterA
#
vrrp ping-enable /Enable the VRRP ping/
#
radius scheme system
#
domain system
#
interface Ethernet1/0/0
ip address 10.0.0.1 255.255.255.0
vrrp vrid 1 virtual-ip 10.0.0.254 /Configure the virtual IP address/
vrrp vrid 1 priority 120 /Set the priority to 120, higher than 100/
vrrp vrid 1 track Serial2/0/0 reduced 30 /Set the monitoring interface/
#
interface Serial2/0/0
link-protocol ppp
ip address 20.0.0.2 255.255.255.252
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 20.0.0.1 preference 60
#
user-interface con 0
user-interface vty 0 4
#
Configuration script of RouterB
#
sysname RouterB
#
vrrp ping-enable /Enable the VRRP ping/
#
radius scheme system
#
domain system
#
interface Ethernet1/0/0
ip address 10.0.0.2 255.255.255.0
vrrp vrid 1 virtual-ip 10.0.0.254 /Configure the virtual IP address. The priority is 100 by default./
#
interface Serial2/0/0
link-protocol ppp
ip address 20.0.0.6 255.255.255.252
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 20.0.0.5 preference 60
#
user-interface con 0
user-interface vty 0 4
#
[Verification]
Generally, the VRRP states of RouterA and RouterB are shown as follows:
RouterA state
[RouterA]disp vrrp
Virtual Ip Ping : Enable
Ethernet1/0/0 | Virtual Router 1
state : Master
Virtual IP : 10.0.0.254
Config Priority : 120
Run Priority : 120
Preempt : YES Delay Time : 0
Timer : 1
Auth Type : NONE
Track IF : Serial2/0/0 Priority reduced : 30
RouterB state
[RouterB]disp vrrp
Virtual Ip Ping : Enable
Ethernet1/0/0 | Virtual Router 1
state : Backup
Virtual IP : 10.0.0.254
Config Priority : 100
Run Priority : 100
Preempt : YES Delay Time : 0
Timer : 1
Auth Type : NONE
VRRP states of RouterA and RouterB are shown after the uplink interface S2/0/0 of RouterA is down:
RouterA state
[RouterA]disp vrrp
Virtual Ip Ping : Enable
Ethernet1/0/0 | Virtual Router 1
state : Backup
Virtual IP : 10.0.0.254
Config Priority : 120
Run Priority : 90
Preempt : YES Delay Time : 0
Timer : 1
Auth Type : NONE
Track IF : Serial2/0/0 Priority reduced : 30
RouterB state
[RouterB]disp vrrp
Virtual Ip Ping : Enable
Ethernet1/0/0 | Virtual Router 1
state : Master
Virtual IP : 10.0.0.254
Config Priority : 100
Run Priority : 100
Preempt : YES Delay Time : 0
Timer : 1
Auth Type : NONE
[Tip]
1. If vrrp ping-enable is not configured, the gateway cannot be pinged through. However, the forwarding is still normal.
2. By default, the VRRP works in preemption mode (Preempt=YES)
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作