Cisco端口聚合

所有主机均属vlan1

交换机间接口配置为trunk

  实例:

 

 

 

配置3PC机的ip地址

SW1配置

Switch>enable

Switch#conf terminal

Switch(config)#hostname SW1

SW1(config)#interface range f0/1-2

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

SW1 (config-if-range)#channel-protocol pagp

SW1 (config-if-range)#channel-group 1 mode desirable   #企望(desirable),主动发起请求,主要用于观察实验效果,如果两端交换机都设置为on,效果不明显

SW1 (config-if-range)#exit

Switch#show etherchannel summary

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

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

 

1      Po1(SD)           PAgP   Fa0/3(I) Fa0/4(I)

SW2配置

Switch>enable

Switch#conf terminal

Switch(config)#hostname SW1

SW2(config)#interface range f0/1-2

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

SW2 (config-if-range)#channel-protocol pagp

SW2 (config-if-range)#channel-group 1 mode auto  #自动模式

SW2 (config-if-range)#exit

SW2#show etherchannel summary

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

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

 

1      Po1(SU)           PAgP   Fa0/1(P) Fa0/2(P)

 

这时再查看交换机SW1上的结果

Switch#show etherchannel summary

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

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

 

1      Po1(SU)           PAgP   Fa0/3(P) Fa0/4(P)

 

 

                                   PAgP模式

模式

含义

开启(on)

端口不进行协商,直接形成以太网通道;在这种模式下,对端也必须是on模式,以太网通道才能正常工作

关闭(off)

阻止端口形成以太网通道

自动(auto)

在自动模式下,被动的监听,不主动发起协商,等待PAgP协议请求数据包,当出现请求是才进行以太网通道的协商

企望(desirable)

这种模式主动发起请求对端交换机进行以太网通道的协商

 

 

 

你可能感兴趣的:(端口,Cisco,聚合)