Cieľom etherchannelu je formovať logické rozhranie násobnej priepustnosti, ktoré je vyskladané z niekoľkých fyzických rozhraní.
Na formovanie etherchannelu sa používajú 2 protokoly:
- PAgP? - Port Aggregation Protocol
- LACP - Link Aggregation Control Protocol
PAgP? má varianty:
- auto (default) - odpovedá na PAgp pakety, ale nesnaží sa vyjednať portchannel (etherchannel)
- desirable - vysiela pakety a snaží sa vyjednať portchannel
- on - nevyužíva sa PAgP?, nanútene je port portchannelom
LACP má varianty:
- passive (default) - odpovedá na LACP pakety, ale nesnaží sa vyjednať portchannel (etherchannel)
- active - vysiela LACP pakety a snaží sa vyjednať portchannel
- on - nevyužíva sa LACP, nanútene je port portchannelom
Konfigurácia
SW(config)# interface portchannel ....
SW(config)# interface ...
SW(config-int)# channel protocol {pagp|lacp}
SW(config-int)# channel-group 1 mode {active|on|auto|desirable|passive}
SW(config)# port-channel load-balance load-balance-type
- src-mac: Source MAC address
- dst-mac: Destination MAC address
- src-dst-mac: Source and destination MAC addresses
- src-ip: Source IP address
- dst-ip: Destination IP address
- src-dst-ip: Source and destination IP addresses (default)
- src-port: Source TCP/User Datagram Protocol (UDP) port
- dst-port: Destination TCP/UDP port
- src-dst-port: Source and destination TCP/UDP ports
SW# show etherchannel load-balance