端口汇聚是一种逻辑上的抽象过程,将一组具备相同属性的端口,抽象成一个逻辑端口。port channel是一组物理端口的集合体,在逻辑上被当作一个物理端口。对用户来讲,完全可以将这个port channel 当作一个端口使用,因此不仅能增加网络的带宽,还能提供链路的备份功能。

为使port channel 正常工作,port channel 的成员端口必须具备以下相同的属性:

  1 端口均为全双工模式;

2 端口速率相同;

       3 端口的类型必须一样,比如同为以太口或同为光纤口;

  4 端口同为access 端口并且属于同一个vlan 或同为trunk 端口;

       5 如果端口为trunk 端口,则其allowed vlan 和native vlan属性也应该相同。

 PAgP(Port Aggregation Protocol)端口聚集协议帮助在快速以太通道链接中联系自动生成

LACP(Link Aggregation Control Protocol,链路汇聚控制协议)是一种实现链路动态汇聚的协议

PAGP 属于cisco私有协议,LACP是公有协议。

PAgP的工作模式 ------- 对应的 LACP工作模式

  on(开) ------- on

  auto(自动) ------- passive

  desirable(主动)------- active

以上来自互联网

配置设备WEB IOU ,配置拓扑:

命令:

SW1(config)#interface port-channel 1    建立一个以太网port-channel 1

SW1(config-if)#switchport trunk encapsulation dot1q   port-channel 1 中的接口trunk封装的类型 (35一下的貌似可以不用)

SW1(config-if)#switchport mode trunk    port-channel 1 封装为trunk模式

SW1(config-if)#speed 100                设置port-channel 的端口速率

SW1(config-if)#duplex full              设置port-channel 的双工模式

SW1(config)#interface ethernet 0/0

SW1(config-if)#speed 100

SW1(config-if)#duplex full

SW1(config-if)#switchport trunk encapsulation dot1q

SW1(config-if)#switchport mode trunk

SW1(config-if)#channel-group 1 mode on   设置将接口加入channel-group 1中,并定义模式为手动聚合(ON不属于任何协议)

SW1(config)#interface ethernet 0/1

SW2 配置如上

查看命令

SW1#show etherchannel summary                              查看端口聚合的汇总信息

Flags:  D - down        P - bundled in port-channel

I - stand-alone s - suspended

H - Hot-standby (LACP only)

R - Layer3      S - Layer2

U - in use      N - not in use, no aggregation

f - failed to allocate aggregator

M - not in use, no aggregation due to minimum links not met

m - not in use, port not aggregated due to minimum links not met

u - unsuitable for bundling

d - default port

w - waiting to be aggregated

Number of channel-groups in use: 1

Number of aggregators:           1

Group  Port-channel  Protocol    Ports

------+-------------+-----------+-----------------------------------------------

1      Po1(SU)          -        Et0/0(P)       Et0/1(P)

SW2#show etherchannel summary

Flags:  D - down        P - bundled in port-channel

I - stand-alone s - suspended

H - Hot-standby (LACP only)

R - Layer3      S - Layer2

U - in use      N - not in use, no aggregation

f - failed to allocate aggregator

M - not in use, no aggregation due to minimum links not met

m - not in use, port not aggregated due to minimum links not met

u - unsuitable for bundling

d - default port

w - waiting to be aggregated

Number of channel-groups in use: 1

Number of aggregators:           1

Group  Port-channel  Protocol    Ports

------+-------------+-----------+-----------------------------------------------

1      Po1(SU)          -        Et0/0(s)       Et0/1(P)

SW1(config-if)#channel-group 1 mode desirable         模式变为PAGP协议

SW1(config-if)#channel-group 1 mode active            模式变为LACP协议

SW2 对端依据协商模式来配置,

desirable-desirable

desirable-auto

active-active

active-passive

转载于:https://blog.51cto.com/canglang/1109808

端口聚合Port-Channel相关推荐

  1. cisco链路聚合 不均衡_思科CISCO交换机间链路聚合端口聚合实现方法详解

    本文讲述了思科CISCO交换机间链路聚合端口聚合实现方法.分享给大家供大家参考,具体如下: [CISCO] 交换机间链路聚合端口聚合 端口通道( port channel ) 是一种聚合多个物理接口 ...

  2. 链路聚合(端口聚合)

    链路聚合有成端口聚合,断口捆绑,英文名port trunking.功能是将交换机的多个低带宽端口捆绑成一条高带宽链路,可以实现链路负载平衡.避免链路出现拥塞现象.通过配置,可通过两个三个或是四 个端口 ...

  3. mac 思科 链路聚合_EtherChannel Cisco 端口聚合详解

    冗余连接及其实现 无论什么设备都无法保障运行的绝对稳定性,即使再优秀的产品也无法保证24×7不间断的工作.除去设备或模块损坏.传输线路中断等硬件故障原因以外,还可能由于网络流量过载.任务负荷过大而导致 ...

  4. EtherChannel Cisco 端口聚合详解

    冗余连接及其实现 无论什么设备都无法保障运行的绝对稳定性,即使再优秀的产品也无法保证24×7不间断的工作.除去设备或模块损坏.传输线路中断等硬件故障原因以外,还可能由于网络流量过载.任务负荷过大而导致 ...

  5. 华为交换机端口聚合(☆亲测)

    1.含义 端口聚合也叫做以太通道(ethernet channel),主要用于交换机之间连接.由于两个交换机之间有多条冗余链路的时候,STP会将其中的几条链路关闭,只保留一条,这样可以避免二层的环路产 ...

  6. 快速了解华为端口聚合技术

    目录 一.端口聚合概述 1.1.1.端口聚合简介 1.1.2.端口聚合的条件 1.1.3.端口聚合的优点 二.端口聚合配置 一.端口聚合概述 1.1.1.端口聚合简介 端口聚合也叫做以太通道(ethe ...

  7. 关于端口聚合或端口聚合称呼的误区

    经常有网友问我端口聚合是指链路聚合还是VLAN trunking啊?为什么老师给他们讲的都是这个名称呢,是老师讲错了,还是书上有错. 我学网络这么久了,也一直实际使用中在把这两个词混用,其实这完全不是 ...

  8. 端口聚合与Trunk综合配置

    端口聚合的配置(aggregate port)与Trunk的配置 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com: ...

  9. 配置交换机端口聚合(思科、华为、锐捷)

    思科命令行配置: CLI:SW#conf t       SW(config)#interface range f1/1 -2       SW(config-if)#channel-group 1 ...

最新文章

  1. Java中集合类型线程安全性
  2. php 动态加载扩展,仿照PHP的实现简单的扩展动态加载
  3. 如何遍历JavaScript对象?
  4. c++ 类数组_《深入java虚拟机》读书笔记类加载
  5. Elasticsearch索引分析
  6. python探测端口_python检测远程服务器tcp端口的方法
  7. Acwing 1089. 烽火传递
  8. C++ 11右值引用
  9. 测试内存对齐对运行速度的影响
  10. 电机的入门之路系列3--直流电机的工作原理
  11. [Unity 3D] Unity 3D 性能优化 (一)
  12. redis主线程阻塞的情形
  13. 机器人水下赌场争霸战!中国团队创造历史,在美国登顶世界第一
  14. python中的 __getattr__ __setattr__ __getitem__ __add__
  15. SOA项目技术实施指南
  16. 功夫小子实践开发-开发环境的基本搭建和配置
  17. maple的Linux安装步骤,[原创]CentOS6.0下安装Freeiris2/Asterisk全程指导教程
  18. IntelliJ IDEA导包快捷键以及创建方法
  19. ucgui 嵌入式linux,uCGUI如何移植到S3C44B0X
  20. Unity基础补漏(1)_GameObject类_Time类_Transform类_Camera_光面板_物理面板/物理材质_碰撞检测函数_刚体加力

热门文章

  1. 如何更改Live Writer发布照片到不同相册
  2. CakePHP 2.x十分钟博客教程
  3. 剑指offer 09.用两个栈实现队列
  4. SVM — 机器学习面试
  5. Ethercat解析(四)之搭建RTAI实时内核(Ubuntu12.04)
  6. Linux——ubuntu硬盘分区
  7. 《剑指Offer》 二维数组中的查找
  8. NIPS2018 Workshop一览
  9. Ubuntu 16.04 卸载vmware
  10. sqlserver 日期函数