码迷,mamicode.com
首页 > 其他好文 > 详细

vrrp的配置命令及配图

时间:2019-04-30 09:14:10      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:mode   路由器   log   link   inter   efault   term   access   -o   

技术图片
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的配置命令及配图

标签:mode   路由器   log   link   inter   efault   term   access   -o   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!