55-交换机堆叠
优缺点:
存在切换时间
链路实现了分流,实现了负载,但是无法精确
[SW1-Eth-Trunk12]mode ?
lacp-static Static working mode
manual Manual working mode # 手工负载分担(默认)
中继要配置在终端网关所在设备的接口上,有几个物理口就要配几个中继,如果是逻辑口,就在逻辑口上配置
[DHCP server]dhcp enable
[DHCP server]ip pool vlan-10
gateway-list 192.168.10.254
network 192.168.10.0 mask 255.255.255.0
excluded-ip-address 192.168.10.252 192.168.10.253
dns-list 8.8.8.8
[DHCP server]ip pool vlan-20
gateway-list 192.168.20.254
network 192.168.20.0 mask 255.255.255.0
excluded-ip-address 192.168.20.252 192.168.20.253
dns-list 9.9.9.9
[DHCP server]int g 0/0/0
dhcp select global
ip add 192.168.30.1 24
[DHCP server]ip route-static 0.0.0.0 0 192.168.30.254
[SW1]dhcp enable
[SW1]interface Eth-Trunk 12
mode manual load-balance
load-balance src mac
trunkport GigabitEthernet 0/0/1 to 0/0/2
p l t
p t a v a
[SW1]vlan batch 10 20 30
[SW1]port-group group-member g 0/0/3 g0/0/4
p l t
p t a v a
[SW1]stp region-configuration
region-name huawei
revision-level 12
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
[SW1]stp instance 10 root primary
stp instance 20 root secondary
[SW1]interface Vlanif10
ip address 192.168.10.253 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.10.254
vrrp vrid 1 priority 110
vrrp vrid 1 preempt-mode timer delay 60
vrrp vrid 1 authentication-mode md5 zE#k7LH.(7^QW:LZJi;=q$a#
dhcp select relay
dhcp relay server-ip 192.168.30.1
[SW1]interface Vlanif20
ip address 192.168.20.252 255.255.255.0
vrrp vrid 2 virtual-ip 192.168.20.254
vrrp vrid 2 authentication-mode md5 zx'X&KkJA)$+cx#k/mS=-(=#
dhcp select relay
dhcp relay server-ip 192.168.30.1
[SW1]interface Vlanif30
ip address 192.168.30.253 255.255.255.0
vrrp vrid 3 virtual-ip 192.168.30.254
vrrp vrid 3 priority 110
vrrp vrid 3 preempt-mode timer delay 60
[SW2]dhcp enable
[SW2]interface Eth-Trunk 12
mode manual load-balance
load-balance src-mac
trunkport GigabitEthernet 0/0/1 to 0/0/2
p l t
p t a v a
[SW2]vlan batch 10 20 30
[SW2]port-group group-member g 0/0/3 g0/0/4
p l t
p t a v a
[SW2]stp region-configuration
region-name huawei
revision-level 12
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
[SW2]stp instance 20 root primary
stp instance 10 root secondary
[SW2]interface Vlanif10
ip address 192.168.10.252 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.10.254
vrrp vrid 1 authentication-mode md5 zE#k7LH.(7^QW:LZJi;=q$a#
dhcp select relay
dhcp relay server-ip 192.168.30.1
[SW2]interface Vlanif20
ip address 192.168.20.253 255.255.255.0
vrrp vrid 2 virtual-ip 192.168.20.254
vrrp vrid 2 priority 110
vrrp vrid 2 preempt-mode timer delay 60
vrrp vrid 2 authentication-mode md5 zx'X&KkJA)$+cx#k/mS=-(=#
dhcp select relay
dhcp relay server-ip 192.168.30.1
[SW2]interface Vlanif30
ip address 192.168.30.252 255.255.255.0
vrrp vrid 3 virtual-ip 192.168.30.254
[SW3]port-group group-member g0/0/3 g0/0/4
p l t
p t a v a
[SW3]int g0/0/1
p l a
p d v 10
[SW3]stp region-configuration
region-name huawei
revision-level 12
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
[SW4]port-group group-member g0/0/3 g0/0/4
p l t
p t a v a
[SW4]int g0/0/1
p l a
p d v 20
[SW4]int g0/0/2
p l a
p d v 30
[SW4]stp region-configuration
region-name huawei
revision-level 12
instance 10 vlan 10
instance 20 vlan 20
active region-configuration