18_三层交换机上的多组 VRRP(数通华为)

1. 网络拓扑

2. SW3配置
[SW3] vlan batch 10 20
[SW3-GigabitEthernet0/0/1] port link-type access
[SW3-GigabitEthernet0/0/1] port default vlan 10
[SW3-GigabitEthernet0/0/2] port link-type access
[SW3-GigabitEthernet0/0/2] port default vlan 20
[SW3-GigabitEthernet0/0/23] port link-type trunk
[SW3-GigabitEthernet0/0/23] port trunk allow-pass vlan 10 20
[SW3-GigabitEthernet0/0/24] port link-type trunk
[SW3-GigabitEthernet0/0/24] port trunk allow-pass vlan 10 20

3. 汇聚交换机SW1的配置
[SW1] vlan batch 10 20
[SW1-GigabitEthernet0/0/1] port link-type trunk
[SW1-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 20
[SW1] interface Vlanif 10
[SW1-vlanif10] ip address 192.168.10.253 24
[SW1-vlanif10] vrrp vrid 10 virtual-ip 192.168.10.254
[SW1-vlanif10] vrrp vrid 10 priority 120
[SW1] interface Vlanif 20
[SW1-vlanif20] ip address 192.168.20.253 24
[SW1-vlanif20] vrrp vrid 20 virtual-ip 192.168.20.254

4. 汇聚交换机SW2的配置如下
[SW2] vlan batch 10 20
[SW2-GigabitEthernet0/0/1] port link-type trunk
[SW2-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 20
[SW2] interface Vlanif 10
[SW2-vlanif10] ip address 192.168.10.252 24
[SW2-vlanif10] vrrp vrid 10 virtual-ip 192.168.10.254
[SW2] interface Vlanif 20
[SW2-vlanif20] ip address 192.168.20.252 24
[SW2-vlanif20] vrrp vrid 20 virtual-ip 192.168.20.254
[SW2-vlanif20] vrrp vrid 20 priority 120

5. 查看配置

 

 

猜你喜欢

转载自www.cnblogs.com/luwei0915/p/12117011.html