标签:The 频繁 例子 交换 验证配置 bit view address interface
配置步骤<SwitchA> system-view
[SwitchA] vlan 2
[SwitchA-vlan2] port gigabitethernet 1/0/11
[SwitchA-vlan2] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 10.1.1.1 255.255.255.0
[SwitchA-Vlan-interface2]quit
[SwitchA] vlan 3
[SwitchA-vlan3] port gigabitethernet 1/0/13
[SwitchA-vlan3] quit
[SwitchA] interface vlan-interface 3
[SwitchA-Vlan-interface3] ip address 10.1.3.1 255.255.255.0
[SwitchA-Vlan-interface3]quit
[SwitchA]ip route-static 0.0.0.0 0 10.1.3.2
[SwitchA]inter vlan 2
[SwitchA-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.111
为 Master 负责转发流量。
[SwitchA-Vlan-interface2] vrrp vrid 1 priority 110
Switch A 正常工作,就由 Switch A 负责转发流量。为了避免频繁地进行状态切换,配置抢占延迟时
间为 5 秒。
[SwitchA-Vlan-interface2] vrrp vrid 1 preempt-mode delay 500
(2) 配置 Switch B
<SwitchB> system-view
[SwitchB] vlan 2
[SwitchB-Vlan2] port gigabitethernet 1/0/12
[SwitchB-vlan2] quit
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ip address 10.1.1.2 255.255.255.0
[SwitchB-Vlan-interface2]quit
[SwitchB] vlan 3
[SwitchB-vlan3] port gigabitethernet 1/0/14
[SwitchB-vlan3] quit
[SwitchB] interface vlan-interface 3
[SwitchB-Vlan-interface3] ip address 10.1.4.1 255.255.255.0
[SwitchB-Vlan-interface3]quit
[SwitchB]ip route-static 0.0.0.0 0 10.1.4.2
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.111
[SwitchB-Vlan-interface2] vrrp vrid 1 priority 100
[SwitchB-Vlan-interface2] vrrp vrid 1 preempt-mode delay 500
标签:The 频繁 例子 交换 验证配置 bit view address interface
原文地址:https://blog.51cto.com/14224935/2405636