Lab Objective:
The focus of this lab is to understand Gateway Load Balancing Protocol (GLBP) implementation and configuration in Cisco IOS routers. Additional technologies include security and timers.
Lab Topology:
The lab network topology is illustrated below:
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, please bring up the LAN interfaces connected to the routers by issuing the no shutdown command on the connected switches. If you are using a home lab with no interface fastethernet 0/0 Alternately, you can simply connect the interfaces to a hub or switch if you have one available in your own lab. |
Task 1
Configure hostnames, IP addressing on all routers as illustrated in the network topology.
Task 2
Configure EIGRP as illustrated in the topology. Redistribute the LAN subnets into EIGRP.
Verify your configuration using the appropriate commands on all routers in the network.
Task 3
Configure GLBP on R1, R2, and R4. Ensure that R1 is elected AVG. R2 should be standby. The gateway IP should be 150.1.1.254. Verify your configuration using the appropriate commands.
Task 4
Configure MD5 authentication for GLBP. Use a password of ‘CCNP’ for authentication and a key chain named GLBP. Verify your configuration using the appropriate commands.
Task 5
In the future, NAT will be implemented on R1, R2, and R3. In preparation for this, configure GLBP so that a host will be guaranteed to use the same virtual MAC address as long as the number of Virtual Forwarders (VFs) in the GLBP group is constant. Verify your configuration using the appropriate commands.
Task 6
To allow for faster failover of GLBP, configure R1, R2 and R4 so that the gateways send five Hellos every second. If four Hellos are missed, then GLBP should be declared down. Verify your configuration using the appropriate commands.
Lab Validation
Task 1
Please refer to previous labs for basic IPv4, IPv6 addressing and hostname configuration. This will not be included in this section to avoid being redundant.
Task 2
Please refer to previous labs for basic EIGRP configuration. Following this, verify your EIGRP configuration using the show ip eigrp neighbors andshow ip route commands. Following this configuration, your route tables should show the following route information:
| R1#show ip route eigrp 10.0.0.0/30 is subnetted, 3 subnets D 10.0.0.8 [90/21024000] via 10.0.0.6, 00:03:06, Serial0/1 D 10.0.0.12 [90/21024000] via 10.0.0.6, 00:02:11, Serial0/1 150.3.0.0/24 is subnetted, 1 subnets D EX 150.3.3.0 [170/2172416] via 10.0.0.6, 00:03:06, Serial0/1 |
| R2#show ip route eigrp 10.0.0.0/30 is subnetted, 3 subnets D 10.0.0.12 [90/21024000] via 10.0.0.10, 00:02:15, Serial0/1 D 10.0.0.4 [90/21024000] via 10.0.0.10, 00:03:10, Serial0/1 150.3.0.0/24 is subnetted, 1 subnets D EX 150.3.3.0 [170/2172416] via 10.0.0.10, 00:03:10, Serial0/1 |
| R3#show ip route eigrp 150.1.0.0/24 is subnetted, 1 subnets D EX 150.1.1.0 [170/20514560] via 10.0.0.14, 00:02:16, Serial1/2 [170/20514560] via 10.0.0.9, 00:02:16, Serial1/1 [170/20514560] via 10.0.0.5, 00:02:16, Serial1/0 |
| R4#show ip route eigrp 10.0.0.0/30 is subnetted, 3 subnets D 10.0.0.8 [90/21024000] via 10.0.0.13, 00:02:22, Serial0/0 D 10.0.0.4 [90/21024000] via 10.0.0.13, 00:02:22, Serial0/0 150.3.0.0/24 is subnetted, 1 subnets D EX 150.3.3.0 [170/2172416] via 10.0.0.13, 00:02:22, Serial0/0 |
Task 3
To complete this task, you need to configure R1 with the highest priority. In order to ensure that R2 is elected standby, this router should be assigned the second highest priority. By default, GLBP assigns a priority of 100. Finally, you need to explicitly enable preemption as it is disabled by default. This task is completed as follows:
| R1(config)#interface fastethernet 0/0 R1(config-if)#glbp 1 priority 110 R1(config-if)#glbp 1 ip 150.1.1.254 R1(config-if)#glbp 1 preempt R1(config-if)#exit |
| R2(config)#interface fastethernet 0/0 R2(config-if)#glbp 1 priority 105 R2(config-if)#glbp 1 ip 150.1.1.254 R2(config-if)#glbp 1 preempt R2(config-if)#exit |
| R4(config)#interface fastethernet 0/0 R4(config-if)#glbp 1 preempt R4(config-if)#glbp 1 ip 150.1.1.254 R4(config-if)#exit |
Following this, verify your configuration using the show glbp command:
| R1#show glbp fastethernet 0/0 1 brief Interface Grp Fwd Pri State Address Active router Standby router Fa0/0 1 – 110 Active 150.1.1.254 local 150.1.1.2 Fa0/0 1 1 – Active 0007.b400.0101 local – Fa0/0 1 2 – Listen 0007.b400.0102 150.1.1.2 – Fa0/0 1 3 – Listen 0007.b400.0103 150.1.1.4 – |
| R2#show glbp fastethernet 0/0 1 brief Interface Grp Fwd Pri State Address Active router Standby router Fa0/0 1 – 105 Standby 150.1.1.254 150.1.1.1 local Fa0/0 1 1 – Listen 0007.b400.0101 150.1.1.1 – Fa0/0 1 2 – Active 0007.b400.0102 local – Fa0/0 1 3 – Listen 0007.b400.0103 150.1.1.4 – |
| R4#show glbp fastethernet 0/0 1 brief Interface Grp Fwd Pri State Address Active router Standby router Fa0/0 1 – 100 Listen 150.1.1.254 150.1.1.1 150.1.1.2 Fa0/0 1 1 – Listen 0007.b400.0101 150.1.1.1 – Fa0/0 1 2 – Listen 0007.b400.0102 150.1.1.2 – Fa0/0 1 3 – Active 0007.b400.0103 local – |
Task 4
| R1(config)#key chain GLBP R1(config-keychain)#key 1 R1(config-keychain-key)#key-string CCNP R1(config-keychain-key)#exit R1(config-keychain)#exit R1(config)#interface fastethernet 0/0 R1(config-if)#glbp 1 authentication md5 key-chain GLBP R1(config-if)#exit R1(config)#end |
| R2(config)#key chain GLBP R2(config-keychain)#key 1 R2(config-keychain-key)#key-string CCNP R2(config-keychain-key)#exit R2(config-keychain)#exit R2(config)#interface fastethernet 0/0 R2(config-if)#glbp 1 authentication md5 key-chain GLBP R2(config-if)#exit R2(config)#end |
| R4(config)#key chain GLBP R4(config-keychain)#key 1 R4(config-keychain-key)#key-string CCNP R4(config-keychain-key)#exit R4(config-keychain)#exit R4(config)#interface fastethernet 0/0 R4(config-if)#glbp 1 authentication md5 key-chain GLBP R4(config-if)#exit R4(config)#end |
Next, verify your configuration using the show key chain and show glbp commands:
| R1#show key chain GLBP Key-chain GLBP: key 1 — text “CCNP” accept lifetime (always valid) – (always valid) [valid now] send lifetime (always valid) – (always valid) [valid now] |
| R1#show glbp fastethernet 0/0 1 FastEthernet0/0 – Group 1 State is Active 2 state changes, last state change 00:11:27 Virtual IP address is 150.1.1.254 Hello time 3 sec, hold time 10 sec Next hello sent in 2.780 secs Redirect time 600 sec, forwarder time-out 14400 sec Authentication MD5, key-chain “GLBP” Preemption enabled, min delay 0 sec Active is local Standby is 150.1.1.2, priority 105 (expires in 8.620 sec) Priority 110 (configured) Weighting 100 (default 100), thresholds: lower 1, upper 100 Load balancing: round-robin Group members: 000d.289e.f940 (150.1.1.2) authenticated 000f.235e.ec80 (150.1.1.1) local 000f.235e.f120 (150.1.1.4) authenticated There are 3 forwarders (1 active) [Truncated Output] |
Task 5
Stateful applications such as Network Address Translation (NAT) require that state information be maintained for each connection. It is therefore important to ensure that a host will use the same gateway as this is where the NAT translations will exist. By default, GLBP will use round robin load balancing. This can cause issues when NATing. To ensure that a host will be guaranteed to use the same virtual MAC address as long as the number of Virtual Forwaders (VFs) in the GLBP group is constant we need to configure GLBP to use host dependent load balancing. This task is completed on R1 and R2. The only reason R4 would ever become GLBP AVG would be when R1 and R2 are down. In this case, there is no need to implement any type of load balancing as it will be the only gateway.
The reason that this command is required on R2 is that if R1 fails, it assumes roles of AVG. It should therefore be configured to use this load balancing method for itself and R4:
| R1(config)#interface fastethernet 0/0 R1(config-if)#glbp 1 load-balancing host-dependent R1(config-if)#exit |
| R2(config)#interface fastethernet 0/0 R2(config-if)#glbp 1 load-balancing host-dependent R2(config-if)#exit |
Verify the adjusted load balancing method using the show glbp command:
| R1#show glbp fastethernet 0/0 1 FastEthernet0/0 – Group 1 State is Active 2 state changes, last state change 00:19:44 Virtual IP address is 150.1.1.254 Hello time 3 sec, hold time 10 sec Next hello sent in 0.888 secs Redirect time 600 sec, forwarder time-out 14400 sec Authentication MD5, key-chain “GLBP” Preemption enabled, min delay 0 sec Active is local Standby is 150.1.1.2, priority 105 (expires in 9.740 sec) Priority 110 (configured) Weighting 100 (default 100), thresholds: lower 1, upper 100 Load balancing: host-dependent Group members: 000d.289e.f940 (150.1.1.2) authenticated 000f.235e.ec80 (150.1.1.1) local 000f.235e.f120 (150.1.1.4) authenticated There are 3 forwarders (1 active) [Truncated Output] |
| R2#show glbp fastethernet 0/0 1 FastEthernet0/0 – Group 1 State is Standby 1 state change, last state change 00:16:48 Virtual IP address is 150.1.1.254 Hello time 3 sec, hold time 10 sec Next hello sent in 0.000 secs Redirect time 600 sec, forwarder time-out 14400 sec Authentication MD5, key-chain “GLBP” Preemption enabled, min delay 0 sec Active is 150.1.1.1, priority 110 (expires in 8.096 sec) Standby is local Priority 105 (configured) Weighting 100 (default 100), thresholds: lower 1, upper 100 Load balancing: host-dependent Group members: 000d.289e.f940 (150.1.1.2) local 000f.235e.ec80 (150.1.1.1) authenticated 000f.235e.f120 (150.1.1.4) authenticated There are 3 forwarders (1 active) [Truncated Output] |
Task 6
The requirements of this task are straightforward. To ensure that routers send five Hellos every two seconds, we need to perform basic mathematical calculations. First, there are 1000 milliseconds in a second, therefore, GLBP should be configured to send Hellos every 200 ms. Next, if four Hellos are missed, GLBP should be declared down. This means we need to configure a hold time of 800 ms. This task is completed on all four GLBP routers as follows:
| R1(config)#interface fastethernet 0/0 R1(config-if)#glbp 1 timers msec 200 msec 800 R1(config-if)#exit |
| R2(config)#interface fastethernet 0/0 R2(config-if)#glbp 1 timers msec 200 msec 800 R2(config-if)#exit |
| R3(config)#interface fastethernet 0/0 R3(config-if)#glbp 1 timers msec 200 msec 800 R3(config-if)#exit |
Next, verify your GLBP configuration using the show glbp command:
| R1#show glbp fastethernet 0/0 FastEthernet0/0 – Group 1 State is Active 2 state changes, last state change 01:15:11 Virtual IP address is 150.1.1.254 Hello time 200 msec, hold time 800 msec Next hello sent in 0.004 secs Redirect time 600 sec, forwarder time-out 14400 sec Authentication MD5, key-chain “GLBP” Preemption enabled, min delay 0 sec Active is local Standby is 150.1.1.2, priority 105 (expires in 0.744 sec) Priority 110 (configured) Weighting 100 (default 100), thresholds: lower 1, upper 100 Load balancing: host-dependent Group members: 000d.289e.f940 (150.1.1.2) authenticated 000f.235e.ec80 (150.1.1.1) local 000f.235e.f120 (150.1.1.4) authenticated There are 3 forwarders (1 active) [Truncated Output] |
| R2#show glbp fastethernet 0/0 FastEthernet0/0 – Group 1 State is Standby 4 state changes, last state change 00:08:54 Virtual IP address is 150.1.1.254 Hello time 200 msec, hold time 800 msec Next hello sent in 0.000 secs Redirect time 600 sec, forwarder time-out 14400 sec Authentication MD5, key-chain “GLBP” Preemption enabled, min delay 0 sec Active is 150.1.1.1, priority 110 (expires in 0.608 sec) Standby is local Priority 105 (configured) Weighting 100 (default 100), thresholds: lower 1, upper 100 Load balancing: host-dependent Group members: 000d.289e.f940 (150.1.1.2) local 000f.235e.ec80 (150.1.1.1) authenticated 000f.235e.f120 (150.1.1.4) authenticated There are 3 forwarders (1 active) [Truncated Output] |
| R4#show glbp fastethernet 0/0 FastEthernet0/0 – Group 1 State is Listen 2 state changes, last state change 00:08:57 Virtual IP address is 150.1.1.254 Hello time 200 msec, hold time 800 msec Next hello sent in 0.056 secs Redirect time 600 sec, forwarder time-out 14400 sec Authentication MD5, key-chain “GLBP” Preemption enabled, min delay 0 sec Active is 150.1.1.1, priority 110 (expires in 0.568 sec) Standby is 150.1.1.2, priority 105 (expires in 0.560 sec) Priority 100 (default) Weighting 100 (default 100), thresholds: lower 1, upper 100 Load balancing: round-robin Group members: 000d.289e.f940 (150.1.1.2) authenticated 000f.235e.ec80 (150.1.1.1) authenticated 000f.235e.f120 (150.1.1.4) local There are 3 forwarders (1 active) [Truncated Output] |
Final Router Configurations
R1
|
R1#term len 0 Current configuration : 1106 bytes R1# |
R2
|
R2#term len 0 Current configuration : 1086 bytes R2# |
R3
|
R3#term len 0 Current configuration : 1235 bytes R3# |
R4
|
R4#term len 0 Current configuration : 1028 bytes R4# |
