给这台华为S5700交换机配一下链路聚合
·?掌握接口速率的配置方法
·?掌握使用手動模式配置鏈路聚合的方法
·?掌握使用靜態LACP模式配置鏈路聚合的方法
·?掌握在靜態LACP模式下配置接口優先級的方法
圖4.1 以太網鏈路聚合拓撲圖
?
您是公司的網絡管理員。現在公司購買了兩臺華為的S5700系列的交換機,為了提高交換機之間鏈路帶寬以及可靠性,您需要在交換機上配置鏈路聚合功能。?
步驟一?以太網交換機基礎配置
華為交換機接口默認開啟了自協商功能。
首先修改交換機的設備名稱,然后查看SW1上G0/0/9和G0/0/10接口的詳細信息。
<Huawei>system-view [Huawei]sysname SW1 [SW1] [SW1]display interface GigabitEthernet 0/0/9 GigabitEthernet0/0/9 current state : UP Line protocol current state : UP Description: Switch Port, Link-type : trunk(negotiated), PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is d0d0-4ba6-aab0 Current system time: 2019-11-23 14:18:37 Port Mode: COMMON COPPER Speed : 1000, Loopback: NONE Duplex: FULL, Negotiation: ENABLE Mdi : AUTO, Flow-control: DISABLE Last 300 seconds input rate 256 bits/sec, 0 packets/sec Last 300 seconds output rate 912 bits/sec, 0 packets/sec Input peak rate 13976 bits/sec, Record time: 2019-11-22 14:59:12 Output peak rate 13976 bits/sec, Record time: 2019-11-22 14:59:12 ……output omit……[SW1]display interface GigabitEthernet 0/0/10 GigabitEthernet0/0/10 current state : UP Line protocol current state : UP Description: Switch Port, Link-type : trunk(negotiated), PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is d0d0-4ba6-aab0 Current system time: 2019-11-23 14:22:22 Port Mode: COMMON COPPER Speed : 1000, Loopback: NONE Duplex: FULL, Negotiation: ENABLE Mdi : AUTO, Flow-control: DISABLE Last 300 seconds input rate 72 bits/sec, 0 packets/sec Last 300 seconds output rate 1024 bits/sec, 0 packets/sec Input peak rate 14032 bits/sec, Record time: 2019-11-22 14:59:12 Output peak rate 14032 bits/sec, Record time: 2019-11-22 14:59:12 ……output omit……步驟二?配置手動模式的鏈路聚合
在SW1和SW2上創建Eth-Trunk 1,然后將G0/0/9和G0/0/10接口加入Eth-Trunk 1(注意:將接口加入Eth-Trunk前需確認成員接口下沒有任何配置)。
[SW1]interface Eth-Trunk 1 [SW1-Eth-Trunk1]quit [SW1]interface GigabitEthernet 0/0/9 [SW1-GigabitEthernet0/0/9]eth-trunk 1 [SW1-GigabitEthernet0/0/9]quit [SW1]interface GigabitEthernet 0/0/10 [SW1-GigabitEthernet0/0/10]eth-trunk 1[SW2]interface Eth-Trunk 1 [SW2-Eth-Trunk1]quit [SW2]interface GigabitEthernet 0/0/9 [SW2-GigabitEthernet0/0/9]eth-trunk 1 [SW2-GigabitEthernet0/0/9]quit [SW2]interface GigabitEthernet 0/0/10 [SW2-GigabitEthernet0/0/10]eth-trunk 1驗證Eth-Trunk的配置結果。
[SW1]display eth-trunk 1 Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2 ---------------------------------------------------------------------------- PortName Status Weight GigabitEthernet0/0/9 Up 1 GigabitEthernet0/0/10 Up 1 [SW2]display eth-trunk 1 Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2 ---------------------------------------------------------------------------- PortName Status Weight GigabitEthernet0/0/9 Up 1 GigabitEthernet0/0/10 Up 1回顯信息中灰色陰影標注的部分表明Eth-Trunk工作正常,成員接口都已正確加入。
在SW1上查看接口聚合后帶寬
[SW1]display interface Eth-Trunk 1 Eth-Trunk1 current state : UP Line protocol current state : UP Description: Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 2G, Current BW: 2G, The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc16-05ac Current system time: 2020-03-15 15:33:56-08:00Input bandwidth utilization : 0%Output bandwidth utilization : 0% ------------------------------------------------------------------- PortName Status Weight ------------------------------------------------------------------- GigabitEthernet0/0/9 UP 1 GigabitEthernet0/0/10 UP 1 ------------------------------------------------------------------- The Number of Ports in Trunk : 2 The Number of UP Ports in Trunk : 2在SW2上查看接口聚合后帶寬 [SW2]display interface Eth-Trunk 1 Eth-Trunk1 current state : UP Line protocol current state : UP Description: Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 2G, Current BW: 2G, The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc78-50fb Current system time: 2020-03-15 15:35:33-08:00Input bandwidth utilization : 0%Output bandwidth utilization : 0% ------------------------------------------------------------------- PortName Status Weight ------------------------------------------------------------------- GigabitEthernet0/0/9 UP 1 GigabitEthernet0/0/10 UP 1 ------------------------------------------------------------------- The Number of Ports in Trunk : 2 The Number of UP Ports in Trunk : 2步驟三?配置靜態LACP模式的鏈路聚合
刪除SW1和SW2上的G0/0/9和G0/0/10接口下的配置。
[SW1]interface GigabitEthernet 0/0/9 [SW1-GigabitEthernet0/0/9]undo eth-trunk [SW1-GigabitEthernet0/0/9]quit [SW1]interface GigabitEthernet 0/0/10 [SW1-GigabitEthernet0/0/10]undo eth-trunk[SW2]interface GigabitEthernet 0/0/9 [SW2-GigabitEthernet0/0/9]undo eth-trunk [SW2-GigabitEthernet0/0/9]quit [SW2]interface GigabitEthernet 0/0/10 [SW2-GigabitEthernet0/0/10]undo eth-trunk創建Eth-Trunk 1并配置該Eth-Trunk為靜態LACP模式。然后將G0/0/9和G0/0/10接口加入Eth-Trunk 1。
[SW1]interface Eth-Trunk 1 [SW1-Eth-Trunk1]mode lacp [SW1-Eth-Trunk1]quit [SW1]interface GigabitEthernet 0/0/9 [SW1-GigabitEthernet0/0/9]eth-trunk 1 [SW1-GigabitEthernet0/0/9]quit [SW1]interface GigabitEthernet 0/0/10 [SW1-GigabitEthernet0/0/10]eth-trunk 1[SW2]interface Eth-Trunk 1 [SW2-Eth-Trunk1]mode lacp [SW2-Eth-Trunk1]quit [SW2]interface GigabitEthernet 0/0/9 [SW2-GigabitEthernet0/0/9]eth-trunk 1 [SW2-GigabitEthernet0/0/9]quit [SW2]interface GigabitEthernet 0/0/10 [SW2-GigabitEthernet0/0/10]eth-trunk 1查看交換機上Eth-Trunk的信息,查看鏈路是否協商成功。
[SW1]disp eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 32768 System ID: 4c1f-cc16-05ac Least Active-linknumber: 1 Max Active-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2 -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/9 Selected 1GE 32768 10 305 10111100 1 GigabitEthernet0/0/10 Selected 1GE 32768 11 305 10111100 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/0/9 32768 4c1f-cc78-50fb 32768 10 305 10111100 GigabitEthernet0/0/10 32768 4c1f-cc78-50fb 32768 11 305 10111100[SW2]display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 32768 System ID: 4c1f-cc78-50fb Least Active-linknumber: 1 Max Active-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2 -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/9 Selected 1GE 32768 10 305 10111100 1 GigabitEthernet0/0/10 Selected 1GE 32768 11 305 10111100 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/0/9 32768 4c1f-cc16-05ac 32768 10 305 10111100 GigabitEthernet0/0/10 32768 4c1f-cc16-05ac 32768 11 305 10111100在SW1上配置LACP的系統優先級為100,使其成為LACP主動端。
[SW1]lacp ?priority 100
配置接口的優先級確定活動鏈路。
[SW1]interface GigabitEthernet 0/0/9 [SW1-GigabitEthernet0/0/9]lacp priority 100 [SW1-GigabitEthernet0/0/9]quit [SW1]interface GigabitEthernet 0/0/10 [SW1-GigabitEthernet0/0/10]lacp priority 100驗證Eth-Trunk的配置結果。
[SW1]display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 100 System ID: 4c1f-cc16-05ac Least Active-linknumber: 1 Max Active-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2 -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/9 Selected 1GE 100 10 305 10111100 1 GigabitEthernet0/0/10 Selected 1GE 100 11 305 10111100 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/0/9 32768 4c1f-cc78-50fb 32768 10 305 10111100 GigabitEthernet0/0/10 32768 4c1f-cc78-50fb 32768 11 305 10111100[SW2]display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 32768 System ID: 4c1f-cc78-50fb Least Active-linknumber: 1 Max Active-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2 -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/9 Selected 1GE 32768 10 305 10111100 1 GigabitEthernet0/0/10 Selected 1GE 32768 11 305 10111100 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/0/9 100 4c1f-cc16-05ac 100 10 305 10111100 GigabitEthernet0/0/10 100 4c1f-cc16-05ac 100 11 305 10111100配置文件
[SW1]display current-configuration [SW2]display current-configurationend
歡迎關注微信公眾號【廈門微思網絡】。www.xmws.cn專業IT認證培訓19周年
主要課程:思科、華為、紅帽、ORACLE、VMware、CISP、PMP等認證培訓及考試
?
?
總結
以上是生活随笔為你收集整理的给这台华为S5700交换机配一下链路聚合的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 锐捷设备常用命令大全
- 下一篇: 运维基础(12)服务器12种基本故障+排