聚合链路:

    聚合链路协议:
PAGP(端口聚合和协议)
cisco专有
LACP(链路聚合协议)
公共标准
PAGP协商规律: desirable表示主动协商 ,Auto表示被动协商,on表示强制端口不使用PAGP或LACP进行协商来形成 EtherChannel。(是表示可以建立隧道,否则反之)
模式
on
desirable
auto
on
desirable
auto
LACP协商规律: ative表示主动协商 ,Passive表示被动协商,on表示强制端口不使用PAGP进行协商来形成 EtherChannel。(是表示可以建立隧道,否则反之)
模式
on
ative
passive
on
ative
passive

下面我就用PAGP协议配置:


SW1(config)# int range f0/1 -2
SW1(config-if-range)# channel-protocol pagp  //指定通道的协议类型
SW1(config-if-range)# channel-group 1 mode desirable  //创建port-channel端口,并为端口定义模式
SW1(config)# int port-channel 1 //进入通道1
SW1(config-if)#switchport trunk encapsulation dot1q  
SW1(config-if)#switchport mode trunk
 
SW2(config)# int range f0/1 -2
SW2(config-if-range)# channel-protocol pagp  //指定通道的协议类型
SW2(config-if-range)# channel-group 1 mode desirable  //创建port-channel借口,并为端口定义模式
SW2(config)# int port-channel 1 //进入通道1
SW2(config-if)#switchport trunk encapsulation dot1q  
SW2(config-if)#switchport mode trunk
 
 
其他的协议大致也是这样配置的。
 
几种查看命令:
show etherchannel port-channel  //查看etherchannel 的工作状态
show etherchannel summary    //查看etherchannel的汇总信息