设为首页收藏本站

IT视频教程网

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1756|回复: 3
打印 上一主题 下一主题

Cisco交换机链路聚合

[复制链接]

41

主题

43

帖子

322

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
322
跳转到指定楼层
楼主
发表于 2015-12-10 17:00:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
下面是局域网的核心交换机(三层交换)和二层交换之间的端口聚合的操作实例:

    2950

    Switch>en

    Switch#conf t

    Enter configuration commands, 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。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

 
 
在线客服
点击这里给我发消息
工作时间:
6:00-23:00
微信扫一扫有惊喜

QQ|Archiver|手机版|小黑屋|经典IT视频网    

GMT+8, 2024-4-26 12:08 , Processed in 0.087334 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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