eNSP网络拓扑图
PC配置
PC1:192.168.10.1 255.255.255.0
PC2:192.168.10.2 255.255.255.0
PC3:192.168.10.3 255.255.255.0
PC4:192.168.10.4 255.255.255.0
交换机配置
SW1
[SW1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int e0/0/4
[SW1-Ethernet0/0/4]port link-type access
[SW1-Ethernet0/0/4]port default vlan 10
[SW1-Ethernet0/0/4]int e0/0/5
[SW1-Ethernet0/0/5]port link-type access
[SW1-Ethernet0/0/5]port default vlan 20
[SW1-Ethernet0/0/5]int eth-trunk 1
[SW1-Eth-Trunk1]mode manual load-balance
[SW1-Eth-Trunk1]trunkport e 0/0/1 to 0/0/3
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]p l t
[SW1-Eth-Trunk1]p t a v 10 20
SW2
[Huawei]sys SW2
[SW2]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2]int e0/0/4
[SW2-Ethernet0/0/4]port link-type access
[SW2-Ethernet0/0/4]port default vlan 10
[SW2-Ethernet0/0/4]int e0/0/5
[SW2-Ethernet0/0/5]port link-type access
[SW2-Ethernet0/0/5]port default vlan 20
[SW2-Ethernet0/0/5]int eth-trunk 1
[SW2-Eth-Trunk1]mode manual load-balance
[SW2-Eth-Trunk1]p l t
[SW2-Eth-Trunk1]p t a v 10 20
[SW2-Eth-Trunk1]int e0/0/1
[SW2-Ethernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Ethernet0/0/1]int e0/0/2
[SW2-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Ethernet0/0/2]int e0/0/3
[SW2-Ethernet0/0/3]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Ethernet0/0/3]dis eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 3
--------------------------------------------------------------------------------
PortName Status Weight
Ethernet0/0/1 Up 1
Ethernet0/0/2 Up 1
Ethernet0/0/3 Up 1
验证配置
SW1
[SW1-Eth-Trunk1]dis eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 3
--------------------------------------------------------------------------------
PortName Status Weight
Ethernet0/0/1 Up 1
Ethernet0/0/2 Up 1
Ethernet0/0/3 Up 1
[SW1-Eth-Trunk1]int e0/0/1
[SW1-Ethernet0/0/1]shutdown
[SW1-Ethernet0/0/1]int e0/0/2
[SW1-Ethernet0/0/2]shut
[SW1-Ethernet0/0/2]q
[SW1]dis eth-trunk
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 1
--------------------------------------------------------------------------------
PortName Status Weight
Ethernet0/0/1 Down 1
Ethernet0/0/2 Down 1
Ethernet0/0/3 Up 1
PING
在以上基础上重启配置:
eNSP拓扑图:
配置交换机
SW1
[SW1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int e0/0/6
[SW1-Ethernet0/0/6]port link-type access
[SW1-Ethernet0/0/6]port default vlan 10
[SW1-Ethernet0/0/6]int e0/0/7
[SW1-Ethernet0/0/7]port link-type access
[SW1-Ethernet0/0/7]port default vlan 20
[SW1-Ethernet0/0/7]int eth-trunk 1
[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20
[SW1-Eth-Trunk1]mode lacp
[SW1-Eth-Trunk1]trunkport e 0/0/1 to 0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
SW2
[SW1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int e0/0/6
[SW1-Ethernet0/0/6]port link-type access
[SW1-Ethernet0/0/6]port default vlan 10
[SW1-Ethernet0/0/6]int e0/0/7
[SW1-Ethernet0/0/7]port link-type access
[SW1-Ethernet0/0/7]port default vlan 20
[SW1-Ethernet0/0/7]int eth-trunk 1
[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20
[SW1-Eth-Trunk1]mode lacp
[SW1-Eth-Trunk1]trunkport e 0/0/1 to 0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
SW1
[SW1-Eth-Trunk1]max active-linknumber 3
[SW1-Eth-Trunk1]lacp priority 111
[SW1]int eth 1
[SW1-Eth-Trunk1]lacp preempt enable [SW1-Eth-Trunk1]lacp preempt delay 10
验证配置
SW1
[SW1-Ethernet0/0/4]dis eth 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay Time: 10 Hash arithmetic: According to SIP-XOR-DIP
System Priority: 111 System ID: 4c1f-cc57-1c85
Least Active-linknumber: 1 Max Active-linknumber: 3
Operate status: up Number Of Up Port In Trunk: 3
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
Ethernet0/0/1 Selected 100M 32768 2 289 10111100 1
Ethernet0/0/2 Selected 100M 32768 3 289 10111100 1
Ethernet0/0/3 Selected 100M 32768 4 289 10111100 1
Ethernet0/0/4 Unselect 100M 32768 5 289 10100000 1
Ethernet0/0/5 Unselect 100M 32768 6 289 10100000 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
Ethernet0/0/1 32768 4c1f-cc7d-7fab 32768 2 289 10111100
Ethernet0/0/2 32768 4c1f-cc7d-7fab 32768 3 289 10111100
Ethernet0/0/3 32768 4c1f-cc7d-7fab 32768 4 289 10111100
Ethernet0/0/4 32768 4c1f-cc7d-7fab 32768 5 289 10100000
Ethernet0/0/5 32768 4c1f-cc7d-7fab 32768 6 289 10100000