E-trunk是跨设备的链路聚合,基于LACP进行了扩展,链路可靠性从单板级提高到了设备级,常用与CE双归接入PE1和PE2。
E-trunk配置示例:
1、SW2和SW3配置三层接口,能互相通信
sw2:
interface Vlanif100
ip address 10.1.1.1 255.255.255.0
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 100
sw3:
interface Vlanif100
ip address 10.1.1.2 255.255.255.0
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 100
2、sw1、sw2、sw3、sw4配置eth-trunk,并将相应的接口绑定到eth-trunk
[sw1]interface Eth-Trunk 10
mode lacp-static //要配置模式为静态,而且要先设置模式再绑定端口
trunkport GigabitEthernet 0/0/1 to 0/0/4
[sw2]interface Eth-Trunk 20
mode lacp-static
trunkport GigabitEthernet 0/0/1
trunkport GigabitEthernet 0/0/2
[sw2]interface Eth-Trunk 24 //sw2与sw4之间创建eth-trunk24
mode lacp-static
trunkport GigabitEthernet 0/0/4
trunkport GigabitEthernet 0/0/5
[sw3]interface Eth-Trunk 30
mode lacp-static
trunkport GigabitEthernet 0/0/1
trunkport GigabitEthernet 0/0/2
[sw2]interface Eth-Trunk 34 //sw3与sw4之间创建eth-trunk34
mode lacp-static
trunkport GigabitEthernet 0/0/4
trunkport GigabitEthernet 0/0/5
[sw4]int Eth-Trunk 40
mode lacp-static
trunkport GigabitEthernet 0/0/1 to 0/0/4
在各交换机上查看eth-trunk是否正常,示例sw1
[sw1]dis eth-trunk 10
Eth-Trunk10's state information is:
Local:
LAG ID: 10 WorkingMode: STATIC
Preempt Delay: Disabled Hash