本文主要是介绍三层链路聚合,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
- 实验目的
① 掌握使用静态LACP模式配置链路聚合的方法
② 掌握控制静态LACP模式下控制活动链路的方法
③ 掌握静态LACP的部分特性的配置
- 实验拓扑
图11-17 三层链路聚合
- 配置步骤
- 创建链聚合组
AR1的配置
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname R1
[R1]interface Eth-Trunk 1 //创建eth-trunk编号为1
[R1-Eth-Trunk1]undo portswitch //开启三层链路聚合
[R1-Eth-Trunk1]ip address 12.1.1.1 24 //配置IP地址
[R1-Eth-Trunk1]quit
AR2的配置
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname AR2
[AR2]interface Eth-Trunk 1
[AR2-Eth-Trunk1]undo portswitch
[AR2-Eth-Trunk1]ip address 12.1.1.2 24
[AR2-Eth-Trunk1]quit
- 配置模式为静态LACP
AR1的配置
[R1]interface Eth-Trunk 1
[R1-Eth-Trunk1]mode lacp-static
[R1-Eth-Trunk1]quit
AR2的配置
[AR2]interface Eth-Trunk 1
[AR2-Eth-Trunk1]mode lacp-static
[AR2-Eth-Trunk1]quit
- 将端口加入链路聚合组
AR1的配置
[R1]interface Eth-Trunk 1
[R1-Eth-Trunk1]trunkport GigabitEthernet 0/0/0 to 0/0/2
[R1-Eth-Trunk1]quit
AR2的配置
[AR2]interface Eth-Trunk 1
[AR2-Eth-Trunk1]trunkport GigabitEthernet 0/0/0 to 0/0/2
[AR2-Eth-Trunk1]quit
- 实验调试
(1)查看eth-trunk 1的状态
[R1]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: 00e0-fcd9-60c7
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 3
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/0 Selected 1GE 32768 1 305 10111100 1
GigabitEthernet0/0/1 Selected 1GE 32768 2 305 10111100 1
GigabitEthernet0/0/2 Selected 1GE 32768 3 305 10111100 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/0 32768 00e0-fc59-0459 32768 1 305 10111100
GigabitEthernet0/0/1 32768 00e0-fc59-0459 32768 2 305 10111100
GigabitEthernet0/0/2 32768 00e0-fc59-0459 32768 3 305 10111100
通过以上输出,eth-trunk处于工作状态,g0/0/0、g0/0/1、g0/0/2都处于活动状态。
(2)测试连通性
[R1]ping 12.1.1.2
PING 12.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 12.1.1.2: bytes=56 Sequence=1 ttl=255 time=90 ms
Reply from 12.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 12.1.1.2: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 12.1.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 12.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 12.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/40/90 ms
通过以上输出可以看到AR1和AR2是可以通信的。
本文出自作者的《HCIA Datacom学习指南》
https://item.jd.com/14032255.html
在文章最后加作者VX:可以免费领取以下资料
这篇关于三层链路聚合的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!