Sei sulla pagina 1di 13

CentralTECH

Curso de Redes IP

1 © Copyright
© Copyright 2013-CentralTECH
2013 CentralTECH www.cteducacion.com-- www.cteducacion.com
masinfo@cteducacion.com - masinfo@cteducacion.com
Índice
EtherChannel - Consideraciones

EtherChannel – Negociación

EtherChannel – Balanceo de Carga

Preguntas

© Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com


EtherChannel
Introducción – Consideraciones
EtherChannel es el término de Cisco para la Con STP
agrupación de dos o más enlaces Ethernet físicos,
con el fines de realizar agregación de ancho de
banda disponible, proporcionando
adicionalmente una medida de la redundancia
física.
BW Disponible: 100 Mbps

Con EtherChannel configurado, múltiples interfaces


EtherChannel + STP
se agrupan en un grupo de puertos, al cual se le
asigna su propia interface virtual configurable
(Port-Channel). El grupo de interfaces Po1, es
tratado como un único enlace.
Todas las interfaces que pertenecen al
BW Disponible: 400 Mbps Etherchannel, deben tener exactamente la misma
configuración.
3 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com
EtherChannel
Negociación
EtherChannel utiliza tres mecanismos Cualquiera de estos tres mecanismos será
para poder establecer la agrupación de suficiente para la mayoría de los
interfaces. escenarios, sin embargo, la elección se
merece cierta consideración.
PAgP Protocolo propietario de CISCO
• PAgP probablemente debería ser
descalificado como un protocolo propietario,
LACP IEEE 802.3ad – Protocolo estándar a menos que tenga una necesidad específica
• para ello (algunos switches solo soportan
PAgP).
Static Persistent No utiliza protocolo de negociación

Eso deja a LACP y “static", mejor vistos de


cara a una implementación.
4 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com
EtherChannel
Negociación
EtherChannel + STP
LACP y PAgP colaboran con STP y sus
derivados, a los fines de reducir los TC
enviados a la red, por caídas en las interfaces
físicas.
STP monitoreará, solo el estado de la
BW Disponible: 400 Mbps
interface lógica Po1.

EtherChannel + STP Ante una caída física de alguna interface, STP


modifica el nuevo costo de la interface Po1, e
informa a sus pares sobre el cambio, el cual no
tendrá efectos de disrupción de tráfico.
El BPDU de STP, solo se envía por el primer
BW Disponible: 400 Mbps puerto activo del Port-Channel.

5 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com


EtherChannel
Negociación
Para configurar un EtherChannel utilizando LACP
negociación LACP, cada parte debe estar
ajustado a tener el rol de activo o pasivo. Sólo Active Passive
las interfaces configuradas en modo activo Active Si Si
intentarán negociar un EtherChannel, enviando
frames LACP a una dest-mac específica. Las Passive Si NO
interfaces pasivas, solo responden solicitudes.

PAgP PAgP se comporta de la misma forma, pero los


roles de los puertos hacen referencia a Desirable
Desirable Auto o Auto.
Desirable Si Si Recuerdo que dos puertos vecinos en Pasive, o
Auto, no formarán un Etherchannel, ya que
Auto Si NO ninguno envía mensajes de control del
Protocolo, para formar un Po1.
6 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com
EtherChannel
Configuración
Para poder configurar un EtherChannel Para verificar el estado nos basta con
solo necesitamos unas pocas líneas de ejecutar el comando show etherchannel
configuración. summary
Si el switch lo soporta, puede utilizar el S1# show etherchannel summary
Flags: D - down P - bundled in port-channel
keyword “interface range”. I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
S1(config)# interface range f0/13 -15
S1(config-if-range)# channel-group 1 mode ? M - not in use, minimum links not met
active Enable LACP unconditionally u - unsuitable for bundling
auto Enable PAgP only if a PAgP device is detected w - waiting to be aggregated
desirable Enable PAgP unconditionally d - default port
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected Number of channel-groups in use: 1
Number of aggregators: 1
S1(config-if-range)# channel-group 1 mode active Group Port-channel Protocol Ports
Creating a port-channel interface Port-channel 1 ------+-------------+-----------+------------------------------------
-----------
1 Po1(SD) LACP Fa0/13(D) Fa0/14(D) Fa0/15(D)

7 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com


EtherChannel
Configuración
El lado opuesto de la EtherChannel LACP Cuando están habilitados los puertos
normalmente se configura como pasive, miembros en ambos lados de la
sin embargo, puede ser activa también. EtherChannel, la interfaz también pasa al
estado UP.

S2(config)# interface range f0/13 -15 *Mar 1 00:45:50.647: %LINK-3-UPDOWN: Interface


S2(config-if-range)# channel-group 1 mode ? FastEthernet0/14, changed state to up
active Enable LACP unconditionally *Mar 1 00:45:50.683: %LINK-3-UPDOWN: Interface
auto Enable PAgP only if a PAgP device is detected FastEthernet0/13, changed state to up
desirable Enable PAgP unconditionally *Mar 1 00:45:50.691: %LINK-3-UPDOWN: Interface
on Enable Etherchannel only FastEthernet0/15, changed state to up
passive Enable LACP only if a LACP device is detected *Mar 1 00:45:53.487: %LINK-3-UPDOWN: Interface Port-
channel1, changed state to up
S2(config-if-range)# channel-group 1 mode passive

8 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com


EtherChannel
Configuración
En el transcurso de 3 segundos, los S1# show etherchannel summary
Flags: D - down P - bundled in port-channel
puertos miembros del Etherchannel, I - stand-alone s - suspended
H - Hot-standby (LACP only)

pasan al estado UP. R - Layer3


U - in use
S - Layer2
f - failed to allocate aggregator

Una vez que lo hicieron, se puede ver el M - not in use, minimum links not met
u - unsuitable for bundling

estado del EtherChannel ha cambiado a w - waiting to be aggregated


d - default port

“in use“ (“U”) Number of channel-groups in use: 1


Number of aggregators: 1

Group Port-channel Protocol Ports


NOTA: podemos ver que la “S” nos indica el ------+-------------+-----------+------------------------------------
-----------
funcionamiento en LAYER2. En el caso de 1 Po1(SU) LACP Fa0/13(P) Fa0/14(P) Fa0/15(P)

contar con un dispositivo multicapa se puede


configurar el mismo bundle pero a nivel
LAYER3

9 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com


EtherChannel
Configuración
Para poder compararlo vamos a forzarlo Esta vez, se observa que la interfaz port-
sin protocolo de negociación. A modo channel está activado tan pronto como su
“STATIC – ON”. primer puerto de miembro aparece, ya que
Esta modalidad, fuerza a la interface a no hay demora impuesta por la
participar del etherchannel. negociación:
S1(config)# no interface po1 *Mar 1 00:56:12.271: %LINK-3-UPDOWN: Interface
S1(config)# interface range f0/13 -15 FastEthernet0/13, changed state to up
S1(config-if-range)# channel-group 1 mode on *Mar 1 00:56:12.287: %LINK-3-UPDOWN: Interface Port-
Creating a port-channel interface Port-channel 1 channel1, changed state to up
*Mar 1 00:56:12.291: %LINK-3-UPDOWN: Interface
S1(config-if-range)# no shutdown FastEthernet0/14, changed state to up
*Mar 1 00:56:12.307: %LINK-3-UPDOWN: Interface
FastEthernet0/15, changed state to up

10 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com


EtherChannel
Configuración
EtherChannel posee diversas opciones En base al esquema seleccionado, el switch
para balancear tráfico entre las realiza un hash con la mac (src o dst), y le
interfaces. asigna a dicha mac, una interface default
El balanceo del tráfico L2 dentro del Po1, de Salida. De esta manera, el balanceo
se realiza técnicamente observando las técnicamente es por MAC.
dest-mac y las src-mac
S1(config)# port-channel load-balance ?
P:¿Qué campos se pueden considerar?
dst-mac Dst Mac Addr
src-mac Src Mac Addr R: Depende de la plataforma y la
configuración del switch.
Algunos switches de Layer 3, configurando
el Etherchannel como L3, soportan
balancar por src-ip, dst-ip, etc.
11 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com
EtherChannel
Configuración
El comando “show etherchannel load- Plataformas más potentes pueden
balance” nos muestrea que la dirección balancear con la dirección IP o puertos L4.
MAC origen, es el mecanismo de balanceo En términos generales, los campos de capa
por default en los Catalyst 3550: superior son más favorables, ya que tiende
a ser más dinámica el resultado del hash, lo
que resulta en una distribución más
S1# show etherchannel load-balance
EtherChannel Load-Balancing Configuration: granular de tráfico
src-mac

EtherChannel Load-Balancing Addresses Used Per-Protocol:


Non-IP: Source MAC address Por último, recuerde que el ancho de banda
IPv4: Source MAC address
percibido de una interfaz EtherChannel es igual
a la suma de sus vínculos miembros activos.

12 © Copyright 2013 CentralTECH - www.cteducacion.com - masinfo@cteducacion.com


¿Preguntas?

13 © Copyright
© Copyright 2013-CentralTECH
2013 CentralTECH www.cteducacion.com-- www.cteducacion.com
masinfo@cteducacion.com - masinfo@cteducacion.com

Potrebbero piacerti anche