r1
interface GigabitEthernet0/0/0.10
dot1q termination vid 10
ip address 10.1.1.254 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.20
dot1q termination vid 20
ip address 10.1.2.254 255.255.255.0
arp broadcast enable
SW1
#
vlan batch 10 20
#
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 20
#
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10 20
(1)创建聚合组,
(2)使用lacp工作模式,
(3)将接口和链路划进该组当中
(4)使用trunk链路端口,并且允许 10 20 30 40通过
[huiju-SW1]interface Eth-Trunk 1
[huiju-SW1-Eth-Trunk1]mode lacp-static
[huiju-SW1-Eth-Trunk1]trunkport Ethernet 0/0/20 to 0/0/21
[huiju-SW1-Eth-Trunk1]port link-type trunk
[huiju-SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20 30 40
[huiju-SW1]interface Eth-Trunk 2
[huiju-SW1-Eth-Trunk2]mode lacp-static
[huiju-SW1-Eth-Trunk2]trunkport Ethernet 0/0/1 to 0/0/2
[huiju-SW1-Eth-Trunk2]port link-type trunk
[huiju-SW1-Eth-Trunk2]port trunk allow-pass vlan 10 20 30 40