当前位置:文档之家› 端口聚合配置命令

端口聚合配置命令


Switch>
Switch>en
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface range e0/0-3
Switch(config-if-range)#channel-?
channel-group channel-protocol
Switch(config-if-range)#channel-group ?
<1-255> Channel group number
Switch(config-if-range)#channel-group 1 ? 建立聚合逻辑端口AP1
mode Etherchannel Mode of the interface

Switch(config-if-range)#channel-group 1 m
Switch(config-if-range)#channel-group 1 mode ? 建立端口的方式
active Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected

//两种链路聚合协议,一种是思科独有的协议PAgP(Port Aggregation Protocol),另一种是基于IEEE802.3ad的标准的链路聚合控制协议LACP(Link Aggregate Control Protocol)
Switch(config-if)#channel-protocol pagp/lacp 通常无需使用

Port Aggregation Protocol (PAgP)端口汇聚协议
Cisco私有技术,这个协议又有两种模式:
On: 强制端口不使用PAGP而形成etherchannel
off: 防止端口形成etherchannel
auto: 默认自动,被动协商,端口接收PAGP,就形成etherchannel
Desirable:主动 端口利用PAGP形成etherchannel,推荐
Router(config-if-range)#channel-group 1 mode on/desirable/auto

Link Aggregation Control Protocol (LACP) 链路聚合控制协议
802.3ad,业界标准
On: 强制端口不使用LAGP而形成etherchannel
Off: 防止端口形成etherchannel
Passvie: 默认自动,被动协商,端口接收LAGP,就形成etherchannel
Active: 主动 端口利用LAGP形成etherchannel,推荐
Router(config-if-range)#channel-group 1 mode on/Active/Passvie
Switch(config-if)#lacp port-priority ** LACP端口优先值
Switch(config)#lacp syetem-priority ** LACP系统优先值



Switch(config-if-range)#channel-group 1 mode desirable
Creating a port-channel interface Port-channel 1

Switch(config-if-range)#
*Dec 5 15:30:34.255: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to down
*Dec 5 15:30:34.265: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to down
*Dec 5 15:30:34.265: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/2, changed state to down

Switch(config-if-range)#exit 退出
Switch(config)#
Switch(config)#interface port-channel 1 进入聚合端口的端口配置模式
Switch(config-if)#switchport trunk encapsulation dot1q 封装协议
Switch(config-if)#switchport mode trunk 设置为trunk模式






相关主题
文本预览
相关文档 最新文档