首页 > 其他 > 详细

vrrp的配置命令及配图

时间:2019-04-30 11:48:03      阅读:212      评论:0      收藏:0      [点我收藏+]
技术分享图片
SW1:
u t m
sys
sys SW1
vlan 1
vlan 2
interface Vlanif1
ip address 192.168.5.1 24
interface Vlanif2
ip address 192.168.1.1 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.1.254
vrrp vrid 1 priority 200
vrrp vrid 1 preempt-mode timer delay 20
vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 100
interface GigabitEthernet0/0/1
port link-type access
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
ip route-static 0.0.0.0 0.0.0.0 192.168.5.2

SW2:
u t m
sys
sys SW2
vlan 2
interface Vlanif1
ip address 192.168.10.1 24
interface Vlanif2
ip address 192.168.1.2 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.1.254
vrrp vrid 1 priority 150
interface GigabitEthernet0/0/1
port link-type access
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
ip route-static 0.0.0.0 0.0.0.0 192.168.10.2

SW3:
u t m
sys
sys SW3
vlan 2
interface Ethernet0/0/1
port link-type access
port default vlan 2
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094

R1:
u t m
sys
sys R1
interface GigabitEthernet0/0/1
ip address 192.168.5.2 24
interface GigabitEthernet0/0/2
ip address 192.168.10.2 24
interface LoopBack0
ip address 1.1.1.1 255.255.255.0
ip route-static 192.168.1.0 255.255.255.0 192.168.5.1
ip route-static 192.168.1.0 255.255.255.0 192.168.10.1 preference 100
技术分享图片
查看SW1:dis vrrp技术分享图片
查看SW2:dis vrrp技术分享图片
查看路由器:dis vrrp routing-table技术分享图片

vrrp的配置命令及配图

原文:https://blog.51cto.com/8949466/2386874

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!