Anda di halaman 1dari 24

Module 5: Implementing High Availability in a Campus Environment

Overview Descripción general

A network with high availability provides alternative Una red con alta disponibilidad ofrece medios por los que
means by which all infrastructure paths and key servers todos los caminos y la infraestructura de servidores de
can be accessed at all times. The Hot Standby Routing claves se puede acceder en todo momento. El Hot Standby
Protocol (HSRP) is one of those software features that can Routing Protocol (HSRP) es una de las características de
be configured to provide Layer 3 redundancy to network software que puede ser configurado para proporcionar
hosts. HSRP optimization provides immediate or link- redundancia de nivel 3 a los anfitriones de la red.
specific failover and a recovery mechanism. Virtual Optimización HSRP proporciona conmutación por error
Router Redundancy Protocol (VRRP) and Gateway Load específicos inmediata o de enlace y un mecanismo de
Balancing Protocol (GLBP) evolved from HSRP, recuperación. Virtual Router Redundancy Protocol
providing additional Layer 3 redundancy options. VRRP (VRRP) y Equilibrio de carga de puerta de enlace
is a vendor-neutral Layer 3 redundancy protocol and (Protocolo de GLBP) evolucionaron de HSRP,
GLBP is a Cisco-proprietary improvement to HSRP that proporcionando capa adicional de 3 opciones de
provides intrinsic load balancing. redundancia. VRRP es un proveedor de capa neutra 3
protocolo de redundancia y GLBP es un Cisco mejora
propiedad de HSRP que proporciona el equilibrio de carga
intrínseca

5.1 Configuring Layer 3 Redundancy with HSRP 5.1 Configuración de Capa 3 con HSRP de redundancia
5.1.1 Describing Routing Issues  5.1.1 Descripción de problemas de enrutamiento

When a default gateway is configured on a Cuando una puerta de enlace predeterminada está
device, there is usually no means by which to configure a configurado en un dispositivo, generalmente no hay
secondary gateway, even if a second route exists to carry medios para configurar una puerta secundaria, aunque
packets off the local segment. existe una segunda ruta para llevar los paquetes fuera del
segmento local.
For example, primary and secondary paths between the
Building Access and Building Distribution submodules Por ejemplo, los caminos primarios y secundarios entre el
provide continuous access if of a link fails at the Building acceso al edificio y submódulos de Edificios de
Access layer. Primary and secondary paths between the proporcionar acceso continuo en caso de que falle un
Building Distribution and Building Core layers provide enlace en la capa de acceso al edificio. Caminos primarios
continuous operations if a link fails at the Building y secundarios entre la distribución de la Construcción y la
Distribution layer. construcción de capas de Core proporcionar operaciones
continuas si un enlace falla en la capa de Edificios.
In Figure , router A is responsible for routing packets for
subnet A, and router B is responsible for handling packets B en la figura, un router es el responsable de enrutamiento
for subnet B. If router A becomes unavailable, routing de paquetes de una subred, y el router es el responsable de
protocols can quickly and dynamically converge and manejo de paquetes de subred B. Si un router no está
determine that router B will now transfer packets that disponible, los protocolos de enrutamiento de forma
would otherwise have gone through router A. However, rápida y dinámica convergen y determinar que el router B
most workstations, servers, and printers do not receive this ahora transferir paquetes que de otra manera han pasado
dynamic routing information. por router A. Sin embargo, la mayoría de estaciones de
trabajo, servidores, impresoras y no recibe esta
End devices are typically configured with a single default información de enrutamiento dinámico.
gateway IP address that does not change when network
topology changes occur. If the router whose IP address is Dispositivos finales suelen ser configurado con una única
configured as the default gateway fails, the local device is dirección IP de puerta de enlace predeterminada que no
unable to send packets off the local network segment, cambia cuando se producen cambios en la topología de la
effectively disconnecting it from the rest of the network. red. Si el router cuya dirección IP se configura como la
Even if a redundant router that could serve as a default puerta de enlace predeterminada no funciona, el
gateway for that segment exists, there is no dynamic dispositivo local no es capaz de enviar paquetes fuera del
method by which these devices can determine the address segmento de red local, de manera efectiva la desconexión
of a new gateway.

del resto de la red. Incluso si un router redundante que


podría servir de puerta de enlace predeterminada para este
segmento existe, no existe un método dinámico por el que
estos dispositivos pueden determinar la dirección de una
Cisco IOS software runs proxy Address Resolution nueva puerta de entrada.
Protocol (ARP) to enable hosts that have no knowledge of
routing options to obtain the MAC address of a gateway El software Cisco IOS se ejecuta proxy Address
that is able to forward packets off the local subnet. For Resolution Protocol (ARP) para permitir a los hosts que
example, if the proxy ARP router receives an ARP request no tienen conocimiento de las opciones de enrutamiento
for an IP address that it knows is not on the same interface para obtener la dirección MAC de una puerta de enlace
as the request sender, it generates an ARP reply packet que es capaz de reenviar los paquetes fuera de la subred
with its local MAC address as the destination MAC local. Por ejemplo, si el router proxy ARP recibe una
address of the IP address being resolved. The host that solicitud ARP para una dirección IP que se sabe no está en
sent the ARP request sends all packets destined for the la misma interfaz que el remitente de la petición, genera
resolved IP address to the MAC address of the router. The un paquete de respuesta ARP con su dirección MAC local
router then forwards the packets toward the intended host, como dirección MAC de destino de la dirección IP ser
perhaps repeating this process along the way. Proxy ARP resueltos. El servidor que envió la solicitud ARP envía
is enabled by default. todos los paquetes destinados a la dirección IP resuelta a la
dirección MAC del router. El router entonces envía los
paquetes hacia el host destino, tal vez la repetición de este
proceso en el camino. ARP proxy está activada por
With proxy ARP, the end-user station behaves as if the defecto.
destination device were connected to its own network
segment. If the responsible router fails, the source end Con ARP proxy, el final de la estación de usuario se
station continues to send packets for that IP destination to comporta como si el dispositivo de destino estaban
the MAC address of the failed router, and the packets are conectados a su propio segmento de red. Si el router no
therefore discarded. responsable, la estación terminal de origen continúa
enviando paquetes para ese destino IP a la dirección MAC
Eventually, the proxy ARP MAC address ages out of the del router no, y los paquetes, por lo tanto descartada.
workstation’s ARP cache. The workstation may eventually
acquire the address of another proxy ARP failover router, Finalmente, el proxy ARP de direcciones MAC edades de
but it cannot send packets off the local segment during this la estación de trabajo de caché ARP. La estación de trabajo
failover time. puede llegar a adquirir la dirección de otro router proxy
For further information on proxy ARP, refer to RFC 1027. ARP de conmutación por error, pero no puede enviar
paquetes fuera del segmento local durante este tiempo de
conmutación por error.

Para más información sobre ARP proxy, consulte RFC


1027.

5.1 Configuring Layer 3 Redundancy with HSRP 5.1 Configuración de Capa 3 con HSRP de redundancia
5.1.2 Identifying the Router Redundancy Process   5.1.2 Identificar el proceso de redundancia de router
Con este tipo de redundancia de enrutador y un conjunto
With this type of router redundancy and , a set of de routers de obras de concierto para presentar la ilusión
routers works in concert to present the illusion of a single de un router virtual único para las máquinas de la LAN. Al
virtual router to the hosts on the LAN. By sharing an IP compartir una dirección IP y MAC (capa 2) la dirección,
address and a MAC (Layer 2) address, two or more dos o más routers puede actuar como un único "virtual"
routers can act as a single “virtual” router. The virtual del router. La dirección del router virtual IP se configura
router’s IP address is configured as the default gateway for como la puerta de enlace predeterminada para los puestos
the workstations on a specific IP segment. When frames de trabajo en un segmento de IP específica. Cuando los
are to be sent from the workstation to the default gateway, marcos deberán ser enviadas desde la estación de trabajo a
the workstation uses ARP to resolve the MAC address la puerta de enlace predeterminada, la estación de trabajo
associated with the IP address of the default gateway. ARP utiliza ARP para resolver la dirección MAC asociada con
returns the MAC address of the virtual router. Frames sent la dirección IP de la puerta de enlace predeterminada. ARP
to the virtual router’s MAC address can then be physically devuelve la dirección MAC del router virtual. Marcos
processed by any active or standby router that is part of envió a la dirección MAC del router virtual puede ser
that virtual router group. físicamente procesados por cualquier router activo o de
reserva que es parte de ese grupo de router virtual.
Two or more routers use a protocol to determine which
Dos o más routers utilizan un protocolo para determinar
qué router físico es el responsable de procesamiento de
imágenes enviadas a la dirección MAC o dirección IP de
physical router is responsible for processing frames sent to un enrutador virtual. Los dispositivos Host enviar tráfico a
the MAC or IP address of a single virtual router. Host la dirección del router virtual. El router física que reenvía
devices send traffic to the address of the virtual router. este tráfico es transparente a las estaciones finales. Este
The physical router that forwards this traffic is transparent protocolo de redundancia proporciona el mecanismo para
to the end stations. This redundancy protocol provides the determinar el router debe tener el papel activo en el tráfico
mechanism for determining which router should take the de tránsito y determinar el momento en que la función
active role in forwarding traffic and determining when that debe ser asumida por un router de espera. La transición de
role must be assumed by a standby router. The transition un router de reenvío a otro es transparente para los
from one forwarding router to another is transparent to the dispositivos finales.
end devices.
Figura describe los pasos que tienen lugar cuando el router
Figure describes the steps that take place when the de reenvío no.
forwarding router fails.
5.1 Configuración de Capa 3 con HSRP de redundancia
  5.1.3 Descripción de HSRP
5.1 Configuring Layer 3 Redundancy with HSRP Hot Standby Router Protocol (HSRP) define un grupo de
5.1.3 Describing HSRP espera, con cada router asignado a una función específica
dentro del grupo. HSRP proporciona redundancia de
Hot Standby Router Protocol (HSRP) defines a puerta de enlace mediante el intercambio de direcciones IP
standby group, with each router assigned to a specific role y MAC entre puertas de enlace redundantes. El protocolo
within the group. HSRP provides gateway redundancy by transmite MAC virtual y la dirección IP entre dos routers
sharing IP and MAC addresses between redundant pertenecientes al grupo HSRP mismo.
gateways. The protocol transmits virtual MAC and IP
address information between two routers belonging to the Figura describe algunos de los términos utilizados con
same HSRP group. HSRP.

Figure describes some of the terms used with HSRP. Un grupo HSRP se compone de los siguientes:

An HSRP group consists of the following:     * Active router


    * Router de espera
* Active router     * Virtual Router
* Standby router     * Otros routers
* Virtual router
* Other routers Routers HSRP activo y de reserva, enviar mensajes de
bienvenida a la dirección multicast 224.0.0.2 usando el
HSRP active and standby routers send hello messages to puerto UDP 1985.
the multicast address 224.0.0.2 using UDP port 1985.
5.1 Configuring Layer 3 Redundancy with HSRP 5.1 Configuración de Capa 3 con HSRP de redundancia
5.1.4 Identifying HSRP Operations   5.1.4 Identificación de Operaciones de HSRP
Todos los routers de un grupo HSRP tienen funciones
All the routers in an HSRP group have specific específicas e interactuar en formas prescritas.
roles and interact in prescribed ways.
El router virtual es simplemente un par de direcciones IP y
The virtual router is simply an IP and MAC address pair MAC de los dispositivos finales que se han configurado
that end devices have configured as their default gateway. como su puerta de enlace predeterminada. El enrutador de
The active router processes all packets and frames sent to los procesos activos y los marcos de todos los paquetes
the virtual router address. The virtual router does not enviados a la dirección del router virtual. El router virtual
process physical frames and exists in software only. no procesa los marcos física y sólo existe en el software.

Within an HSRP group, one router is elected to be the Dentro de un grupo HSRP, un router es elegido para ser el
active router. The active router physically forwards router activo. El router activos físicamente reenvía los
packets sent to the MAC address of the virtual router. paquetes enviados a la dirección MAC del router virtual.

The active router responds to traffic for the virtual router. El router responde a los activos del tráfico en el router
If an end station sends a packet to the virtual router MAC virtual. Si una estación final envía un paquete a la
address, the active router receives and processes that dirección MAC del router virtual, el router activo recibe y
packet. If an end station sends an ARP request with the procesa ese paquete. Si una estación final envía una
virtual router IP address, the active router replies with the solicitud ARP con la dirección IP del router virtual, el
virtual router MAC address. router activo responde con la dirección MAC del router
virtual.
In this example, router A assumes the active role and
forwards all frames addressed to the well-known MAC En este ejemplo, un router asume el papel activo y envía
address of 0000.0c07.acxx, where xx is the HSRP group todas las tramas que se dirigen a la conocida dirección
identifier. MAC de 0000.0c07.acxx, donde xx es el identificador de
grupo HSRP.
The IP address and corresponding MAC address of the
virtual router are maintained in the ARP table of each La dirección IP y la dirección MAC correspondiente del
router in the HSRP group. As shown in the Figure , the router virtual se mantienen en la tabla ARP de cada router
show ip arp command displays the ARP cache on a en el grupo HSRP. Como se muestra en la Figura, el
multilayer switch. comando show ip arp muestra la caché de ARP en un
switch de múltiples capas.
Figure describes the output for the show ip arp command.
La figura describe la salida del comando show arp ip.
In the example illustrated in Figure , the output displays
an ARP entry for a router that is a member of HSRP group En el ejemplo ilustrado en la figura, la salida muestra una
1 in VLAN10. The virtual router for VLAN10 is identified entrada ARP de un router que es un miembro del grupo
as 172.16.10.110. The well-known MAC address that HSRP 1 en VLAN10. El router virtual para VLAN10 se
corresponds to this IP address is 0000.0c07.ac01, where identifica como 172.16.10.110. La conocida dirección
01 is the HSRP group identifier for group 1. The HSRP MAC que corresponde a esta dirección IP es
group number is the standby group number (1) converted 0000.0c07.ac01, donde 01 es el identificador de grupo
to hexadecimal (01). HSRP para el grupo 1. El número de grupo HSRP es el
número del grupo de espera (1) convertir a hexadecimal
The HSRP standby router monitors the operational status (01).
of the HSRP group and quickly assumes packet-
forwarding responsibility if the active router becomes El router HSRP espera supervisa el estado operativo del
inoperable. Both the active and standby routers transmit grupo HSRP y rápidamente asume la responsabilidad de
hello messages to inform all other routers in the group of reenvío de paquetes si el router activo se convierte en
their role and status. The routers use destination multicast inoperables. Tanto los routers de espera activa y transmitir
address 224.0.0.2 with UDP port 1985 for these messages. mensajes de "hola" a informar a todos los otros routers en
The source address is the interface IP address of the el grupo de su papel y su estado. El uso de enrutadores
sending router. multicast 224.0.0.2 dirección de destino con el puerto
UDP 1985 para estos mensajes. La dirección de origen es
An HSRP group may contain other routers that are group la dirección IP de la interfaz del router de origen.
members but are not in an active or standby state. These
routers monitor the hello messages sent by the active and Un grupo de HSRP puede contener otros routers que son
standby routers to ensure that active and standby routers miembros del grupo, pero no están en un estado activo o
exist for the HSRP group of which they are a member. de reserva. Estos routers monitorizar los mensajes
These routers do forward packets addressed to their own enviados por hello los routers activos y de reserva para
specific IP addresses, but they do not forward packets asegurar que los enrutadores de activos y de reserva existe
addressed to the virtual router. These routers issue speak para el grupo HSRP del que es miembro. Estos routers no
messages at every hello interval time. reenviar paquetes específicos dirigidos a su propia
dirección IP, pero no transmite los paquetes dirigidos al
Figure describes some of the terms used with HSRP. router virtual. Estos routers tema hablan los mensajes en
tiempo cada intervalo de saludo.
When the active router fails, the other HSRP routers stop
seeing hello messages from the active router. The standby Figura describe algunos de los términos utilizados con
router then assumes the role of the active router. If other HSRP.
routers are participating in the group, they contend to be
the new standby router. Cuando el router activa falla, los otros routers HSRP dejar
de ver mensajes de saludo desde el router activo. El router
If both the active and standby routers fail, all routers in the standby asume entonces la función del router activo. Si
group contend for the active and standby router roles. otros routers están participando en el grupo, que sostienen
que el router espera nuevas.
Because the new active router assumes both the IP and
MAC addresses of the virtual router, the end stations see Si tanto los routers de activos y de reserva no, todos los
no disruption in service. The end-user stations continue to enrutadores en el grupo de competir por los papeles router
send packets to the virtual router MAC address, and the activo y de reserva.
new active router delivers the packets to the destination.
Debido a que el router activa nueva asume tanto las
direcciones IP y MAC del router virtual, las estaciones
finales ver ninguna interrupción en el servicio. El usuario
final estaciones de seguir para enviar paquetes a la
dirección MAC del router virtual, y el router activa nueva
entrega los paquetes al destino.

5.1 Configuring Layer 3 Redundancy with HSRP 5.1 Configuración de Capa 3 con HSRP de redundancia
5.1.5 Describing HSRP States   5.1.5 Descripción de los Estados HSRP
Un router en un grupo de HSRP puede estar en uno de los
A router in an HSRP group can be in one of the siguientes estados: inicial, aprender, escuchar, hablar, en
following states: initial, learn, listen, speak, standby, or espera, o activo.
active.
Figura describe los diferentes estados HSRP.
Figure describes the different HSRP states.
Cuando un router existe en uno de estos estados, realiza
When a router exists in one of these states, it performs the las acciones necesarias para ese estado. No todos los
actions required for that state. Not all HSRP routers in the enrutadores HSRP en la transición de grupo a través de
group transition through all states. For example, if there todos los estados. Por ejemplo, si hay tres routers en el
are three routers in the group, the router that is not the grupo, el router que no es el router o en espera activa
standby or active router remains in the listen state. permanece en el estado de escuchar.

All routers begin in the initial state, indicating that HSRP Todos los routers de comenzar en el estado inicial,
is not running. This state is entered via a configuration indicando que HSRP no se está ejecutando. Este estado se
change, such as when HSRP is disabled on an interface, or introduce a través de un cambio de configuración, como
when an HSRP-enabled interface is first brought up, such por ejemplo cuando HSRP está desactivado en una
as when the no shutdown command is issued. interfaz, o cuando un HSRP interfaz está habilitado
planteó por primera vez, como cuando se emite el
After the initial state, the interface moves to the learn comando no shutdown.
state. The interface is expecting to see HSRP packets and
from these packets determine the virtual IP and active Después de que el estado inicial, se mueve la interfaz para
HSRP router for the group. el estado de aprender. La interfaz está esperando ver los
paquetes HSRP y de estos paquetes de determinar la
Once the interface has seen HSRP packets and determined dirección IP virtual y el router HSRP activo para el grupo.
the virtual IP, it moves to the listen state. The purpose of
the listen state is to determine if there are already active or Una vez que la interfaz ha visto paquetes HSRP y
standby routers for the group. If the active and standby determinó la IP virtual, se mueve a la escucha del Estado.
routers are functional, the interface remains in this state. El propósito de escuchar el estado es para determinar si
However, if hellos are not seen from either router, the existe ya son activos o de reserva routers para el grupo. Si
interface moves to the speak state. los enrutadores de activos y de reserva son funcionales, la
interfaz sigue siendo en este estado. Sin embargo, si hellos
In the speak state, the routers are actively participating in no se ven desde cualquier router, los movimientos de
the election of the active router, standby router, or both. interfaz a la palabra Estado.
The routers look at each other’s hello packets to determine
which router should assume which role. En el habla del estado, los routers están participando
activamente en la elección de los activos router, router de
Three timers are used in HSRP: active, standby, and hello. espera, o ambas cosas. Los routers se miran de paquetes
If a hello is not received from an active HSRP router hello para determinar qué router debe asumir que el papel.
within the active timer, the router transitions to a new
HSRP state.
Tres cronómetros se utilizan en HSRP: activa, inactiva, y
Figure describes the HSRP timers. hola. Si un hola no se recibe de un router HSRP activo en
el temporizador de activos, las transiciones router a un
In the standby state , because the router is a candidate to estado de HSRP nuevo.
become the next active router, it sends periodic hello
messages. It also listens for hello messages from the Figura describe los temporizadores HSRP.
active router. There can only be one standby router in the
HSRP group. En el estado de espera, ya que el router es un candidato
para convertirse en el router activo siguiente, envía
In the active state , the router is currently forwarding mensajes periódicos Hola. También escucha los mensajes
packets that are sent to the virtual MAC address of the de Hello desde el router activo. Sólo puede haber un
group. It also replies to ARP requests directed to the enrutador de espera en el grupo HSRP.
virtual router’s IP address. The active router sends
periodic hello messages. There must be one active router En el estado activo, el router está actualmente el reenvío
in each HSRP group. de paquetes que se envían a la dirección MAC virtual del
grupo. También las respuestas a las peticiones ARP
dirigida a la dirección del router virtual IP. El router activo
envía mensajes periódicos Hola. Debe haber un enrutador
activa en cada grupo HSRP

5.1 Configuring Layer 3 Redundancy with HSRP


5.1.6 Describing HSRP Configuration Commands 5.1 Configuración de Capa 3 con HSRP de redundancia
  5.1.6 Descripción de Comandos de configuración de
HSRP
Figure illustrates common HSRP configuration La figura muestra los comandos de configuración
commands. comunes HSRP.

Figura describe los comandos esenciales que se utilizan


Figure describes the essential commands used to configure para configurar y verificar HSRP.
and verify HSRP.
5.1 Configuring Layer 3 Redundancy with HSRP 5.1 Configuración de Capa 3 con HSRP de redundancia
5.1.7 Enabling HSRP   5.1.7 Activación de HSRP
El siguiente comando permite HSRP en una interfaz:
The following command enables HSRP on an interface:
    Switch (config) # grupo de espera-IP IP-dirección de
Switch(config-if)#standby group-number ip ip-address
Figura describe los parámetros de comando para
Figure describes the command parameters for configuring configurar un grupo HSRP en una interfaz.
an HSRP group on an interface.
Cuando HSRP se está ejecutando, el final de las estaciones
When HSRP is running, the end-user stations must not de usuario no debe descubrir las direcciones MAC real de
discover the actual MAC addresses of the routers in the los routers en el grupo de espera. Cualquier protocolo que
standby group. Any protocol that informs a host of a informa a un host de la dirección real de un router debe
router’s actual address must be disabled. Enabling HSRP estar desactivado. HSRP instrumental sobre una interfaz
on a Cisco router interface automatically disables Internet de router de Cisco desactiva automáticamente Internet
Control Message Protocol (ICMP) redirects on that Control Message Protocol (ICMP) que redirige a la
interface, which ensures that the addresses of the interfaz, lo que asegura que las direcciones de los routers
participating HSRP routers are not discovered. que participan HSRP no se descubren.

After the standby ip command is issued, the interface Después de que el comando ip de espera se expida, los
changes to the appropriate state, and the router issues an cambios de interfaz en el estado apropiado, y las
HSRP message. cuestiones router un mensaje de HSRP.

To remove an interface from an HSRP group, enter the no Para quitar una interfaz de un grupo HSRP, no espera
standby group ip command. entrar en el comando ip grupo.

The following example states that interface VLAN11 is a El siguiente ejemplo, que los Estados VLAN11 interfaz es
member of HSRP group 11, the virtual router IP address un miembro del grupo HSRP 11, la dirección IP del router
for the group is 172.16.11.115, and ICMP redirects are virtual para el grupo es 172.16.11.115, y redirecciones de
disabled. To verify the HSRP configuration, use the show ICMP están deshabilitados. Para comprobar la
running-config command: configuración de HSRP, utilice el comando show running-
config:
Switch#show running-config
Building configuration...     Switch # show running-config
    Configuración de Edificación ...
Current configuration:!
<output omitted>     La configuración actual:!
interface Vlan11     <output omitted>
ip address 172.16.11.113 255.255.255.0     Vlan11 interfaz
no ip redirects     Dirección IP 172.16.11.113 255.255.255.0
standby 11 ip 172.16.11.115     no ip redireccionamientos
!     en espera 11 IP 172.16.11.115
    !
Another way to verify the HSRP configuration is with the
show standby brief command, which displays abbreviated Otra manera de verificar la configuración de HSRP es con
information about the current state of all HSRP operations el comando show breve espera, que muestra abreviada
información sobre el estado actual de todas las
operaciones de HSRP en el dispositivo.

Para mostrar el estado del router HSRP, utilice uno de


estos comandos:
on the device.
    Switch # show de espera [interfaz [grupo]] [activo | init
To display the status of the HSRP router, use one of these | escuchar | en blanco] [breve]
commands:
    Switch # show demora de espera [tipo número]
Switch#show standby [interface [group]] [active | init |
listen | standby] [brief] Si los parámetros de interfaz opcional no están incluidos,
la exposición muestra el comando HSRP en espera de
Switch#show standby delay [type-number] información para todas las interfaces.

If the optional interface parameters are not included, the El siguiente ejemplo muestra la salida del comando show
show standby command displays HSRP information for de espera:
all interfaces.
    Switch # show Vlan11 espera 11
The following example shows the output of the show     Vlan11 - Grupo 11
standby command:     Locales del Estado está activo, 110 de prioridad
    Hellotime 3 holdtime 10
Switch#show standby Vlan11 11     Próximo Bienvenido enviado en 00:00:02.944
Vlan11 - Group 11     Hot dirección IP de espera es configurado
Local state is Active, priority 110 172.16.11.115
Hellotime 3 holdtime 10     Router activo es local
Next hello sent in 00:00:02.944     Router de espera es 172.16.11.114 expira en 00:00:08
Hot standby IP address is 172.16.11.115 configured     En espera la dirección MAC virtual es 0000.0c07.ac01
Active router is local
Standby router is 172.16.11.114 expires in 00:00:08 Esta es la salida cuando se utiliza el parámetro breve:
Standby virtual mac address is 0000.0c07.ac01
    Switch # show breve espera
This is the output when you use the brief parameter:     Interfaz Grp Prío P estado activo en espera addr addr
Grupo addr
Switch#show standby brief     Vl11 11 110 Active locales 172.16.11.114
Interface Grp Prio P State Active addr Standby addr 172.16.11.115
Group addr
Vl11 11 110 Active local 172.16.11.114 172.16.11.115 Observe que la dirección del grupo 172.16.11.115 está en
la misma subred que el router espera activa y direcciones
Notice that the group address 172.16.11.115 is on the IP
same subnet as the standby and active router IP addresses.
5.2 Optimizing HSRP 5.2 Optimización de HSRP
5.2.1 Describing HSRP Optimization Options   5.2.1 Descripción de HSRP Opciones de optimización
The options illustrated in Figures and make it Las opciones se ilustra en las figuras y hacer posible para
possible to optimize HSRP operation in the campus optimizar el funcionamiento HSRP en la red del campus.
network.
Cada grupo de reserva tiene su propio router activo y de
Each standby group has its own active and standby reserva. El administrador de red puede asignar un valor de
routers. The network administrator can assign a priority prioridad a cada router en un grupo de espera, permitiendo
value to each router in a standby group, allowing the que el administrador de influir en la selección router
administrator to influence the active and standby router activo y de reserva.
selection.
Para establecer el valor de prioridad de un router por
To set the priority value of a router (default is 100), enter defecto (es 100), ingrese este comando en el modo de
this command in interface configuration mode: configuración de la interfaz:

Switch(config-if)#standby group-number priority     Switch (config) # grupo de espera con prioridad a la


priority-value prioridad número valor

Figure describes the variables for the standby command. La figura describe las variables para el comando de
espera.
During the election process, the router with the highest
priority in an HSRP group becomes the active router. In Durante el proceso electoral, el router con la más alta
the case of a tie, the router with the highest configured IP prioridad en un grupo HSRP se convierte en el router
address is chosen. activo. En el caso de un empate, se elige el router con la
más alta dirección IP configurada.
To reinstate the default standby priority value, use the no
standby priority command. Para restablecer el valor de reserva de prioridad por
defecto, utilice el comando no prioridad de espera.
The following example states that interface VLAN10 has
a priority value of 150 in HSRP group 1. If this priority El siguiente ejemplo, que los Estados VLAN10 interfaz
value is the highest number in that HSRP group, the tiene un valor de prioridad de los 150 en el grupo HSRP 1.
routing device on which this interface resides is the active Si este valor de prioridad es el número más alto de ese
router for that group. grupo HSRP, el dispositivo de enrutamiento en el que
reside esta interfaz es el router activo para ese grupo.
Switch#show running-config
Building configuration...     Switch # show running-config
    Configuración de Edificación ...
Current configuration:
!     La configuración actual:
<output omitted>     !
interface Vlan10     <output omitted>
ip address 172.16.10.32 255.255.255.0     Vlan10 interfaz
no ip redirects     ip address 172.16.10.32 255.255.255.0
standby 1 priority 150     no ip redireccionamientos
standby 1 ip 172.16.10.110     en espera de prioridad 1 150
    standby 1 ip 172.16.10.110
The standby router automatically assumes the active
router role when the active router fails or is removed from El router standby asume automáticamente la función de
service. This new active router remains the forwarding router activa cuando el router activa falla o se retira del
router, even if a former active router with a higher priority servicio. Este router activa nueva sigue siendo el router de
regains service in the network. reenvío, incluso si un router ex militante con una mayor
prioridad recupera el servicio en la red.
A former active router can be configured to resume the
forwarding router role from a router with a lower priority Un router ex militante se puede configurar para reanudar
by using the following command in interface la función de reenvío de enrutador de un router con una
configuration mode: prioridad inferior utilizando el siguiente comando en el
modo de configuración de la interfaz:
Switch(config-if)#standby [group-number] preempt
[{delay} [minimum delay] [sync delay]]     Switch (config) # standby [grupo número] adelantarse
[(retardo) [retraso mínimo] [retardo de sincronización]]
When the standby preempt command is issued, the
interface changes to the appropriate state. Cuando se emite el comando de adelantarse en blanco, los
cambios de interfaz para el estado apropiado.
Note:
    Nota:
If the routers do not have preempt configured, a router
that boots up significantly faster than the others in the     Si el router no tiene configurado anticiparse, un router
standby group becomes the active router, regardless of the que arranca significativamente más rápido que los demás
configured priority. en el grupo de espera se convierte en el router activo,
independientemente de la prioridad configurado.
To remove the interface from preemptive status, use the no
standby group preempt command. Para quitar la interfaz de la condición de preferente, no se
espera utilizar el comando de adelantarse al grupo.
The following example states that interface VLAN10 is
configured to resume its role as the active router in HSRP El siguiente ejemplo, que los estados VLAN10 interfaz
group 1, assuming that interface VLAN10 on this router está configurada para reanudar su papel como el router
has the highest priority in that standby group. HSRP activo en el grupo 1, suponiendo que VLAN10
interfaz en este router tiene la mayor prioridad en ese
Switch#show running-config grupo de espera.
Building configuration...
    Switch # show running-config
Current configuration:     Configuración de Edificación ...
!
<output omitted>     La configuración actual:
interface Vlan10     !
ip address 172.16.10.82 255.255.255.0     <output omitted>
no ip redirects     Vlan10 interfaz
standby 1 priority 150     ip address 172.16.10.82 255.255.255.0
standby 1 preempt     no ip redireccionamientos
standby 1 ip 172.16.10.110     en espera de prioridad 1 150
    espera adelantarse 1
HSRP hello messages are transmitted constantly by the     standby 1 ip 172.16.10.110
active and standby HSRP routers and during elections by
all HSRP-enabled routers. The hello message contains the HSRP hello mensajes se transmiten constantemente por
priority of the router, along with the hello time and hold los routers de activos y de reserva HSRP y durante las
time values. The hello time is the interval between the elecciones por todos los HSRP habilitado routers. El
hello messages that the router sends. The hold time is the mensaje contiene hello la prioridad del router, junto con el
amount of time that the current hello message is tiempo y mantener hello valores de tiempo. El hola es el
considered valid. The default hello and hold times are 3 intervalo de tiempo entre los mensajes de saludo que el
and 10 seconds, respectively, which means failover time router envía. El tiempo de retención es la cantidad de
could be as much as 10 seconds for clients to start tiempo que el actual hello mensaje se considera válido. El
communicating with the new default gateway. In some valor predeterminado hola y tiempos de espera son de 3 y
cases, this interval may be excessive for application 10 segundos, respectivamente, lo que significa el tiempo
support. de conmutación por error puede ser de hasta 10 segundos
para que los clientes empiezan a comunicarse con la
You can change the default values of the timers to pasarela por defecto. En algunos casos, este intervalo
milliseconds to accommodate subsecond failovers. puede ser excesivo para soporte de aplicaciones.
Lowering the hello timer results in increased traffic for
hello messages and should be used cautiously. The hold Puede cambiar los valores predeterminados de los
time should be at least three times the value of the hello contadores de tiempo en milisegundos para dar cabida a
time. las conmutaciones por error subsecond. La reducción de
los resultados del temporizador hola en el aumento del
To change the timers, enter this command in interface tráfico de mensajes de saludo y debe usarse con cautela.
configuration mode: El tiempo de retención debe ser de al menos tres veces el
valor del tiempo de Hello.
Switch(config-if)#standby group-number timers [msec]
hellotime holdtime Para cambiar los temporizadores, introduzca este comando
en el modo de configuración de la interfaz:
Note:
    Switch (config) # grupo-contadores de tiempo de espera
Hello and dead timers intervals must be identical for all número [msec] holdtime hellotime
devices within an HSRP group.
    Nota:
Figure describes the command options.
    Hola y temporizadores de intervalos muertos deben ser
To reinstate the default values, use the no standby group idénticos para todos los dispositivos dentro de un grupo
timers command. HSRP.

In some situations, the status of an interface directly La figura describe las opciones de comando.
affects which router needs to become the active router.
This is particularly true when each of the routers in an Para restablecer los valores por defecto, utilice el grupo de
HSRP group has a different path to resources within the contadores de tiempo de espera sin mando.
campus network.
En algunas situaciones, el estado de una interfaz de router,
In Figure , routers A and B reside in one building, and que afecta directamente a las necesidades de convertirse
they each support a Gigabit Ethernet link to the other en el router activo. Esto es particularmente cierto cuando
building. Router A has the higher priority and is the active cada uno de los routers de un grupo HSRP tiene una ruta
forwarding router for standby group 1. Router B is the diferente a los recursos dentro de la red del campus.
standby router for that group. Routers A and B are
exchanging hello messages through their E0 interfaces. En la figura, los routers A y B de residir en un edificio, y
The Gigabit Ethernet link between the active forwarding cada uno de ellos de apoyo un enlace Gigabit Ethernet
router for the standby group and the other building para el otro edificio. Router A tiene la mayor prioridad y
experiences a failure. If HSRP is not enabled, router A es el router de reenvío activo para el grupo de reserva 1.
would detect the failed link and send an ICMP redirect to Router B es el router de reserva para ese grupo. Routers A
router B. However, when HSRP is enabled, ICMP y B son el intercambio de mensajes a través de Hello sus
interfaces E0.
El enlace Gigabit Ethernet entre el router de reenvío activo
para el grupo de espera y la creación de otras experiencias
de un fracaso. Si HSRP no está habilitada, un router que
no pudo detectar el enlace y enviar una redirección ICMP
al router B. Sin embargo, cuando HSRP está habilitado,
redirecciones ICMP están deshabilitados. Por lo tanto, ni
un router, ni el router virtual envía una redirección ICMP.
Además, aunque la interfaz del G1 en un router ya no es
funcional, un router todavía comunica mensajes hello out
E0 interfaz, lo que indica que un router sigue siendo el
redirects are disabled. Therefore, neither router A nor the router activo. Los paquetes enviados al router virtual para
virtual router sends an ICMP redirect. In addition, su transmisión a la sede no puede ser derrotado.
although the G1 interface on router A is no longer
functional, router A still communicates hello messages out Es posible que un protocolo de enrutamiento dinámico (si
interface E0, indicating that router A is still the active está en uso) detectar la falla de un enlace y actualice las
router. Packets sent to the virtual router for forwarding to tablas de enrutamiento de los routers. Sin embargo, el
headquarters may not be routed. tráfico sería enviado por ordenadores al router HSRP
activo y lo remitió de vuelta a través del segmento
It is possible that a dynamic routing protocol (if in use) Ethernet al router HSRP de espera, donde el enlace
would detect the link failure and then update the routing Gigabit funcional podría ser utilizado.
tables of the routers. However, traffic would then be sent
by hosts to the active HSRP router and forwarded back El seguimiento de la interfaz permite la prioridad de un
across the Ethernet segment to the standby HSRP router router grupo espera que se ajustan automáticamente
where the functional Gigabit link would be used. basándose en la disponibilidad de interfaces que router.
Cuando una interfaz de seguimiento no está disponible, se
Interface tracking enables the priority of a standby group reduce la prioridad HSRP del router. Si se configuran
router to be automatically adjusted based on the correctamente, la función de rastreo HSRP se asegura de
availability of that router’s interfaces. When a tracked que un router con una interfaz clave no está disponible
interface becomes unavailable, the HSRP priority of the renuncia a la función router activo.
router is decreased. When properly configured, the HSRP
tracking feature ensures that a router with an unavailable En este ejemplo, la interfaz E0 en un router pistas de la
key interface relinquishes the active router role. interfaz del G1. Si el vínculo entre la interfaz del G1 y el
otro edificio falla, el router automáticamente disminuye la
In this example, the E0 interface on router A tracks the G1 prioridad de la interfaz E0 y dejará de transmitir mensajes
interface. If the link between the G1 interface and the de saludo que la interfaz. Router B asume la función de
other building fails, the router automatically decrements router activo cuando no se detectan mensajes de saludo
the priority on the E0 interface and stops transmitting para el período de tiempo de espera. El paquete hello tiene
hello messages out that interface. Router B assumes the un campo que indica la prioridad actual del HSRP interfaz
active router role when no hello messages are detected for habilitada. Router A los cambios de este campo para
the hold time period. The hello packet has a field that indicar la prioridad para hellos posteriores.
indicates the current priority of the HSRP-enabled
interface. Router A changes this field to indicate its Para configurar el seguimiento HSRP, introduzca el
priority for subsequent hellos. comando en la figura en el modo de configuración de la
interfaz.
To configure HSRP tracking, enter the command in Figure
in interface configuration mode. Para deshabilitar la interfaz de seguimiento, no se espera
utilizar el comando completo de grupo.
To disable interface tracking, use the no standby group
track command. El comando para configurar el seguimiento de HSRP en
un switch multicapa es el mismo que en el enrutador
The command to configure HSRP tracking on a multilayer externo, salvo que el tipo de interfaz se puede identificar
switch is the same as on the external router, except that the como una interfaz de conmutador virtual o como una
interface type can be identified as a switch virtual interfaz física.
interface or as a physical interface.
Seguimiento de varios estados se puede aplicar a una
Multiple tracking statements may be applied to an interfaz, que es útil si la intención es que la interfaz de
interface, which is useful if the intent is for the currently HSRP activa, al renunciar a su condición sólo cuando dos
active HSRP interface to relinquish its status only when (o más), seguido de interfaces no
two (or more) tracked interfaces fail
5.2 Optimizing HSRP 5.2 Optimización de HSRP
5.2.2 Tuning HSRP Operations   5.2.2 Ajuste de Operaciones de HSRP
Puede ajustar temporizadores HSRP para ajustar el
rendimiento de HSRP en dispositivos de distribución, lo
que aumenta su resistencia y fiabilidad en el enrutamiento
de paquetes fuera de la VLAN local.

Puede configurar el HSRP hello y mantener veces a los


You can adjust HSRP timers to tune the valores de milisegundos para que la conmutación por error
performance of HSRP on distribution devices, thereby HSRP se produce en menos de 1 segundo. Por ejemplo:
increasing their resilience and reliability in routing packets
off the local VLAN.     Switch (config) # 1 temporizadores de espera 200 ms
750 ms
You can set the HSRP hello and hold times to millisecond
values so that HSRP failover occurs in less than 1 second. Recuerde que cuanto más bajo el temporizador Hola,
For example: mayor es la hola de tráfico.

Switch(config-if)#standby 1 timers msec 200 msec 750 La prevención es un aspecto importante de HSRP, porque
permite que el router primario a retomar el papel activo
Remember that the lower the hello timer is, the greater the cuando el router viene de nuevo en línea después de un
hello traffic. fracaso o un evento de mantenimiento. Preemption obliga
a una ruta de enrutamiento previsible para la VLAN
Preemption is an important feature of HSRP, because it durante las operaciones normales y asegura que el Nivel 3
allows the primary router to resume the active role when de reenvío para un camino paralelo a la VLAN de Capa 2
the router comes back online after a failure or Spanning Tree Protocol (STP) ruta de transmisión siempre
maintenance event. Preemption forces a predictable que sea posible.
routing path for the VLAN during normal operations and
ensures that the Layer 3 forwarding path for a VLAN Siempre debe usar preemption cuando el seguimiento de
parallels the Layer 2 Spanning Tree Protocol (STP) interfaces. En el ejemplo anterior, cuando el enlace
forwarding path whenever possible. Gigabit volvió a subir, la prioridad de un router
aumentaría, pero sin anticipación, no se convertiría en el
You should always use preemption when tracking router HSRP activo hasta que el router B tuvo un cambio
interfaces. In the previous example, when the Gigabit link de estado.
came back up, router A’s priority would increase, but
without preemption, it would not become the HSRP active Cuando un conmutador de distribución de adelantarse a
router until router B had a state change. que se reinicie, la comunicación anticiparse HSRP no
debería comenzar hasta que el interruptor de distribución
When a preempting distribution switch is rebooted, HSRP se ha establecido la plena conectividad con el resto de la
preempt communication should not begin until the red. Esto permite la convergencia de protocolo de
distribution switch has established full connectivity to the enrutamiento a ocurrir más rápidamente una vez que el
rest of the network. This allows routing protocol router preferido está en un estado activo. Para lograr esto,
convergence to occur more quickly once the preferred medir el tiempo de arranque del sistema y establecer la
router is in an active state. To accomplish this, measure demora HSRP anticiparse a un valor del 50 por ciento
the system boot time and set the HSRP preempt delay to a mayor que el tiempo de arranque. Esto asegura que el
value 50 percent greater than the boot time. This ensures interruptor de distribución primaria se establece la plena
that the primary distribution switch establishes full conectividad a la red antes de la comunicación se produce
connectivity to the network before HSRP communication HSRP.
occurs.
Por ejemplo, si el tiempo de arranque para el dispositivo
For example, if the boot time for the distribution device is de distribución es de 120 segundos, la configuración de
120 seconds, the preempt configuration would be as anticiparse sería la siguiente:
follows:
    espera adelantarse 1
standby 1 preempt     de espera mínimo de 1 retraso anticiparse 180
standby 1 preempt delay minimum 180
5.2 Optimizing HSRP 5.2 Optimización de HSRP
5.2.3 Describing Load Sharing   5.2.3 Descripción de la carga compartida

With a single HSRP group on a subnet, the active router is Con un grupo HSRP único en una subred, el router activo
forwarding all the packets off that subnet while the es el reenvío de todos los paquetes fuera de la subred,
standby router is not forwarding any packets. To facilitate mientras que el router de espera es no reenviar ningún
load sharing, a single router may be a member of multiple paquete. Para facilitar el intercambio de carga, un solo
HSRP groups on the same segment. Multiple standby router puede ser miembro de varios grupos HSRP en el
groups further enable redundancy and load sharing. While mismo segmento. Varios grupos de espera seguir
a router is actively forwarding traffic for one HSRP group, permitiendo que la redundancia y la distribución de carga.
the router can be in standby or listen state for another Si bien un router de forma activa redirigir el tráfico para
group. Each standby group emulates a single virtual un grupo HSRP, el router puede estar en estado de espera
router. There can be up to 255 standby groups on any o la escucha de otro grupo. Cada grupo espera emula un
LAN, but the maximum number of standby groups need router virtual. No puede ser de hasta 255 grupos de espera
be no more than the number of routers on a segment. In en cualquier LAN, pero el número máximo de grupos de
most cases, two standby groups are sufficient. reserva no necesita ser más que el número de enrutadores
CAUTION: en un segmento. En la mayoría de los casos, dos grupos de
espera son suficientes.
Increasing the number of groups in which a router PRECAUCIÓN:
participates increases the load on the router, which can
impact the router’s performance. Aumentar el número de grupos en los que participa un
router aumenta la carga en el router, que puede afectar al
In Figure , both router A and B are members of groups 1 rendimiento del router.
and 2. Router A is the active forwarding router for group 1
and the standby router for group 2. Router B is the active En la figura, tanto un router y B son miembros de los
forwarding router for group 2 and the standby router for grupos 1 y 2. Router Un router es la transmisión de activos
group 1. para el grupo 1 y el router de reserva para el grupo 2.
Router B es el router de reenvío activo para el grupo 2 y el
The following example shows how multiple HSRP groups router de reserva para el grupo 1.
can be configured on the same segment to facilitate load
sharing. To be useful, half the hosts on the segment need El siguiente ejemplo muestra cómo varios grupos HSRP se
to use 172.16.10.110 as a default gateway, while the other puede configurar en el mismo segmento para facilitar el
half need to use 172.16.10.120. intercambio de carga. Para ser útiles, la mitad de las
máquinas de la serie de sesiones de la necesidad de utilizar
RouterA#show running-config 172.16.10.110 como una puerta de enlace predeterminada,
Building configuration... mientras que la otra mitad la necesidad de utilizar
172.16.10.120.
Current configuration:
!     Router # show running-config
<output omitted>     Configuración de Edificación ...
interface Vlan10
ip address 172.16.10.32 255.255.255.0     La configuración actual:
no ip redirects     !
standby 1 priority 150     <output omitted>
standby 1 ip 172.16.10.110     Vlan10 interfaz
standby 2 priority 50     ip address 172.16.10.32 255.255.255.0
standby 2 ip 172.16.10.120     no ip redireccionamientos
    en espera de prioridad 1 150
RouterB#show running-config     standby 1 ip 172.16.10.110
Building configuration...     Espera 2 prioridad 50
    espera 2 IP 172.16.10.120
Current configuration:
!     RouterB # show running-config
<output omitted>     Configuración de Edificación ...
interface Vlan10
ip address 172.16.10.33 255.255.255.0     La configuración actual:
no ip redirects     !
standby 1 priority 50     <output omitted>
standby 1 ip 172.16.10.110     Vlan10 interfaz
standby 2 priority 150     ip address 172.16.10.33 255.255.255.0
standby 2 ip 172.16.10.120     no ip redireccionamientos
    en espera de prioridad 1 50
RouterA#show standby brief     standby 1 ip 172.16.10.110
P indicates configured to preempt.     en espera de prioridad 2 150
|     espera 2 IP 172.16.10.120
Interface Grp Prio P State Active Standby Virtual IP
Vl10 1 150 Active local 172.16.10.33 172.16.10.110     Router # show breve espera
Vl10 2 50 Standby 172.16.10.33 local 172.16.10.120     P indica configurado para adelantarse.
    |
Routers can simultaneously provide redundant backup and     Interfaz Grp Prío P Estado espera activa IP virtual
perform load sharing across different IP subnets.     Vl10 1 150 locales activos 172.16.10.33 172.16.10.110
    Vl10 2 50 espera 172.16.10.33 locales 172.16.10.120
In Figure , two HSRP-enabled routers participate in two
separate VLANs, using ISL or 802.1Q. Running HSRP Routers al mismo tiempo puede proporcionar copia de
over trunks allows users to configure redundancy among seguridad redundantes y realizar la distribución de carga a
multiple routers that are configured as front ends for través de diferentes subredes IP.
VLAN IP subnets. By configuring HSRP over trunks,
users can eliminate situations in which a single point of En la figura, dos HSRP habilitado para participar en dos
failure causes traffic interruptions. This feature provides routers VLAN separada, utilizando ISL o 802.1Q. HSRP
some improvement in overall networking resilience by Correr sobre los troncos permite a los usuarios configurar
providing load balancing and redundancy capabilities la redundancia entre varios enrutadores que se configuran
between subnets and VLANs. como interfaces VLAN para las subredes IP. Mediante la
configuración de HSRP sobre los troncos, los usuarios
For a VLAN, configure the same device to be both the pueden eliminar las situaciones en que un único punto de
spanning tree root and the HSRP active router. This fallo provoca interrupciones de tráfico. Esta característica
approach ensures that the Layer 2 forwarding path leads proporciona una cierta mejora en la resistencia global de
directly to the Layer 3 active router, thereby achieving redes, proporcionando el equilibrio de carga y capacidades
maximum load balancing efficiency on the routers and de redundancia entre las subredes y VLANs.
trunks.
Para una VLAN, configure el mismo dispositivo a la vez
A standby group, an IP address, and a single well-known la raíz del árbol de expansión y el router HSRP activo.
MAC address with a unique group identifier should be Este enfoque garantiza que el 2 de reenvío camino
allocated to the group for each VLAN. Although up to 255 conduce directamente a la capa de la capa 3 router activa,
standby groups can be configured, the number of group logrando así el equilibrio de carga máxima eficiencia en
identifiers used should be kept to a minimum. If you are los routers y troncos.
configuring two distribution layer switches, you typically
need only two standby group identifiers. Un grupo de espera, una dirección IP, y una dirección
MAC única conocida con un identificador único grupo
The following example shows how multiple HSRP groups debe ser asignado al grupo para cada VLAN. Aunque
can be configured on two HSRP-enabled routers hasta 255 grupos de reserva puede ser configurado, el
participating in two separate VLANs número de identificadores de grupo utilizados deben
mantenerse al mínimo. Si está configurando dos
RouterB#show running-config interruptores de la capa de distribución, por lo general sólo
Building configuration... necesita dos identificadores de grupo de espera.

Current configuration: El siguiente ejemplo muestra cómo varios grupos HSRP


! puede ser configurado en dos HSRP habilitado para
<output omitted> routers que participan en dos VLAN separada
interface Vlan10
ip address 172.16.10.32 255.255.255.0     RouterB # show running-config
no ip redirects     Configuración de Edificación ...
standby 1 priority 150
standby 1 ip 172.16.10.110     La configuración actual:
interface Vlan20     !
ip address 172.16.20.32 255.55.255.0     <output omitted>
no ip redirects     Vlan10 interfaz
standby 2 priority 50     ip address 172.16.10.32 255.255.255.0
standby 2 ip 172.16.20.120     no ip redireccionamientos
    en espera de prioridad 1 150
RouterB#show running-config     standby 1 ip 172.16.10.110
Building configuration...     Vlan20 interfaz
    Dirección IP 172.16.20.32 255.55.255.0
Current configuration:     no ip redireccionamientos
!     Espera 2 prioridad 50
<output omitted>     espera 2 IP 172.16.20.120
interface Vlan10
ip address 172.16.10.33 255.255.255.0     RouterB # show running-config
no ip redirects     Configuración de Edificación ...
standby 1 priority 50
standby 1 ip 172.16.10.110     La configuración actual:
interface Vlan20     !
ip address 172.16.20.33 255.255.255.0     <output omitted>
    Vlan10 interfaz
    ip address 172.16.10.33 255.255.255.0
    no ip redireccionamientos
    en espera de prioridad 1 50
    standby 1 ip 172.16.10.110
    Vlan20 interfaz
    ip address 172.16.20.33 255.255.255.0
    no ip redireccionamientos
no ip redirects     en espera de prioridad 2 150
standby 2 priority 150     espera 2 IP 172.16.20.120
standby 2 ip 172.16.20.120
5.2 Optimización de HSRP
5.2 Optimizing HSRP   5.2.4 Comandos de depuración HSRP
5.2.4 HSRP Debug Commands Los comandos de la figura se utiliza para depurar las
The commands in Figure are used to debug operaciones de HSRP.
HSRP operations.
Figura describe los comandos de depuración.
Figure describes the debug commands.
5.2 Optimizing HSRP 5.2 Optimización de HSRP
5.2.5 Debugging HSRP Operations   5.2.5 Operaciones de depuración HSRP
The Cisco IOS implementation of HSRP supports La aplicación de Cisco IOS de HSRP admite el comando
the debug command, which displays HSRP state changes de depuración que muestra los cambios de estado HSRP e
and information regarding the transmission and receipt of información sobre la transmisión y recepción de paquetes
HSRP packets. To enable HSRP debugging, enter the HSRP. Para habilitar la depuración HSRP, ingrese el
following command in privileged EXEC mode: siguiente comando en el modo EXEC privilegiado:

Switch#debug standby     Switch # depuración de espera

Figure provides a description of debug standby fields. Figura ofrece una descripción de los campos de
CAUTION: depuración de espera.
PRECAUCIÓN:
Because debugging output is assigned high priority in the
CPU process, this command can render the system Dado que la salida de depuración se asigna una alta
unusable. prioridad en el proceso de la CPU, este comando puede
hacer que el sistema inutilizable.
Example: Debugging with Two Active Routers
Ejemplo: depuración con dos routers activos
The example in Figure displays output on distribution
router 1DSW1. Router 1DSW1 is also receiving an HSRP El ejemplo de la salida muestra la figura en la distribución
hello from 172.16.1.112 for the same VLAN and same de 1DSW1 router. Router 1DSW1 también recibe una
virtual IP address but with a different standby group HSRP Hello from 172.16.1.112 para la misma VLAN y la
number. Hence, both routers are active for the same virtual misma dirección IP virtual, pero con un diferente número
IP address. de grupo de espera. Por lo tanto, ambos routers están
activas para la dirección de la misma IP virtual.
The debug standby command is being used to
troubleshoot the problem. The standby group number is El comando de espera de depuración se utiliza para
not consistent, so the two routers have not formed a solucionar el problema. El número de grupo de espera no
standby group. es coherente, por lo que los dos routers no han formado un
grupo de espera.
Example: Debugging Active Router Negotiation
Ejemplo: Depuración de Active Router Negociación
This example displays the debug standby command output
as the 1DSW1 router with IP address 172.16.1.111 Este ejemplo muestra la salida de depuración de comandos
initializes and negotiates for the role of active router. de reserva, como el router 1DSW1 con la dirección IP
172.16.1.111 inicializa y se negocia para la función de
*Mar 8 20:34:10.221: SB11: Vl11 Init: a/HSRP enabled router activo.
*Mar 8 20:34:10.221: SB11: Vl11 Init -> Listen
*Mar 8 20:34:20.221: SB11: Vl11 Listen: c/Active     * Mar 8 20:34:10.221: SB11: Vl11 init: a / HSRP
timer expired (unknown) habilitado
*Mar 8 20:34:20.221: SB11: Vl11 Listen -> Speak     * Mar 8 20:34:10.221: SB11: Vl11 init -> Escuchar
*Mar 8 20:34:20.221: SB11: Vl11 Hello out     * Mar 8 20:34:20.221: SB11: Vl11 Escucha: c /
172.16.11.111 Speak pri 100 ip 172.16.11.115 temporizador activo de vencimiento (desconocido)
*Mar 8 20:34:23.101: SB11: Vl11 Hello out     * Mar 8 20:34:20.221: SB11: Vl11 Listen -> Entrar
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 8 20:34:20.221: SB11: Vl11 Hola a cabo
*Mar 8 20:34:25.961: SB11: Vl11 Hello out 172.16.11.111 PRI Speak 100 IP 172.16.11.115
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 8 20:34:23.101: SB11: Vl11 Hola a cabo
*Mar 8 20:34:28.905: SB11: Vl11 Hello out 172.16.11.111 PRI Speak 100 IP 172.16.11.115
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 8 20:34:25.961: SB11: Vl11 Hola a cabo
*Mar 8 20:34:30.221: SB11: Vl11 Speak: d/Standby 172.16.11.111 PRI Speak 100 IP 172.16.11.115
timer expired (unknown)     * Mar 8 20:34:28.905: SB11: Vl11 Hola a cabo
*Mar 8 20:34:30.221: SB11: Vl11 Standby router is 172.16.11.111 PRI Speak 100 IP 172.16.11.115
local     * Mar 8 20:34:30.221: SB11: Vl11 Speak: d /
*Mar 8 20:34:30.221: SB11: Vl11 Speak -> Standby temporizador de espera de vencimiento (desconocido)
*Mar 8 20:34:30.221: SB11: Vl11 Hello out     * Mar 8 20:34:30.221: SB11: Vl11 router de espera es
172.16.11.111 Standby pri 100 ip 172.16.11.115 local
*Mar 8 20:34:30.221: SB11: Vl11 Standby: c/Active     * Mar 8 20:34:30.221: SB11: Vl11 Speak -> en espera
timer expired (unknown)     * Mar 8 20:34:30.221: SB11: Vl11 Hola a cabo
*Mar 8 20:34:30.221: SB11: Vl11 Active router is local 172.16.11.111 PRI en espera 100 IP 172.16.11.115
*Mar 8 20:34:30.221: SB11: Vl11 Standby router is     * Mar 8 20:34:30.221: SB11: Vl11 espera: c /
unknown, was local temporizador activo de vencimiento (desconocido)
*Mar 8 20:34:30.221: SB11: Vl11 Standby -> Active     * Mar 8 20:34:30.221: SB11: router Active Vl11 es
*Mar 8 20:34:30.221: %STANDBY-6- local
STATECHANGE: Vlan11 Group 11 state Standby ->     * Mar 8 20:34:30.221: SB11: Vl11 router de espera es
Active desconocido, fue local
*Mar 8 20:34:30.221: SB11: Vl11 Hello out     * Mar 8 20:34:30.221: SB11: Vl11 espera -> Activo
172.16.11.111 Active pri 100 ip 172.16.11.115     * Mar 8 20:34:30.221:% en espera-6-stateChange:
Vlan11 Grupo 11 estado de espera -> Activo
To disable the debugging feature, use either the no debug     * Mar 8 20:34:30.221: SB11: Vl11 Hola a cabo
standby or the no debug all command. 172.16.11.111 PRI Active 100 IP 172.16.11.115

Example: Debugging First and Only Router on Subnet Para desactivar la característica de depuración, utilice el
modo de espera sin depurar o la no depuración de todos
Because 1DSW1 (172.16.11.111) is the only router on the los comandos.
subnet, and it is not configured for preempt, it goes
through five HSRP states before becoming the active Ejemplo: Depuración primer y único router en la subred
router. Notice that at Mar 8 20:34:10.221 the interface
comes up, and 1DSW1 enters the listen state. The router Debido a 1DSW1 (172.16.11.111) es el único enrutador en
stays in listen state for a hold time of 10 seconds. 1DSW1 la subred, y no está configurado para anticiparse, pasa por
then goes into speak state at Mar 8 20:34:20.221 for 10 cinco estados HSRP antes de convertirse en el router
seconds. When the router is speaking, it sends its state out activo. Tenga en cuenta que en Mar 8 20:34:10.221 la
every 3 seconds, according to its hello interval. After 10 interfaz sale, y entra en la 1DSW1 escuchar Estado. El
seconds in speak state, the router has determined that there router se queda en estado de escuchar por un tiempo de
is no standby router and enters the standby state at Mar 8 espera de 10 segundos. 1DSW1 después va a hablar del
20:34:30.221. The router has also determined that there is estado en Mar 8 20:34:20.221 durante 10 segundos.
not an active router; therefore, it immediately enters active Cuando el router está hablando, le envía su estado a cabo
state at Mar 8 20:34:30.221. From that point on, the active cada 3 segundos, de acuerdo con su intervalo de saludo.
router sends its active state hello message every 3 Después de 10 segundos en hablar del Estado, el router ha
seconds. Because there are no other routers on this determinado que no hay ningún router en espera y entra en
broadcast domain, no hellos are being received. el estado de espera en Mar 8 20:34:30.221. El enrutador
también ha determinado que no hay un router activo, por
1DSW1(config)#interface vlan 11 lo que inmediatamente entra en estado activo en Mar 8
1DSW1(config-if)#no shut 20:34:30.221. A partir de ese momento, el router activo
envía su mensaje de estado activo hola cada 3 segundos.
*Mar 8 20:34:08.925: %SYS-5-CONFIG_I: Configured Porque no hay otros routers en este dominio de difusión,
from console by console no hellos se están recibiendo.
*Mar 8 20:34:10.213: %LINK-3-UPDOWN: Interface
Vlan11, changed state to up     1DSW1 (config) # interface vlan 11
*Mar 8 20:34:10.221: SB: Vl11 Interface up     1DSW1 (config) # no shut
*Mar 8 20:34:10.221: SB11: Vl11 Init: a/HSRP enabled
*Mar 8 20:34:10.221: SB11: Vl11 Init -> Listen     * Mar 8 20:34:08.925:% SYS-5-CONFIG_I: configurar
*Mar 8 20:34:11.213: %LINEPROTO-5-UPDOWN: desde la consola en consola
Line protocol on Interface Vlan11, changed state to up     * Mar 8 20:34:10.213:% LINK-3-UpDown: Interfaz
*Mar 8 20:34:20.221: SB11: Vl11 Listen: c/Active Vlan11, cambiado de estado a un máximo
timer expired (unknown)     * Mar 8 20:34:10.221: SB: Vl11 interfaz de hasta
*Mar 8 20:34:20.221: SB11: Vl11 Listen -> Speak     * Mar 8 20:34:10.221: SB11: Vl11 init: a / HSRP
*Mar 8 20:34:20.221: SB11: Vl11 Hello out habilitado
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 8 20:34:10.221: SB11: Vl11 init -> Escuchar
*Mar 8 20:34:23.101: SB11: Vl11 Hello out     * Mar 8 20:34:11.213:% LINEPROTO-5-UpDown:
172.16.11.111 Speak pri 100 ip 172.16.11.115 protocolo de interfaz de línea de Vlan11, cambiado de
*Mar 8 20:34:25.961: SB11: Vl11 Hello out estado a un máximo
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 8 20:34:20.221: SB11: Vl11 Escucha: c /
*Mar 8 20:34:28.905: SB11: Vl11 Hello out temporizador activo de vencimiento (desconocido)
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 8 20:34:20.221: SB11: Vl11 Listen -> Entrar
*Mar 8 20:34:30.221: SB11: Vl11 Speak: d/Standby     * Mar 8 20:34:20.221: SB11: Vl11 Hola a cabo
timer expired (unknown) 172.16.11.111 PRI Speak 100 IP 172.16.11.115
*Mar 8 20:34:30.221: SB11: Vl11 Standby router is     * Mar 8 20:34:23.101: SB11: Vl11 Hola a cabo
local 172.16.11.111 PRI Speak 100 IP 172.16.11.115
*Mar 8 20:34:30.221: SB11: Vl11 Speak -> Standby     * Mar 8 20:34:25.961: SB11: Vl11 Hola a cabo
*Mar 8 20:34:30.221: SB11: Vl11 Hello out 172.16.11.111 PRI Speak 100 IP 172.16.11.115
172.16.11.111 Standby pri 100 ip 172.16.11.115     * Mar 8 20:34:28.905: SB11: Vl11 Hola a cabo
*Mar 8 20:34:30.221: SB11: Vl11 Standby: c/Active 172.16.11.111 PRI Speak 100 IP 172.16.11.115
timer expired (unknown)     * Mar 8 20:34:30.221: SB11: Vl11 Speak: d /
*Mar 8 20:34:30.221: SB11: Vl11 Active router is local temporizador de espera de vencimiento (desconocido)
*Mar 8 20:34:30.221: SB11: Vl11 Standby router is     * Mar 8 20:34:30.221: SB11: Vl11 router de espera es
unknown, was local local
*Mar 8 20:34:30.221: SB11: Vl11 Standby -> Active     * Mar 8 20:34:30.221: SB11: Vl11 Speak -> en espera
*Mar 8 20:34:30.221: %STANDBY-6-     * Mar 8 20:34:30.221: SB11: Vl11 Hola a cabo
STATECHANGE: Vlan11 Group 11 state Standby -> 172.16.11.111 PRI en espera 100 IP 172.16.11.115
Active     * Mar 8 20:34:30.221: SB11: Vl11 espera: c /
*Mar 8 20:34:30.221: SB11: Vl11 Hello out temporizador activo de vencimiento (desconocido)
172.16.11.111 Active pri 100 ip 172.16.11.115     * Mar 8 20:34:30.221: SB11: router Active Vl11 es
*Mar 8 20:34:33.085: SB11: Vl11 Hello out local
172.16.11.111 Active pri 100 ip 172.16.11.115     * Mar 8 20:34:30.221: SB11: Vl11 router de espera es
*Mar 8 20:34:36.025: SB11: Vl11 Hello out desconocido, fue local
172.16.11.111 Active pri 100 ip 172.16.11.115     * Mar 8 20:34:30.221: SB11: Vl11 espera -> Activo
*Mar 8 20:34:38.925: SB11: Vl11 Hello out     * Mar 8 20:34:30.221:% en espera-6-stateChange:
172.16.11.111 Active pri 100 ip 172.16.11.115 Vlan11 Grupo 11 estado de espera -> Activo
    * Mar 8 20:34:30.221: SB11: Vl11 Hola a cabo
Example: Router Without Preempt Coming Up 172.16.11.111 PRI Active 100 IP 172.16.11.115
    * Mar 8 20:34:33.085: SB11: Vl11 Hola a cabo
Router 1DSW1 (172.16.11.111) is configured with a 172.16.11.111 PRI Active 100 IP 172.16.11.115
priority of 100, which is higher than the priority of 50 of     * Mar 8 20:34:36.025: SB11: Vl11 Hola a cabo
the current active router, 1DSW2 (172.16.11.112). Router 172.16.11.111 PRI Active 100 IP 172.16.11.115
1DSW1 is not configured with preempt, so even though it     * Mar 8 20:34:38.925: SB11: Vl11 Hola a cabo
has a higher priority, it does not immediately become the 172.16.11.111 PRI Active 100 IP 172.16.11.115
active router. After router 1DSW1 goes through the HSRP
initialization states, it will come up as the standby router. Ejemplo: router sin anticiparse a Coming Up

1DSW1(config)#interface vlan 11 Router 1DSW1 (172.16.11.111) está configurado con una


1DSW1(config-if)#no shut prioridad de 100, que es más alta que la prioridad de las
50 del router activa actual, 1DSW2 (172.16.11.112).
*Mar 1 00:12:16.871: SB11: Vl11 Hello in Router 1DSW1 no está configurado con esta opción, así
172.16.11.112 Active pri 50 ip 172.16.11.115 que a pesar de que tiene una mayor prioridad, no se
*Mar 1 00:12:16.871: SB11: Vl11 Active router is convierta inmediatamente en el router activo. Después de
172.16.11.112 1DSW1 router pasa a través de la inicialización HSRP
*Mar 1 00:12:16.891: %SYS-5-CONFIG_I: Configured estados, se levantará como el router de espera.
from console by console
*Mar 1 00:12:18.619: %LINK-3-UPDOWN: Interface     1DSW1 (config) # interface vlan 11
Vlan11, changed state to up     1DSW1 (config) # no shut
*Mar 1 00:12:18.623: SB: Vl11 Interface up
*Mar 1 00:12:18.623: SB11: Vl11 Init: a/HSRP enabled     * Mar 1 00:12:16.871: SB11: Vl11 Hola 172.16.11.112
*Mar 1 00:12:18.623: SB11: Vl11 Init -> Listen PRI en activo 50 IP 172.16.11.115
*Mar 1 00:12:19.619: %LINEPROTO-5-UPDOWN:     * Mar 1 00:12:16.871: SB11: router Active Vl11 es
Line protocol on Interface Vlan11, changed state to up 172.16.11.112
*Mar 1 00:12:19.819: SB11: Vl11 Hello in     * Mar 1 00:12:16.891:% SYS-5-CONFIG_I: configurar
172.16.11.112 Active pri 50 ip 172.16.11.115 desde la consola en consola
*Mar 1 00:12:19.819: SB11: Vl11 Listen: h/Hello rcvd     * Mar 1 00:12:18.619:% LINK-3-UpDown: Interfaz
from lower pri Active router (50/172.16.11.112) Vlan11, cambiado de estado a un máximo
*Mar 1 00:12:22.815: SB11: Vl11 Hello in     * Mar 1 00:12:18.623: SB: Vl11 interfaz de hasta
172.16.11.112 Active pri 50 ip 172.16.11.115     * Mar 1 00:12:18.623: SB11: Vl11 init: a / HSRP
*Mar 1 00:12:22.815: SB11: Vl11 Listen: h/Hello rcvd habilitado
from lower pri Active router (50/172.16.11.112)     * Mar 1 00:12:18.623: SB11: Vl11 init -> Escuchar
*Mar 1 00:12:25.683: SB11: Vl11 Hello in     * Mar 1 00:12:19.619:% LINEPROTO-5-UpDown:
172.16.11.112 Active pri 50 ip 172.16.11.115 protocolo de interfaz de línea de Vlan11, cambiado de
*Mar 1 00:12:25.683: SB11: Vl11 Listen: h/Hello rcvd estado a un máximo
from lower pri Active router (50/172.16.11.112)     * Mar 1 00:12:19.819: SB11: Vl11 Hola 172.16.11.112
*Mar 1 00:12:28.623: SB11: Vl11 Listen: d/Standby PRI en activo 50 IP 172.16.11.115
timer expired (unknown)     * Mar 1 00:12:19.819: SB11: Vl11 Escucha: h / Hola
*Mar 1 00:12:28.623: SB11: Vl11 Listen -> Speak rcvd de router PRI menor Active (50/172.16.11.112)
*Mar 1 00:12:28.623: SB11: Vl11 Hello out     * Mar 1 00:12:22.815: SB11: Vl11 Hola 172.16.11.112
172.16.11.111 Speak pri 100 ip 172.16.11.115 PRI en activo 50 IP 172.16.11.115
*Mar 1 00:12:28.659: SB11: Vl11 Hello in     * Mar 1 00:12:22.815: SB11: Vl11 Escucha: h / Hola
172.16.11.112 Active pri 50 ip 172.16.11.115 rcvd de router PRI menor Active (50/172.16.11.112)
*Mar 1 00:12:28.659: SB11: Vl11 Speak: h/Hello rcvd     * Mar 1 00:12:25.683: SB11: Vl11 Hola 172.16.11.112
from lower pri Active router (50/172.16.11.112) PRI en activo 50 IP 172.16.11.115
*Mar 1 00:12:31.539: SB11: Vl11 Hello in     * Mar 1 00:12:25.683: SB11: Vl11 Escucha: h / Hola
172.16.11.112 Active pri 50 ip 172.16.11.115 rcvd de router PRI menor Active (50/172.16.11.112)
*Mar 1 00:12:31.539: SB11: Vl11 Speak: h/Hello rcvd     * Mar 1 00:12:28.623: SB11: Vl11 Escucha: d /
from lower pri Active router (50/172.16.11.112) temporizador de espera de vencimiento (desconocido)
*Mar 1 00:12:31.575: SB11: Vl11 Hello out     * Mar 1 00:12:28.623: SB11: Vl11 Listen -> Entrar
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 1 00:12:28.623: SB11: Vl11 Hola a cabo
*Mar 1 00:12:34.491: SB11: Vl11 Hello in 172.16.11.111 PRI Speak 100 IP 172.16.11.115
172.16.11.112 Active pri 50 ip 172.16.11.115     * Mar 1 00:12:28.659: SB11: Vl11 Hola 172.16.11.112
*Mar 1 00:12:34.491: SB11: Vl11 Speak: h/Hello rcvd PRI en activo 50 IP 172.16.11.115
from lower pri Active router (50/172.16.11.112)     * Mar 1 00:12:28.659: SB11: Vl11 Speak: h / Hola rcvd
*Mar 1 00:12:34.547: SB11: Vl11 Hello out de router PRI menor Active (50/172.16.11.112)
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 1 00:12:31.539: SB11: Vl11 Hola 172.16.11.112
*Mar 1 00:12:37.363: SB11: Vl11 Hello in PRI en activo 50 IP 172.16.11.115
172.16.11.112 Active pri 50 ip 172.16.11.115     * Mar 1 00:12:31.539: SB11: Vl11 Speak: h / Hola rcvd
*Mar 1 00:12:37.363: SB11: Vl11 Speak: h/Hello rcvd de router PRI menor Active (50/172.16.11.112)
from lower pri Active router (50/172.16.11.112)     * Mar 1 00:12:31.575: SB11: Vl11 Hola a cabo
*Mar 1 00:12:37.495: SB11: Vl11 Hello out 172.16.11.111 PRI Speak 100 IP 172.16.11.115
172.16.11.111 Speak pri 100 ip 172.16.11.115     * Mar 1 00:12:34.491: SB11: Vl11 Hola 172.16.11.112
*Mar 1 00:12:38.623: SB11: Vl11 Speak: d/Standby PRI en activo 50 IP 172.16.11.115
timer expired (unknown)     * Mar 1 00:12:34.491: SB11: Vl11 Speak: h / Hola rcvd
*Mar 1 00:12:38.623: SB11: Vl11 Standby router is de router PRI menor Active (50/172.16.11.112)
local     * Mar 1 00:12:34.547: SB11: Vl11 Hola a cabo
*Mar 1 00:12:38.623: SB11: Vl11 Speak -> Standby 172.16.11.111 PRI Speak 100 IP 172.16.11.115
*Mar 1 00:12:38.623: SB11: Vl11 Hello out     * Mar 1 00:12:37.363: SB11: Vl11 Hola 172.16.11.112
172.16.11.111 Standby pri 100 ip 172.16.11.115 PRI en activo 50 IP 172.16.11.115
*Mar 1 00:12:40.279: SB11: Vl11 Hello in     * Mar 1 00:12:37.363: SB11: Vl11 Speak: h / Hola rcvd
172.16.11.112 Active pri 50 ip 172.16.11.115 de router PRI menor Active (50/172.16.11.112)
*Mar 1 00:12:40.279: SB11: Vl11 Standby: h/Hello     * Mar 1 00:12:37.495: SB11: Vl11 Hola a cabo
rcvd from lower pri Active router (50/172.16.11.112) 172.16.11.111 PRI Speak 100 IP 172.16.11.115
*Mar 1 00:12:41.551: SB11: Vl11 Hello out     * Mar 1 00:12:38.623: SB11: Vl11 Speak: d /
172.16.11.111 Standby pri 100 ip 172.16.11.115 temporizador de espera de vencimiento (desconocido)
*Mar 1 00:12:43.191: SB11: Vl11 Hello in     * Mar 1 00:12:38.623: SB11: Vl11 router de espera es
172.16.11.112 Active pri 50 ip 172.16.11.115 local
*Mar 1 00:12:43.191: SB11: Vl11 Standby: h/Hello     * Mar 1 00:12:38.623: SB11: Vl11 Speak -> en espera
rcvd from lower pri Active router (50/172.16.11.112)     * Mar 1 00:12:38.623: SB11: Vl11 Hola a cabo
*Mar 1 00:12:44.539: SB11: Vl11 Hello out 172.16.11.111 PRI en espera 100 IP 172.16.11.115
172.16.11.111 Standby pri 100 ip 172.16.11.115     * Mar 1 00:12:40.279: SB11: Vl11 Hola 172.16.11.112
*Mar 1 00:12:46.167: SB11: Vl11 Hello in PRI en activo 50 IP 172.16.11.115
172.16.11.112 Active pri 50 ip 172.16.11.115     * Mar 1 00:12:40.279: SB11: Vl11 espera: h / Hola rcvd
*Mar 1 00:12:46.167: SB11: Vl11 Standby: h/Hello de router PRI menor Active (50/172.16.11.112)
rcvd from lower pri Active router (50/172.16.11.112)     * Mar 1 00:12:41.551: SB11: Vl11 Hola a cabo
*Mar 1 00:12:47.415: SB11: Vl11 Hello out 172.16.11.111 PRI en espera 100 IP 172.16.11.115
172.16.11.111 Standby pri 100 ip 172.16.11.115     * Mar 1 00:12:43.191: SB11: Vl11 Hola 172.16.11.112
*Mar 1 00:12:49.119: SB11: Vl11 Hello in PRI en activo 50 IP 172.16.11.115
172.16.11.112 Active pri 50 ip 172.16.11.115     * Mar 1 00:12:43.191: SB11: Vl11 espera: h / Hola rcvd
*Mar 1 00:12:49.119: SB11: Vl11 Standby: h/Hello de router PRI menor Active (50/172.16.11.112)
rcvd from lower pri Active router (50/172.16.11.112)     * Mar 1 00:12:44.539: SB11: Vl11 Hola a cabo
*Mar 1 00:12:50.267: SB11: Vl11 Hello out 172.16.11.111 PRI en espera 100 IP 172.16.11.115
172.16.11.111 Standby pri 100 ip 172.16.11.115     * Mar 1 00:12:46.167: SB11: Vl11 Hola 172.16.11.112
PRI en activo 50 IP 172.16.11.115
Example: Router with Preempt Coming Up     * Mar 1 00:12:46.167: SB11: Vl11 espera: h / Hola rcvd
de router PRI menor Active (50/172.16.11.112)
Router 1DSW1 (172.16.11.11) is configured with a     * Mar 1 00:12:47.415: SB11: Vl11 Hola a cabo
priority of 100, which is higher than the priority of the 172.16.11.111 PRI en espera 100 IP 172.16.11.115
active router, 1DSW2 (172.16.11.112). 1DSW1 is also     * Mar 1 00:12:49.119: SB11: Vl11 Hola 172.16.11.112
configured with preempt. At Mar 1 00:16:43.099, PRI en activo 50 IP 172.16.11.115
VLAN11 on 1DSW1 comes up and transitions into the     * Mar 1 00:12:49.119: SB11: Vl11 espera: h / Hola rcvd
listen state. At Mar 1 00:16:43.295, 1DSW1 receives a de router PRI menor Active (50/172.16.11.112)
hello message from the active router (1DSW2). 1DSW1     * Mar 1 00:12:50.267: SB11: Vl11 Hola a cabo
determines that the active router has a lower priority. At 172.16.11.111 PRI en espera 100 IP 172.16.11.115
Mar 1 00:16:43.295, 1DSW1 immediately sends out a
coup message indicating that 1DSW1 is transitioning to Ejemplo: Router con esta opción Coming Up
the active router. 1DSW2 enters the speak state and
eventually becomes the standby router. Router 1DSW1 (172.16.11.11) está configurado con una
prioridad de 100, que es más alta que la prioridad del
1DSW1(config)#interface vlan 11 router activo, 1DSW2 (172.16.11.112). 1DSW1 también
1DSW1(config-if)#no shut está configurado con esta opción. En Mar 1 00:16:43.099,
VLAN11 en 1DSW1 viene y transiciones en el estado de
*Mar 1 00:16:41.295: %SYS-5-CONFIG_I: Configured escuchar. En Mar 1 00:16:43.295, 1DSW1 recibe un
from console by console mensaje Hello desde el router activo (1DSW2). 1DSW1
*Mar 1 00:16:43.095: %LINK-3-UPDOWN: Interface determina que el router activo tiene una prioridad menor.
Vlan11, changed state to up En Mar 1 00:16:43.295, 1DSW1 envía inmediatamente un
*Mar 1 00:16:43.099: SB: Vl11 Interface up mensaje que indica que el golpe 1DSW1 está en transición
*Mar 1 00:16:43.099: SB11: Vl11 Init: a/HSRP enabled hacia el router activo. 1DSW2 entra al hablar del Estado y
*Mar 1 00:16:43.099: SB11: Vl11 Init -> Listen eventualmente se convierte en el router de espera.
*Mar 1 00:16:43.295: SB11: Vl11 Hello in
172.16.11.112 Active pri 50 ip 172.16.11.115     1DSW1 (config) # interface vlan 11
*Mar 1 00:16:43.295: SB11: Vl11 Active router is     1DSW1 (config) # no shut
172.16.11.112
*Mar 1 00:16:43.295: SB11: Vl11 Listen: h/Hello rcvd     * Mar 1 00:16:41.295:% SYS-5-CONFIG_I: configurar
from lower pri Active router (50/172.16.11.112) desde la consola en consola
*Mar 1 00:16:43.295: SB11: Vl11 Active router is local,     * Mar 1 00:16:43.095:% LINK-3-UpDown: Interfaz
was 172.16.11.112 Vlan11, cambiado de estado a un máximo
*Mar 1 00:16:43.295: SB11: Vl11 Coup out     * Mar 1 00:16:43.099: SB: Vl11 interfaz de hasta
172.16.11.111 Listen pri 100 ip 172.16.11.115     * Mar 1 00:16:43.099: SB11: Vl11 init: a / HSRP
Mar 1 00:16:43.295 habilitado
*Mar 1 00:16:43.299: %STANDBY-6-     * Mar 1 00:16:43.099: SB11: Vl11 init -> Escuchar
STATECHANGE: Vlan11 Group 11 state Listen -> Active     * Mar 1 00:16:43.295: SB11: Vl11 Hola 172.16.11.112
*Mar 1 00:16:43.299: SB11: Vl11 Hello out PRI en activo 50 IP 172.16.11.115
172.16.11.111 Active pri 100 ip 172.16.11.115     * Mar 1 00:16:43.295: SB11: router Active Vl11 es
*Mar 1 00:16:43.303: SB11: Vl11 Hello in 172.16.11.112
172.16.11.112 Speak pri 50 ip 172.16.11.115     * Mar 1 00:16:43.295: SB11: Vl11 Escucha: h / Hola
*Mar 1 00:16:44.095: %LINEPROTO-5-UPDOWN: rcvd de router PRI menor Active (50/172.16.11.112)
Line protocol on Interface Vlan11, changed state to up     * Mar 1 00:16:43.295: SB11: router Active Vl11 es
*Mar 1 00:16:46.187: SB11: Vl11 Hello in local, se 172.16.11.112
172.16.11.112 Speak pri 50 ip 172.16.11.115     * Mar 1 00:16:43.295: SB11: Vl11 Golpe a cabo
*Mar 1 00:16:46.207: SB11: Vl11 Hello out 172.16.11.111 Escucha PRI 100 IP 172.16.11.115
172.16.11.111 Active pri 100 ip 172.16.11.115     Mar 1 00:16:43.295
*Mar 1 00:16:49.095: SB11: Vl11 Hello in     * Mar 1 00:16:43.299:% en espera-6-stateChange:
172.16.11.112 Speak pri 50 ip 172.16.11.115 Vlan11 Grupo 11 Estado Listen -> Activo
*Mar 1 00:16:49.195: SB11: Vl11 Hello out     * Mar 1 00:16:43.299: SB11: Vl11 Hola a cabo
172.16.11.111 Active pri 100 ip 172.16.11.115 172.16.11.111 PRI Active 100 IP 172.16.11.115
*Mar 1 00:16:52.079: SB11: Vl11 Hello in     * Mar 1 00:16:43.303: SB11: Hola Vl11 en
172.16.11.112 Speak pri 50 ip 172.16.11.115 172.16.11.112 PRI Speak 50 IP 172.16.11.115
    * Mar 1 00:16:44.095:% LINEPROTO-5-UpDown:
protocolo de interfaz de línea de Vlan11, cambiado de
estado a un máximo
    * Mar 1 00:16:46.187: SB11: Hola Vl11 en
172.16.11.112 PRI Speak 50 IP 172.16.11.115
    * Mar 1 00:16:46.207: SB11: Vl11 Hola a cabo
172.16.11.111 PRI Active 100 IP 172.16.11.115
    * Mar 1 00:16:49.095: SB11: Hola Vl11 en
172.16.11.112 PRI Speak 50 IP 172.16.11.115
    * Mar 1 00:16:49.195: SB11: Vl11 Hola a cabo
172.16.11.111 PRI Active 100 IP 172.16.11.115
    * Mar 1 00:16:52.079: SB11: Hola Vl11 en
172.16.11.112 PRI Speak 50 IP 172.16.11.115
    * Mar 1 00:16:52.147: SB11: Vl11 Hola a cabo
172.16.11.111 PRI Active 100 IP 172.16.11.115
    * Mar 1 00:16:53.303: SB11: Vl11 Hola en
172.16.11.112 PRI en espera 50 IP 172.16.11.115
*Mar 1 00:16:52.147: SB11: Vl11 Hello out     * Mar 1 00:16:53.303: SB11: Vl11 router de espera es
172.16.11.111 Active pri 100 ip 172.16.11.115 172.16.11.112
*Mar 1 00:16:53.303: SB11: Vl11 Hello in     * Mar 1 00:16:55.083: SB11: Vl11 Hola a cabo
172.16.11.112 Standby pri 50 ip 172.16.11.115 172.16.11.111 PRI Active 100 IP 172.16.11.115
*Mar 1 00:16:53.303: SB11: Vl11 Standby router is     * Mar 1 00:16:56.231: SB11: Vl11 Hola en
172.16.11.112 172.16.11.112 PRI en espera 50 IP 172.16.11.115
*Mar 1 00:16:55.083: SB11: Vl11 Hello out     * Mar 1 00:16:58.023: SB11: Vl11 Hola a cabo
172.16.11.111 Active pri 100 ip 172.16.11.115 172.16.11.111 PRI Active 100 IP 172.16.11.115
*Mar 1 00:16:56.231: SB11: Vl11 Hello in     * Mar 1 00:16:59.223: SB11: Vl11 Hola en
172.16.11.112 Standby pri 50 ip 172.16.11.115 172.16.11.112 PRI en espera 50 IP 172.16.11.115
*Mar 1 00:16:58.023: SB11: Vl11 Hello out     * Mar 1 00:17:00.983: SB11: Vl11 Hola a cabo
172.16.11.111 Active pri 100 ip 172.16.11.115 172.16.11.111 PRI Active 100 IP 172.16.11.115
*Mar 1 00:16:59.223: SB11: Vl11 Hello in     * Mar 1 00:17:02.211: SB11: Vl11 Hola en
172.16.11.112 Standby pri 50 ip 172.16.11.115 172.16.11.112 PRI en espera 50 IP 172.16.11.115
*Mar 1 00:17:00.983: SB11: Vl11 Hello out     * Mar 1 00:17:03.847: SB11: Vl11 Hola a cabo
172.16.11.111 Active pri 100 ip 172.16.11.115 172.16.11.111 PRI Active 100 IP 172.16.11.115
*Mar 1 00:17:02.211: SB11: Vl11 Hello in
172.16.11.112 Standby pri 50 ip 172.16.11.115
*Mar 1 00:17:03.847: SB11: Vl11 Hello out
172.16.11.111 Active pri 100 ip 172.16.11.115
5.3 Configuring Layer 3 Redundancy with VRRP and 5.3 Configuración de Capa 3 con VRRP y redundancia
GLBP GLBP
5.3.1Describing Virtual Router Redundancy   5.3.1 Descripción de redundancia de router virtual
Like HSRP, Virtual Router Redundancy Protocol Al igual que HSRP, Virtual Router Redundancy Protocol
(VRRP) allows a group of routers to form a single virtual (VRRP) permite a un grupo de routers para formar un
router. In an HSRP or VRRP group, one router is elected router virtual. En un grupo HSRP o VRRP, un router es
to handle all requests sent to the virtual IP address. With elegido para manejar todas las solicitudes enviadas a la
HSRP, this is the active router. An HSRP group has one dirección IP virtual. Con HSRP, este es el router activo.
active router, at least one standby router, and perhaps Un grupo HSRP tiene un router activo, al menos un router
many listening routers. A VRRP group has one master de espera, y tal vez muchos escuchar routers. Un grupo de
router and one or more backup routers. The LAN VRRP router tiene un maestro y uno o más routers de
workstations are then configured with the address of the copia de seguridad. Las estaciones de trabajo de LAN se
virtual router as their default gateway. configura con la dirección del router virtual como su
puerta de enlace predeterminada.
VRRP differs from HSRP in the following ways:
HSRP VRRP difiere de las siguientes maneras:
* VRRP is an IEEE standard (RFC 2338) for router
redundancy; HSRP is a Cisco-proprietary protocol.     * VRRP es un estándar IEEE (RFC 2338) para la
* The virtual router represents a group of routers, redundancia router; HSRP es un protocolo propietario de
known as a VRRP group or virtual router group. Cisco.
* The active router is referred to as the master virtual     * El router virtual representa un grupo de routers,
router. conocido como un grupo o de un grupo VRRP router
* The master virtual router may have the same IP virtual.
address as the virtual router group.     * El router activo se conoce como el maestro de router
virtual.
    * El maestro de router virtual puede tener la misma
dirección IP como el grupo de router virtual.
    * Múltiples routers pueden funcionar como enrutadores
de copia de seguridad.
    * VRRP es compatible con Ethernet, Fast Ethernet y
* Multiple routers can function as backup routers. Gigabit Ethernet, y con el Multiprotocol Label Switching
* VRRP is supported on Ethernet, Fast Ethernet, and (MPLS), redes privadas virtuales (VPN), y VLANs.
Gigabit Ethernet interfaces, and with Multiprotocol Label
Switching (MPLS), virtual private networks (VPNs), and En la figura, los routers A, B y C son miembros de un
VLANs. grupo de VRRP. La dirección IP del router virtual es la
misma que la de la interfaz LAN de un router (10.0.0.1).
In Figure , routers A, B, and C are members of a VRRP Un router es el responsable de reenviar paquetes enviados
group. The IP address of the virtual router is the same as a esta dirección IP.
that of the LAN interface of router A (10.0.0.1). Router A
is responsible for forwarding packets sent to this IP Los clientes tienen una dirección de puerta de enlace
address. 10.0.0.1. Routers B y C son los routers de copia de
seguridad. Si el router maestro falla, el enrutador de copia
The clients have a gateway address of 10.0.0.1. Routers B de seguridad con la más alta prioridad se convierte en el
and C are backup routers. If the master router fails, the router maestro. Cuando un router se recupera, reanuda la
backup router with the highest priority becomes the función de router maestro.
master router. When router A recovers, it resumes the role
of master router. VRRP proporciona redundancia para la dirección IP real
del router o de una dirección IP virtual compartida entre
VRRP provides redundancy for the real IP address of a los miembros del grupo VRRP. Si se utiliza una dirección
router or for a virtual IP address shared among the VRRP IP real, el router con esa dirección se convierte en el
group members. If a real IP address is used, the router maestro. Si se utiliza una dirección IP virtual, el maestro
with that address becomes the master. If a virtual IP es el router con la más alta prioridad. El router maestro
address is used, the master is the router with the highest utiliza los mensajes de VRRP para informar a los
priority. The master router uses VRRP messages to inform miembros del grupo que es el maestro
group members that it is the master
5.3 Configuración de Capa 3 con VRRP y redundancia
5.3 Configuring Layer 3 Redundancy with VRRP and GLBP
GLBP   5.3.3 Configuración de VRRP
5.3.3Configuring VRRP VRRP es compatible con las plataformas de Cisco
VRRP is supported on select Cisco Catalyst Catalyst seleccione y se puede configurar utilizando los
platforms and can be configured using the commands in comandos en la figura.
Figure .
Figura describe los parámetros de comando VRRP.
Figure describes the VRRP command parameters.
La figura se describe cómo configurar VRRP.
Figure describes how to configure VRRP.
Ejemplo: Aplicación de VRRP
Example: Implementing VRRP
    SwitchA (config) # interfaz vlan10
SwitchA(config)#interface vlan10     SwitchA (config) # ip address 10.1.10.5 255.255.255.0
SwitchA(config-if)#ip address 10.1.10.5 255.255.255.0     SwitchA (config) # ip 10.1.10.1 vrrp 10
SwitchA(config-if)#vrrp 10 ip 10.1.10.1     SwitchA (config) # 10 vrrp prioridad 150
SwitchA(config-if)#vrrp 10 priority 150     SwitchA (config) # 10 vrrp temporizador Publicidad 4
SwitchA(config-if)#vrrp 10 timer advertise 4
    Switchb (config) # interfaz vlan10
SwitchB(config)#interface vlan10     Switchb (config) # ip address 10.1.10.6 255.255.255.0
SwitchB(config-if)#ip address 10.1.10.6 255.255.255.0     Switchb (config) # ip 10.1.10.1 vrrp 10
SwitchB(config-if)#vrrp 10 ip 10.1.10.1     Switchb (config) # 10 vrrp prioridad 100
SwitchB(config-if)#vrrp 10 priority 100     Switchb (config) # 10 vrrp temporizador Publicidad 4
SwitchB(config-if)#vrrp 10 timer advertise 4
5.3 Configuring Layer 3 Redundancy with VRRP and 5.3 Configuración de Capa 3 con VRRP y redundancia
GLBP GLBP
5.3.4 Describing GLBP   5.3.4 Descripción de GLBP
While HSRP and VRRP provide gateway Mientras HSRP y VRRP proporcionar resistencia de
resiliency, the upstream bandwidth is not used for the puerta de enlace, el ancho de banda ascendente no se
standby members of the redundancy group while the utiliza para los miembros de reserva del grupo de despido,
device is in standby mode. Only the active router for mientras el dispositivo está en modo de espera. Sólo el
HSRP and VRRP groups forwards traffic for the virtual router activa de los grupos HSRP y VRRP reenvía el
MAC. Resources associated with the standby router are tráfico de la MAC virtual. Los recursos asociados con el
not fully utilized. Some load balancing can occur by router de espera no se utilizan plenamente. Algunos de
creating multiple groups and assigning multiple default equilibrio de carga puede ocurrir mediante la creación de
gateways, but this configuration creates an administrative varios grupos y la asignación de puertas de enlace
burden. predeterminadas, pero esta configuración crea una carga
administrativa.
Cisco designed the Gateway Load Balancing Protocol
(GLBP) to allow automatic selection, simultaneous use of Cisco ha diseñado el Protocolo de equilibrio de carga de
multiple gateways, and automatic failover between those puerta de enlace (GLBP) para permitir la selección
gateways. Multiple routers share the load of frames that, automática, el uso simultáneo de varias puertas de enlace,
from a client perspective, are sent to a single default y failover automático entre las puertas de enlace. Varios
gateway address. enrutadores compartir la carga de los marcos que, desde la
perspectiva del cliente, son enviados a una única dirección
With GLBP, resources can be fully utilized without the de puerta de enlace predeterminada.
administrative burden of configuring multiple groups and
managing multiple default gateway configurations as is Con GLBP, los recursos pueden utilizarse plenamente sin
required with HSRP and VRRP. la carga administrativa de la configuración de grupos
múltiples y la gestión de configuraciones múltiples de
GLBP has the following functions: puerta de enlace predeterminada como se requiere con
HSRP y VRRP.
* Active virtual gateway (AVG): Members of a GLBP
group elect one gateway to be the AVG for that group. GLBP tiene las siguientes funciones:
Other group members provide backup for the AVG if the
AVG becomes unavailable. The AVG assigns a virtual     * Pasarela virtual activo (AVG): Miembros de un grupo
MAC address to each member of the group. GLBP elegir a un gateway para el AVG para ese grupo.
* Active virtual forwarder (AVF): Each gateway Otros miembros del grupo proporcionar copia de
assumes responsibility for forwarding packets sent to the seguridad de la AVG, si el AVG no está disponible. El
virtual MAC address assigned to it by the AVG. These AVG asigna una dirección MAC virtual a cada miembro
gateways are known as AVFs for their virtual MAC del grupo.
address.     * Forwarder virtual activo (FAV): Cada uno asume la
* Communication: GLBP members communicate with responsabilidad de puerta de enlace para reenviar paquetes
each other using hello messages sent every 3 seconds to enviados a la dirección MAC virtual que le asigne el AVG.
the multicast address 224.0.0.102, User Datagram Estas pasarelas se conoce como mc para su dirección
Protocol (UDP) port 3222. MAC virtual.
    * Comunicación: los miembros de GLBP comunicarse
GLBP has the following features: entre sí a través de Hello mensajes enviados cada 3
segundos a la dirección multicast 224.0.0.102, Protocolo
* Load sharing: Traffic from LAN clients can be shared de datagramas de usuario (UDP) el puerto 3222.
by multiple routers.
* Multiple virtual routers: Up to 1,024 virtual routers GLBP tiene las siguientes características:
(GLBP groups) can be on each physical interface of a
router, and there can be up to four virtual forwarders per     * Intercambio de carga: El tráfico de clientes de LAN
group. pueden ser compartidos por varios enrutadores.
* Preemption: You can preempt an AVG with a higher     * Múltiples enrutadores virtuales: Hasta 1.024
priority backup virtual gateway. Forwarder preemption enrutadores virtuales (grupos GLBP) puede ser en cada
works in a similar way, except that it uses weighting interfaz físico de un router, y puede haber hasta cuatro
instead of priority and is enabled by default. agentes de virtual por grupo.
* Efficient resource utilization: Any router in a group     * Los ataques preventivos: Puede anticiparse a una
can serve as a backup, which eliminates the need for a GVA con una prioridad más alta pasarela virtual de copia
dedicated backup router because all available routers can de seguridad. Preemption promotor funciona de una
support network traffic. manera similar, excepto que se utiliza en lugar de
ponderación de prioridad y está habilitada por defecto.
GLBP provides upstream load sharing by utilizing the     * La utilización eficiente de los recursos: Cualquier
redundant uplinks simultaneously. It uses link capacity router en un grupo puede servir como una copia de
efficiently, thus providing peak-load traffic coverage. By seguridad, lo que elimina la necesidad de un enrutador de
making use of multiple available paths upstream from the copia de seguridad dedicado por todos los routers
routers or Layer 3 switches running GLBP, output queues disponibles pueden soportar el tráfico de red.
may also be reduced.
GLBP proporciona aguas arriba compartir la carga
mediante la utilización de los enlaces ascendentes
despedidos de forma simultánea. Utiliza las capacidades
de interconexión de manera eficiente, proporcionando así
una cobertura máxima del tráfico de carga. Al hacer uso de
múltiples rutas disponibles aguas arriba de los routers o
conmutadores de nivel 3 ejecutando GLBP, las colas de
salida también puede ser reducida.

HSRP y VRRP utilizar un sólo camino; otros caminos son


ociosas, a menos que varios grupos y puertas de enlace
HSRP and VRRP use only a single path; other paths are están configurados. La única ruta de acceso puede
idle, unless multiple groups and gateways are configured. encontrar las tasas de aumento de la producción de colas
The single path may encounter higher output queue rates en las horas pico, lo que conduce a la disminución en las
during peak times, which leads to lower performance from tasas de fluctuación. El impacto de la fluctuación se
higher jitter rates. The impact of jitter is lessened and reduce y el rendimiento general mejora con GLBP, ya que
overall performance is improved with GLBP, because aguas arriba es más ancho de banda disponible y otros
more upstream bandwidth is available and additional caminos de arriba son usados.
upstream paths are used.
5.3 Configuring Layer 3 Redundancy with VRRP and 5.3 Configuración de Capa 3 con VRRP y redundancia
GLBP GLBP
5.3.5 Identifying the GLBP Operations Process   5.3.5 Identificar el Proceso de Operaciones GLBP
GLBP allows automatic selection and GLBP permite la selección automática y el uso simultáneo
simultaneous use of all available gateways in the group. de todas las puertas disponibles en el grupo. Los
The members of a GLBP group elect one gateway to be miembros de un grupo de GLBP elegir a un gateway para
the AVG for that group. Other members of the group el AVG para ese grupo. Otros miembros del grupo de
provide backup for the AVG if it becomes unavailable. copia de seguridad para facilitar el AVG, si no está
The AVG assigns a virtual MAC address to each member disponible. El AVG asigna una dirección MAC virtual a
of the GLBP group. All routers become AVFs for frames cada miembro del grupo GLBP. Todos los routers se AVFS
addressed to that virtual MAC address. As clients send para los marcos de envío a la dirección MAC virtual.
Address Resolution Protocol (ARP) requests for the Como los clientes enviar Address Resolution Protocol
address of the default gateway, the AVG sends these (ARP) las solicitudes de la dirección de la puerta de enlace
virtual MAC addresses in the ARP replies. A GLBP group predeterminada, el AVG envía estas direcciones MAC
can have up to four group members. virtual en la ARP respuestas. Un grupo GLBP puede tener
hasta cuatro miembros del grupo.
GLBP supports the following operational modes for load
balancing traffic across multiple default routers servicing GLBP apoya los siguientes modos de operación para
the same default gateway IP address: equilibrar la carga de tráfico a través de enrutadores por
defecto de múltiples servicios de la misma dirección de
* Weighted load-balancing algorithm: The amount of puerta de enlace IP por defecto:
load directed to a router is dependent upon the weighting
value advertised by that router.     * Carga ponderado algoritmo de equilibrio: La cantidad
* Host-dependent load-balancing algorithm: A host is de carga dirigida a un router depende del valor de
guaranteed to use the same virtual MAC address as long ponderación anunciada por ese router.
as that virtual MAC address is participating in the GLBP     * Casa de carga depende algoritmo de equilibrio: Una
group. multitud se garantiza a utilizar la misma dirección MAC
* Round-robin load-balancing algorithm: As clients virtual, mientras que la dirección MAC virtual está
send ARP requests to resolve the MAC address of the participando en el grupo de GLBP.
default gateway, the reply to each client contains the MAC     * Round-Robin de equilibrio de carga de algoritmo:
address of the next possible router in round-robin fashion. Dado que los clientes enviar peticiones ARP para resolver
All routers’ MAC addresses take turns being included in la dirección MAC de la puerta de enlace predeterminada,
address resolution replies for the default gateway IP la respuesta a cada cliente contiene la dirección MAC del
address. router es posible en el próximo round-robin. Todos los
routers de las direcciones MAC de tomar turnos para ser
GLBP automatically manages the virtual MAC address incluido en la resolución de la dirección de las respuestas
assignment, determines who handles the forwarding, and de la dirección IP de puerta de enlace predeterminada.
ensures that each station has a forwarding path for failures
to gateways or tracked interfaces. If failures occur, the GLBP gestiona automáticamente la asignación de la
load-balancing ratio is adjusted among the remaining dirección MAC virtual, determina que se encarga de la
AVFs so that resources are used in the most efficient way. transmisión, y se asegura de que cada estación tiene una
ruta de transmisión de los fracasos de gateways o
As shown in Figure , GLBP attempts to balance traffic on interfaces de seguimiento. Si se producen errores, la
a per-host basis using the round-robin algorithm. relación de equilibrio de carga se ajusta entre los AVFS
restantes para que los recursos se utilicen de la manera
Figure describes how GLBP balances traffic using the más eficiente.
round-robin algorithm.
Como se muestra en la figura, GLBP intenta equilibrar el
In Figure , clients A and B have each resolved a different tráfico en una base per host, utilizando el algoritmo de
MAC address for the default gateway, so they send their Robin.
routed traffic to separate routers, although they both have
the same default gateway address configured. Each GLBP Figura describe cómo GLBP saldos de tráfico, utilizando
router is an AVF for the virtual MAC address to which it el algoritmo de Robin.
has been assigned.
En la figura, los clientes A y B tienen cada uno resuelve
Like HSRP, GLBP can be configured to track interfaces. una dirección MAC diferente para la puerta de enlace
In Figure , the WAN link from router R1 is lost, and predeterminada, por lo que enviar su tráfico enviados a los
GLBP detects the failure. routers por separado, aunque ambos tienen la misma
dirección de puerta de enlace predeterminada configurada.
Because interface tracking was configured on R1, the job Cada router es un GLBP AVF de la dirección MAC virtual
of forwarding packets for virtual MAC address a la que se le ha asignado.
0000.0000.0001 is taken over by the secondary virtual
forwarder for the MAC, which is router R2. Therefore, the Como HSRP, GLBP puede ser configurado para realizar
client sees no disruption of service nor does it need to un seguimiento de interfaces. En la figura, el enlace WAN
resolve a new MAC address for the default gateway. de router R1 está perdido, y GLBP detecta el error.

GLBP is supported on select Cisco Catalyst platforms. Debido a que el seguimiento de la interfaz se ha
Figure illustrates the GLBP interface commands. Figure configurado en R1, el trabajo de reenvío de paquetes para
describes the command parameters. Figure describes the la dirección MAC virtual 0000.0000.0001 es asumida por
steps needed to configure GLBP. el transitario virtual secundario para el Mac, que es R2
router. Por lo tanto, el cliente no ve la interrupción del
The following example configures GLBP on two servicio ni necesidad de resolver una nueva dirección
multilayer switches: MAC de la puerta de enlace predeterminada.

SwitchA(config)#interface vlan7 GLBP es compatible con las plataformas de Cisco Catalyst


SwitchA(config-if)#ip address 10.1.7.5 255.255.255.0 seleccione. La figura muestra la interfaz de comandos de
SwitchA(config-if)#glbp 7 ip 10.1.7.1 GLBP. La figura se describen los parámetros de
SwitchA(config-if)#glbp 7 priority 150 comandos. Figura describe los pasos necesarios para
SwitchA(config-if)#glbp 7 timers msec 250 msec 750 configurar GLBP.

SwitchB(config)#interface vlan7 El siguiente ejemplo configura GLBP en dos


SwitchB(config-if)#ip address 10.1.7.6 255.255.255.0 conmutadores multicapa:
SwitchB(config-if)#glbp 7 ip 10.1.7.1
SwitchB(config-if)#glbp 7 priority 100     SwitchA (config) # interfaz vlan7
SwitchB(config-if)#glbp 7 timers msec 250 msec 750     SwitchA (config) # ip address 10.1.7.5 255.255.255.0
    SwitchA (config-if) glbp # 7 IP 10.1.7.1
SwitchA#show glbp 7     SwitchA (config-if) glbp # 7 prioridad 150
Vlan7 - Group 7     SwitchA (config) # 7 temporizadores glbp ms 250 ms
State is Active 750
2 state changes, last state change 23:50:33
Virtual IP address is 10.1.7.1     Switchb (config) # interfaz vlan7
Hello time 250 msec, hold time 750 msec     Switchb (config) # ip address 10.1.7.6 255.255.255.0
Next hello sent in 40 msecs     Switchb (config-if) glbp # 7 IP 10.1.7.1
Redirect time 600 sec, forwarder time-out 7200 sec     Switchb (config-if) glbp # 7 prioridad 100
Authentication text "stringabc"     Switchb (config) # 7 temporizadores glbp ms 250 ms
Preemption enabled, min delay 60 sec 750
Active is local
Standby is unknown     SwitchA # glbp mostrar el 7
Priority 254 (configured)     Vlan7 - Grupo 7
Weighting 105 (configured 110), thresholds: lower 95,     Estado es activo
upper 105     2 cambios de estado, el cambio del último Estado
Track object 2 state Down decrement 5 23:50:33
Load balancing: host-dependent     Virtual dirección IP es 10.1.7.1
There is 1 forwarder (1 active)     Hola tiempo de 250 ms, 750 ms tiempo de retención
Forwarder 1     Próximo Bienvenido enviado en 40 mseg
State is Active     Tiempo Redirect 600 seg, el tiempo de espera forwarder
7200 seg
    Autenticación de texto "stringabc"
    Preemption habilitado, retraso min 60 seg
    Active es local
    De espera es desconocido
    Prioridad 254 (configurado)
    Ponderación 105 (configurado 110), los umbrales: parte
inferior de 95, superior 105
    Tema objeto 2 estado Abajo decremento 5
    Balanceo de carga: de acogida dependientes de
    Hay 1 despachador (1 activo)
    1 Forwarder
    Estado es activo
    1 cambio de estado, el cambio del último Estado
23:50:15
1 state change, last state change 23:50:15     La dirección MAC es 0007.b400.0101 (por defecto)
MAC address is 0007.b400.0101 (default)     Id sea 0005.0050.6c08
Owner ID is 0005.0050.6c08     Redirección habilitado
Redirection enabled     Preemption habilitado, retraso min 60 seg
Preemption enabled, min delay 60 sec

Anda mungkin juga menyukai