小乔 发表于 2011-7-9 11:23:54

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



下面是局域网的核心交换机(三层交换)和二层交换之间的端口聚合的操作实例:    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
      desirableEnable 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。



http://bbs.hh010.com/xwb/images/bgimg/icon_logo.png 该贴已经同步到 小乔的微博

华盛网络 发表于 2011-7-9 12:46:14

刚学习,还有点看不懂

shuhan 发表于 2011-7-9 15:25:52

{:6_291:}{:6_291:}{:6_291:}

戒掉自由 发表于 2011-7-22 17:35:55

再来看看。。。{:6_267:}

谁家老西儿 发表于 2011-7-27 09:57:13

{:6_267:}{:6_267:}

iook163 发表于 2011-11-1 14:42:00

qingda de

mychong888 发表于 2011-8-19 11:13:25

是以太通道的意思!

y384510327 发表于 2011-8-23 09:05:54

{:6_267:}{:6_267:}

伤城 发表于 2011-11-29 17:31:18

{:6_280:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}

zsb8090 发表于 2012-6-26 16:19:40

没拓扑图啊

SunDuke 发表于 2012-11-28 13:59:43

{:6_275:}{:6_275:}

cec 发表于 2013-8-15 04:38:58

{:6_264:}

糊里糊涂 发表于 2013-11-26 15:40:17

三层交换机在配置etherchannel时为什么要配置ip地址,还有陪ip地址的作用是什么?可是两个直连的Portchannel接口为什么ping不通?

langya326 发表于 2014-1-12 10:53:36

8ygby98gb

dxepvo 发表于 2014-1-13 11:58:57

{:6_267:}{:6_267:}{:6_267:}
页: [1] 2 3
查看完整版本: 思科配置实例系列---Cisco交换机链路聚合