Escolar Documentos
Profissional Documentos
Cultura Documentos
Router(config)#int fa0/0
Router(config-if)#ip address 10.1.1.2 255.255.255.0
Router(config-if)#standby 1 ip 10.1.1.1
Configuring HSRP Standby Priorities
Configuring HSRP Preempt
Configuring HSRP Timers
•The hello message contains
the priority of the router as
well as the hellotime and
holdtime parameter values
•The hellotime parameter
value indicates the interval
between hello messages
•The holdtime parameter
value indicates the amout of
time the current hello
message is considered valid.
Should be at least 3 x
hellotime
•The standby timer includes
an “msec” parameter for
faster failovers
HSRP Interface Tracking
In some instances it is not the status of the
HSRP interface itself that should cause a
HSRP failover but the failure of another router
used by the active HSRP router
Interface tracking enables the priority of a
standby group router to be automatically
adjusted, based on the availability of the
interfaces of that router
When a tracked interface becomes
unavailable, the HSRP priority of the router is
decreased
HSRP Load Sharing
HSRP Load Sharing
RouterA#show running-config RouterB#show running-config
Building configuration... Building configuration...
Current configuration:
! Current configuration:
<output omitted> !
interface Vlan10 <output omitted>
ip address 172.16.10.32 255.255.255.0 interface Vlan10
no ip redirects
standby 1 priority 150 ip address 172.16.10.33 255.255.255.0
standby 1 ip 172.16.10.110 no ip redirects
interface Vlan20 standby 1 priority 50
ip address 172.16.20.32 255.55.255.0 standby 1 ip 172.16.10.110
no ip redirects
standby 2 priority 50 interface Vlan20
standby 2 ip 172.16.20.120 ip address 172.16.20.33 255.255.255.0
no ip redirects
standby 2 priority 150
standby 2 ip 172.16.20.120
Debugging HSRP Operations
Virtual Routing Redundancy Protocol - VRRP
VRRP is an IEEE standard for router redundancy,
HSRP is a Cisco proprietary
The virtual router, representing a group of routers,
is known as a VRRP group
The active router is referred to as the master
virtual router
The master virtual router may have the same IP
address of the virtual router group
Multiple routers can function as backup routers
If a real IP address is used, the owning router
becomes the master. If a virtual IP address is
used, the master is the router with the highest
priority
VRRP can be configured so that routers can
share the load of being default gateways for
clients
Configuring VRRP
Enabling VRRP
vrrp group ip ip-address Enables VRRP on an interface. All routers in the VRRP
group must be configured with the same primary address for
the virtual router
Verifying configuration
show vrrp [brief | group] Displays a brief or detailed status of one or all VRRP groups
on the router
show vrrp interface type number [brief] Displays the VRRP groups and their status on a specified
interface
Configuring VRRP
Customizing VRRP (Optional)
vrrp group description text Assigns a text description to the VRRP group
vrrp group priority level sets the priority level of the router within a VRRP group –
default 100
vrrp group preempt [delay minimum seconds configures the router to take over as a virtual router master if
it has higher priority than current virtual router master. The
router that is the IP address owner will preempt regardless of
this setting.
vrrp group timers advertise [msec] interval configures the interval between successive advertisements
by the virtual master in a VRRP group – default 1 second. All
routers in a VRRP group must use the same timers or they
will not communicate.
vrrp group timers learn Configures Non master members to learn timer values from
master.
Example configuration
Router(config)# interface fa0/0
Router(config-if)# ip address 172.16.6.5 255.255.255.0
Router(config-if)# vrrp 10 description working-group
Router(config-if)# vrrp 10 priority 110
Router(config-if)# vrrp 10 preempt delay minimum 380
Router(config-if)# vrrp 10 timers advertise 110
Router(config-if)# vrrp 10 timers learn
Gateway Load Balancing Protocol - GLBP
HSSR and VRRP provide gateway resiliency, however the standby members along with their
up stream bandwidth is not used while the device is in standby mode.
Some load balancing can be accomplished by the creation of multiple groups.
Gateway Load Balancing Protocol (GLBP) was designed to allow automatic selection and
simultaneous use of multiple, available gateways, as well as automatic failover between these
those gateways
The members of a GLBP group elect one gateway to be the Active Virtual Gateway AVG) for
that group. Other members of the group provide backup for the AVG should it become
unavailable.
GLBP automatically manages the virtual MAC address assignment, determines who handles
the forwarding, and ensures that each station has a forwarding path in the event of failures to
gateways or tracked interfaces.
If failures occur, the load-balancing ratio is adjusted among the remaining active forwarders so
that resources are used in the most efficient way
GLBP operation
GLBP will attempt to balance traffic on a per-host basis using the
round robin algorithm.
When a client sends an ARP message, the AVG will return the MAC
address of one of the active virtual forwarders
When a second device sends an ARP request, the AVG returns the
next virtual MAC from the list
The two clients will send their routed traffic to separate routers
although the have the same default gateway address configured
If a tracked interface fails, GLBP detects the failure, and the second
router will take over forwarding both clients packets
Configuring GLBP
Customizing GLBP
glbp group preempt [delay minimum seconds] Configures the router to take over as AVF for a GLBP group if it has a
higher priority than the current AVG
glbp group priority level Sets the priority level of the gateway within a GLBP group. Default is 100
glbp group timers [msec] hellotime [msec] holdtime Configures the interval between succesive hello packets sent by the
AVG in a GLBP group.
Enabling and verifying GLBP
glbp group ip ip-address Enables GLBP on an interface and identifes the primary address of the virtual gateway.
show glbp [interface-type interface-number ] [group] [state] [brief]
Example configuration
Router(config)# interface fa0/0
Router(config-if)# ip address 172.16.6.5 255.255.255.0
Router(config-if)# glbp 10 ip 172.16.6.1
Router(config-if)# glbp 10 priority 110
Router(config-if)# glbp 10 preempt delay minimum 60
Router(config-if)# glbp 10 timers 5 18