龙空技术网

华为交换机Eth-Trunk端口汇聚配置,LACP模式

时光匆匆vlog 1042

前言:

今天各位老铁们对“华为交换机监控端口状态”大体比较关切,咱们都需要分析一些“华为交换机监控端口状态”的相关知识。那么小编同时在网络上汇集了一些对于“华为交换机监控端口状态””的相关内容,希望小伙伴们能喜欢,小伙伴们快快来学习一下吧!

拓扑图

简单创建一个汇聚端口来提高两台交换机之间的带宽和可靠性,并且可以配置备份线路,当主线路故障时可以自动切换到备份线路,保障数据传输的稳定。

交换机A的配置

The device is running!<Huawei>system-view  #进入系统视图Enter system view, return user view with Ctrl+Z.[Huawei]undo info-center enable  #关闭信息中心提示Info: Information center is disabled.[Huawei]sysname Switch a  #修改设备名称[Switch a]interface  Eth-Trunk 1  #进入Eth-Trunk 端口1[Switch a-Eth-Trunk1]mode lacp-static  #端口模式改为lacp模式[Switch a-Eth-Trunk1]quit #退出端口[Switch a]interface GigabitEthernet 0/0/1  #进入端口0/0/1[Switch a-GigabitEthernet0/0/1]eth-trunk 1 #添加到eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[Switch a-GigabitEthernet0/0/1]quit  #退出端口[Switch a]interface GigabitEthernet 0/0/2  #进入端口0/0/2[Switch a-GigabitEthernet0/0/2]eth-trunk 1  #添加到eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[Switch a-GigabitEthernet0/0/2]quit  #退出端口[Switch a]interface GigabitEthernet 0/0/3  #进入端口0/0/3[Switch a-GigabitEthernet0/0/3]eth-trunk 1  #添加到eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[Switch a-GigabitEthernet0/0/3]quit  #退出端口

修改Eth-Trunk端口的优先级,把交换机A的GE0/0/1和GE0/0/2端口做活动接口,GE0/0/3作为备用端口使用,并且将交换机A配置为主动端

[Switch a]lacp priority 100  #配置lacp的系统优先级为100,这样小于默认值就可以成为主动端[Switch a]interface  GigabitEthernet 0/0/1 #进入端口0/0/1[Switch a-GigabitEthernet0/0/1]lacp  priority 100  #配置端口优先级[Switch a-GigabitEthernet0/0/1]quit  #退出端口[Switch a]interface GigabitEthernet 0/0/2 #进入端口0/0/2[Switch a-GigabitEthernet0/0/2]lacp  priority 100  #配置端口优先级[Switch a-GigabitEthernet0/0/3]quit 	[Switch a]interface Eth-Trunk 1  #进入eth-trunk 端口[Switch a-Eth-Trunk1]max active-linknumber 2  #配置最大的活动线路为2[Switch a-Eth-Trunk1]quit #退出端口	[Switch a]vlan 10  #创建vlan 10[Switch a-vlan10]quit #退出[Switch a]interface  GigabitEthernet 0/0/4  #进入端口0/0/4[Switch a-GigabitEthernet0/0/4]port link-type access  #配置端口类型[Switch a-GigabitEthernet0/0/4]port default  vlan  10  #配置默认vlan为10[Switch a-GigabitEthernet0/0/4]quit  #退出端口[Switch a]interface Eth-Trunk 1  #进入eth-trunk 端口[Switch a-Eth-Trunk1]port link-type trunk  #配置端口类型[Switch a-Eth-Trunk1]port trunk allow-pass  vlan 10  #配置允许通过的vlan[Switch a-Eth-Trunk1]quit  #退出端口
交换机B的配置

因为主动端配置给了交换机A,所以交换机B就不用配置设备优先级和端口优先级

The device is running!<Huawei>system-view  #进入系统视图Enter system view, return user view with Ctrl+Z.[Huawei]undo info-center enable  #关闭信息中心提示Info: Information center is disabled.[Huawei]sysname  Switch b  #修改设备名称[Switch b]interface Eth-Trunk 1 #进入Eth-Trunk 端口1[Switch b-Eth-Trunk1]mode  lacp-static  #端口模式改为lacp模式[Switch b-Eth-Trunk1]quit  #退出端口[Switch b]interface  GigabitEthernet 0/0/1	 #进入端口0/0/1[Switch b-GigabitEthernet0/0/1]eth-trunk 1   #添加到eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[Switch b-GigabitEthernet0/0/1]quit  #退出端口[Switch b]interface  GigabitEthernet 0/0/2   #进入端口0/0/2[Switch b-GigabitEthernet0/0/2]eth-trunk 1   #添加到eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[Switch b-GigabitEthernet0/0/2]quit  #退出端口[Switch b]interface  GigabitEthernet 0/0/3   #进入端口0/0/3[Switch b-GigabitEthernet0/0/3]eth-trunk 1   #添加到eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[Switch b-GigabitEthernet0/0/3]quit  #退出端口[Switch b]vlan 10  #创建vlan 10[Switch b-vlan10]quit #退出[Switch b]interface GigabitEthernet 0/0/4  #进入端口0/0/4[Switch b-GigabitEthernet0/0/4]port link-type access  #配置端口类型[Switch b-GigabitEthernet0/0/4]port default  vlan  10	 #配置默认vlan为10[Switch b-GigabitEthernet0/0/4]quit  #退出端口[Switch b]interface  Eth-Trunk 1  #进入eth-trunk 端口[Switch b-Eth-Trunk1]port link-type trunk  #配置端口类型[Switch b-Eth-Trunk1]port trunk allow-pass  vlan  10  #配置允许通过的vlan[Switch b-Eth-Trunk1]quit #退出端口
检测

PC1可以访问到PC2

查看Eth-Trunk端口信息

SwitchA

SwitchB

以太网链路聚合

把多个交换机端口捆绑在一起,增加交换机之间的带宽(2个GE端口就是2千兆、3个就是3千、、、),提高可靠性,并且具备一定的冗余功能。

#谢谢#

#华为#

#交换机#

#网络配置#

标签: #华为交换机监控端口状态 #华为端口聚合lacp