三层链路聚合

  1. 实验目的

① 掌握使用静态LACP模式配置链路聚合的方法

② 掌握控制静态LACP模式下控制活动链路的方法

③ 掌握静态LACP的部分特性的配置

  1. 实验拓扑

                                    图11-17 三层链路聚合

  1. 配置步骤
  1. 创建链聚合组

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

  1. 配置模式为静态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

  1. 将端口加入链路聚合组

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. 实验调试

(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:可以免费领取以下资料

  • 13
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值