PC
192.168.30.1、192.168.30.2
192.168.40.1、192.168.40.2
S3700
system-view
vlan batch 30 40
int e0/0/1
port link-type access
port default vlan 30
int e0/0/2
port link-type access
port default vlan 30
int e0/0/3
port link-type access
port default vlan 40
int e0/0/4
port link-type access
port default vlan 40
int g0/0/2
port link-type trunk
port trunk allow-pass vlan 30 40
S5700-1
system-view
vlan batch 30 40
int g0/0/1
port link-type trunk
port trunk allow-pass vlan 30 40
interface Eth-Trunk 1
mode lacp-static
interface GigabitEthernet 0/0/24
eth-trunk 1
interface GigabitEthernet 0/0/23
eth-trunk 1
interface GigabitEthernet 0/0/22
eth-trunk 1
interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 30 40
S5700-2
system-view
vlan batch 30 40
interface vlanif 30
ip address 192.168.30.254 24
quit
interface vlanif 40
ip address 192.168.40.254 24
interface Eth-Trunk 1
mode lacp-static
int g0/0/1
eth-trunk 1
int g0/0/2
eth-trunk 1
int g0/0/3
eth-trunk 1
quit
interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 30 40