配置Eth-Trunk链路聚合

         配置Eth-Trunk链路聚合

作业要求

  1. 使用eNSP搭建以下拓扑图
    在这里插入图片描述

  2. 配置2台PC机的IP地址,并检测各直连链路的连通性;

  3. 用手工负载分担模式配置Eth-Trunk实现链路聚合
    [SW1]interface Eth-Trunk 1 // 创建聚合接口(逻辑接口)
    [SW1-Eth-Trunk1]mode manual load-balance //配置链路聚合模式为手工模式,交换机默认就是手工聚合模式
    [SW1-Eth-Trunk1]trunkport Ethernet 0/0/1 to 0/0/3 // 向聚合接口中加入成员接口
    SW2上的配置同SW1
    查看S1和S2的Eth-Trunk 1接口状态;
    [SW2]dis eth-trunk

  4. 用静态LACP模式配置Eth-Trunk实现链路聚合,要求S1为主动端,有两条活动链路,其中G0/0/2接口处于备份状态

  1. SW1端的配置
    [SW1]lacp priority 1 //设置LACP的优先级,用于确定LACP协商的主动端
    [SW1]interface Eth-Trunk 1
    [SW1-Eth-Trunk1]mode lacp-static //采用LACP来协商链路聚合
    [SW1-Eth-Trunk1]trunkport e 0/0/1 to 0/0/3
    [SW1-Eth-Trunk1]max active-linknumber 2 //用于确定活动端口的数量
    [SW1-Eth-Trunk1]lacp preempt enable //开启抢占模式,默认关闭
    [SW1-Eth-Trunk1]lacp preempt delay 10 //设置抢占延迟时间为10s

[SW1]interface e 0/0/2
[SW1-Ethernet0/0/2]lacp priority 50000 //设置端口的LACP优先级,值越大优先级越低,用于决定活动或备份接口
2)SW2端的配置
[SW2]interface Eth-Trunk 1
[SW2-Eth-Trunk1]mode lacp-static //采用LACP来协商链路聚合
[SW2-Eth-Trunk1]trunkport e 0/0/1 to 0/0/3
[SW2]interface e 0/0/2
[SW2-Ethernet0/0/2]lacp priority 50000 //设置端口的LACP优先级,值越大优先级越低,用于决定活动或备份接口
查看 测试

  1. 实验总结
  1. 链路聚合的功能: 增加带宽 提供网络的可靠性
    2)链路聚合分类: a. 静态聚合 b. 动态聚合,使用LACP—IEEE802.3ad来协议链路信息,可以实现M:N

猜你喜欢

转载自blog.csdn.net/weixin_44685626/article/details/93379155