欢迎光临重庆协创IT国际认证中心!

收藏本站 .网站地图 .联系我们

20年认证人才培训品牌

咨询热线:

023-65111115
023-65111116
  • 重庆协创教育
  • 协创教育_IT培训
  • 协创教育_国际认证
  • previous
  • next
您所在的位置:首页 > 文章集萃

Cisco交换机链路聚合

2011-3-15
投稿人:admin

下面是局域网的核心交换机(三层交换)和二层交换之间的端口聚合的操作实例:

    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。

 

出处:51cto


您的评论

评论者: 请填写您的姓名,方便我们联系您
评论内容:
请填写您的评论内容, 内容不能超过200字哟!有您的支持,是我们不断前进的动力,感谢您的支持!
  
相关评论更多
Copyright: Chongqing Co-Founder of Network Technology Education Center (c) 2005-2021 All Rights
版权所有:重庆协创IT国际认证中心(c)2005-2011 All Rights 网站备案号:渝ICP备17014127号-1
地址:重庆市沙坪坝区小龙坎新街86号嘉多利广场11-7     联系电话:023-65111115   023-65111116
站长统计 技术支持:重庆网络推广专家