10-链路聚合配置命令
- 格式:pdf
- 大小:141.17 KB
- 文档页数:9
链路聚合配置方法及步骤1.引言1.1 概述在概述部分,我们将介绍链路聚合配置方法及步骤。
链路聚合是一种将多个物理网络链路合并成一个逻辑链路的技术,它能够提高网络带宽、增强网络可用性和负载均衡能力。
链路聚合配置方法是指一系列实施链路聚合技术的具体步骤和操作。
在本文中,我们将首先简要介绍链路聚合的概念和作用,明确其在网络通信中的重要性和应用场景。
然后,我们将详细讨论链路聚合配置方法,包括配置前的准备工作、配置过程中的关键参数设置和配置完成后的验证步骤。
通过掌握链路聚合配置方法,读者可以了解如何在实际网络环境中配置和应用链路聚合技术。
接下来的章节中,我们将逐步深入探讨链路聚合的相关知识和实际操作。
最后,我们将对文章进行总结,回顾链路聚合配置方法及步骤的关键要点,并展望链路聚合技术在未来网络中的应用前景。
通过本文的阅读,读者将能够全面了解链路聚合配置方法及步骤,为网络管理员和工程师在实际工作中应用和配置链路聚合技术提供指导和帮助。
同时,我们也期待本文能够给读者带来新的思考和启示,促进在网络通信领域的技术创新和发展。
1.2 文章结构文章结构文章的结构是指整篇文章的组织框架和内容安排方式。
一个好的文章结构可以帮助读者更好地理解文章的主题和内容,使文章逻辑清晰,条理有序。
本文按照以下结构进行组织和安排:1. 引言:本部分主要对文章进行导言,引出链路聚合配置方法及步骤的背景和意义,同时介绍文章的结构和目的。
2. 正文:本部分主要对链路聚合的概念和作用进行介绍,然后详细阐述链路聚合配置方法及步骤。
2.1 链路聚合的概念和作用:本小节将解释链路聚合的基本概念,包括什么是链路聚合以及它的作用和优势。
2.2 链路聚合配置方法及步骤:本小节将具体介绍链路聚合的配置方法和步骤。
包括链路聚合的配置目标和原则,以及具体的配置步骤和注意事项,以便读者能够了解如何进行链路聚合的配置。
3. 结论:本部分对全文进行总结,对链路聚合配置方法及步骤的重要性和优势进行强调,并展望未来链路聚合配置方法的发展方向。
华为、H3C和锐捷:⼀起学习链路聚合怎么配置?华为1)创建eth-trunk接⼝,并配置允许通过的VLAN。
#配置Stack。
system-viewsysname stackinterface eth-trunk 10port link-type trunkport trunk allow-pass vlan allquit#配置PE。
system-viewsysname PEinterface eth-trunk 10port link-type trunkport trunk allow-pass vlan allquit2)加⼊eth-trunk的成员接⼝。
#配置Stack。
interface gigabitethernet 1/0/4eth-trunk 10quitinterface gigabitethernet 2/0/4eth-trunk 10quit#配置PE。
interface gigabitethernet 1/0/1eth-trunk 10quitinterface gigabitethernet 1/0/2eth-trunk 10quit3)在堆叠设备上开启eth-trunk接⼝流量本地优先转发功能。
local-preference enableinterface eth-trunk 10local-preference enablequit4)配置⼆层转发功能。
#配置Stack。
vlan batch 2 3interface gigabitethernet 1/0/3port link-type trunkport trunk allow-pass vlan 2quitinterface gigabitethernet 2/0/3port link-type trunkport trunk allow-pass vlan 3quit#配置Switch1。
system-viewsysname switch1vlan 2quitinterface gigabitethernet 0/0/1port link-type trunkport trunk allow-pass vlan 2quitinterface gigabitethernet 0/0/2port link-type trunkport trunk allow-pass vlan 2quit#配置Switch2。
思科模拟器命令一、实验拓扑图:二、操作步骤:——链路聚合(Link Aggregation)方案1---静态聚合--- SW1和SW2交换机配置如下:1、配置vlanZXR10#vlan databaseZXR10(vlan)#vlan 10ZXR10(vlan)#vlan 20ZXR10(vlan)#exitZXR10#configure terminalZXR10(config)# interface fastethernet0/1ZXR10(config-if)#switchport mode accessZXR10(config-if)#switchport access vlan 10 ――――――――-接PC机ZXR10(config-if)#exitZXR10(config)# interface fastethernet0/2ZXR10(config-if)#switchport mode accessZXR10(config-if)#switchport access vlan 20 ――――――――-接PC机ZXR10(config-if)#exit3、将端口加入到链路聚合组中:ZXR10 (config)# interface fastethernet 0/15 ――――――――-接3228-1的15口ZXR10 (config-if)# channel-group 1 mode on---------以静态方式将端口成员加入链路聚合组ZXR10 (config-if)#exitZXR10 (config)# interface fastethernet 0/16 ―――――――――――-接3228-1的16口ZXR10 (config-if)# channel-group 1 mode on---------以静态方式将端口成员加入链路聚合组ZXR10 (config-if)#exit4、配置链路聚合组模式:ZXR10 (config)# interface port-channel 1-------进入虚拟链路聚合组1ZXR10 (config-if)# switchport mode trunk-------修改虚拟链路聚合组1的模式为TRUNKZXR10(config-if)#switchport trunk allowed vlan 10,20----虚拟链路聚合组1承载VLAN 10,20 ZXR10 (config)#exit(SW2交换机配置同SW-1一样)方案2 –动态链路聚合---SW1和SW2交换机配置如下:1、配置vlanZXR10#vlan databaseZXR10(vlan)#vlan 10ZXR10(vlan)#vlan 20ZXR10(vlan)#exitZXR10#configure terminalZXR10(config)# interface fastethernet0/1ZXR10(config-if)#switchport mode accessZXR10(config-if)#switchport access vlan 10 ――――――――-接PC机ZXR10(config-if)#exitZXR10(config)# interface fastethernet0/2ZXR10(config-if)#switchport mode accessZXR10(config-if)#switchport access vlan 20 ――――――――-接PC机ZXR10(config-if)#exit3、将端口加入到链路聚合组中:ZXR10 (config)# interface fastethernet 0/15 ――――――――-接3228-1的15口ZXR10 (config-if)# channel-protocol lacp--------设置端口聚合模式为动态模式ZXR10 (config-if)# channel-group 1 mode active(/passive)---------以动态方式将端口成员加入链路聚合组ZXR10 (config-if)#exitZXR10 (config)# interface fastethernet 0/16 ―――――――――――-接3228-1的16口ZXR10 (config-if)# channel-protocol lacp--------设置端口聚合模式为动态模式ZXR10 (config-if)# channel-group 1 mode active(/passive)---------以动态方式将端口成员加入ZXR10 (config-if)#exit4、配置链路聚合组模式:ZXR10 (config)# interface port-channel 1ZXR10 (config-if)# switchport mode trunkZXR10(config-if)#switchport trunk allowed vlan 10,20ZXR10 (config)#exit(SW2交换机配置同SW-1一样)注:聚合模式设置为on时端口运行静态trunk,参与聚合的两端都需要设置为on模式。
组网需求:在设备1,2上分别配置链路聚合,且使设备上的vlan10,vlan20 实现互通。
G1/0/3属于vlan10,G1/0/4属于vlan20;要实现链路聚合,首先要建立聚合组配置模式:internet bridge-aggregation 1接下来将要聚合的端口依次添加到聚合组中配置模式下:interface G1/0/1port link-aggregation group 1quitinterface G1/0/2port link-aggregation group 1quit要实现vlan的互通,首先创建vlan,配置模式下:vlan 10port g1/0/3vlan 20port g1/0/4接下来要使vlan10,20通过聚合链路,则必须将聚合链路改为trunk模式配置模式:interface bridge-aggregation group 1port link-type trunkport trunk permit vlan 10 20这样设备1的链路聚合配置完成了,同理设备2的配置与之相似组网需求:在设备1,2上分别配置链路聚合,且使设备上的vlan10,vlan20 实现互通。
G1/0/3属于vlan10,G1/0/4属于vlan20;要实现链路聚合,首先要建立聚合组配置模式:Link-aggregation group 1 mode manual接下来将要聚合的端口依次添加到聚合组中配置模式下:interface G1/0/1port link-aggregation group 1port link-type trunkport trunk permit vlan 10 20quitinterface G1/0/2port link-aggregation group 1port link-type trunkport trunk permit vlan 10 20quit要实现vlan的互通,首先创建vlan,配置模式下:vlan 10port g1/0/3vlan 20port g1/0/4这样实现互通后的聚合链路,协商速率为200Mbps/s(5120为千兆,36为百兆)。
windows服务器双网卡链路聚合
1、重命名网卡名
win10左下角LOGO->设置->网络和internet->(左侧)以太网->(右侧)网络和共享中心->(左侧)更改适配器设置,默认情况下两个网卡名称改为“nic1”,“nic2”。
2、Power Shell
打开Win10的power shell使用命令行设置,在win10左下角LOGO输入powershell,右键点击“Windows PowerShell”,以管理员身份运行,会有弹出对话框,选择“是”。
3、命令行
在弹出的窗口中输入new-netLbfoteam “teamingname” -teamingmode switchindependent接下来会提示输入需要绑定的网卡名,如图:
4、效果
回到电脑的网络适配器,网卡已经绑定成功,此时原来的两个独立的网卡已经不见了,显示的是绑定的网卡聚合的名称,如图:
5、删除网卡聚合
若想恢复原来的网卡配置,可输入命令remove-netLbfoteam -name teamingname删除指定网卡组,get-netLbfoteam | remove-netLbfoteam删除所有网卡组。
标签:windows
分类:WIN系统
| 发布:wanglei | 评论:0条 | 发表时间:2020-1-15 9:01 Wednesday。
链路聚合配置(1)配置Device A# 创建VLAN 10和聚合接口1,并将该接口加入VLAN 10。
system-view[DeviceA] vlan 10[DeviceA-vlan10] quit[DeviceA] interface bridge-aggregation 1[DeviceA-Bridge-Aggregation1] port access vlan 10[DeviceA-Bridge-Aggregation1] quit# 分别将端口GE4/0/1至GE4/0/3加入到聚合组1和VLAN 10中。
[DeviceA] interface gigabitethernet 4/0/1[DeviceA-Gigabitethernet4/0/1] port link-aggregation group 1[DeviceA-Gigabitethernet4/0/1] port access vlan 10Warning:This port is a member of the link aggregation group. If configuration of the whole group is required to be modified, please configure it under the aggregation interface view. Otherwise, this operation may interrupt network traffic.Continue?[Y/N]: y[DeviceA-Gigabitethernet4/0/1] quit[DeviceA] interface gigabitethernet 4/0/2[DeviceA-Gigabitethernet4/0/2] port link-aggregation group 1[DeviceA-Gigabitethernet4/0/2] port access vlan 10Warning:This port is a member of the link aggregation group. If configuration of the whole group is required to be modified, please configure it under the aggregation interface view. Otherwise, this operation may interrupt networktraffic.Continue?[Y/N]: y[DeviceA-Gigabitethernet4/0/2] quit[DeviceA] interface gigabitethernet 4/0/3[DeviceA-Gigabitethernet4/0/3] port link-aggregation group 1[DeviceA-Gigabitethernet4/0/3] port access vlan 10Warning:This port is a member of the link aggregation group. If configuration of the whole group is required to be modified, please configure it under the aggregation interface view. Otherwise, this operation may interrupt network traffic.Continue?[Y/N]: y[DeviceA-Gigabitethernet4/0/3] quit# 配置全局聚合负载分担模式为源MAC地址与目的MAC地址相结合的方式。
目录1 链路聚合配置命令................................................................................................................................ 1-11.1 链路聚合配置命令............................................................................................................................. 1-11.1.1 description .............................................................................................................................. 1-11.1.2 display lacp system-id ............................................................................................................ 1-21.1.3 display link-aggregation member-port.................................................................................... 1-21.1.4 display link-aggregation summary.......................................................................................... 1-41.1.5 display link-aggregation verbose............................................................................................ 1-51.1.6 enable snmp trap updown...................................................................................................... 1-71.1.7 interface bridge-aggregation .................................................................................................. 1-81.1.8 lacp port-priority...................................................................................................................... 1-81.1.9 lacp system-priority................................................................................................................. 1-91.1.10 link-aggregation mode........................................................................................................ 1-101.1.11 port link-aggregation group ................................................................................................ 1-101.1.12 reset lacp statistics............................................................................................................. 1-111.1.13 shutdown ............................................................................................................................ 1-111 链路聚合配置命令●本手册中提到的三层以太网接口是指已经被配置为路由模式的以太网端口,有关以太网端口模式切换的操作,请参见接入分册的“以太网端口”部分。
链路聚合(端口汇聚)配置Link aggregation (port pooling) configurationPort will converge is more than one Ethernet port group together to form a logical gathering, use pooling for upper entity to more than the physical link within the same group together as a logical link.The port aggregation enables the traffic to be Shared across member ports in the aggregation group to increase the bandwidth. At the same time, a dynamic backup of each member port of the same group increases the reliability of the connection.Based on the IEEE802.3 AD standard LACP (Link Aggregation Control Protocol, Link Aggregation Control Protocol) is a Protocol that implements the Link dynamic convergence and solution pooling. The LACP Protocol USES the LACPDU (Link Aggregation Control Protocol Data Unit, the Link Aggregation Control Protocol Data Unit) and the end-to-end interaction information.After the LACP protocol that starts a port, the port will notify the end of the system priority, system MAC, port priority, port number, and operation Key by sending the LACPDU. To end after received this information, the information compared to other port the saved information to choose the port to gather, thus both sides can be to the port to join or quit a dynamic group consensus.According to the convergence method, the port convergence can be divided into three categories: manual gathering, static LACPpooling, dynamic LACP pooling.Experimental environment: two H3C E126A, ethernet1/0/24, ethernet1/0/23 converge to a link.Manual together:Configuration of the first switch:[H3CA] link - aggregation group 10 mode manual[H3CA] interface Ethernet 1/0/24[h3ca-ethernet1/0/24] port link - aggregation group 10Can not specify a loopback - detection enable port as aggregation group member![h3ca-ethernet1/0/24] undo loopback - detection enable / / close the lookback-detection capability[h3ca-ethernet1/0/24] port link - aggregation group 10[H3CA Ethernet1/0/24][H3CA] interface ethernet1/0/23[h3ca-ethernet1/0/23] undo loopback - detection enable[h3ca-ethernet1/0/23] port link - aggregation group 10[H3CA Ethernet1/0/23]Configuration of the second switch:[H3CB] link - aggregation group 10 mode manual[H3CB] interface ethernet1/0/24[H3CB - Ethernet1/0/24] undo loopback - detection enable[H3CB - Ethernet1/0/24] port link - aggregation group 10[H3CB - ethernet1/0/24] interface ethernet1/0/23[H3CB - Ethernet1/0/23] undo loopback - detection enable[H3CB - Ethernet1/0/23] port link - aggregation group 10[H3CB Ethernet1/0/23]Display relevant information:[H3CB] display link - aggregation summary / / display summary informationAggregation Group Type -- Dynamic, S -- Static, M -- ManualLoadsharing Type: Shar -- Loadsharing, NonS -- non-loadsharingActor ID: 0x8000, 000f-e2a8-2defAL AL Partner ID Select Unselect Share MasterID Type Ports Ports Type Port-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --10 M none 2 0 Shar Ethernet1/0/23[H3CB][H3CB] display link - aggregation interface ethernet1/0/24 / display interface informationEthernet1/0/24:Selected AggID: 10Local:Port - Priority: 32768, Oper key: 1, Flag: 0x00远程:系统ID:0 x0,0000-0000-0000端口:0,端口优先级:0,操作键:0,标志:0x00[H3CB]显示ethernet1/0/23链路聚合接口Ethernet1/0/23:选择AggID:10的地方:端口优先:32768,主键:1,标记:0x00远程:系统ID:0 x0,0000-0000-0000端口:0,端口优先级:0,操作键:0,标志:0x00(H3CB)[H3CB]显示链路聚合详细/ /显示详细信息Loadsharing类型:Shar——负载共享、NonS——非负载共享标记:A——LACP_Activity,B——LACP_timeout,C——聚合,D——同步,E——收集,F——分布,拖欠,H,过期了聚合ID:10,聚合类型:手动,Loadsharing类型:Shar聚合描述:系统ID:000 0 x8000 f-e2a8-2def端口状态:S——选择,U——未选中的地方:端口状态优先级主标志- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Ethernet1/0/23 S 32768 1 { }Ethernet1/0/24 S 32768 1 { }远程:演员合作伙伴优先级关键系统Flag- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Ethernet1/0/23 0 0 0x0000,000000000000 { }以太网1 / 24 0 0 0 0x0000,000000000000 { }(H3CB)LACP静态配置及显示信息:[H3CA]链接聚合组10模式静态ethernet1/0/24(H3CA)接口(H3CA-Ethernet1/0/24)端口链路聚合组10不能指定环回检测启用端口作为聚合组成员!(H3CA-Ethernet1/0/24)撤销loopback-detection启用(H3CA-Ethernet1/0/24)端口链路聚合组10:1 - lacp是不允许的端口以太网的远程端ethernet1/0/23(H3CA-Ethernet1/0/24)接口(H3CA-Ethernet1/0/23)撤销loopback-detection启用(H3CA-Ethernet1/0/23)端口链路聚合组10(H3CA-Ethernet1/0/23):1 - lacp是不允许的端口ethernet1/0 / 23的远程端。