使用 ethernet-lag 命令可以创建和管理 LAG。您可以将多个单独的物理以太网端口组合成一个逻辑组,称为“链路聚合组”。组合成链路聚合组的端口可以并行运行,还可以增加带宽并提供高可用性。
add ethernet-lag name port [–description=text] [–lacp={true|false}]
remove ethernet-lag name [–no-confirm]
set ethernet-lag name [–description=text] [–admin-rate=value] [–mtu=value][–access-vlan=vlan-ID] [–flow-control={true|false}] [–lacp-enable={true|false}] [–port-mode=port-mode] [–tag-native={true|false}] [–igmp-snooping={true|false}]
set ethernet-lag name add port
set ethernet-lag name remove port [–no-confirm]
show ethernet-lag name [–detail]
show ethernet-lag name ports
其中:
name 指定链路聚合组 ID,它由卡的类型决定。该名称必须包含 1 到 5 个字符。
port 指定将用于创建链路聚合组的以太网端口的名称。
|
|
本示例将说明如何为一个名为 Division/6.1 的现有链路聚合组设置属性。
[OFM] set ethernet-lag Division/6.1 -description=SouthernDivision -admin-rate=autoNegotiate -mtu=1500 -access-vlan=1 -flow-control=false -lacp-enable=false -port-mode=access -tag-native=false -igmp-snooping=true [OFM] show ethernet-lag ontario/6.1 -detail ------------------------------------------- name Division/6.1 state up/down port-count 1 vnics 0 description SouthernDivision admin-rate autoNegotiate capacity 0 mtu 1500 port-mode access access-vlan 1 tag-native false flow-control false igmp-snooping true lacp-enable false -------------------------------------------- 1 record displayed