设为首页收藏本站language 语言切换
查看: 1962|回复: 7
收起左侧

[求助] 求解 cisco链路聚合

[复制链接]
发表于 2014-11-13 20:54:41 | 显示全部楼层 |阅读模式
3鸿鹄币
请问 如何使用链路聚合 解决数据增长带宽不足的问题 在cisco模拟器上怎么做 在两台交换机上要打哪些命令 做完之后如何测试是否做成功 实验拓扑如图
IMG_20141113_201258.jpg
IMG_20141113_201258.jpg
IMG_20141113_201258.jpg

最佳答案

查看完整内容

看你做2层聚合,还是3层聚合。还有做pagp,还是lacp。配置都不太一样的。 把笔记黏贴给你: ----------------------------------------------------------------------------------------- EtherChannel的模式: 可以直接将物理端口绑定,也可以让两台交换机之间通过协议进行协商,来形成channel通道。 On模式:不协商,只接配etherchannel SW1、SW2: int range f0/23 ,f0/24 channel-group 1 mode on 将这两个接 ...
发表于 2014-11-13 20:54:42 | 显示全部楼层
看你做2层聚合,还是3层聚合。还有做pagp,还是lacp。配置都不太一样的。
把笔记黏贴给你:
-----------------------------------------------------------------------------------------
EtherChannel的模式:
可以直接将物理端口绑定,也可以让两台交换机之间通过协议进行协商,来形成channel通道。

On模式:不协商,只接配etherchannel


SW1、SW2:
int range f0/23 ,f0/24
  channel-group 1 mode on 将这两个接口绑定为一组并指定on模式

interface  port-channel  1
  switchport  mode  trunk 指定接口模式为trunk,如不指定,会自动继承物理接口的模式

show etherchannel summary 可以看到绑定了多少接口
Show interface etherchannel

Port Aggregation Protocol (PAgP)端口汇聚协议
Cisco私有技术,这个协议又有两种模式:
  auto:被动  
 Desirable:主动 会发也会收协商消息




SW1:
int range f0/23 ,f0/24
  channel-group 1 mode desible

SW2:
int range f0/23 ,f0/24
  channel-group 1 mode auto

interface  port-channel  1
  switchport  mode  trunk

Link Aggregation Control Protocol (LACP) 链路聚合控制协议
802.3ad,业界标准
 Passvie相当于PAgP的auto  
 Active相当于PAgP的desirable  又发又收协商消息



SW1:
int range f0/23 ,f0/24
  channel-group 1 mode passive

SW2:
int range f0/23 ,f0/24
  channel-group 1 mode active

interface  port-channel  1
  switchport  mode  trunk

show etherchannel 1 summary
show etherchannel  summary  查看所有的group
还有一种好的办法是先对每个接口封装trunk,再划入channel-group中,channel-group接口会自动继承trunk

注:channel-group接口会自动继承第一个物理接口的接口配置模式,或最先配置的接口模式。

配置三层channel
所谓三层的channel其实就是将多个三层接口绑定。只能在三层交换机上配置。

在3550这样的交换机上,所有接口默认都是二层接口。首先需要将交换机的的二层接口改为三层接口。可用以下命令实现:



将二层接口改成三层接口:
interface  range f0/23 - 24
  no  switchport

然后再绑定:
interface  range f0/23 - 24
  channel-group  1  mode  desirable

给channel通道配上IP地址:
interface  port-channel  1
  ip  address  100.1.1.1  255.255.255.0

配置etherchannel负载均衡

默认情况下是基于源MAC地址的负载均衡

port-channel load-balance [dst-mac|src-mac]

show etherchannel load-balance

沙发 2014-11-13 20:54:42 回复 收起回复
回复

使用道具 举报

发表于 2014-11-13 22:07:17 | 显示全部楼层
SW1:
int range f0/23 ,f0/24
  channel-group 1 mode passive

SW2:
int range f0/23 ,f0/24
  channel-group 1 mode active

interface  port-channel  1
  switchport  mode  trunk

show etherchannel 1 summary
show etherchannel  summary  查看所有的group
还有一种好的办法是先对每个接口封装trunk,再划入channel-group中,channel-group接口会自动继承trunk

注:channel-group接口会自动继承第一个物理接口的接口配置模式,或最先配置的接口模式。

配置三层channel
所谓三层的channel其实就是将多个三层接口绑定。只能在三层交换机上配置。

在3550这样的交换机上,所有接口默认都是二层接口。首先需要将交换机的的二层接口改为三层接口。可用以下命令实现:



将二层接口改成三层接口:
interface  range f0/23 - 24
  no  switchport

然后再绑定:
interface  range f0/23 - 24
  channel-group  1  mode  desirable

给channel通道配上IP地址:
interface  port-channel  1
  ip  address  100.1.1.1  255.255.255.0

配置etherchannel负载均衡

默认情况下是基于源MAC地址的负载均衡

port-channel load-balance [dst-mac|src-mac]

show etherchannel load-balance
板凳 2014-11-13 22:07:17 回复 收起回复
回复

使用道具 举报

发表于 2014-11-14 08:20:50 | 显示全部楼层
地板 2014-11-14 08:20:50 回复 收起回复
回复

使用道具 举报

发表于 2014-11-14 10:39:06 | 显示全部楼层
拿分走人呵呵,楼下继续!
5# 2014-11-14 10:39:06 回复 收起回复
回复

使用道具 举报

发表于 2016-12-23 00:17:29 | 显示全部楼层
如果一端是一台服务器呢?
6# 2016-12-23 00:17:29 回复 收起回复
回复

使用道具 举报

发表于 2016-12-23 16:34:13 | 显示全部楼层
谢了,看着你的信息,解决了问题
7# 2016-12-23 16:34:13 回复 收起回复
回复

使用道具 举报

发表于 2016-12-23 16:34:18 | 显示全部楼层
谢了,看着你的信息,解决了问题
8# 2016-12-23 16:34:18 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-6-3 19:40 , Processed in 0.085945 second(s), 25 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表