链路聚合 | 您所在的位置:网站首页 › h3c批量设置vlan › 链路聚合 |
3.1 与思科设备对接操作指导3.1.1 互通性分析 表7 互通性分析 H3C Cisco 互通结论 Static(缺省) On(缺省) 可以互通 Dynamic Active 可以互通 3.1.2 采用静态聚合模式对接案例1. 组网需求 如图10所示,H3C设备与Cisco设备通过各自的二层以太网接口相互连接。现要求在H3C设备和Cisco设备上分别配置静态链路聚合,实现增加链路带宽、提高链路可靠性的目的。 图10 采用静态聚合模式对接配置组网图 2. 配置步骤 · 配置H3C设备 # 创建三层聚合接口1,并为该接口配置IP地址和子网掩码。 system-view [H3C] interface Route-aggregation 1 [H3C-Route-Aggregation1] ip address 16.1.105.33 24 [H3C-Route-Aggregation1] quit # 将三层以太网接口GigabitEthernet1/0/1加入三层聚合组1中。 [H3C] interface gigabitethernet 1/0/1 [H3C-GigabitEthernet1/0/1] port link-aggregation group 1 [H3C-GigabitEthernet1/0/1] quit # 将三层以太网接口GigabitEthernet1/0/2加入三层聚合组1中。 [H3C] interface GigabitEthernet 1/0/2 [H3C-GigabitEthernet1/0/2] port link-aggregation group 1 [H3C-GigabitEthernet1/0/2] quit · 配置Cisco设备 # 如下配置以Cisco Nexus9000 C9236C为例进行介绍,设备具体信息如下: Cisco# show version Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac Copyright (C) 2002-2017, Cisco and/or its affiliates. All rights reserved. The copyrights to certain works contained in this software are owned by other third parties and used and distributed under their own licenses, such as open source. This software is provided "as is," and unless otherwise stated, there is no warranty, express or implied, including but not limited to warranties of merchantability and fitness for a particular purpose. Certain components of this software are licensed under the GNU General Public License (GPL) version 2.0 or GNU General Public License (GPL) version 3.0 or the GNU Lesser General Public License (LGPL) Version 2.1 or Lesser General Public License (LGPL) Version 2.0. A copy of each such license is available at ***.***/licenses/gpl-2.0.php and ***.***/licenses/gpl-3.0.html and ***.***/licenses/lgpl-2.1.php and ***.***/licenses/old-licenses/library.txt. Software BIOS: version 07.56 NXOS: version 7.0(3)I4(6) BIOS compile time: 06/08/2016 NXOS image file is: bootflash:///nxos.7.0.3.I4.6.bin NXOS compile time: 3/9/2017 22:00:00 [03/10/2017 07:05:18] Hardware cisco Nexus9000 C9236C chassis Intel(R) Xeon(R) CPU @ 1.80GHz with 16400984 kB of memory. Processor Board ID FDO20511FC7 Device name: switch bootflash: 53298520 kB Kernel uptime is 17 day(s), 20 hour(s), 9 minute(s), 30 second(s) Last reset Reason: Unknown System version: 7.0(3)I4(6) Service: plugin Core Plugin, Ethernet Plugin Active Package(s): # 配置聚合口的IP地址。 Cisco# configure terminal Cisco(config)# interface channel-group 1 Cisco(config-if)# ip address 16.1.105.34 255.255.255.0 Cisco(config-if)# exit # 设置接口Ethernet1/3的聚合模式为手动方式。 Cisco(config)# interface Ethernet 1/3 Cisco(config-if)# channel-group 1 mode on Cisco(config-if)# exit # 设置接口Ethernet1/5的聚合模式为手动方式。 Cisco(config-if)# interface Ethernet 1/5 Cisco(config-if)# channel-group 1 mode on Cisco(config-if)# end 3. 验证配置# 在H3C设备上验证聚合组的详细信息。 [H3C] display link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port Status: S -- Selected, U -- Unselected, I -- Individual Port: A -- Auto port, M -- Management port, R -- Reference port Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired
Aggregate Interface: Route-Aggregation1 Aggregation Mode: Static Loadsharing Type: Shar Management VLANs: None Port Status Priority Oper-Key GE1/0/1(R) S 32768 1 GE1/0/2 S 32768 1 # 在H3C设备上能Ping通对端设备。 [H3C ] ping 16.1.105.34 Ping 16.1.105.34 (16.1.105.34): 56 data bytes, press CTRL_C to break 56 bytes from 16.1.105.34: icmp_seq=0 ttl=255 time=2.537 ms 56 bytes from 16.1.105.34: icmp_seq=1 ttl=255 time=2.000 ms 56 bytes from 16.1.105.34: icmp_seq=2 ttl=255 time=1.935 ms 56 bytes from 16.1.105.34: icmp_seq=3 ttl=255 time=2.044 ms 56 bytes from 16.1.105.34: icmp_seq=4 ttl=255 time=2.143 ms
--- Ping statistics for 16.1.105.34 --- 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss round-trip min/avg/max/std-dev = 1.935/2.132/2.537/0.214 ms 3.1.3 采用动态聚合模式对接案例1. 组网需求如图11所示,H3C设备与Cisco设备通过各自的二层以太网接口相互连接。现要求在H3C设备和Cisco设备上分别配置动态链路聚合,实现增加链路带宽、提高链路可靠性的目的。 图11 采用动态聚合模式对接配置组网图 2. 配置步骤 · 配置H3C设备 # 创建三层聚合接口1,并为该接口配置IP地址和子网掩码。 system-view [H3C] interface Route-aggregation 1 [H3C-Route-Aggregation1] ip address 16.1.105.33 24 # 配置三层聚合接口1对应的聚合组工作在动态聚合模式下。 [H3C-Route-Aggregation1] link-aggregation mode dynamic [H3C-Route-Aggregation1] quit # 将三层以太网接口GigabitEthernet1/0/1加入三层聚合组1中。 [H3C] interface gigabitethernet 1/0/1 [H3C-GigabitEthernet1/0/1] port link-aggregation group 1 [H3C-GigabitEthernet1/0/1] quit # 将三层以太网接口GigabitEthernet1/0/2加入三层聚合组1中。 [H3C] interface gigabitethernet 1/0/2 [H3C-GigabitEthernet1/0/2] port link-aggregation group 1 [H3C-GigabitEthernet1/0/2] quit · 配置Cisco设备 # 如下配置以Cisco Nexus9000 C9236C为例进行介绍,设备具体信息如下: Cisco# show version Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac Copyright (C) 2002-2017, Cisco and/or its affiliates. All rights reserved. The copyrights to certain works contained in this software are owned by other third parties and used and distributed under their own licenses, such as open source. This software is provided "as is," and unless otherwise stated, there is no warranty, express or implied, including but not limited to warranties of merchantability and fitness for a particular purpose. Certain components of this software are licensed under the GNU General Public License (GPL) version 2.0 or GNU General Public License (GPL) version 3.0 or the GNU Lesser General Public License (LGPL) Version 2.1 or Lesser General Public License (LGPL) Version 2.0. A copy of each such license is available at ***.***/licenses/gpl-2.0.php and ***.***/licenses/gpl-3.0.html and ***.***/licenses/lgpl-2.1.php and ***.***/licenses/old-licenses/library.txt. Software BIOS: version 07.56 NXOS: version 7.0(3)I4(6) BIOS compile time: 06/08/2016 NXOS image file is: bootflash:///nxos.7.0.3.I4.6.bin NXOS compile time: 3/9/2017 22:00:00 [03/10/2017 07:05:18] Hardware cisco Nexus9000 C9236C chassis Intel(R) Xeon(R) CPU @ 1.80GHz with 16400984 kB of memory. Processor Board ID FDO20511FC7 Device name: switch bootflash: 53298520 kB Kernel uptime is 17 day(s), 20 hour(s), 9 minute(s), 30 second(s) Last reset Reason: Unknown System version: 7.0(3)I4(6) Service: plugin Core Plugin, Ethernet Plugin Active Package(s): # 启动LACP。 Cisco# configure terminal Cisco(config)# feature lacp # 设置聚合接口的IP地址。 Cisco(config)# interface channel-group 1 Cisco(config-if)# ip address 16.1.105.34 255.255.255.0 Cisco(config-if)# exit # 将Ethernet1/3接口设置为LACP的active模式。 Cisco(config)# interface Ethernet 1/3 Cisco(config-if)# channel-group 1 mode active Cisco(config-if)# exit # 将Ethernet1/5接口设置为LACP的active模式。 Cisco(config-if)# interface Ethernet 1/5 Cisco(config-if)# channel-group 1 mode active Cisco(config-if)# end 3. 验证配置# 在H3C设备上验证聚合组的详细信息。 [H3C] display link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port Status: S -- Selected, U -- Unselected, I -- Individual Port: A -- Auto port, M -- Management port, R -- Reference port Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Aggregate Interface: Route-Aggregation1 Aggregation Mode: Dynamic Loadsharing Type: Shar Management VLANs: None System ID: 0x8000, 1cab-3496-09f6 Local: Port Status Priority Index Oper-Key Flag GE1/0/1(R) S 32768 1 1 {ACDEF} GE1/0/2 S 32768 2 1 {ACDEF} Remote: Actor Priority Index Oper-Key SystemID Flag GE1/0/1 32768 265 32768 0x8000, 2c33-113a-eaef {ACDEF} GE1/0/2 32768 273 32768 0x8000, 2c33-113a-eaef {ACDEF} # 在H3C设备上能Ping通对端设备。 [H3C] ping 16.1.105.34 Ping 16.1.105.34 (16.1.105.34): 56 data bytes, press CTRL_C to break Request time out 56 bytes from 16.1.105.34: icmp_seq=1 ttl=255 time=2.331 ms 56 bytes from 16.1.105.34: icmp_seq=2 ttl=255 time=2.063 ms 56 bytes from 16.1.105.34: icmp_seq=3 ttl=255 time=2.202 ms 56 bytes from 16.1.105.34: icmp_seq=4 ttl=255 time=2.219 ms
--- Ping statistics for 16.1.105.34 --- 5 packet(s) transmitted, 4 packet(s) received, 20.0% packet loss round-trip min/avg/max/std-dev = 2.063/2.204/2.331/0.095 ms |
CopyRight 2018-2019 实验室设备网 版权所有 |