Specifications
This example applies to all AR models of V200R002C00 and later versions.
Networking Requirements
As shown in Figure 1-1, the hub (central office), Spoke1 (a branch), and Spoke2 (a branch) belong to the same autonomous system (AS). They can communicate with each other on the IP network using routing protocols.
Figure 1-1 Configuring DSVPN when branches have only summarized routes to the central office
Procedure
Step 1 Configure spoke1.
#
interface Ethernet1/0/0
ip address 44.3.1.2 255.255.255.0
#
interface Tunnel0/0/0
ip address 172.16.1.101 255.255.255.0
tunnel-protocol gre p2mp //Set the tunnel encapsulation mode to MGRE.
source Ethernet1/0/0 //Configure the source address or interface for the tunnel interface.
nhrp entry 172.16.1.1 44.1.1.1 register //Configure an NHRP mapping table.
nhrp shortcut //Enable the NHRP shortcut function.
#
rip 1 //Configure RIP.
version 2
network 172.16.0.0
#
ospf 2
area 0.0.0.1
network 44.3.1.0 0.0.0.255
#
return
Step 2 Configure spoke2.
#
interface Ethernet1/0/0
ip address 44.4.1.2 255.255.255.0
#
interface Tunnel0/0/0
ip address 172.16.1.102 255.255.255.0
tunnel-protocol gre p2mp //Set the tunnel encapsulation mode to MGRE.
source Ethernet1/0/0 //Configure the source address or interface for the tunnel interface.
nhrp entry 172.16.1.1 44.1.1.1 register //Configure an NHRP mapping table.
nhrp shortcut //Enable the NHRP shortcut function.
#
rip 1 //Configure RIP.
version 2
network 172.16.0.0
#
ospf 2
area 0.0.0.1
network 44.4.1.0 0.0.0.255
#
return
Step 3 Configure the hub.
#
interface Ethernet1/0/0
ip address 44.1.1.1 255.255.255.0
#
interface LoopBack0
ip address 192.168.0.1 255.255.255.0
#
interface Tunnel0/0/0
ip address 172.16.1.1 255.255.255.0
rip version 2 multicast
rip summary-address 192.168.0.0 255.255.0.0
tunnel-protocol gre p2mp //Set the tunnel encapsulation mode to MGRE.
source Ethernet1/0/0 //Configure the source address or interface for the tunnel interface.
nhrp redirect //Enable the NHRP redirect function.
nhrp entry multicast dynamic //Add dynamically registered branch devices to the NHRP multicast member table of the central office device.
#
rip 1 //Configure RIP.
version 2
network 172.16.0.0
network 192.168.0.0
#
ospf 2
area 0.0.0.1
network 44.1.1.0 0.0.0.255
#
return
Step 4 Verify the configuration.
Ping Spoke1 and Spoke2, you can see that Spoke1 and Spoke2 have learned NHRP mapping entries from each other.
----End
Configuration Notes
l If the dynamic routing protocol RIP is used, enable the split horizon and automatic route aggregation functions on the tunnel interface of the hub.