<\/span><\/h2>\nAs standard a portchannel will present a single MAC address, the switch will use the MAC address of the first physical port that is initiated within the bundle.<\/p>\n
EtherChannel Guard is a feature that detects etherchannel misconfigurations between the switch and its neighbor. If more then one MAC address is seen from its neighbor the switch will place the interfaces into error-disabled. This prevents situations where one end is cabled to the wrong port which could lead to bridging loops.<\/p>\n
(config)# spanning-tree etherchannel guard misconfig<\/pre>\n<\/span>Configuration Options<\/span><\/h2>\nThere are 3 main etherchannel configuration options. They are,<\/p>\n
\n- PAgP<\/strong> – Port Aggregation Protocol (PAgP), a Cisco\u00a0proprietary standard for building etherchannels.<\/li>\n
- LACP<\/strong> – LACP (Link Aggregation Control Protocol) is an open standards protocol (IEEE802.3ad) for building etherchannels.<\/li>\n
- Manual<\/strong> – No negotiation protocol is used and the etherchannel is statically created.<\/li>\n<\/ul>\n
<\/span>PAgP<\/span><\/h3>\nPort Aggregation Protocol\u00a0(PAgP) is a Cisco\u00a0proprietary standard that allows multiple physical interfaces to be aggregated into one logical link.
\nEach logical link can contain up-to 8 physical members.<\/p>\n
<\/span>Modes<\/span><\/h4>\nWithin PAgP there are 2 modes available, Desirable <\/strong>and Auto.<\/strong><\/p>\n\n- Desirable<\/strong> – Enables PAgP unconditionally ; Actively sends packets to its neighbor in order to negotiate PAgP.<\/li>\n
- Auto<\/strong> – Awaits PAgP packets from its neighbor before initiating PAgP<\/li>\n<\/ul>\n
In addition to these modes there are 2 forms of operation, Non-Silent<\/strong> and Silent<\/strong>.<\/p>\n\n- Non-Silent<\/strong> – The bundle is not initiated until bidirectional traffic is detected. Non-Silent provides the ability to protect against unidirectional failures on fibre based connections.<\/li>\n
- Silent<\/strong> – This is the default setting on the majority of copper based switches. With this form of operation the bundle is initiated even if no traffic is seen.<\/li>\n<\/ul>\n
<\/span>Create PAgP Bundle<\/span><\/h4>\nCreating an LACP bundle is simple, you define the port-channel number on each of the interfaces.<\/p>\n
Switch(config-if)#interface range gi0\/1-3\r\nSwitch(config-if-range)#channel-group 33 mode desirable<\/span>\r\nCreating a port-channel interface Port-channel 33<\/pre>\n<\/span>Learning Method<\/span><\/h4>\nThere are 2 methods for learning, physical<\/strong> and aggregated.<\/strong><\/p>\n\n- aggregation-port<\/strong> – (Default) The switch learns the addresses on the aggregated port. Traffic is sent back to the source using any of the ports within the bundle.<\/li>\n
- physical-port<\/strong> – The switch learns the source MAC address on the physical port the packet has come in on. Traffic is then sent back out the same physical port.<\/li>\n<\/ul>\n
Note : This is configured within the interface configuration.<\/p>\n
Switch(config-if)# pagp learn-method physical-port<\/pre>\n<\/span>Show Commands<\/span><\/h4>\nIn addition to the show pagp ….<\/span> commands you can also review the status of the portchannel via the command below,<\/p>\nSwitch#show etherchannel 33 summary \r\nFlags: D - down P - bundled in port-channel\r\n I - stand-alone s - suspended\r\n H - Hot-standby (LACP only)\r\n R - Layer3 S - Layer2\r\n U - in use N - not in use, no aggregation\r\n f - failed to allocate aggregator\r\n\r\n M - not in use, minimum links not met\r\n m - not in use, port not aggregated due to minimum links not met\r\n u - unsuitable for bundling\r\n w - waiting to be aggregated\r\n d - default port\r\n\r\n A - formed by Auto LAG\r\n\r\n\r\nNumber of channel-groups in use: 1\r\nNumber of aggregators: 1\r\n\r\nGroup Port-channel Protocol Ports\r\n------+-------------+-----------+-----------------------------------------------\r\n33 Po33(SU) PAgP Gi0\/1(P) Gi0\/2(P) Gi0\/3(P)<\/pre>\n<\/span>LACP<\/span><\/h3>\nLACP (Link Aggregation Control Protocol) is an open standards protocol (IEEE802.3ad) that allows multiple physical interfaces to be aggregated into one logical link.
\nEach logical link can contain up-to 8 physical members.<\/p>\n
<\/span>Modes<\/span><\/h4>\nWithin LACP there are 2 modes available, Active<\/strong> and Passive<\/strong>.<\/p>\n\n- Active<\/strong> – Within Active mode the switch tries to negotiate and form LACP with its neighbor.<\/li>\n
- Passive<\/strong> – Within Passive mode LACP is enabled but the switch waits for the neighbor to initiate the negotiation LACP.<\/li>\n<\/ul>\n
<\/span>Create LACP Bundle<\/span><\/h4>\nCreating an LACP bundle is simple, you define the port-channel number onto each of the interfaces.<\/p>\n
Switch(config-if)#interface range gi0\/1-3\r\nSwitch(config-if-range)#channel-group 33 mode active<\/span>\r\nCreating a port-channel interface Port-channel 33<\/pre>\n