快捷搜索:  as  test  1111  test aNd 8=8  test++aNd+8=8  as++aNd+8=8  as aNd 8=8

永乐国际f6601cm: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(co永乐国际f6601cmnfig-if)#

Switch(config-if)#no ip add

Switch(config-if)#channel-group 1 mode ?

activeEnable LACP unconditionally

autoEnable PAgP only if a PAgP device is detected

desirableEnable PAgP unconditionally

onEnable Ethe永乐国际f6601cmrchannel only

passiveEnable 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, 永乐国际f6601cmchanged 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 Inter永乐国际f6601cmface FastEthernet0/3, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(con永乐国际f6601cmfig-if)#ip add 2.2.2.1 255.0.0.0

Switch(config-if)#no shut

端口聚合可使流量在多条物理链路上负载均衡,同时也起到了链路的备份感化。然则在某些设备里,应留意聚合链路两端接口的速度,事情模式,例如在快以中,可将各个端口设置为speed 100,duplex full。

免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。

您可能还会对下面的文章感兴趣: