最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

华为VRRP+eth-trunk

IT圈 admin 44浏览 0评论

2023年12月20日发(作者:梁斐)

一、拓扑图:

二、配置:

SW1:

interface Vlanif20

ip address 192.168.20.2 255.255.255.0

vrrp vrid 1 virtual-ip 192.168.20.1

vrrp vrid 1 priority 120

#

interface Vlanif30

ip address 192.168.30.2 255.255.255.0

vrrp vrid 1 virtual-ip 192.168.30.1

vrrp vrid 1 priority 120

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 20 30

#

interface GigabitEthernet0/0/1

eth-trunk 1

#

interface GigabitEthernet0/0/2

eth-trunk 1

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 20 30

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 20 30

SW2:

interface Vlanif20

ip address 192.168.20.3 255.255.255.0

vrrp vrid 1 virtual-ip 192.168.20.1

#

interface Vlanif30

ip address 192.168.30.3 255.255.255.0

vrrp vrid 1 virtual-ip 192.168.30.1

vrrp vrid 1 priority 140

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 20 30

load-balance src-mac

#

interface GigabitEthernet0/0/1

eth-trunk 1

#

interface GigabitEthernet0/0/2

eth-trunk 1

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 20 30

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 20 30

SW3:

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 20

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 30

#

interface Ethernet0/0/1

port link-type access

port default vlan 20

#

interface Ethernet0/0/2

port link-type access

port default vlan 30

SW4:

#

interface Ethernet0/0/1

port link-type access

port default vlan 20

#

interface Ethernet0/0/2

port link-type access

port default vlan 30

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 20 30

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 20 30

#

三、测试:

1.

2.

3.

四、收集命令:

y eth-trunk 1 查看聚合端口状态

y trunkmembership eth-trunk 1

y vrrp interface vlan 20 查看VLAN20的VRRP信息

2023年12月20日发(作者:梁斐)

一、拓扑图:

二、配置:

SW1:

interface Vlanif20

ip address 192.168.20.2 255.255.255.0

vrrp vrid 1 virtual-ip 192.168.20.1

vrrp vrid 1 priority 120

#

interface Vlanif30

ip address 192.168.30.2 255.255.255.0

vrrp vrid 1 virtual-ip 192.168.30.1

vrrp vrid 1 priority 120

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 20 30

#

interface GigabitEthernet0/0/1

eth-trunk 1

#

interface GigabitEthernet0/0/2

eth-trunk 1

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 20 30

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 20 30

SW2:

interface Vlanif20

ip address 192.168.20.3 255.255.255.0

vrrp vrid 1 virtual-ip 192.168.20.1

#

interface Vlanif30

ip address 192.168.30.3 255.255.255.0

vrrp vrid 1 virtual-ip 192.168.30.1

vrrp vrid 1 priority 140

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 20 30

load-balance src-mac

#

interface GigabitEthernet0/0/1

eth-trunk 1

#

interface GigabitEthernet0/0/2

eth-trunk 1

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 20 30

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 20 30

SW3:

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 20

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 30

#

interface Ethernet0/0/1

port link-type access

port default vlan 20

#

interface Ethernet0/0/2

port link-type access

port default vlan 30

SW4:

#

interface Ethernet0/0/1

port link-type access

port default vlan 20

#

interface Ethernet0/0/2

port link-type access

port default vlan 30

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 20 30

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 20 30

#

三、测试:

1.

2.

3.

四、收集命令:

y eth-trunk 1 查看聚合端口状态

y trunkmembership eth-trunk 1

y vrrp interface vlan 20 查看VLAN20的VRRP信息

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论