设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 5906|回复: 38
收起左侧

[分享] 思科配置实例系列---Cisco交换机链路聚合

  [复制链接]
 成长值: 59260
发表于 2011-7-9 11:23:54 | 显示全部楼层 |阅读模式
1111.gif

下面是局域网的核心交换机(三层交换)和二层交换之间的端口聚合的操作实例:
    2950
    Switch>en
    Switch#conf t
    Enter configuration com mands, one per line.  End with CNTL/Z.
    Switch(config)#int f0/1
    Switch(config-if)#channel-group 1 mode on
    %LINK-5-CHANGED: Interface Port-channel 1, changed state to up
    %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to upSwitch(config-if)#int f0/2
    Switch(config-if)#channel-group 1 mode on
    3560
    Switch(config)#int port-channel 1
    Switch(config-if)#exit
    Switch(config)#ip routing(默认已经启用了路由功能)
    Switch(config)#int port-channel 1
    Switch(config-if)#no switchport
    Switch(config-if)#ip add 1.1.1.1 255.0.0.0
    Switch(config-if)#no shut
    Switch(config-if)#exit
    Switch(config)#int f0/1
    Switch(config-if)#no switchport
    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch(config-if)#
    Switch(config-if)#no ip add
    Switch(config-if)#channel-group 1 mode ?
      active     Enable LACP unconditionally
      auto       Enable PAgP only if a PAgP device is detected
      desirable  Enable PAgP unconditionally
      on         Enable Etherchannel only
      passive    Enable LACP only if a LACP device is detected
    Switch(config-if)#channel-group 1 mode on
    %LINK-5-CHANGED: Interface Port-channel 1, changed state to up
    %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to upSwitch(config-if)#
    Switch(config-if)#int f0/2
    Switch(config-if)#no switchport
    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to upSwitch(config-if)#no ip add
    Switch(config-if)#no ip address
    Switch(config-if)#channel-group 1 mode on
    Switch(config-if)#exit
    Switch(config)#int f0/3
    Switch(config-if)#no switchport
    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#ip add 2.2.2.1 255.0.0.0
    Switch(config-if)#no shut

    端口聚合可使流量在多条物理链路上负载均衡,同时也起到了链路的备份作用。但是在某些设备里,应注意聚合链路两端接口的速率,工作模式,例如在快以中,可将各个端口设置为speed 100,duplex full。




                               
登录/注册后可看大图
该贴已经同步到 小乔的微博
发表于 2011-7-9 12:46:14 | 显示全部楼层
刚学习,还有点看不懂
沙发 2011-7-9 12:46:14 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-7-9 15:25:52 | 显示全部楼层
板凳 2011-7-9 15:25:52 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-7-22 17:35:55 | 显示全部楼层
再来看看。。。
地板 2011-7-22 17:35:55 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-7-27 09:57:13 | 显示全部楼层
5# 2011-7-27 09:57:13 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-8-19 11:13:25 | 显示全部楼层
是以太通道的意思!
6# 2011-8-19 11:13:25 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-8-23 09:05:54 | 显示全部楼层
7# 2011-8-23 09:05:54 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-11-1 14:42:00 | 显示全部楼层
qingda de
8# 2011-11-1 14:42:00 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-11-29 17:31:18 | 显示全部楼层
9# 2011-11-29 17:31:18 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-6-26 16:19:40 | 显示全部楼层
没拓扑图啊
10# 2012-6-26 16:19:40 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-11-28 13:59:43 | 显示全部楼层
11# 2012-11-28 13:59:43 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-8-15 04:38:58 | 显示全部楼层
12# 2013-8-15 04:38:58 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-11-26 15:40:17 | 显示全部楼层
三层交换机在配置etherchannel时为什么要配置ip地址,还有陪ip地址的作用是什么?可是两个直连的Portchannel接口为什么ping不通?
13# 2013-11-26 15:40:17 回复 收起回复
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-2 10:40 , Processed in 0.064474 second(s), 9 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

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