0% found this document useful (0 votes)
7 views16 pages

IPSec and EIGRP Configuration Guide

The document details the configuration of routers for two sites (Site-A and Site-B) using GRE tunnels and IPSec for secure communication. It includes specific commands for setting up interfaces, IP addresses, routing, and encryption policies. Successful ping tests confirm connectivity between the sites and the proper functioning of the configured tunnels.

Uploaded by

bruceamisi1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views16 pages

IPSec and EIGRP Configuration Guide

The document details the configuration of routers for two sites (Site-A and Site-B) using GRE tunnels and IPSec for secure communication. It includes specific commands for setting up interfaces, IP addresses, routing, and encryption policies. Successful ping tests confirm connectivity between the sites and the proper functioning of the configured tunnels.

Uploaded by

bruceamisi1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Sayed Hamza Jilllani

GRE & IPSec LAB

ISP(config)#int f 0/0
ISP(config-if)#ip add [Link] [Link]
ISP(config-if)#no
shutdown ISP(config-
if)#exit ISP(config)#int
f 1/0
ISP(config-if)#ip add [Link] [Link]
ISP(config-if)#no shutdown
ISP(config-if)#exit

Site-A(config)#int f 0/0
Site-A(config-if)#ip add [Link] [Link]
Site-A(config-if)#no shutdown
Site-A(config-
if)#exit Site-
Software / Network Engineer whatsapp : +923059299396
Sayed Hamza Jilllani

A(config)#int f 2/0
Site-A(config-if)#ip add [Link] [Link]
Site-A(config-if)#no shutdown
Site-A(config-if)#exit
Site-A(config)#ip route [Link] [Link] [Link]

Site-B(config)#int f 1/0
Site-B(config-if)#ip add [Link] [Link]
Site-B(config-if)#no shutdown
Site-B(config-if)#exit
Site-B(config)#int f
2/0
Site-B(config-if)#ip add [Link] [Link]
Site-B(config-if)#no shutdown
Site-B(config-if)#exit
Site-B(config)#ip route [Link] 0255.255.255.252 [Link]
.

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

Site-B#ping [Link]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to [Link], timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 96/114/136
ms Site-B#

Site-A#ping [Link]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to [Link], timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/67/88
ms Site-A#

Site-A(config)#int tunnel 1
Site-A(config-if)#ip add [Link] [Link]
Site-A(config-if)#tunnel source fastEthernet 0/0
Site-A(config-if)#tunnel destination [Link]
Site-A(config-if)#exit

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

Site-B(config)#int tunnel 1
Site-B(config-if)#ip add [Link] [Link]
Site-B(config-if)#tunnel source fastEthernet 1/0
Site-B(config-if)#tunnel destination [Link]
Site-B(config-if)#exit

Site-B#ping [Link]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to [Link], timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/52/64
ms Site-B#

Site-A#ping [Link]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to [Link], timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/56/88
ms Site-A#

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

Site-A(config)#router eigrp 1
Site-A(config-router)#network [Link] [Link]
Site-A(config-router)#network [Link] [Link]
Site-A(config-router)#exit

Site-B(config)#router eigrp 1
Site-B(config-router)#network [Link] [Link]
Site-B(config-router)#network [Link] [Link]
Site-B(config-router)#exit

PC1> ping [Link]


84 bytes from [Link] icmp_seq=1 ttl=62
time=93.159 ms 84 bytes from [Link] icmp_seq=2
ttl=62 time=90.616 ms 84 bytes from [Link]
icmp_seq=3 ttl=62 time=93.011 ms 84 bytes from
[Link] icmp_seq=4 ttl=62 time=91.077 ms 84 bytes
from [Link] icmp_seq=5 ttl=62 time=92.142 ms
PC1>

PC2> ping [Link]


84 bytes from [Link] icmp_seq=1 ttl=62
time=91.714 ms 84 bytes from [Link] icmp_seq=2
ttl=62 time=73.623 ms 84 bytes from [Link]
Software / Network Engineer whatsapp : +923059299396
Sayed Hamza Jilllani

icmp_seq=3 ttl=62 time=77.463 ms 84 bytes from


[Link] icmp_seq=4 ttl=62 time=88.290 ms 84 bytes
from [Link] icmp_seq=5 ttl=62 time=91.995 ms
PC2>

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

IPSec Configuration
Site-A(config)#crypto isakmp policy 5
Site-A(config-isakmp)#encryption aes
Site-A(config-isakmp)#authentication pre-share
Site-A(config-isakmp)#group 2
Site-A(config-isakmp)#exit

Site-A(config)#crypto isakmp key corvit address [Link] [Link]


Site-A(config)#crypto ipsec transform-set TEST esp-aes esp-sha-hmac
Site-A(cfg-crypto-trans)#mode transport
Site-A(cfg-crypto-trans)#exit

Site-A(config)#ip access-list extended


GRE Site-A(config-ext-nacl)#permit
gre any any Site-A(config-ext-
nacl)#exit

Site-A(config)#crypto map VPN 10 ipsec-


isakmp Site-A(config-crypto-map)#match
address GRE Site-A(config-crypto-map)#set
transform-set TEST Site-A(config-crypto-
map)#set peer [Link]
Site-A(config-crypto-map)#exit
Site-A(config)#int fast 0/0
Software / Network Engineer whatsapp : +923059299396
Sayed Hamza Jilllani

Site-A(config-if)#crypto map VPN


Site-A(config-if)#end

Site-B(config)#crypto isakmp policy 5


Site-B(config-isakmp)#encryption aes
Site-B(config-isakmp)#authentication pre-share
Site-B(config-isakmp)#group 2
Site-B(config-isakmp)#exit

Site-B(config)#crypto isakmp key corvit address [Link] [Link]


Site-B(config)#crypto ipsec transform-set TEST esp-aes esp-sha-hmac
Site-B(cfg-crypto-trans)#mode transport
Site-B(cfg-crypto-trans)#exit

Site-B(config)#ip access-list extended


GRE Site-B(config-ext-nacl)#permit
gre any any Site-B(config-ext-
nacl)#exit

Site-B(config)#crypto map VPN 10 ipsec-


isakmp Site-B(config-crypto-map)#match
address GRE Site-B(config-crypto-map)#set
transform-set TEST Site-B(config-crypto-
map)#set peer [Link]
Software / Network Engineer whatsapp : +923059299396
Sayed Hamza Jilllani

Site-B(config-crypto-map)#exit

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

Site-B(config)#int fast 1/0


Site-B(config-if)#crypto map VPN
Site-B(config-if)#end

PC1> ping [Link]


84 bytes from [Link] icmp_seq=1 ttl=62
time=76.821 ms 84 bytes from [Link] icmp_seq=2
ttl=62 time=77.520 ms 84 bytes from [Link]
icmp_seq=3 ttl=62 time=73.741 ms 84 bytes from
[Link] icmp_seq=4 ttl=62 time=71.795 ms 84 bytes
from [Link] icmp_seq=5 ttl=62 time=73.162 ms
PC1>

PC2> ping [Link]


84 bytes from [Link] icmp_seq=1 ttl=62
time=90.694 ms 84 bytes from [Link] icmp_seq=2
ttl=62 time=69.079 ms 84 bytes from [Link]
icmp_seq=3 ttl=62 time=74.925 ms 84 bytes from
[Link] icmp_seq=4 ttl=62 time=75.766 ms 84 bytes
from [Link] icmp_seq=5 ttl=62 time=72.034 ms
PC2>

Site-A#show crypto isakmp sa


IPv4 Crypto ISAKMP SA

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

dst src state conn-id status


[Link] [Link] QM_IDLE 1002 ACTIVE
[Link] [Link] QM_IDLE 1001 ACTIVE
IPv6 Crypto
ISAKMP SA Site-A#

Site-A#show crypto ipsec sa


interface: FastEthernet0/0
Crypto map tag: VPN, local addr [Link]
protected vrf: (none)
local ident (addr/mask/prot/port): ([Link]/[Link]/47/0)
remote ident (addr/mask/prot/port): ([Link]/[Link]/47/0)
current_peer [Link] port 500
PERMIT, flags={origin_is_acl,}
#pkts encaps: 88, #pkts encrypt: 88, #pkts digest: 88
#pkts decaps: 88, #pkts decrypt: 88, #pkts verify: 88

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

LAB
!Router ISP
Conf t
hostname ISP
int f 0/0
ip add [Link] [Link]
no shutdown
exit
int f 1/0
ip add [Link] [Link]
no shutdown
exit

!Site-A Router
conf t
hostname Site-
A int f 0/0
ip add [Link] [Link]
no shutdown
exit
int f 2/0
ip add [Link] [Link]
no shutdown
exit
Software / Network Engineer whatsapp : +923059299396
Sayed Hamza Jilllani

ip route [Link] [Link] [Link]

!Site-B Router
conf t
hostname Site-
B int f 1/0
ip add [Link] [Link]
no shutdown
exit
int f 2/0
ip add [Link] [Link]
no shutdown
exit
ip route [Link] 0255.255.255.252 [Link]

!Site-A Router
int tunnel 1
ip add [Link] [Link]
tunnel source fastEthernet 0/0
tunnel destination [Link]
exit

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

!Site-B Router
int tunnel 1
ip add [Link] [Link]
tunnel source fastEthernet 1/0
tunnel destination [Link]
exit

!Site-A Router
router eigrp 1
network [Link] [Link]
network [Link] [Link]
exit

!site-B Router
router eigrp 1
network [Link] [Link]
network [Link] [Link]
exit

!Site-A Router IPSec configuraiton


crypto isakmp policy 5
encryption aes
authentication pre-share
group 2
Software / Network Engineer whatsapp : +923059299396
Sayed Hamza Jilllani

exit
crypto isakmp key corvit address [Link] [Link]
crypto ipsec transform-set TEST esp-aes esp-sha-
hmac mode transport
exit
ip access-list extended GRE
permit gre any any
exit
crypto map VPN 10 ipsec-
isakmp match address GRE
set transform-set
TEST set peer
[Link]
exit
int fast 0/0
crypto map
VPN end

Software / Network Engineer whatsapp : +923059299396


Sayed Hamza Jilllani

!Site-B Router IPSec configuraiton


crypto isakmp policy 5
encryption aes
authentication pre-share
group 2
exit
crypto isakmp key corvit address [Link] [Link]
crypto ipsec transform-set TEST esp-aes esp-sha-
hmac mode transport
exit
ip access-list extended GRE
permit gre any any
exit
crypto map VPN 10 ipsec-
isakmp match address GRE
set transform-set
TEST set peer
[Link]
exit
int fast 1/0
crypto map
VPN end

Software / Network Engineer whatsapp : +923059299396

Common questions

Powered by AI

The 'QM_IDLE' state in ISAKMP indicates that the peers have successfully established an ISAKMP SA and are in the final stage of Phase 1 negotiation, ready to exchange Phase 2 keys and data. In this state, the session is stable and can efficiently process IPSec traffic because the initial key exchange and negotiation processes are complete. It positively impacts network performance by reducing latency associated with setting up the VPN tunnel. However, if not carefully monitored, extended idleness could potentially lead to stale connections that could affect network resources if too many insufficiently used connections are maintained .

Using AES encryption in IPSec configuration provides several advantages: it offers strong security due to its complex algorithms, which makes it resistant to various types of attacks. AES is also efficient and widely recognized as a secure standard, providing a good balance between performance and security. Its use in the IPSec setup ensures that data transmitted across the network is well-protected against unauthorized access during transmission .

The crypto map in IPSec configuration is crucial as it defines the IPSec policies, such as the transform set and peer address, used to secure traffic. It acts as a template that specifies how the traffic should be encrypted, authenticated, and what traffic should be subjected to IPSec protection. The map is applied to an interface using the command 'crypto map VPN' on the specific interface (e.g., 'int fastEthernet 0/0' on Site-A), thereby binding the IPSec security policy to that interface, making any traffic going through it secure via IPSec .

The pre-shared key method enhances security in IPSec tunnel configuration by providing a simple yet effective means of authenticating the communicating parties. It ensures that both parties have a shared secret before any encrypted data is exchanged, reducing the risk of interception or spoofing. This method is straightforward to implement and manage compared to other methods like digital certificates. By using a pre-shared key (e.g., configured with 'crypto isakmp key corvit'), you ensure that only devices with the correct key can participate in the VPN tunnel, improving the overall security posture .

Creating an extended ACL for GRE traffic is necessary to explicitly permit GRE packets across the network. In IPSec, an ACL is used to define what kind of traffic should be encrypted. In this setup, the ACL 'permit gre any any' ensures that all GRE traffic between Site-A and Site-B is matched and allowed to be processed by the crypto map, allowing for secure GRE tunneling. Without this ACL, GRE traffic would not be correctly identified and secured, disrupting the GRE tunnel's operation .

To configure a GRE tunnel between two sites, the following steps are involved: 1) On Site-A's router, you configure the tunnel interface with an IP address (e.g., 'ip add 192.168.0.1 255.255.255.252') and specify the tunnel source and destination (e.g., 'tunnel source fastEthernet 0/0', 'tunnel destination 2.0.0.2'). 2) Similarly, on Site-B's router, assign an IP to the tunnel interface ('ip add 192.168.0.2 255.255.255.252') and define the tunnel source and destination ('tunnel source fastEthernet 1/0', 'tunnel destination 1.0.0.1'). Ensure the interfaces involved are not in shutdown mode .

A non-zero success rate in ICMP echo tests is essential because it indicates that the paths between devices are correctly configured and operational. In the described network environment, consistent successful ping tests (e.g., from Site-A to Site-B) confirm that routes are correctly established, the tunnels are operational, and that there are no drops or misconfigurations affecting connectivity. This consistent feedback is critical in network environments to ensure reliability, identify potential bottlenecks, and allow for timely corrective actions when issues arise .

Counters such as '#pkts encaps,' '#pkts encrypt,' and '#pkts digest' are vital in diagnosing IPSec connectivity issues as they provide insight into the number of packets successfully processed by various IPSec steps. A discrepancy between '#pkts encaps' and '#pkts encrypt' might indicate an encryption issue. Similarly, if '#pkts digest' significantly outnumbers '#pkts encrypt,' it could suggest problems related to packet verification, potentially leading to connectivity issues. Observing these counters allows network engineers to identify where the IPSec process breaks down, facilitating more targeted troubleshooting efforts .

Configuring EIGRP with overlapping subnet masks can lead to routing table instability and inefficiencies. This issue is caused by conflicting network advertisements which EIGRP needs to manage, potentially causing redundant routes or routing loops. In the given setup, EIGRP is configured with networks '10.0.0.0/8,' '192.168.0.0/30,' and '172.16.0.0/16,' which are non-overlapping, allowing for efficient routing. However, if overlapping subnets were configured, EIGRP would have to use additional resources to resolve these overlaps and prevent routing issues, potentially leading to increased convergence time and reduced network efficiency .

EIGRP facilitates communication by dynamically maintaining routing tables among the routers. These tables store information about the best routes to use for forwarding packets. Site-A configures EIGRP with networks '10.0.0.0' and '192.168.0.0,' allowing routing updates to be exchanged and ensuring connectivity across these network segments. Site-B similarly configures EIGRP with networks '172.16.0.0' and '192.168.0.0,' ensuring the whole network topology is aware and can route traffic efficiently .

You might also like