Ether channel 学习笔记

 
    Ether channel ( 以太网通道 )Link   aggregation  链路聚合
    作用:增加带宽,   ( CISCO 最多可以将 8 个口绑在一起 )
                  将多根物理链路,捆绑成逻辑链路。实现多根链路上的负载均衡,及冗余等特性。可以吧多根物理链路看成逻辑接口。
     
    三种实现方法:
  1.                   1mode  on  强行实行,不用协议
    配置方法: Int   range  f0/1-8
                                     channel-group    1   mode   on
                               show  etherchannel  summary   查看绑定了多少接口
                               show   interface   ehterchannel        
  2.                    2PAGP端口聚合协议(port  Aggregation protocolcisco私有
                                         cisco 私有,默认 AUTO 模式
                              auto: 被动   只收不发
                              Des irable: 主动,                    
  3.                    3LACP链路聚合控制协议(link Aggregation control protocol
                                          IEEE802.ad ,
                               passive  被动,相当于 auto
                               Active   主动
        配置命令:
                             接口下    channel-protocol [pagp|lacp]
     
    二层 Etherchannel----- 创建接口 port-channel  1 替换绑定的接口,二层影响到物理口
    三层 Etherchannel----- 在逻辑上配置不会影响到物理口,可基于源 MAC 或目标 MAC 做负载均衡。
     
  4. 配置二层channel
    3550(config)#interface  gigabitethernet 0/1 -------------------------------------- 接口下
    3550(config-if)#switchport ------------------------------------------------------------2 层模式
    3550(config-if)#channel-group  1  mode  desirable ---------------------------- 模式为主动
    3550(config-if)#exit
    3550(config)#interface   gigabitethernet 0/2
    3550(config-if)#switchport
    3550(config-if)#channel-group   1   mode   desirable
    3550(config-if)#exit
    3550(config)#interface  port-channel  1 ------------------------------------------ 进入创建接口
    3550(config-if)#switchport  mode  trunk -----------------------------------------trunk 模式
     
    show etherchannel 1 summary
    show etherchannel  summary  查看所有的 group
     
  5. 配置三层channel
    3550(config)#interface  gigabitethernet 0/1 ----------------------------------------- 接口下
    3550(config-if)#no  switchport ----------------------------------------------------------3 层模式
    3550(config-if)#channel-group  1  mode  desirable -------------------------------- 主动模式
    3550(config-if)#exit
    3550(config)#interface   gigabitethernet 0/2
    3550(config-if)#no   switchport
    3550(config-if)#channel-group   1   mode   desirable
    3550(config-if)#exit
    3550(config)#interface  port-channel  1 ------------------------------------------------ 进入创建接口
    3550(config-if)#ip  address  100.1.1.1  255.255.255.0 ------------------------------- ip
     
    还有一种好的办法是先对每个接口封装 trunk ,再划入 channel-group 中, channel-group 接口会自动继承 trunk
     
  6. 配置etherchannel负载均衡
     
    port-channel load-balance [dst-mac|src-mac]
     
    show etherchannel load-balance
     

本文出自 “不耻最后” 博客,谢绝转载!

你可能感兴趣的:(职场,休闲)