0.00% packet loss
round-trip min/avg/max = 31/40/47 ms
检查配置命令,在AR1和AR2上查看vrrp状态
[Huawei]display vrrp brief
Total:2 Master:1 Backup:1 Non-active:0
VRID State Interface Type Virtual IP
----------------------------------------------------------------
1 Master GE0/0/0 Normal 12.1.1.254
[Huawei]
[Huawei]display vrrp
GigabitEthernet0/0/0 | Virtual Router 1
State : Master
Virtual IP : 12.1.1.254
Master IP : 12.1.1.1
PriorityRun : 255
PriorityConfig : 101
MasterPriority : 255
Preempt : YES Delay Time : 2 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 : 2016-07-21 13:38:58 UTC-08:00
Last change time : 2016-07-21 14:36:07 UTC-08:00
二、VRRP多网关负载分担配置实例

PC1和PC2通过SW双线连接到AR1和AR2,要求PC1以AR1为网关接入网络,PC2以AR2为网关接入网络,以实现流量的负载均衡。什么设备具有mac地址
配置思路:
1、全网配置ospf保证三层通信,这里略过。
2、在AR1和AR2上分别创建vrrp虚拟组1和vrrp虚拟组2,并在vrrp组1中让AR1作为主设备、AR2作为备用设备,而在vrrp组2中让AR2作为主设备、AR1作为备用设备,可以实现流量的负载分担。
AR1上的配置,ospf省略
#
interface GigabitEthernet0/0/0
ip address 12.1.1.1 255.255.255.0

vrrp vrid 1 virtual-ip 12.1.1.1
//在vrrp组1中配置AR1为主,这里使用了AR1的接口ip而不是虚拟ip,默认情况下使用接口ip会直接在该组中将优先级变为255
vrrp vrid 1 priority 101 所以这个101优先级也可以不用配置
vrrp vrid 1 preempt-mode timer delay 2 配置AR1在组1中允许抢占,时间为延迟2s
vrrp vrid 2 virtual-ip 12.1.1.2 AR1在vrrp组2中做备用,只用配置组2的ip就可以了
ospf enable 1 area 0.0.0.0
#
AR2上的配置,ospf省略
#
interface GigabitEthernet0/0/0
ip address 12.1.1.2 255.255.255.0
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-59729-3.html
否则哪里来的12海里之说
我要被帅晕了o