ensp-VRRP的配置

VRRP基本配置环境拓扑:
在这里插入图片描述
VRRP基本配置环境中的IP地址规划:
在这里插入图片描述
在路由器接口添加VRRP配置:

[AR1]interface g0/0/0
[AR1-GigabitEthernet0/0/0]vrrp vrid 10 virtual-ip 10.10.10.254
[AR1-GigabitEthernet0/0/0]vrrp vrid 10 priority 150
[AR2]interface g0/0/0
[AR2-GigabitEthernet0/0/0]vrrp vrid 10 virtual-ip 10.10.10.254

检查VRRP状态:

[AR1]display vrrp brief 
Total:1     Master:1     Backup:0     Non-active:0      
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
10    Master       GE0/0/0                  Normal   10.10.10.254   
[AR2]display vrrp brief 
Total:1     Master:0     Backup:1     Non-active:0      
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
10    Backup       GE0/0/0                  Normal   10.10.10.254   

查看VRRP版本:

[AR1]display vrrp protocol-information 
 VRRP protocol information is shown as below: 
    VRRP protocol version : V2
    Send advertisement packet mode : send v2 only 

在PC10上验证VRRP的配置效果:

PC10>ping 192.168.0.10
Ping 192.168.0.10: 32 data bytes, Press Ctrl_C to break
From 192.168.0.10: bytes=32 seq=1 ttl=254 time=46 ms
From 192.168.0.10: bytes=32 seq=2 ttl=254 time=16 ms
From 192.168.0.10: bytes=32 seq=3 ttl=254 time=47 ms
From 192.168.0.10: bytes=32 seq=4 ttl=254 time=47 ms
From 192.168.0.10: bytes=32 seq=5 ttl=254 time=31 ms
--- 192.168.0.10 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 16/37/47 ms
PC10>tracert 192.168.0.10
traceroute to 192.168.0.10, 8 hops max
(ICMP), press Ctrl+C to stop
 1  10.10.10.253   31 ms  47 ms  47 ms
 2  192.168.0.10   62 ms  63 ms  78 ms

检查VRRP状态:

[AR1]display vrrp brief 
Total:1     Master:1     Backup:0     Non-active:0      
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
10    Master       GE0/0/0                  Normal   10.10.10.254   
[AR2]display vrrp brief 
Total:1     Master:0     Backup:1     Non-active:0      
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
10    Backup       GE0/0/0                  Normal   10.10.10.254   

查看VRRP版本:

[AR1]display vrrp protocol-information 
 VRRP protocol information is shown as below: 
    VRRP protocol version : V2
    Send advertisement packet mode : send v2 only 

在PC10上验证VRRP的配置效果:

PC10>ping 192.168.0.10
Ping 192.168.0.10: 32 data bytes, Press Ctrl_C to break
From 192.168.0.10: bytes=32 seq=1 ttl=254 time=46 ms
From 192.168.0.10: bytes=32 seq=2 ttl=254 time=16 ms
From 192.168.0.10: bytes=32 seq=3 ttl=254 time=47 ms
From 192.168.0.10: bytes=32 seq=4 ttl=254 time=47 ms
From 192.168.0.10: bytes=32 seq=5 ttl=254 time=31 ms
--- 192.168.0.10 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 16/37/47 ms
PC10>tracert 192.168.0.10
traceroute to 192.168.0.10, 8 hops max
(ICMP), press Ctrl+C to stop
 1  10.10.10.253   31 ms  47 ms  47 ms
 2  192.168.0.10   62 ms  63 ms  78 ms

观察路由器接口的VRRP状态变化情况:

[AR1]display vrrp state-change interface GigabitEthernet 0/0/0 vrid 10
Time                               SourceState  DestState   Reason  
-------------------------------------------------------------------------------
2017-03-28 03:45:00 UTC-08:00      Initialize   Backup      Interface up 
2017-03-28 03:45:03 UTC-08:00      Backup       Master      Protocol timer expired
2017-03-28 04:52:09 UTC-08:00      Master       Backup      Priority calculation
2017-03-28 05:14:17 UTC-08:00      Backup       Master      Priority calculation
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值