H3C交换机配置命令
创建汇聚组link-aggregation group mode{manual / static} 加入端口Port link-aggregation group
汇聚接口配置interface Bridge-Aggregation 1
description ==TO-IDF-1==
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 21 100
(1)采用手工聚合方式
# 创建汇聚组1。
[H3C] link-aggregation group 1 mode manual
# 将以太网端口Ethernet2/1/1至Ethernet2/1/3加入聚合组1。
[H3C] interface ethernet2/1/1
[H3C-Ethernet2/1/1] port link-aggregation group 1 [H3C-Ethernet2/1/1] interface ethernet2/1/2 [H3C-Ethernet2/1/2] port link-aggregation group 1 [H3C-Ethernet2/1/2] interface ethernet2/1/3
[H3C-Ethernet2/1/3] port link-aggregation group 1
# 当聚合组端口序号连续时,可以直接把多个端口聚成一组,组号由系统自行分
配。
[H3C] link-aggregation ethernet2/1/1 to ethernet2/1/3 both
(2)采用静态LACP聚合方式
# 创建静态汇聚组1。
[H3C] link-aggregation group 1 mode static
# 将以太网端口Ethernet2/1/1至Ethernet2/1/3加入聚合组1。
[H3C] interface ethernet2/1/1
[H3C-Ethernet2/1/1] port link-aggregation group 1
[H3C-Ethernet2/1/1] interface ethernet2/1/2
[H3C-Ethernet2/1/2] port link-aggregation group 1
[H3C-Ethernet2/1/2] interface ethernet2/1/3
[H3C-Ethernet2/1/3] port link-aggregation group 1
(3)采用动态LACP聚合方式
# 开启以太网端口Ethernet2/1/1至Ethernet2/1/3的LACP协议。
[H3C] interface ethernet2/1/1
[H3C-Ethernet2/1/1] lacp enable
[H3C-Ethernet2/1/1] interface ethernet2/1/2
[H3C-Ethernet2/1/2] lacp enable
[H3C-Ethernet2/1/2] interface ethernet2/1/3
[H3C-Ethernet2/1/3] lacp enable
设置以太网端口的速率speed { 10 | 100 | 1000 | 10000 | auto }
设置以太网端口连接的网线的类型mdi { across | auto | normal }
开启以太网端口的流量控制flow-control
手工添加静态ARP映射项arp static ip-address [ mac-address [ vlan-id { interface-type interface-number } ] [ vpn-instance
vpn-instance-name ] ]
配置动态ARP老化定时器的时间arp timer aging aging-time
增加组播ARP端口arp static ip-address mac-address vlan-id multi-port interface-type interface-number [ vpn-instance vpn-instance-name ]
动态配置ARP表项数目
3. 配置步骤
# 配置整机支持的ARP表项数目是64K。
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]arp enable size 64
The configuration won't be enable untill the system is rebooted # 配置2号槽的接口板支持的最大ARP表项数目为8K。
[H3C]arp max-entry 2 8
The configuration won't be enable untill the system is rebooted # 配置所有接口板支持的最大的聚合ARP表项数目为8K。
[H3C]arp max-aggregation-entry 8
The configuration won't be enable untill the system is rebooted。