什么是发动机正常抖动?:《交换机的通道技术》

来源:百度文库 编辑:偶看新闻 时间:2024/04/27 18:56:22
     《交换机的通道技术》    交换机通道技术是将交换机的多个端口捆绑使用,也叫端口的聚合。其作用是
提高网络带宽,增加了可靠性。
    配置二层通道时,首先要把捆绑的端口划分到指定的VLAN或trunk。
    配置三层通道时,用no switchport关闭二层端口,设置通道IP地址。
    组成通道的端口称为成员(<8),所有成员的参数应该一致,如工作模式、封装
的协议、端口类型、端口花费、优先级等,并使用第一个端口的参数。
    端口协商方式:
    手动方式:端口成员两端模式mode为on。
    自动方式:
    PAgP(Port Aggregation Protocol)Cisco设备专用聚合协议。auto模式在协
商中只收不发,desirable模式收发协商的数据包。
    LACP(Link aggregation Control Protocol)通用聚合协议802.3ad。active
相当于PAgP的auto,而passive相当于PAgP的desirable。    定义PAgP 地址的学习方法:
switch(config-if)#pagp learn-method {aggregation-port|physical-port}
    aggregation-port:使用逻辑端口(通道号)。
    physical-port:使用物理端口,需要启动源MAC负载平衡方式。    定义PAgP 端口的优先级:
switch(config-if)#pagp port-priority
number:取值0~255。
    定义LACP 端口的优先级:
switch(config-if)#lacp port-priority
number:取值0~65536。
    定义LACP 系统的优先级:
switch(config)#lacp system-priority
number:取值0~32768。    建立通道及协商模式命令
switch(config-if-range)#channel-protocol {pagp|lacp}
switch(config-if-range)#channel-group mode <
{auto|desirable|on}|{active|passive}>    显示通道信息命令:
switch#show etherchannel [] {detail|summary}
    其中 detail表示详细的,summary表示综合的。    通道端口间的负载平衡
scr-mac:源MAC地址相同的数据帧使用同一个端口转发。
dst-mac:目的MAC地址相同的数据帧使用同一个端口转发。
    命令格式:
switch(config)#port-channel load-balance {scr-mac|dst-mac}    例题:交换机间的端口聚合switchA#conf t
switchA(config)#int range f0/3 -6
switchA(config-if-range)#switchport mode access
switchA(config-if-range)#switchport access vlan 2
switchA(config-if-range)#channel-protocol pagp
switchA(config-if-range)#channel-group 2 mode desirable
Creating a port-channel interface Port-channel 2
switchA(config-if-range)#no shutdown
switchA(config-if-range)#exit
switchA(config)#exit
switchA#switchB#conf t
switchB(config)#int range f0/3 -6
switchB(config-if-range)#switchport mode access
switchB(config-if-range)#switchport access vlan 2
switchB(config-if-range)#channel-protocol pagp
switchB(config-if-range)#channel-group 2 mode auto
Creating a port-channel interface Port-channel 2
switchB(config-if-range)#no shutdown
switchB(config-if-range)#exit
switchB(config)#exit
switchB#