您的当前位置:首页正文

cisco端口聚合

来源:九壹网
思科2950-48端口汇聚实例

port-channel

2950-48,怎样做端口汇聚. PS:划分了VLAN.

interface FastEthernet0/1 switchport mode trunk

!-- Configured port to be in trunking mode.

channel-group 1 mode on

!-- Assigned port to port channel 1.

!-- 2950 switches only support 802.1q encapsulation, which is the configured automatically

!-- when trunking is enabled on the interface by issuing the switchport mode trunk command.

!-- Note: The channel-group command is introduced in IOS 12.1. IOS 12.0 has the port group command !-- to configure channeling.

!

interface FastEthernet0/2 switchport mode trunk channel-group 1 mode on

!-- Assigned port to port channel 1. !

interface FastEthernet0/3 switchport mode trunk channel-group 1 mode on

!-- Assigned port to port channel 1. !

interface FastEthernet0/4 switchport mode trunk channel-group 1 mode on

!-- Assigned port to port channel 1. 补充一下

interface Port-channel1 switchport mode trunk

二层交换机2950实验5---cisco 2950 端口聚合例子 2010-01-20 11:39

二层交换机2950实验5---cisco 2950 端口聚合例子

端口聚合的作用:

把几个端口绑定起到增加带宽的作用(必须两必设定一样且是成结的绑定),如把二个100m的端品设

定为端口聚合,那么二个交换机交换数据就可以达到200M. 重点:

1.fa 0/1、fa 0/2与另一部交换机的fa 0/1、fa 0/2组成端口聚合,设定为channel-group 1,如果

fa0/1网络断掉时,fa0/2这根线是不会自己动连接上去的,这时端口聚合只是增加带宽,不会起到备用线

路的作用

2.fa 0/1、fa 0/2与另一部交换机的fa 0/1、fa 0/2组成端口聚合,设定为channel-group 1,fa 0/3

、fa 0/4与另一部交换机的fa 0/3、fa 0/4组成端口聚合,设定为channel-group 2,如果channel-group

1这二根线断掉时,channel-group 2会自己连接上去,即起到增加带宽,又起到备用线路的作用。

3.第一交换机的具体配置,第二个交换机例同: Switch(config)#interface fa0/1

Switch(config-if)#speed 100

Switch(config-if)#duplex full Switch(config)#interface fa0/2

Switch(config-if)#speed 100 Switch(config-if)#duplex full

Switch(config)#interface range fa0/1 -2 -----------------range为同时配置二个以上的接口

Switch(config-if-range)#channel-group 1 mode desirable --封装为自动协商模式

Switch(config-if-range)#switchport mode trunk

Switch(config-if-range)#switchport trunk allowed vlan all-允许所以vlan通过

Switch(config)#interface fa0/3

Switch(config-if)#speed 100

Switch(config-if)#duplex full Switch(config)#interface fa0/4

Switch(config-if)#speed 100 Switch(config-if)#duplex full

Switch(config)#interface range fa0/3 -4 -----------------range为同时配置二个以上的接口

Switch(config-if-range)#channel-group 2 mode desirable --封装为自动协商模式

Switch(config-if-range)#switchport mode trunk

Switch(config-if-range)#switchport trunk allowed vlan all-允许所以vlan通过

注:

(2950交换机没有encapsulation加密,打en dot1q会出错 Switch(config-if-range)#switchport trunk encap ? % Unrecognized command)

使用的命令是:show etherchannel summary -------------看端口汇聚状态 SD表示关闭,SU表示打开

--------------------------------------------------------- Switch#show etherchannel summary

Flags: D - down P - in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only)

R - Layer3 S - Layer2

U - in use f - failed to allocate aggregator u - unsuitable for bundling w - waiting to be aggregated d - default port

Number of channel-groups in use: 2 Number of aggregators: 2

Group Port-channel Protocol Ports

------+-------------+-----------+----------------------------------------------

1 Po1(SD) PAgP Fa0/1(D) Fa0/2(D) 2 Po2(SU) PAgP Fa0/23(P) Fa0/24(P)

R1#vlan database R1(vlan)#vlan 2 R1(vlan)#exit R1#configure terminal

R1(config)#int range fastethernet 0/1 - 4 R1(config-int-range)#switchport access vlan 2 R1(config-int-range)#channel-group 1 mode on R2#vlan database R2(vlan)#vlan 2 R2(vlan)#exit R2#configure terminal

R2(config)#int range fastethernet 0/1 - 4 R2(config-int-range)#switchport access vlan 2

R2(config-int-range)#channel-group 1 mode on

因篇幅问题不能全部显示,请点此查看更多更全内容

Top