一、华三对接华为¶
1.1 说明¶
华三这边需要链路聚合接口为G1/2/0/1和G1/2/0/2,华为这边需要链路聚合接口为XG0/0/1和XG0/0/2。
1.2 华三和华为链路聚合配置¶
1、分别在华三记录物理接口G1/2/0/1、G1/2/0/2和华为记录物理接口XG0/0/1和XG0/0/2下放行的VLAN,把二者放行VLAN结合,方便在聚合口下放行 2、华三这边创建新的聚合口,并修改聚合口类型以及放行所需VLAN
[H3C]interface Bridge-Aggregation 1
[H3C-Bridge-Aggregation1]port link-type trunk
[H3C-Bridge-Aggregation1]port trunk permit vlan all
3、华三这边关闭端口G1/2/0/1,清除物理接口G1/2/0/1下面的配置,并将该接口添加到聚合组里面。
[H3C-GigabitEthernet1/2/0/1]shutdown
[H3C-GigabitEthernet1/2/0/1]undo port link-type
[H3C-GigabitEthernet1/2/0/1]port link-aggregation group 1
4、华为这边创建新的聚合口,并修改聚合口类型以及放行所需VLAN。这边要求两边聚合组编号一致
[Huawei]interface Eth-Trunk 1
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all
5、华为这边清除接口XG0/0/1下面的配置,并将该接口添加到聚合组里面。
[Huawei]clear configuration interface XG0/0/1
Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue? [Y/N] :y
[Huawei]int XG0/0/1
[Huawei-XGigabitEthernet0/0/1]undo shutdown
[Huawei-XGigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
6、华三这边开启端口G1/2/0/1,同时关闭G1/2/0/2。
[H3C-GigabitEthernet1/2/0/1]undo shutdown
[H3C-GigabitEthernet1/2/0/1]interface G1/2/0/2
[H3C-GigabitEthernet1/2/0/2]shutdown
7、华三这边清除物理接口G1/2/0/2下面的配置,并将该接口添加到聚合组里面。
[H3C-GigabitEthernet1/2/0/2]undo port link-type
[H3C-GigabitEthernet1/2/0/2]port link-aggregation group 1
8、华为这边清除接口XG0/0/2下面的配置,并将该接口添加到聚合组里面。
[Huawei]clear configuration interface XG0/0/2
Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue? [Y/N] :y
[Huawei]int XG0/0/2
[Huawei-XGigabitEthernet0/0/2]undo shutdown
[Huawei-XGigabitEthernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
9、双方配置完成后,华三这边可以使用dis int brief查看端口带宽是否为原先的两倍,也可以使用dis interface Bridge-Aggregation 1 brief查看聚合端口具体情况;华为这边可以使用dis int Eth-Trunk 1查看聚合端口具体情况。 10、查看没问题后,关闭任意一个端口进行演练测试。
二、华三对接思科¶
2.1 说明¶
华三这边需要链路聚合接口为G1/2/0/1和G1/2/0/2,思科这边需要链路聚合接口为G0/1和G0/2。
2.2 华三和思科链路聚合配置¶
1、分别在华三记录物理接口G1/2/0/1、G1/2/0/2和思科记录物理接口G0/1和G0/2下放行的VLAN,把二者放行VLAN结合,方便在聚合口下放行 2、华三这边创建新的聚合口,并修改聚合口类型以及放行所需VLAN。修改聚合口工作模式为动态模式
[H3C]interface Bridge-Aggregation 1
[H3C-Bridge-Aggregation1]link-aggregation mode dynamic
[H3C-Bridge-Aggregation1]port link-type trunk
[H3C-Bridge-Aggregation1]port trunk permit vlan all
3、华三这边关闭端口G1/2/0/1,清除物理接口G1/2/0/1下面的配置,并将该接口添加到聚合组里面。
[H3C-GigabitEthernet1/2/0/1]shutdown
[H3C-GigabitEthernet1/2/0/1]undo port link-type
[H3C-GigabitEthernet1/2/0/1]port link-aggregation group 1
4、思科这边创建新的聚合口,并修改聚合口类型以及放行所需VLAN。这边要求两边聚合组编号一致
cisco(config)#interface port-channel 1
cisco(config-if)#switchport trunk encapsulation dot1q
cisco(config-if)#switchport mode trunk
5、思科这边清除接口G0/1下面的配置,并将该接口添加到聚合组里面。
cisco(config)#default interface g0/1
cisco(config)#interface g0/1
cisco(config-if)#channel-group 1 mode active
6、华三这边开启端口G1/2/0/1,同时关闭G1/2/0/2。
[H3C-GigabitEthernet1/2/0/1]undo shutdown
[H3C-GigabitEthernet1/2/0/1]interface G1/2/0/2
[H3C-GigabitEthernet1/2/0/2]shutdown
7、华三这边清除物理接口G1/2/0/2下面的配置,并将该接口添加到聚合组里面。
[H3C-GigabitEthernet1/2/0/2]undo port link-type
[H3C-GigabitEthernet1/2/0/2]port link-aggregation group 1
8、思科这边清除接口G0/2下面的配置,并将该接口添加到聚合组里面。
cisco(config)#default interface g0/2
cisco(config)#interface g0/2
cisco(config-if)#channel-group 1 mode active
9、双方配置完成后,华三这边可以使用dis int brief查看端口带宽是否为原先的两倍,也可以使用dis interface Bridge-Aggregation 1 brief查看聚合端口具体情况;思科这边可以使用show interfaces port-channel 1 status查看聚合端口具体情况。 10、查看没问题后,在控制端交换机上关闭任意一个端口进行演练测试。
三、华为对接思科¶
3.1 说明¶
华三这边需要链路聚合接口为XG0/0/1和XG0/0/2,思科这边需要链路聚合接口为G0/1和G0/2。
3.2 华为和思科链路聚合配置¶
1、分别在华为记录物理接口XG0/0/1、XG0/0/2和思科记录物理接口G0/1和G0/2下放行的VLAN,把二者放行VLAN结合,方便在聚合口下放行 2、华为这边创建新的聚合口,并修改聚合口类型以及放行所需VLAN。同时,修改聚合模式为动态。这边要求两边聚合组编号一致
[Huawei]interface Eth-Trunk 1
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all
[Huawei-Eth-Trunk1]mode lacp-static
3、华为这边关闭端口XG0/0/1,清除物理接口XG0/0/1下面的配置,并将该接口添加到聚合组里面。
[Huawei]clear configuration interface XG0/0/1
Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue? [Y/N] :y
[Huawei]int XG0/0/1
[Huawei-XGigabitEthernet0/0/1]undo shutdown
[Huawei-XGigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
4、思科这边创建新的聚合口,并修改聚合口类型以及放行所需VLAN。这边要求两边聚合组编号一致
cisco(config)#interface port-channel 1
cisco(config-if)#switchport trunk encapsulation dot1q
cisco(config-if)#switchport mode trunk
5、思科这边清除接口G0/1下面的配置,并将该接口添加到聚合组里面。
cisco(config)#default interface g0/1
cisco(config)#interface g0/1
cisco(config-if)#channel-group 1 mode active
6、华为这边开启端口XG0/0/1,同时关闭XG0/0/2。
[Huawei-XGigabitEthernet0/0/1]undo shutdown
[Huawei-XGigabitEthernet0/0/1]interface G1/2/0/2
[Huawei-XGigabitEthernet0/0/2]shutdown
7、华为这边清除接口XG0/0/2下面的配置,并将该接口添加到聚合组里面。
[Huawei]clear configuration interface XG0/0/2
Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue? [Y/N] :y
[Huawei]int XG0/0/2
[Huawei-XGigabitEthernet0/0/2]undo shutdown
[Huawei-XGigabitEthernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
8、思科这边清除接口G0/2下面的配置,并将该接口添加到聚合组里面。
cisco(config)#default interface g0/2
cisco(config)#interface g0/2
cisco(config-if)#channel-group 1 mode active
9、双方配置完成后,华为这边可以使用dis int Eth-Trunk 1查看聚合端口具体情况;思科这边可以使用show interfaces port-channel 1 status查看聚合端口具体情况。 10、查看没问题后,在控制端交换机上关闭任意一个端口进行演练测试。