聚合链路:
聚合链路协议:
PAGP(端口聚合和协议)
|
cisco专有
|
LACP(链路聚合协议)
|
公共标准
|
PAGP协商规律:
desirable表示主动协商 ,Auto表示被动协商,on表示强制端口不使用PAGP或LACP进行协商来形成
EtherChannel。(是表示可以建立隧道,否则反之)
模式
|
on
|
desirable
|
auto
|
是
|
否
|
否
|
|
是
|
|||
auto
|
否
|
passive
|
|
passive
|
否
|
display: inline-block; " alt="" src="file:///C:/Users/lovexm/AppData/Local/youdao/ynote/images/EDAE3BC1B3A146C6A2704DEE0912EBF6/FE886E26DC7C4916A5BE182106CD3347.jpg">
下面我就用PAGP协议配置:
display: inline-block; " alt="" src="file:///C:/Users/lovexm/AppData/Local/youdao/ynote/images/EDAE3BC1B3A146C6A2704DEE0912EBF6/FE886E26DC7C4916A5BE182106CD3347.jpg">
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的汇总信息