Lab Objective:
The focus of this lab is to understand branch office connectivity implementation and configuration. Additional technologies include IP routing, FHRPs, and IPsec VPNs.
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 IP routing as illustrated in the topology. Use AS 65500 for both BGP and EIGRP. Use OSPF process ID 1 for OSPF. Do NOT enable any dynamic routing protocols on the R3-R4 link. However, ensure that R1 and R2 know about this subnet.
Ensure that all routers can each other. Implement the necessary route redistribution so that all routers can ping each other. However, you are NOT allowed to redistribute anything into BGP.
Verify the solution using the appropriate commands on all routers.
Task 3
Configure HSRP on the LAN segment between R1 and R4. Use a VIP of 150.1.1.254. Configure R1 with a priority of 105 and R4 with a priority of 100. Ensure that R4 becomes active gateway when R1s Serial 0/0 interface goes down. When R1s Serial0/0 interface comes up, R1 should wait 30 seconds before it assumes the role of active gateway. Verify your HSRP configuration.
Task 4
Assume that the link between R1 and R2 is secure; however, the link between R3 and R4 is not. Management requests that you configure an IPsec tunnel so that when the R1-R2 link is down, traffic between the 150.1.1.0/24 and 150.2.2.0/24 subnets is encrypted and sent across the R3-R4 link. Do NOT configure a GRE Tunnel. Configure the IPsec solution as follows:
- Use Advanced Encryption Standard (AES) as the encryption algorithm
- Use a 256-bit AES encryption key
- Use pre-shared key authentication with a shared key of CCNP2011
- Use Diffie-Hellman group 5
Test your solution and verify that R1 and R2 can ping each other from their LAN interfaces.
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
The requirements of this task are straightforward. OSPF, EIGRP and BGP configuration as well as redistribution have been illustrated in previous labs. This task is completed as follows:
| R1(config)#router eigrp 65500 R1(config-router)#no auto-summary R1(config-router)#network 150.1.1.1 0.0.0.0 R1(config-router)#redistribute connected R1(config-router)#redistribute bgp 65500 R1(config-router)#default-metric 1544 2000 255 1 1500 R1(config-router)#exit R1(config)#router bgp 65500 R1(config-router)#bgp router-id 1.1.1.1 R1(config-router)#neighbor 10.0.0.2 remote-as 65500 R1(config-router)#network 150.1.1.0 mask 255.255.255.0 R1(config-router)#bgp redistribute-internal R1(config-router)#exit |
| R2(config)#router ospf 1 R2(config-router)#router-id 2.2.2.2 R2(config-router)#network 150.2.2.2 0.0.0.0 area 0 R2(config-router)#redistribute connected subnets R2(config-router)#redistribute bgp 65500 subnets R2(config-router)#exit R2(config)#router bgp 65500 R2(config-router)#bgp router-id 2.2.2.2 R2(config-router)#neighbor 10.0.0.1 remote-as 65500 R2(config-router)#bgp redistribute-internal R2(config-router)#network 150.2.2.0 mask 255.255.255.0 R2(config-router)#exit |
| R3(config)#router ospf 1 R3(config-router)#router-id 3.3.3.3 R3(config-router)#network 150.2.2.3 0.0.0.0 area 0 R3(config-router)#redistribute connected subnets R3(config-router)#exit |
| R4(config)#router eigrp 65500 R4(config-router)#no auto-summary R4(config-router)#network 150.1.1.4 0.0.0.0 R4(config-router)#redistribute connected R4(config-router)#exit |
Following this, verify IP routing using the show ip route command on all routers:
| R1#show ip route Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route Gateway of last resort is not set 10.0.0.0/30 is subnetted, 2 subnets |
| R2#show ip route Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route Gateway of last resort is not set 10.0.0.0/30 is subnetted, 2 subnets |
| R3#show ip route Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route Gateway of last resort is not set 10.0.0.0/30 is subnetted, 2 subnets |
| R4#show ip route Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route Gateway of last resort is not set 10.0.0.0/30 is subnetted, 2 subnets |
Finally, ping from all routers to every other router to verify your solution. For brevity, the solution will show pings from R4 to every other router in the network:
| R4#ping 150.1.1.1
Type escape sequence to abort. |
| R4#ping 10.0.0.2
Type escape sequence to abort. |
| R4#ping 150.2.2.3
Type escape sequence to abort. |
Task 3
The core requirements of this task are straightforward. To ensure that R1 re-assumes its role as the primary gateway after its Serial0/0 link comes up, you can specify this parameter in the Enhanced Object Tracking configuration or using HSRP commands. This lab solution shows the delay value being specified using HSRP commands:
| R1(config)#track 1 interface serial 0/0 line-protocol R1(config-track)#exit R1(config)#interface fastethernet 0/0 R1(config-if)#standby 1 ip 150.1.1.254 R1(config-if)#standby 1 priority 105 R1(config-if)#standby 1 preempt R1(config-if)#standby 1 preempt delay minimum 30 R1(config-if)#standby 1 track 1 decrement 10 R1(config-if)#exit |
If you wanted to use EOT, you could also complete this section as follows:
| R1(config)#track 1 interface serial 0/0 line-protocol R1(config-track)#delay up 30 R1(config-track)#exit |
Complete this task on R4 as follows:
| R4(config)#interface fastethernet 0/0 R4(config-if)#standby 1 ip 150.1.1.254 R4(config-if)#standby 1 preempt R4(config-if)#exit |
Verify your HSRP configuration using the show standby commands:
| R1#show standby fastethernet 0/0 FastEthernet0/0 – Group 1 State is Active 2 state changes, last state change 00:03:08 Virtual IP address is 150.1.1.254 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 0.820 secs Preemption enabled, delay min 30 secs Active router is local Standby router is 150.1.1.4, priority 100 (expires in 9.916 sec) Priority 105 (configured 105) Track object 1 state Up decrement 10 IP redundancy name is “hsrp-Fa0/0-1” (default) |
| R4#show standby fastethernet 0/0 FastEthernet0/0 – Group 1 State is Standby 1 state change, last state change 00:00:34 Virtual IP address is 150.1.1.254 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.484 secs Preemption enabled Active router is 150.1.1.1, priority 105 (expires in 9.384 sec) Standby router is local Priority 100 (default 100) IP redundancy name is “hsrp-Fa0/0-1” (default) |
Task 4
The requirements of this task are two-fold. First, you need to configure a site-to-site IPsec VPN between R3 and R4. Second, you need to ensure that traffic is sent across this tunnel when the WAN link between R1 and R2 is down. Additionally, because the subnets are advertised by internal BGP, they will have an administrative distance of 200. To ensure that this path is only used as a backup, you need to modify the default administrative distance values on R1 and R2 as well. This task is completed as follows:
| R1(config)#router eigrp 65500 R1(config-router)#distance eigrp 90 210 R1(config-router)#exit |
| R2(config)#router ospf 1 R2(config-router)#distance ospf external 210 R2(config-router)#exit |
| R3(config)#ip route 150.1.1.0 255.255.255.0 10.0.0.14 254 R3(config)#router ospf 1 R3(config-router)#redistribute static subnets R3(config-router)#exit R3(config)#ip access-list extended SECURE-TRAFFIC R3(config-ext-nacl)#permit ip 150.2.2.0 0.0.0.255 150.1.1.0 0.0.0.255 R3(config-ext-nacl)#exit R3(config)#crypto isakmp policy 1 R3(config-isakmp)#encryption aes 256 R3(config-isakmp)#authentication pre-share R3(config-isakmp)#group 5 R3(config-isakmp)#exit R3(config)#crypto isakmp key CCNP2011 address 10.0.0.14 R3(config)#crypto ipsec transform-set AES-SECURE esp-aes 256 R3(cfg-crypto-trans)#exit R3(config)#crypto map BACKUP-SOLUTION 1 ipsec-isakmp % NOTE: This new crypto map will remain disabled until a peer and a valid access list have been configured. R3(config-crypto-map)#set peer 10.0.0.14 R3(config-crypto-map)#set transform-set AES-SECURE R3(config-crypto-map)#match address SECURE-TRAFFIC R3(config-crypto-map)#exit R3(config)#interface serial 1/2 R3(config-if)#crypto map BACKUP-SOLUTION R3(config-if)#exit |
| R4(config)#ip route 150.2.2.0 255.255.255.0 10.0.0.13 254 R4(config)#router eigrp 65500 R4(config-router)#redistribute static R4(config-router)#exit R4(config)#ip access-list extended SECURE-TRAFFIC R4(config-ext-nacl)#permit ip 150.1.1.0 0.0.0.255 150.2.2.0 0.0.0.255 R4(config-ext-nacl)#exit R4(config)#crypto isakmp policy 1 R4(config-isakmp)#encryption aes 256 R4(config-isakmp)#authentication pre-share R4(config-isakmp)#group 5 R4(config-isakmp)#exit R4(config)#crypto isakmp key CCNP2011 address 10.0.0.13 R4(config)#crypto ipsec transform-set AES-SECURE esp-aes 256 R4(cfg-crypto-trans)#exit R4(config)#crypto map BACKUP-SOLUTION 1 ipsec-isakmp % NOTE: This new crypto map will remain disabled until a peer and a valid access list have been configured. R4(config-crypto-map)#set peer 10.0.0.13 R4(config-crypto-map)#set transform-set AES-SECURE R4(config-crypto-map)#match address SECURE-TRAFFIC R4(config-crypto-map)#exit R4(config)#interface serial 0/0 R4(config-if)#crypto map BACKUP-SOLUTION R4(config-if)#exit |
Next, verify your configuration using the show crypto commands:
| R4#show crypto isakmp policy
Global IKE policy |
| R4#show crypto map Crypto Map “BACKUP-SOLUTION” 1 ipsec-isakmp Peer = 10.0.0.13 Extended IP access list SECURE-TRAFFIC access-list SECURE-TRAFFIC permit ip 150.1.1.0 0.0.0.255 150.2.2.0 0.0.0.255 Current peer: 10.0.0.13 Security association lifetime: 4608000 kilobytes/3600 seconds PFS (Y/N): N Transform sets={ AES-SECURE, } Interfaces using crypto map BACKUP-SOLUTION: Serial0/0 |
Finally, test your solution by disabling the R1-R2 link and checking routing on R1 and R2 for the 150.2.2.0/24 and 150.1.1.0/24 subnets. Prior to this, the routing for the subnets is as follows:
| R1#show ip route 150.2.2.0 255.255.255.0 Routing entry for 150.2.2.0/24 Known via “bgp 65500”, distance 200, metric 0, type internal Redistributing via eigrp 65500 Advertised by eigrp 65500 Last update from 10.0.0.2 00:02:10 ago Routing Descriptor Blocks: * 10.0.0.2, from 10.0.0.2, 00:02:10 ago Route metric is 0, traffic share count is 1 AS Hops 0 |
| R2#show ip route 150.1.1.0 255.255.255.0 Routing entry for 150.1.1.0/24 Known via “bgp 65500”, distance 200, metric 0, type internal Redistributing via ospf 1 Advertised by ospf 1 subnets Last update from 10.0.0.1 00:01:30 ago Routing Descriptor Blocks: * 10.0.0.1, from 10.0.0.1, 00:01:30 ago Route metric is 0, traffic share count is 1 AS Hops 0 |
| R3#show ip route 150.1.1.0 255.255.255.0 Routing entry for 150.1.1.0/24 Known via “ospf 1”, distance 110, metric 1, type extern 2, forward metric 1 Last update from 150.2.2.2 on FastEthernet0/0, 00:01:45 ago Routing Descriptor Blocks: * 150.2.2.2, from 2.2.2.2, 00:01:45 ago, via FastEthernet0/0 Route metric is 1, traffic share count is 1 |
| R4#show ip route 150.2.2.0 255.255.255.0 Routing entry for 150.2.2.0/24 Known via “eigrp 65500”, distance 170, metric 2172416, type external Redistributing via eigrp 65500 Last update from 150.1.1.1 on FastEthernet0/0, 00:03:48 ago Routing Descriptor Blocks: * 150.1.1.1, from 150.1.1.1, 00:03:48 ago, via FastEthernet0/0 Route metric is 2172416, traffic share count is 1 Total delay is 20100 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes Loading 1/255, Hops 1 |
Next, shut down the WAN link that connects routers R1 and R2:
| R1(config)#interface serial 0/0 R1(config-if)#shutdown |
After this, verify that routing information is correct:
| R1#show ip route 150.2.2.0 255.255.255.0 Routing entry for 150.2.2.0/24 Known via “eigrp 65500”, distance 170, metric 2172416, type external Redistributing via eigrp 65500 Last update from 150.1.1.4 on FastEthernet0/0, 00:00:09 ago Routing Descriptor Blocks: * 150.1.1.4, from 150.1.1.4, 00:00:09 ago, via FastEthernet0/0 Route metric is 2172416, traffic share count is 1 Total delay is 20100 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes Loading 1/255, Hops 1 |
| R2#show ip route 150.1.1.0 255.255.255.0 Routing entry for 150.1.1.0/24 Known via “ospf 1”, distance 110, metric 20, type extern 2, forward metric 1 Last update from 150.2.2.3 on FastEthernet0/0, 00:00:56 ago Routing Descriptor Blocks: * 150.2.2.3, from 3.3.3.3, 00:00:56 ago, via FastEthernet0/0 Route metric is 20, traffic share count is 1 |
Next, ping between R1 and R2:
| R1#ping 150.2.2.2 repeat 20 size 1500
Type escape sequence to abort. |
| R2#ping 150.1.1.1 repeat 20 size 1500
Type escape sequence to abort. |
Finally, view encryption status and statistics using the show crypto commands:
| R3#show crypto ipsec sa
interface: Serial1/2 protected vrf: (none) local crypto endpt.: 10.0.0.13, remote crypto endpt.: 10.0.0.14 inbound esp sas: inbound ah sas: inbound pcp sas: outbound esp sas: outbound ah sas: outbound pcp sas: |
| R4#show crypto ipsec sa
interface: Serial0/0 protected vrf: (none) local crypto endpt.: 10.0.0.14, remote crypto endpt.: 10.0.0.13 inbound esp sas: inbound ah sas: inbound pcp sas: outbound esp sas: outbound ah sas: outbound pcp sas: |
| R3#show crypto session detail Crypto session current status Code: C – IKE Configuration mode, D – Dead Peer Detection Interface: Serial1/2 |
| R4#show crypto session detail Crypto session current status Code: C – IKE Configuration mode, D – Dead Peer Detection Interface: Serial0/0 |
Final Router Configurations
R1
|
R1#term len 0 Current configuration : 1339 bytes R1# |
R2
|
R2#term len 0 Current configuration : 1181 bytes R2# |
R3
|
R3#term len 0 Current configuration : 1752 bytes R3# |
R4
|
R4#term len 0 Current configuration : 1415 bytes R4# |
