H3C静态链路聚合的典型配置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
H3C静态链路聚合的典型配置
一、组网需求:两台H3CS3500-EA A,B之间做静态链路聚合。
这里假设e1/0/1,e1/0/2,e1/0/3端口都是t runk端口,允许vlan 10,20,30通过。
二、组网图:
三、配置步骤:
(1)设备A上的配置
#创建二层聚合端口
[switch-A] interf ace Bridge-Aggreg ation 1
[switch-A-Bridge-Aggreg ation1] port link-type trunk
[switch-A-Bridge-Aggreg ation1] port trunkpermit vlan 10 20 30 #分别将设备A上端口e1/0/1,e1/0/2,e1/0/3加入到聚合组中
[switch-A] interf ace Ethern et 1/0/1
[switch-A-Ethern et1/0/1] port link-type trunk
[switch-A-Ethern et1/0/1] port trunkpermit vlan 10 20 30
[switch-A-Ethern et1/0/1]port link-aggreg ation group1
[switch-A] interf ace Ethern et 1/0/2
[switch-A-Ethern et1/0/2] port link-type trunk
[switch-A-Ethern et1/0/2] port trunkpermit vlan 10 20 30
[switch-A-Ethern et1/0/2]port link-aggreg ation group 1
[switch-A] interf ace Ethern et 1/0/3
[switch-A-Ethern et1/0/3] port link-type trunk
[switch-A-Ethern et1/0/3] port trunkpermit vlan 10 20 30
[switch-A-Ethern et1/0/3]port link-aggreg ation group 1
(2)设备B上的配置设备B上的配置和A类似,这里从略。
(3)验证链路聚合可以通过命令d ispl ay link-aggreg ation verbos e 来查看端口是否变成se lect来验证聚合是否成功。
动态链路聚合的典型配置一、组网需求:两台H3C S3500-EA A,B之间做动态链路聚合。
这里假设e1/0/1,e1/0/2,e1/0/3端口都是t r unk端口,允许vlan 10,20,30通过。
二\组网图:
三、配置步骤:
(1)设备A上的配置
#创建二层聚合端口,并配置成动态聚合模式
[switch-A] interf ace Bridge-Aggreg ation 1
[switch-A-Bridge-Aggreg ation1] port link-type trunk
[switch-A-Bridge-Aggreg ation1] port trunkpermit vlan 10 20 30 [switch-A-Bridge-Aggreg ation1]link-aggreg ation mode dynami c
#分别将设备A上端口e1/0/1,e1/0/2,e1/0/3加入到聚合组中
[switch-A] interf ace Ethern et 1/0/1
[switch-A-Ethern et1/0/1] port link-type trunk
[switch-A-Ethern et1/0/1] port trunkpermit vlan 10 20 30
[switch-A-Ethern et1/0/1]port link-aggreg ation group 1
[switch-A] interf ace Ethern et 1/0/2
[switch-A-Ethern et1/0/2] port link-type trunk
[switch-A-Ethern et1/0/2] port trunkpermit vlan 10 20 30
[switch-A-Ethern et1/0/2]port link-aggreg ation group 1
[switch-A] interf ace Ethern et 1/0/3
[switch-A-Ethern et1/0/3] port link-type trunk
[switch-A-Ethern et1/0/3] port trunkpermit vlan 10 20 30
[switch-A-Ethern et1/0/3]port link-aggreg ation group 1
(2)设备B上的配置设备B上的配置和A类似,这里从略。
(3)验证链路聚合可以通过命令d ispl ay link-aggreg ation verbos e 来查看端口是否变成se lect来验证聚合是否成功。
四、配置关键点:
(1)此链路聚合配置适用于F5305P02之后版本。
(2)需要特别注意的就是创建的二层聚合端口的配置要和物理成员端口保持一致,如本例中的二层聚合端口t runk属性和允许通过的vl an 10,20,30都与物理成员端口一样。
否则聚合无法成功。
(3)默认聚合方式为静态链路聚合,静态聚合模式中,成员端口的L A CP协议为关闭状态。
(4)配置了RRP P的端口、配置为DHC P客户端/B OOTP客户端的端口、配置了VRRP的端口、配置了MAC地址认证的端口、配置了端口安全模式的端口、启用了IPSource Guard功能的端口以及使能802.1x的端口都不能加入聚合组。
(5)建议不要将镜像反射口加入聚合组。
(6)用户删除动态模式的聚合端口时,系统会自动删除对应的聚合组,且该聚合组中的所有成员端口将全部离开该聚合组。
(7)对于动态聚合模式,系统两端会自动协商同一条链路上的两端端口在各自聚合组中的Sel ected状态,用户只需保证在一个系统中聚合在一起的端口的对端也同样聚合在一起,聚合功能即可正常使用。
(8)以上配置同样适用于H3C S5510设备。
--------------------------------------------------------------------- 华为
链路聚合典型配置指导(版本切换前)
链路聚合是将多个物理以太网端口聚合在一起形成一个逻辑上的聚合组,使用链
路聚合服务的上层实体把同一聚合组内的多条物理链路视为一条逻辑链路。
链路聚合可以实现出/入负荷在聚合组中各个成员端口之间分担,以增加带宽。
同时,同一聚合组的各个成员端口之间彼此动态备份,提高了连接可靠性。
组网图 Switch A Link aggreg ation Switch B GE1/0/1 GE1/0/2 GE1/0/3 GE1/0/1 GE1/0/2GE1/0/3 链路聚合配置示例图
应用要求设备Swit ch A用3个端口聚合接入设备Swit ch B,从而实现出/入负荷在各成员端口中分担。
Switch A的接入端口为Giga bitEt herne t1/0/1~Gigabi tEthe rnet1/0/3。
适用产品、版本配置适用的产品与软硬件版本关系产品软件版本硬件版本 S3610系列以太网交换机 Releas e 5301软件版本全系列硬件版本 S5510系列以太网交换机 Releas e 5301软件版本全系列硬件版本 S5500-SI系列以太网交换机 Releas e 1207软件版本全系列硬件版本(除S5500-20TP-SI)Releas e 1301软件版本 S5500-20TP-SI S5500-EI系列以太网交换机Releas e 2102软件版本全系列硬件版本 S7500E系列以太网交换机 Releas e 6100软件版本全系列硬件版本配置过程和解释
说明:以下只列出对Switc h A的配置,对Switc h B也需要作相同的配置,才能实现链路聚合。
配置聚合组,实现端口的负载分担(下面两种方式任选其一)采用手工聚合方式
# 创建手工聚合组1。
<Switch A> system-view
[Switch A] link-aggreg ation group1 mode manual
# 将以太网端口Gigab itEth ernet1/0/1至Giga bitEt herne t1/0/3加入聚合组1。
[Switch A] interf ace Gigabi tEthe rnet1/0/1
[Switch A-Gigabi tEthe rnet1/0/1] port link-aggreg ation group1
[Switch A-Gigabi tEthe rnet1/0/1] interf ace Gigabi tEthe rnet1/0/2
[Switch A-Gigabi tEthe rnet1/0/2] port link-aggreg ation group1
[Switch A-Gigabi tEthe rnet1/0/2] interf ace Gigabi tEthe rnet1/0/3
[Switch A-Gigabi tEthe rnet1/0/3] port link-aggreg ation group1 采用静态LA CP聚合方式
# 创建静态LA CP聚合组1。
<Switch A> system-view
[Switch A] link-aggreg ation group1 mode static
# 将以太网端口Gigab itEth ernet1/0/1至Giga bitEt herne t1/0/3加入聚合组1。
[Switch A] interf ace Gigabi tEthe rnet1/0/1
[Switch A-Gigabi tEthe rnet1/0/1] port link-aggreg ation group1
[Switch A-Gigabi tEthe rnet1/0/1] interf ace Gigabi tEthe rnet1/0/2
[Switch A-Gigabi tEthe rnet1/0/2] port link-aggreg ation group1
[Switch A-Gigabi tEthe rnet1/0/2] interf ace Gigabi tEthe rnet1/0/3
[Switch A-Gigabi tEthe rnet1/0/3] port link-aggreg ation group1 完整配置采用手工聚合方式:
# link-aggreg ation group1 mode manual
# interf ace Gigabi tEthe rnet1/0/1 port link-aggreg ation group1
# interf ace Gigabi tEthe rnet1/0/2 port link-aggreg ation group1
# interf ace Gigabi tEthe rnet1/0/3 port link-aggreg ation group1
# 采用静态LA CP聚合方式:
# link-aggreg ation group1 mode static interf ace Gigabi tEthe rnet1/0/1 port link-aggreg ation group1
# interf ace Gigabi tEthe rnet1/0/2 port link-aggreg ation group1
# interf ace Gigabi tEthe rnet1/0/3 port link-aggreg ation group1
#
配置注意事项不同平台软件对静态聚合方式的实现不同,所以不同平台软件的产品采用静态聚合方式对接时,容易产生问题。
有关平台软件的版本信息可以通过d ispla y versio n命令查看。
配置了RRP P的端口、配置了静态M AC地址或者黑洞MA C地址的端口、使能Voice VLAN的端口以及使能802.1x的端口不能加入聚合组。
链路聚合典型配置指导(版本切换后)组网图
Device A Link aggreg ation Device B Eth2/0/1 Eth2/0/2 Eth2/0/3 Eth2/0/1 Eth2/0/2Eth2/0/3 链路聚合配置示例图应用要求设备Devi ce A用3个端口聚合接入设备Devi ce B,从而实现出/入负荷在各成员端口中分担。
Device A的接入端口为Ethe rnet2/0/1~Ethern et2/0/3。
适用产品、版本配置适用的产品与软硬件版本关系产品软件版本硬件版本 S7500E系列以太网交换机 E6301软件版本(受限)全系列硬件版本配置过程和解释说明:以下只列出对Devic e A的配置,对Devic e B也需要作相同的配置,才能实现链路聚合。
采用静态聚合模式
# 创建二层聚合端口1。
<Device A> system-view
[Device A] interf ace bridge-aggreg ation 1
[Device A-Bridge-Aggreg ation1] quit
# 将以太网端口Ether net2/0/1至Ethe rnet2/0/3加入聚合组1。
[Device A] interf ace ethern et 2/0/1
[Device A-Ethern et2/0/1] port link-aggreg ation group1
[Device A-Ethern et2/0/1] interf ace ethern et 2/0/2
[Device A-Ethern et2/0/2] port link-aggreg ation group1
[Device A-Ethern et2/0/2] interf ace ethern et 2/0/3
[Device A-Ethern et2/0/3] port link-aggreg ation group1 采用动态聚合模式
# 创建二层聚合端口1,并配置成动态聚合模式。
<Device A> system-view [Device A] interf ace bridge-aggreg ation 1
[Device A-Bridge-Aggreg ation1] link-aggreg ation mode dynami c
[Device A-Bridge-Aggreg ation1] quit
# 将以太网端口Ether net2/0/1至Ethe rnet2/0/3加入聚合组1。
[Device A] interf ace ethern et 2/0/1
[Device A-Ethern et2/0/1] port link-aggreg ation group1
[Device A-Ethern et2/0/1] interf ace ethern et 2/0/2
[Device A-Ethern et2/0/2] port link-aggreg ation group1
[Device A-Ethern et2/0/2] interf ace ethern et 2/0/3
[Device A-Ethern et2/0/3] port link-aggreg ation group1 配置注意事项Bridge-Aggreg ation视图下配置应与聚合组中端口下配置一致
5120-EI 交换机基本配置命令
1、建立端口组:
<H3C>sys
[H3c] port-groupmanual group1
2、为端口组添加端口
<H3C>sys
[H3c] port-groupmanual group1
[H3C-port-group-manual-group1] group-member Gigabi tEthe rnet1/0/1 [to …]
3、清除端口的统计信息在某些情况下,需要统计一定时间内某端口的流量,这就需要在统计开始前清除该端口原有的统计信息,重新进行统计。
<H3C> resetcounte rs interf ace Gigabi tEthe rnet1/0/1
4、关闭/打开端口
<H3C> sys
[H3C] interf ace Gigabi tEthe rnet1/0/1
[H3C-Gigabi tEthe rnet1/0/1] shutdo wn / undo shutdo wn
5、设备端口速率
<H3C> system-view
[H3C] interf ace Gigabi tEthe rnet1/0/1
[H3C-Gigabi tEthe rnet1/0/1] speed10 / 100 / 1000 / auto
6、把指定的端口加入聚合组
< H3C > system-view
[H3C] interf ace Gigabi tEthe rnet1/0/1
[H3C-Gigabi tEthe rnet1/0/1] port link-aggreg ation group1
7、将端口加入隔离组
#
将端口Gig abitE thern et 1/0/1、Gigabi tEthe rnet1/0/2 加入隔离组。
< H3C > system-view
[H3C] interf ace Gigabi tEthe rnet1/0/1
[H3C -Gigabi tEthe rnet1/0/1] port-isolat e enable
[H3C -Gigabi tEthe rnet1/0/1] quit
[H3C] interf ace Gigabi tEthe rnet1/0/2
[H3C -Gigabi tEthe rnet1/0/2] port-isolat e enable
#
将端口组“aa”内的所有端口加入隔离组。
< H3C > system-view
[H3C] port-groupmanual aa
[H3C -port-group-manual-aa] group-member Gigabi tEthe rnet1/0/1
[H3C -port-group-manual-aa] group-member Gigabi tEthe rnet1/0/2
[H3C -port-group-manual-aa] group-member Gigabi tEthe rnet1/0/3
[H3C -port-group-manual-aa] group-member Gigabi tEthe rnet1/0/4
[H3C -port-group-manual-aa] port-isolat e enable
#
将二层聚合端口1 以及其对应的成员端口加入隔离组。
< H3C > system-view
[H3C] interf ace bridge-aggreg ation 1
[H3C -Bridge-Aggreg ation1] quit
[H3C] interf ace Gigabi tEthe rnet1/0/1
[H3C -Gigabi tEthe rnet1/0/1] port link-aggreg ation group1
[H3C -Gigabi tEthe rnet1/0/1] quit
[H3C] interf ace Gigabi tEthe rnet1/0/2
[H3C -Gigabi tEthe rnet1/0/2] port link-aggreg ation group1
[H3C -Gigabi tEthe rnet1/0/2] quit
[H3C] interf ace bridge-aggreg ation 1
[H3C -Bridge-Aggreg ation1] port-isolat e enable
8、向Vlan中添加端口
<H3C> system-view
[H3C] vlan 2
[H3C-vlan2]port gigabi tethe rnet1/0/1 to gigabi tethe rnet1/0/3
9、将当前端口加入到指定V lan中
<H3C> system-view
[H3C] vlan 3
[H3C-vlan3] quit
[H3C] interf ace gigabi tethe rnet1/0/1
[H3C-Gigabi tEthe rnet1/0/1] port access vlan 3
10、允许所有Vl an通过Port trunkpermit vlan all
11、 11、使用AM命令完成MAC地址与端口的绑定
[H3C] am user-bind mac-addres s 00e0-fc22-f8d3 interf ace Ethern et 0/1 12、使用AM命令完成端口+IP+MAC的绑定
[H3C] am user-bind ip-addres s 10.1.1.2 mac-addres s 00e0-fc22-f8d3 interf ace Ethern et 0/1。