Skip to main content

DMVPN - phase three - EIGRP

Today I’m going to test a phase 3 with EIGRP. To present all differences, pros, cons I have changed LAN’s IP addresses ( I strongly recommend to read my previous posts about different variances of DMVPN) :

dmvpn-3-1.jpg

Before I start configuring the phase 3 I would like to show some limitations of the phase 2. As you know for phase 2 we can’t summarize what means every spoke needs to keep all spoke routers in its routing table to be able to establish spoke-to-spoke communication.

Let’s test it on my example:

R1:
 
!
interface Loopback0
 ip address 100.11.11.11 255.255.255.0
!
router eigrp 1
 network 10.10.10.0 0.0.0.255
 network 100.11.11.0 0.0.0.255
 no auto-summary
!

R2:
 
!
interface Loopback0
 ip address 100.22.22.22 255.255.255.0
!
router eigrp 1
 network 10.10.10.0 0.0.0.255
 network 100.22.22.0 0.0.0.255
 no auto-summary
!

R3:
 
!
interface Loopback0
 ip address 100.33.33.33 255.255.255.0
!
router eigrp 1
 network 10.10.10.0 0.0.0.255
 network 100.33.33.0 0.0.0.255
 no auto-summary
!

This is an example of phase 2 where R2 can communicate directly with R3:
 
R2#traceroute 100.33.33.33 source 100.22.22.22

Type escape sequence to abort.
Tracing the route to 100.33.33.33

  1 10.10.10.3 72 msec 72 msec 24 msec
R2#

but the mandatory requirement is presence of a destination IP in the routing table:
 
R2#sh ip route eigrp
     100.0.0.0/24 is subnetted, 3 subnets
D       100.33.33.0 [90/310172416] via 10.10.10.3, 00:17:08, Tunnel0
D       100.11.11.0 [90/297372416] via 10.10.10.1, 00:17:08, Tunnel0
R2#

Let’s imagine now the routing table in a huge network with thousand of spoke routers. If we have middle or high models as a spoke, it shouldn’t be a problem, but in real word, in most branches, you can find low models and for them managing so big routing table can be the problem.

When I try to summarize the LANs subnet on R1:
 
R1#sh run | s router
router eigrp 1
 network 10.10.10.0 0.0.0.255
 network 100.11.11.0 0.0.0.255
 auto-summary
R1#

I can see following entries in R2 routing table:
 
R2#sh ip route 100.0.0.0
Routing entry for 100.0.0.0/8, 2 known subnets
  Attached (1 connections)
  Variably subnetted with 2 masks
  Redistributing via eigrp 1

C       100.22.22.0/24 is directly connected, Loopback0
D       100.0.0.0/8 [90/297372416] via 10.10.10.1, 00:01:25, Tunnel0
R2#

Now I received only summary route: 100.0.0.0/8 but I can’t establish direct connection with R3:
 
R2#traceroute 100.33.33.33 source 100.22.22.22

Type escape sequence to abort.
Tracing the route to 100.33.33.33

  1 10.10.10.1 72 msec 36 msec 32 msec
  2 10.10.10.3 108 msec 76 msec 108 msec
R2# 
 
R2#traceroute 100.33.33.33 source 100.22.22.22

Type escape sequence to abort.
Tracing the route to 100.33.33.33

  1 10.10.10.1 68 msec 48 msec 44 msec
  2 10.10.10.3 88 msec 92 msec 100 msec
R2#

so, it works as the phase 1.

Now I change the configuration that enables the phase 3 and then I check if I can summary LAN’s subnets.

R1:
 
!
interface Tunnel0
 ip nhrp redirect
 no ip split-horizon eigrp 1
 ip next-hop-self eigrp 1
!
router eigrp 1
 network 10.10.10.0 0.0.0.255
 network 100.11.11.0 0.0.0.255
 no auto-summary
!

R2 and R3:
 
!
interface Tunnel0
 ip nhrp shortcut
!

Let’s initiate test traffic from R2 to R3 LAN:
 
R2#traceroute 100.33.33.33 source 100.22.22.22

Type escape sequence to abort.
Tracing the route to 100.33.33.33

  1 10.10.10.1 40 msec 56 msec 76 msec
  2 10.10.10.3 104 msec 88 msec 140 msec
R2# 
 
R2#traceroute 100.33.33.33 source 100.22.22.22

Type escape sequence to abort.
Tracing the route to 100.33.33.33

  1 10.10.10.3 104 msec 104 msec 72 msec
R2#

As you see the phase 3 works fine. I check now routing, cef and nhrp tables:
 
R2#sh ip route 100.0.0.0
Routing entry for 100.0.0.0/24, 3 known subnets
  Attached (1 connections)
  Redistributing via eigrp 1

D       100.33.33.0 [90/310172416] via 10.10.10.1, 00:07:04, Tunnel0
C       100.22.22.0 is directly connected, Loopback0
D       100.11.11.0 [90/297372416] via 10.10.10.1, 00:07:05, Tunnel0
R2#
 
R2#sh ip cef 100.33.33.33
100.33.33.0/24, version 32, epoch 0
0 packets, 0 bytes
  via 10.10.10.1, Tunnel0, 0 dependencies
    next hop 10.10.10.1, Tunnel0
    valid adjacency
R2#
 
R2#sh ip nhrp
10.10.10.1/32 via 10.10.10.1, Tunnel0 created 01:33:37, never expire
  Type: static, Flags: nat used
  NBMA address: 5.5.5.1
10.10.10.2/32 via 10.10.10.2, Tunnel0 created 00:31:41, expire 01:28:18
  Type: dynamic, Flags: router unique nat local
  NBMA address: 6.6.6.1
    (no-socket)
10.10.10.3/32 via 10.10.10.3, Tunnel0 created 00:31:41, expire 01:28:18
  Type: dynamic, Flags: router nat implicit
  NBMA address: 7.7.7.1
100.33.33.0/24 via 10.10.10.3, Tunnel0 created 00:03:24, expire 01:56:35
  Type: dynamic, Flags: router nat
  NBMA address: 7.7.7.1
R2#

As you see above, once I generate some traffic, I can see dynamic (temporary) tunnels.
By the routing and cef tables the traffic to 100.22.22.22 should be sent via the hub (10.10.10.1). Only the NHRP table tells you how the traffic will be sent:
 
R2#sh dmvpn
Legend: Attrb --> S - Static, D - Dynamic, I - Incompletea
        N - NATed, L - Local, X - No Socket
        # Ent --> Number of NHRP entries with same NBMA peer

Tunnel0, Type:Spoke, NHRP Peers:2,
 # Ent  Peer NBMA Addr Peer Tunnel Add State  UpDn Tm Attrb
 ----- --------------- --------------- ----- -------- -----
     1         5.5.5.1      10.10.10.1    UP 01:32:01 S
     2         7.7.7.1      10.10.10.3    UP 00:32:44 D

R2#

Now I summarize 10.0.0.0/8 subnet on R1 and then I test spoke-to-spoke communication:
 
R1#sh run | s router
router eigrp 1
 network 10.10.10.0 0.0.0.255
 network 100.11.11.0 0.0.0.255
 auto-summary
R1#
 
R2#sh ip route 100.0.0.0
Routing entry for 100.0.0.0/8, 2 known subnets
  Attached (1 connections)
  Variably subnetted with 2 masks
  Redistributing via eigrp 1

C       100.22.22.0/24 is directly connected, Loopback0
D       100.0.0.0/8 [90/297372416] via 10.10.10.1, 00:00:37, Tunnel0
R2#

As you see above R2 learned only 100.0.0.0/8 subnet without specific subnets like I tested earlier.
 
R2#traceroute 100.33.33.33 source 100.22.22.22

Type escape sequence to abort.
Tracing the route to 100.33.33.33

  1 10.10.10.3 96 msec 60 msec 128 msec
R2#

Above output shows I can send traffic to r3 using spoke-to-spoke communication. The main pros of the phase 3 is the ability of using ‘auto-summary’ for eigrp and communication with R2 directly, what was impossible with the phase 2.

Comments

Popular posts from this blog

What should you know about HA 'override enabled' setting on Fortigate?

High availability is mandatory in most of today's network designs. Only very small companies or branches can run their business without redundancy. When you have Fortigate firewall in your network you have many options to increase network availability. You can use Fortigate Clustering Protocol ( FGCP ) or Virtual Router Redundancy Protocol ( VRRP ). FGCP has two modes: 'override' disabled (default) and 'override' enabled . I'm not going to explain how to set up HA as you can find many resources on Fortinet websites: https://cookbook.fortinet.com/high-availability-two-fortigates-56/ https://cookbook.fortinet.com/high-availability-with-fgcp-56/ Let's recap what is the main difference between them. The default HA setting is 'override' disabled and this is an order of selection an active unit: 1) number of monitored interfaces - when both units have the same number of working (up) interfaces check next parameter 2) HA uptime - an ...

FortiGate and GRE tunnel

Recently I worked on one project where a client requested to re-route web traffic to the GRE tunnel to perform traffic inspection. I would like to share with you what is required if you configure it on FortiGate. We need a new GRE interface and policy base routing (PBR) to change the route for specific source IPs. Of course you need firewall policies to permit the traffic. Let's start with GRE interface. Unfortunately you can't configure it using the GUI, only CLI is the option: config system gre-tunnel edit "gre1" set interface "port1" set local-gw 55.55.55.55 set remote-gw 44.44.44.44 next end When the end peer is Cisco router, you need to set the IP for the GRE interface: config system interface edit gre1 set ip 192.168.10.10 255.255.255.255 set remote-ip192.168.10.20 end In next step we need to fix routing. We need the alternate path via GRE but to keep the route in the active routing table you need to set the same AD (adminis...

IKEv1 aggresive mode

I know that IKEv2 is getting popular but still IKEv1 has a huge presence in production networks. There are many reasons but I’m not going to focus on them. I would rather focus on one issue I see from time to time: ikev1 and an aggressive mode. Just to remind you, there are two modes of ikev1: aggressive and main. The first one is much faster, only three messages are exchanged, but it isn’t secure as the main mode (with six messages). The main problem with the aggressive mode is the first two messages  contain data which may help to perform attack on your VPN. For this test I set up VPN on ASA with ‘aggressive mode’ enabled: ciscoasa# sh run crypto crypto ipsec ikev1 transform-set TS esp-3des esp-md5-hmac crypto map MAPA 10 match address ACL crypto map MAPA 10 set peer 192.168.111.128 crypto map MAPA 10 set ikev1 transform-set TS crypto map MAPA interface inside crypto ikev1 enable inside crypto ikev1 policy 10  authentication pre-share  encryption 3des  hash md5...