Table of Contents

H3C LAG(Link Aggregation) Configuration Examples



static

<test-sw-1>system-view
[test-sw-1]interface Bridge-Aggregation 1
[test-sw-1-Bridge-Aggregation1]description To_XXXX_Port-ChannelX
[test-sw-1-Bridge-Aggregation1]port link-type trunk
[test-sw-1-Bridge-Aggregation1]undo port trunk permit vlan 1
[test-sw-1-Bridge-Aggregation1]undo port trunk permit vlan 10 - 11
[test-sw-1-Bridge-Aggregation1]quit

[test-sw-1]interface GigabitEthernet 1/0/1
[test-sw-1-GigabitEthernet1/0/1]port link-aggregation group 1
[test-sw-1-GigabitEthernet1/0/1]quit

[test-sw-1]interface GigabitEthernet 1/0/2
[test-sw-1-GigabitEthernet1/0/2]port link-aggregation group 1


LACP(dynamic)

<test-sw-1>system-view
[test-sw-1]interface Bridge-Aggregation 1
[test-sw-1-Bridge-Aggregation1]description To_XXXX_Port-ChannelX
[test-sw-1-Bridge-Aggregation1]port link-type trunk
[test-sw-1-Bridge-Aggregation1]undo port trunk permit vlan 1
[test-sw-1-Bridge-Aggregation1]undo port trunk permit vlan 10 - 11
[test-sw-1-Bridge-Aggregation1]link-aggregation mode dynamic
[test-sw-1-Bridge-Aggregation1]quit

[test-sw-1]interface GigabitEthernet 1/0/1
[test-sw-1-GigabitEthernet1/0/1]port link-aggregation group 1
[test-sw-1-GigabitEthernet1/0/1]quit

[test-sw-1]interface GigabitEthernet 1/0/2
[test-sw-1-GigabitEthernet1/0/2]port link-aggregation group 1




HPE(H3C) CLI Commands