22 January, 2015

DMVPN Configuration

DMVPN Configuration 
R1#conf terminal
R1(config)#in lo 0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#in fas 0/0
R1(config-if)#ip address 51.10.1.2 255.255.255.252
R1(config-if)#no shutdown

R2#conf terminal
R2(config)#in lo 0
R2(config-if)#ip address 10.1.2.1 255.255.255.0
R2(config-if)#in fas 0/0
R2(config-if)#ip address 51.10.2.2 255.255.255.252
R2(config-if)#no shutdown

R3#conf terminal
R3(config)#in lo 0
R3(config-if)#ip address 10.1.3.1 255.255.255.0
R3(config-if)#in fas 0/0
R3(config-if)#ip address 51.10.3.2 255.255.255.0
R3(config-if)#no shutdown

* Static Routes needed

! Configure Tunnel 
! Hub
R1(config)#interface tunnel 0
R1(config-if)#tunnel source fastEthernet 0/0
R1(config-if)#tunnel mode gre multipoint
R1(config-if)#tunnel key 1234
R1(config-if)#ip nhrp network-id 1
R1(config-if)#ip nhrp authentication asdfasdf
R1(config-if)#ip nhrp map multicast dynamic
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#ip mtu 1400
R1(config-if)#ip tcp adjust-mss 1360

! Spokes
R2(config)#in tunnel 0
R2(config-if)#tunnel source fas 0/0
R2(config-if)#tunnel mode gre multipoint
R2(config-if)#tunnel key 1234
R2(config-if)#ip nhrp network-id 1
R2(config-if)#ip nhrp authentication asdfasdf
R2(config-if)#ip nhrp map multicast dynamic
R2(config-if)#ip nhrp nhs 192.168.0.1
R2(config-if)#ip nhrp map 192.168.0.1 51.10.1.2
R2(config-if)#ip nhrp map multicast 51.10.1.2     <- (Multicast allowed)
R2(config-if)#ip address 192.168.0.2 255.255.255.0
R2(config-if)#ip mtu 1400
R2(config-if)#ip tcp adjust-mss 1360

R3(config)#interface Tunnel0
R3(config-if)#ip address 192.168.0.3 255.255.255.0
R3(config-if)#no ip redirects
R3(config-if)#ip mtu 1400
R3(config-if)#ip nhrp authentication asdfasdf
R3(config-if)#ip nhrp map multicast dynamic
R3(config-if)#ip nhrp map multicast 51.10.1.2
R3(config-if)#ip nhrp map 192.168.0.1 51.10.1.2
R3(config-if)#ip nhrp network-id 1
R3(config-if)#ip nhrp nhs 192.168.0.1
R3(config-if)#ip tcp adjust-mss 1360
R3(config-if)#tunnel source FastEthernet0/0
R3(config-if)#tunnel mode gre multipoint
R3(config-if)#tunnel key 1234

R2#show ip nhrp
192.168.0.1/32 via 192.168.0.1
   Tunnel0 created 00:04:50, never expire
   Type: static, Flags: used
   NBMA address: 51.10.1.2

R2#ping 192.168.0.3
!!!!! 

R2#show ip nhrp
192.168.0.1/32 via 192.168.0.1
   Tunnel0 created 00:15:30, never expire
   Type: static, Flags: used
   NBMA address: 51.10.1.2
192.168.0.3/32 via 192.168.0.3
   Tunnel0 created 00:00:07, expire 01:59:53
   Type: dynamic, Flags: router used
   NBMA address: 51.10.3.2

! Configure RIP
R1/R2/R3
RX(config)#router rip
RX(config-router)#ver 2
RX(config-router)#no auto
RX(config-router)#net 192.168.0.0
RX(config-router)#net 10.0.0.0

R1#show ip route rip
      10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
R        10.1.2.0/24 [120/1] via 192.168.0.2, 00:00:11, Tunnel0
R        10.1.3.0/24 [120/1] via 192.168.0.3, 00:00:03, Tunnel0

R3#show ip route rip
      10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R        10.1.1.0/24 [120/1] via 192.168.0.1, 00:00:02, Tunnel0

R2#show ip route rip
      10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R        10.1.1.0/24 [120/1] via 192.168.0.1, 00:00:10, Tunnel0

! Disable Split-horizon
R1(config)#in tunnel 0
R1(config-if)#no ip split-horizon

R2#show ip route rip
      10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
R        10.1.1.0/24 [120/1] via 192.168.0.1, 00:00:25, Tunnel0
R        10.1.3.0/24 [120/2] via 192.168.0.3, 00:00:25, Tunnel0