四、链路聚合(Link Aggregation)

  • 链路聚合(Link Aggregation)
    • 通过将多个物理接口捆绑为一个逻辑接口,增加链路带宽,也实现了链路备份
    • 链路聚合模式
      • 手工聚合/静态聚合 Eth-Trunk的建立、成员加入由手工配置
      • 动态聚合
        • LACP 链路汇聚控制协议 Link Aggregation Control Protocol,通过发送LACP报文,协商聚合参数
        • PAgP 思科私有,端口汇聚协议 Port Aggregation Protocol。
    • 配置聚合端口, 需要注意以下规则:
      • 一般设备默认支持最多8条聚合
      • 聚合接口的类型、数量、速率、双工方式等必须一致
      • 华为加入Eth-Trunk口的接口必须是hybrid接口(默认的接口类型),思科接口要求同一种模式(都是access或者trunk)
      • 华为:只能删除不包含任何成员口的Eth-Trunk口。思科可以删除
      • 接口模式:
      • 1.全双工:一个接口在同一个时间既可以发送数据也可以接收数据(打电话)
      • 2.半双工:一个接口在同一个时间只能可以发送数据或者只能接收数据(对讲机)
      • 3.单工:一个接口一种功能,要么只能发送数据,要么只有接收数据(扬声器)
    • 聚合配置
      • 静态聚合配置
        • 华为
          • 配置步骤
            • 创建聚合口
            • 配置聚合口的工作模式
            • 聚合口中加入成员接口
            • interface Eth-Trunk1 //创建聚合口
            • mode manual load-balance //手工负载分担模式即静态聚合,默认模式
            • trunkport GigabitEthernet 0/0/1 to 0/0/3 //批量增加成员接口
            • trunkport GigabitEthernet 0/0/1//增加一个成员接口
            • 或者
            • interface GigabitEthernet0/0/1 //进入对应接口然后加入对应聚合口
            • eth-trunk 1
        • 思科
          • interface Port-channel1 //创建聚合口,会自动产生可以不配置
          • int range f3/0 - 10
          • channel-group 1 mode on
      • 动态聚合配置
        • 思科
          • Switch(config-if-range)#channel-group 1 mode ?
          • active #主动发送LACP报文
          • auto #被动发送PAgP报文
          • desirable #主动发送PAgP报文
          • on #手动设置,需要两边都设置成on
          • passive #被动接收LACP报文
      • 负载模式
        • 华为
          • [SW1-Eth-Trunk1]load-balance ? //进入对应的聚合口配置负载均衡方式,默认是src-dst-ip
          • dst-ip According to destination IP hash arithmetic
          • dst-mac According to destination MAC hash arithmetic
          • src-dst-ip According to source/destination IP hash arithmetic
          • src-dst-mac According to source/destination MAC hash arithmetic
          • src-ip According to source IP hash arithmetic
          • src-mac According to source MAC hash arithmetic
        • 思科
          • R1(config)#port-channel load-balance ? //默认是src-dst-ip
          • dst-ip Dst IP Addr
          • dst-mac Dst Mac Addr
          • src-dst-ip Src XOR Dst IP Addr
          • src-dst-mac Src XOR Dst Mac Addr
          • src-ip Src IP Addr
          • src-mac Src Mac Addr
      • 查看命令
        • 华为
          • display interface Eth-Trunk //查看Eth-Trunk详细信息
          • display Eth-Trunk //查看Eth-Trunk 的接口信息
        • 思科
          • show etherchannel summary //查看聚合接口
          • show etherchannel brief //查看聚合接口简介
          • show etherchannel load-balance //查看负载方式

 

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值