www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNP Labs Solutions / CCNP Lab 075 Solution: Branch Office Connectivity Lab

CCNP Lab 075 Solution: Branch Office Connectivity Lab

Lab Objective:

The focus of this lab is to understand branch office connectivity implementation and configuration. Additional technologies include IP routing, tunnels, and IPsec VPNs.

Lab Topology:

The lab network topology is illustrated below:

department675

 

 

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
Switches, you can bring up the LAN interfaces using the following configurations on your routers:

interface fastethernet 0/0
no keepalive
loopback
no shutdown

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 BGP on R2 and R3 as illustrated in the topology. Ensure that the R1-R2 and the R3-R3 WAN subnets are advertised. Verify your configuration using the appropriate commands.

Task 3

Configure a GRE tunnel between R1 and R4. Enable OSPF and advertise the LAN subnets that are connected to these routers. Verify your configuration using the appropriate commands.

Task 4

Management is concerned about security over the GRE tunnel. They have requested that the GRE tunnel itself be encrypted using IPsec to allow for secure connectivity between the R1 and R4 subnets across this tunnel. Configure the IPsec solution as follows:

  1. Use Triple Digital Encryption Standard (3DES) as the encryption algorithm
  2. Use pre-shared key authentication with a shared key of CCNP2011
  3. Use Diffie-Hellman group 2

 

Due to the relatively complex nature of this task, the following section includes a bank of commands that you can use to completed this task. Your task is to figure out which of these commands to apply where. The bank of available commands is as follows:

  1. The crypto isakmp policy command
  2. The crypto isakmp key command
  3. The crypto ipsec transform-set command and mode transport subcommand
  4. The crypto ipsec profile command and set transform-set subcommand
  5. The tunnel mode ipsec ipv4 command
  6. The tunnel protection ipsec profile command

 

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 in this task are straightforward. Because basic BGP configuration has been illustrated in detail in previous labs, this configuration is omitted for brevity. Following the configuration, your routing tables on R2 and R3 should show the following IP route entries:

R2#show ip route bgp
150.2.0.0/16 is variably subnetted, 3 subnets, 2 masks
B 150.2.4.0/28 [200/0] via 150.2.2.3, 00:00:14
R3#show ip route bgp
150.2.0.0/16 is variably subnetted, 3 subnets, 2 masks
B 150.2.1.0/28 [200/0] via 150.2.2.2, 00:00:26

Task 3

In order to complete this task, several actions are required. First, to allow for the configuration of a GRE tunnel between R1 and R4, you need to configure static routes for these routers’ links to R2 and R3, i.e. their WAN links. Next, configure the GRE tunnel and enable OSPF for all the connected subnets. This task is completed as follows:

R1(config)#ip route 150.2.4.4 255.255.255.255 serial 0/0
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#exit
R1(config)#interface tunnel 0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#tunnel source serial 0/0
R1(config-if)#tunnel destination 150.2.4.4
R1(config-if)#ip ospf 1 area 0
R1(config-if)#exit
R1(config)#interface fastethernet 0/0
R1(config-if)#ip ospf 1 area 1
R1(config-if)#exit
R4(config)#ip route 150.2.1.1 255.255.255.255 serial 0/0
R4(config)#router ospf 4
R4(config-router)#router-id 4.4.4.4
R4(config-router)#exit
R4(config)#interface tunnel 0
R4(config-if)#ip address 192.168.1.4 255.255.255.0
R4(config-if)#tunnel source serial 0/0
R4(config-if)#tunnel destination 150.2.1.1
R4(config-if)#ip ospf 4 area 0
R4(config-if)#exit
R4(config)#interface fastethernet 0/0
R4(config-if)#ip ospf 4 area 4
R4(config-if)#exit

Next, verify your configuration by checking OSPF adjacency states. This also confirms whether the GRE tunnel between R1 and R4 is up and operational as well:

R1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
4.4.4.4 0 FULL/ – 00:00:35 192.168.1.4 Tunnel0

R4#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 0 FULL/ – 00:00:32 192.168.1.1 Tunnel0

Finally, verify that the LAN subnets are advertised as configured:

R1#show ip route ospf
10.0.0.0/24 is subnetted, 6 subnets
O IA 10.4.2.0 [110/11112] via 192.168.1.4, 00:03:40, Tunnel0
O IA 10.4.3.0 [110/11112] via 192.168.1.4, 00:03:40, Tunnel0
O IA 10.4.1.0 [110/11112] via 192.168.1.4, 00:03:40, Tunnel0
R4#show ip route ospf
10.0.0.0/24 is subnetted, 6 subnets
O IA 10.1.3.0 [110/11112] via 192.168.1.1, 00:03:52, Tunnel0
O IA 10.1.2.0 [110/11112] via 192.168.1.1, 00:03:52, Tunnel0
O IA 10.1.1.0 [110/11112] via 192.168.1.1, 00:03:52, Tunnel0

Additionally, ping between the LAN subnets to confirm LAN-to-LAN reachability:

R1#ping 10.4.1.4 source 10.1.1.1 repeat 10 size 1500

Type escape sequence to abort.
Sending 10, 1500-byte ICMP Echos to 10.4.1.4, timeout is 2 seconds:
Packet sent with a source address of 10.1.1.1
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 208/212/216 ms

Task 4

The requirements of this task are a little complex; however, you have the bank of commands to use to complete this task. Using this bank, this task is completed as follows:

R1(config)#crypto isakmp policy 1
R1(config-isakmp)#encryption 3des
R1(config-isakmp)#authentication pre-share
R1(config-isakmp)#group 2
R1(config-isakmp)#exit
R1(config)#crypto isakmp key CCNP2011 address 150.2.4.4
R1(config)#crypto ipsec transform-set TRIPLE-DES esp-3des
R1(cfg-crypto-trans)#mode transport
R1(cfg-crypto-trans)#exit
R1(config)#crypto ipsec profile ENCRYPT-GRE
R1(ipsec-profile)#set transform-set TRIPLE-DES
R1(ipsec-profile)#exit
R1(config)#interface tunnel 0
R1(config-if)#tunnel mode ipsec ipv4
R1(config-if)#tunnel protection ipsec profile ENCRYPT-GRE
R1(config-if)#exit
R4(config)#crypto isakmp policy 1
R4(config-isakmp)#encryption 3des
R4(config-isakmp)#authentication pre-share
R4(config-isakmp)#group 2
R4(config-isakmp)#exit
R4(config)#crypto isakmp key CCNP2011 address 150.2.1.1
R4(config)#crypto ipsec transform-set TRIPLE-DES esp-3des
R4(cfg-crypto-trans)#mode transport 
R4(cfg-crypto-trans)#exit
R4(config)#crypto ipsec profile ENCRYPT-GRE
R4(ipsec-profile)#set transform-set TRIPLE-DES
R4(ipsec-profile)#exit
R4(config)#interface tunnel 0
R4(config-if)#tunnel mode ipsec ipv4
R4(config-if)#tunnel protection ipsec profile ENCRYPT-GRE
R4(config-if)#exit

Following this, verify your configuration using the show crypto commands:

R1#show crypto ipsec profile
IPSEC profile ENCRYPT-GRE
Security association lifetime: 4608000 kilobytes/3600 seconds
PFS (Y/N): N
Transform sets={ 
TRIPLE-DES, 
}
R1#show crypto isakmp policy

Global IKE policy
Protection suite of priority 1
encryption algorithm: Three key triple DES
hash algorithm: Secure Hash Standard
authentication method: Pre-Shared Key
Diffie-Hellman group: #2 (1024 bit)
lifetime: 86400 seconds, no volume limit
Default protection suite
encryption algorithm: DES – Data Encryption Standard (56 bit keys).
hash algorithm: Secure Hash Standard
authentication method: Rivest-Shamir-Adleman Signature
Diffie-Hellman group: #1 (768 bit)
lifetime: 86400 seconds, no volume limit

R1#show crypto session detail
Crypto session current status

Code: C – IKE Configuration mode, D – Dead Peer Detection
K – Keepalives, N – NAT-traversal, X – IKE Extended Authentication

Interface: Tunnel0
Session status: UP-ACTIVE 
Peer: 150.2.4.4 port 500 fvrf: (none) ivrf: (none)
Phase1_id: 150.2.4.4
Desc: (none)
IKE SA: local 150.2.1.1/500 remote 150.2.4.4/500 Active
Capabilities:(none) connid:1 lifetime:23:55:37
IPSEC FLOW: permit ip 0.0.0.0/0.0.0.0 0.0.0.0/0.0.0.0
Active SAs: 2, origin: crypto map
Inbound: #pkts dec’ed 37 drop 0 life (KB/Sec) 4536717/3338
Outbound: #pkts enc’ed 37 drop 0 life (KB/Sec) 4536717/3338

Next, verify that the Tunnel interface is up following the modified configuration parameters:

R1#show interfaces tunnel 0
Tunnel0 is up, line protocol is up
Hardware is Tunnel
Internet address is 192.168.1.1/24
MTU 1514 bytes, BW 9 Kbit/sec, DLY 500000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 150.2.1.1 (Serial0/0), destination 150.2.4.4
Tunnel protocol/transport IPSEC/IP
Tunnel TTL 255
Fast tunneling enabled
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Tunnel protection via IPSec (profile “ENCRYPT-GRE”)
Last input 00:19:17, output 00:19:18, output hang never
Last clearing of “show interface” counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
174 packets input, 31060 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
188 packets output, 32492 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out

Following that, verify your OSPF neighbor adjacencies and dynamic routing information:

R1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
4.4.4.4 0 FULL/ – 00:00:31 192.168.1.4 Tunnel0

R1#show ip route ospf
10.0.0.0/24 is subnetted, 6 subnets
O IA 10.4.2.0 [110/11112] via 192.168.1.4, 00:07:07, Tunnel0
O IA 10.4.3.0 [110/11112] via 192.168.1.4, 00:07:07, Tunnel0
O IA 10.4.1.0 [110/11112] via 192.168.1.4, 00:07:07, Tunnel0

Next, ping between router R1 and router R4s LAN subnets using an extended ping:

R1#ping 10.4.1.4 source 10.1.1.1 repeat 10 size 1500

Type escape sequence to abort.
Sending 10, 1500-byte ICMP Echos to 10.4.1.4, timeout is 2 seconds:
Packet sent with a source address of 10.1.1.1
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 244/246/248 ms

Finally, verify encryption statistics (and configuration) on the router(s):

R1#show crypto ipsec sa

interface: Tunnel0
Crypto map tag: Tunnel0-head-0, local addr 150.2.1.1

protected vrf: (none)
local ident (addr/mask/prot/port): (0.0.0.0/0.0.0.0/0/0)
remote ident (addr/mask/prot/port): (0.0.0.0/0.0.0.0/0/0)
current_peer 150.2.4.4 port 500
PERMIT, flags={origin_is_acl,}
#pkts encaps: 122, #pkts encrypt: 122, #pkts digest: 122
#pkts decaps: 102, #pkts decrypt: 102, #pkts verify: 102
#pkts compressed: 0, #pkts decompressed: 0
#pkts not compressed: 0, #pkts compr. failed: 0
#pkts not decompressed: 0, #pkts decompress failed: 0
#send errors 0, #recv errors 0

local crypto endpt.: 150.2.1.1, remote crypto endpt.: 150.2.4.4
path mtu 1500, ip mtu 1500, ip mtu idb Serial0/0
current outbound spi: 0xD1D1D721(3520190241)

inbound esp sas:
spi: 0x4CE1DAD9(1289870041)
transform: esp-3des ,
in use settings ={Tunnel, }
conn id: 2001, flow_id: SW:1, crypto map: Tunnel0-head-0
sa timing: remaining key lifetime (k/sec): (4536696/2881)
IV size: 8 bytes
replay detection support: N
Status: ACTIVE

inbound ah sas:

inbound pcp sas:

outbound esp sas:
spi: 0xD1D1D721(3520190241)
transform: esp-3des ,
in use settings ={Tunnel, }
conn id: 2002, flow_id: SW:2, crypto map: Tunnel0-head-0
sa timing: remaining key lifetime (k/sec): (4536680/2879)
IV size: 8 bytes
replay detection support: N
Status: ACTIVE

outbound ah sas:

outbound pcp sas:

Finally, you can use the show crypto isakmp sa [detail] command to verify SA status:

R1#show crypto isakmp sa detail
Codes: C – IKE configuration mode, D – Dead Peer Detection
K – Keepalives, N – NAT-traversal
X – IKE Extended Authentication
psk – Preshared key, rsig – RSA signature
renc – RSA encryption

C-id Local Remote I-VRF Status Encr Hash Auth DH Lifetime Cap.
1 150.2.1.1 150.2.4.4 ACTIVE 3des sha psk 2 23:27:11 
Connection-id:Engine-id = 1:1(software)

This solution is commonly used in branch office solutions where you need to enable dynamic IP routing protocols over a GRE tunnel across the Internet. If you were to debug IP traffic traversing either R2 or R3, for example, while traffic was traversing the LAN subnets of R1 and R4, you would see ESP packets going back and forth. In other words, the GRE packets are encapsulation using IPsec in a manner that would be similar to encapsulating and transporting voice packets using IP, i.e. VoIP. Alternatively, you could also configure an ACL and enable logging and view the matches against the ACL as illustrated below on R3:

R3(config)#access-list 100 permit ip any any log-input
R3(config)#interface serial 1/2
R3(config-if)#ip access-group 100 out
R3(config-if)#ip access-group 100 in
*Jun 15 20:19:51.427: %SEC-6-IPACCESSLOGNP: list 100 permitted 50 150.2.4.4 -> 150.2.1.1, 1 packet
*Jun 15 20:21:32.351: %SEC-6-IPACCESSLOGNP: list 100 permitted 50 150.2.1.1 -> 150.2.4.4, 1 packet

If you were to send multiple pings or transfer data between the LAN subnets connected to R1 and R4, you would see multiple packets being sent instead of just the single packet:

*Jun 15 20:25:37.139: %SEC-6-IPACCESSLOGNP: list 100 permitted 50 150.2.4.4 -> 150.2.1.1, 135 packets
*Jun 15 20:26:37.139: %SEC-6-IPACCESSLOGNP: list 100 permitted 50 150.2.1.1 -> 150.2.4.4, 138 packets

In the output above, IP protocol 50 is being permitted between R1 and R4. IP protocol number 50 is Encapsulating Security Payload (ESP). In both transport and tunnel mode, IPsec adds a new header to all the IP packets to provide the required information for securing the data within the original IP datagram. This header may either be an Encapsulating Security Payload (ESP) or Authentication Header (AH) header.

  • ESP is an IP-based protocol that uses IP port 50 for communication between IPsec peers. ESP is used to provide confidentiality, integrity, and authenticity of the data, i.e. secure data via encryption and authentication. Additionally, ESP also provides anti-replay protection services. ESP does not provide any kind of protection for the outer IP header

 

  • AH, is an IP-based protocol that uses IP port 51 for communication between IPsec peers. AH is used to protect the integrity and authenticity of data, and also offers anti-replay protection; however, AH does not provide confidentiality protection. In other words, AH does not provide encryption like ESP. AH does provide protection to the IP header; however, it should be noted that not all fields in the IP header, e.g. TTL, are protected

 

Final Router Configurations

R1

 

R1#term len 0
R1#sh run
Building configuration…

Current configuration : 1475 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto isakmp policy 1
encr 3des
authentication pre-share
group 2
crypto isakmp key CCNP2011 address 150.2.4.4
!
!
crypto ipsec transform-set TRIPLE-DES esp-3des
mode transport
!
crypto ipsec profile ENCRYPT-GRE
set transform-set TRIPLE-DES
!
!
!
!
!
interface Tunnel0
ip address 192.168.1.1 255.255.255.0
ip ospf 1 area 0
tunnel source Serial0/0
tunnel destination 150.2.4.4
tunnel mode ipsec ipv4
tunnel protection ipsec profile ENCRYPT-GRE
!
interface FastEthernet0/0
ip address 10.1.2.1 255.255.255.0 secondary
ip address 10.1.3.1 255.255.255.0 secondary
ip address 10.1.1.1 255.255.255.0
ip ospf 1 area 1
duplex auto
speed auto
!
interface Serial0/0
ip address 150.2.1.1 255.255.255.240
clock rate 2000000
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
!
ip forward-protocol nd
ip route 150.2.4.4 255.255.255.255 Serial0/0
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R1#

R2

 

R2#term len 0
R2#sh run
Building configuration…

Current configuration : 973 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.2.2.2 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 150.2.1.2 255.255.255.240
!
interface Serial0/1
ip address 10.0.0.9 255.255.255.252
shutdown
!
router bgp 254
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 150.2.1.0 mask 255.255.255.240
neighbor 150.2.2.3 remote-as 254
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R2#

R3

 

R3#term len 0
R3#sh run
Building configuration…

Current configuration : 1290 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.2.2.3 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
clock rate 128000
!
interface Serial1/1
no ip address
shutdown
clock rate 128000
!
interface Serial1/2
ip address 150.2.4.3 255.255.255.240
clock rate 128000
!
interface Serial1/3
no ip address
shutdown
!
interface Serial1/4
no ip address
shutdown
!
interface Serial1/5
no ip address
shutdown
!
interface Serial1/6
no ip address
shutdown
!
interface Serial1/7
no ip address
shutdown
!
router bgp 254
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 150.2.4.0 mask 255.255.255.240
neighbor 150.2.2.2 remote-as 254
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R3#

R4

 

R4#term len 0
R4#sh run
Building configuration…

Current configuration : 1545 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto isakmp policy 1
encr 3des
authentication pre-share
group 2
crypto isakmp key CCNP2011 address 150.2.1.1
!
!
crypto ipsec transform-set TRIPLE-DES esp-3des
mode transport
!
crypto ipsec profile ENCRYPT-GRE
set transform-set TRIPLE-DES
!
!
!
!
!
interface Tunnel0
ip address 192.168.1.4 255.255.255.0
ip ospf 4 area 0
tunnel source Serial0/0
tunnel destination 150.2.1.1
tunnel mode ipsec ipv4
tunnel protection ipsec profile ENCRYPT-GRE
!
interface FastEthernet0/0
ip address 10.4.2.1 255.255.255.0 secondary
ip address 10.4.3.1 255.255.255.0 secondary
ip address 10.4.2.4 255.255.255.0 secondary
ip address 10.4.3.4 255.255.255.0 secondary
ip address 10.4.1.4 255.255.255.0
ip ospf 4 area 4
duplex auto
speed auto
!
interface Serial0/0
ip address 150.2.4.4 255.255.255.240
!
interface Serial0/1
no ip address
shutdown
!
router ospf 4
router-id 4.4.4.4
log-adjacency-changes
!
ip forward-protocol nd
ip route 150.2.1.1 255.255.255.255 Serial0/0
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R4#

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.