Home > Articles > Certification > Cisco Certification > CCNP

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Configuration Example: GLBP

Figure 5-2 shows the network topology for the configuration that follows, which shows how to configure GLBP using commands covered in this chapter. Note that only the commands specific to GLBP are shown in this example.

Figure 5-2

Figure 5-2 Network Topology for GLBP Configuration Example

R1 is the AVG for a GLBP group and is responsible for the virtual IP address 10.21.8.10. R1 is also an AVF for the virtual MAC address 0007.b400.0101. R1 is a member of the same GLBP group and is designated as the AVF for the virtual MAC address 0007.b400.0102.

WS1 has a default gateway IP address of 10.21.8.10 and a gateway MAC address of 0007.b400.0101.

WS2 shares the same default gateway IP address but receives the gateway MAC address 0007.b400.0102 because R2 is sharing the traffic load with R1.

Router 1

Router> enable

Moves to privileged mode

Router# configure terminal

Moves to global config mode

Router(config)# hostname R1

Assigns router name

R1(config)# interface fastethernet 0/0

Moves to interface config mode

R1(config-if)# ip address 172.16.16.5 255.255.255.0

Assigns IP address and netmask

R1(config-if)# glbp 10 ip 172.16.16.254

Enables GLBP for group 10 on this interface with a virtual address of 172.16.16.254

R1(config-if)# glbp 10 preempt

Configures the router to preempt, or take over, as AVG for group 10 if this router has a higher priority than the current AVG

R1(config-if)# glbp 10 priority 250

Sets the priority level of the router

R1(config-if)# glbp 10 timers 5 18

Configures the hello timer to be set to 5 seconds and the hold timer to be 18 seconds

R1(config-if)# glbp 10 load-balancing host-dependent

Specifies that GLBP will load balance using the host-dependent method

R1(config-if)# no shutdown

Enables the interface

R1(config-if)# exit

Returns to global config mode

R1(config)# exit

Returns to privileged mode

R1# copy running-config startup-config

Saves the configuration to NVRAM

Router 2

Router> enable

Moves to privileged mode

Router# configure terminal

Moves to global config mode

Router(config)# hostname R2

Assigns router name

R2(config)# interface fastethernet 0/0

Moves to interface config mode

R2(config-if)# ip address 172.16.16.6 255.255.255.0

Assigns IP address and netmask

R2(config-if)# glpb 10 ip 172.16.16.254

Enables GLBP for group 10 on this interface with a virtual address of 172.16.16.254

R2(config-if)# glbp 10 preempt

Configures the router to preempt, or take over, as AVG for group 10 if this router has a higher priority than the current AVG

R2(config-if)# glbp 10 priority 100

Sets the priority level of the router. The default setting is 100.

R2(config-if)# glbp 10 timers 5 18

Configures the hello timer to be set to 5 seconds and the hold timer to be 18 seconds

R1(config-if)# glbp 10 load-balancing host-dependent

Specifies that GLBP will load balance using the host-dependent method

R2(config-if)# no shutdown

Enables the interface

R2(config-if)# exit

Returns to global config mode

R2(config)# exit

Returns to privileged mode

R2# copy running-config startup-config

Saves the configuration to NVRAM

  • + Share This
  • 🔖 Save To Your Account