Cisco GRE Tunnel Dynamic Hub NHRP Mapping
Cisco GRE Tunnel Dynamic Hub NHRP Mapping
NOTE:
GRE OVER NHRP IS USED FOR HUB AND SPOKE TOPOLOGIES
TUNNELS OPERATE OVER L3 CONNECTIONS
MUST HAVE L3 CONNECTIVITY 1ST
NHRP HOLDTIME = 600
NHRP REGISTRATIONS SENT EVERY 200 SECONDS
====================================
HUB
====================================
NOTE:
SOURCE AND DESTINATION MUST BE ON SAME SUBNET
TUNNEL SOURCE
Tun # : Tunnel2
Tun IP : 192.168.2.1 255.255.255.0
TUNNEL DESTINATION
Tun Dest Int : Fa0/0
Dest WAN IP 2 : 10.0.0.18
Dest Tun IP : 192.168.2.6
AUTHENTICATION
Network-id : network-id 2
Authentication : cisco
Tunnel Key : tunnel key 2
interface Tunnel2
ip address 192.168.2.1 255.255.255.0
no ip redirects
ip mtu 1440
ip nhrp authentication cisco
ip nhrp map multicast dynamic
ip nhrp network-id 2
ip nhrp holdtime 600
ip nhrp registration timeout 30
no ip split-horizon eigrp 1
tunnel source 10.0.0.2
tunnel mode gre multipoint
tunnel key 2
!
!
interface FastEthernet0/0
ip address 10.0.0.2 255.255.255.252
duplex full
!
!
====================================
SPOKE
====================================
interface Tunnel2
ip address 192.168.2.6 255.255.255.0
ip mtu 1440
ip nhrp authentication cisco
ip nhrp map multicast 10.0.0.2
ip nhrp map 192.168.2.1 10.0.0.2
ip nhrp network-id 2
ip nhrp holdtime 600
ip nhrp nhs 192.168.2.1
ip nhrp registration timeout 30
tunnel source 10.0.0.18
tunnel destination 10.0.0.2
tunnel key 2
!
!
interface FastEthernet0/0
ip address 10.0.0.18 255.255.255.252
duplex full
!
end
------------------------------------
VERIFY
------------------------------------
LAYER 3
ping 192.168.2.1 source Tunnel2
traceroute 192.168.2.1 source 192.168.2.6
show tunnel interface Tunnel2 <==SHOWS UP/UP : SOURCE :
DEST : NEXTHOP
show run interface Tunnel2
show ip route | i Tunnel2
NHRP
show ip nhrp brief
show ip nhrp detail
show ip nhrp summary <==SHOWS TOTAL NHRP ENTRIES
show ip nhrp <==SHOWS UP/UP TIME :
TYPE : DESTINATION IP
show ip nhrp traffic
show ip nhrp traffic interface Tunnel2
MULTICAST
show ip nhrp multicast | i Tunnel2
show ip nhrp multicast Tunnel2
TRAFFIC
*show interfaces Tunnel2 accounting <==PACKET COUNTER
show interfaces Tunnel2 stats <==PACKET + CACHE COUNTER
show interfaces Tunnel2 switching <==PACKET COUNTER (DETAILED)
show interfaces Tunnel2 | i packets
MAC