I have a DMVPN built in my lab with 2 hubs and 4 spokes. My challenge is I am required to use BGP as my routing protocol. How do I configure BGP to make hub A the primary and hub B the backup? Hub A has two spokes (1&2) directly connected, and Hub B has two spokes (3&4) directly connected
Here are the basic configurations:
Hub A:
!
interface Loopback518
ip address 1.1.1.1 255.255.255.255
end
sh run int tu518
Building configuration...
Current configuration : 448 bytes
!
interface Tunnel518
bandwidth 1000000
ip address 10.1.1.1 255.255.255.0
no ip redirects
ip mtu 1416
ip nhrp authentication DMVPN
ip nhrp map multicast dynamic
ip nhrp map 10.1.1.2 10.62.250.2
ip nhrp map multicast 10.62.250.2
ip nhrp network-id 500
ip nhrp nhs 10.1.1.2
ip nhrp server-only
ip nhrp redirect
ip tcp adjust-mss 1360
load-interval 30
tunnel source GigabitEthernet0/0/3
tunnel mode gre multipoint
tunnel key 518
end
Hub B:
sh run int lo518
Building configuration...
Current configuration : 65 bytes
!
interface Loopback518
ip address 7.7.7.7 255.255.255.255
end
!
interface Tunnel518
bandwidth 1000000
ip address 10.1.1.2 255.255.255.0
no ip redirects
ip mtu 1416
ip nhrp authentication DMVPN
ip nhrp map multicast dynamic
ip nhrp map 10.1.1.1 10.62.250.1
ip nhrp map multicast 10.62.250.1
ip nhrp network-id 500
ip nhrp nhs 10.1.1.1
ip nhrp server-only
ip nhrp redirect
ip tcp adjust-mss 1360
load-interval 30
tunnel source GigabitEthernet0/0/0
tunnel mode gre multipoint
tunnel key 518
end
Spoke 1:
!
interface Loopback518
ip address 3.3.3.3 255.255.255.255
end
!
interface Tunnel518
bandwidth 1000000
ip address 10.1.1.3 255.255.255.0
no ip redirects
ip mtu 1416
ip nhrp authentication DMVPN
ip nhrp map multicast dynamic
ip nhrp map 10.1.1.1 10.62.250.1
ip nhrp map multicast 10.62.250.1
ip nhrp map 10.1.1.2 10.62.250.2
ip nhrp map multicast 10.62.250.2
ip nhrp network-id 500
ip nhrp nhs 10.1.1.1
ip nhrp nhs 10.1.1.2
ip nhrp shortcut
ip nhrp redirect
ip tcp adjust-mss 1360
load-interval 30
tunnel source GigabitEthernet0/2
tunnel mode gre multipoint
tunnel key 518
end
Spoke 2:
!
interface Loopback518
ip address 4.4.4.4 255.255.255.255
end
!
interface Tunnel518
bandwidth 1000000
ip address 10.1.1.4 255.255.255.0
no ip redirects
ip mtu 1416
ip nhrp authentication DMVPN
ip nhrp map multicast dynamic
ip nhrp map 10.1.1.1 10.62.250.1
ip nhrp map multicast 10.62.250.1
ip nhrp map 10.1.1.2 10.62.250.2
ip nhrp map multicast 10.62.250.2
ip nhrp network-id 500
ip nhrp nhs 10.1.1.1
ip nhrp nhs 10.1.1.2
ip nhrp shortcut
ip nhrp redirect
ip tcp adjust-mss 1360
load-interval 30
tunnel source GigabitEthernet0/2
tunnel mode gre multipoint
tunnel key 518
end
Spoke 3:
!
interface Loopback518
ip address 7.7.7.7 255.255.255.255
end
!
interface Tunnel518
bandwidth 1000000
ip address 10.1.1.2 255.255.255.0
no ip redirects
ip mtu 1416
ip nhrp authentication DMVPN
ip nhrp map multicast dynamic
ip nhrp map 10.1.1.1 10.62.250.1
ip nhrp map multicast 10.62.250.1
ip nhrp network-id 500
ip nhrp nhs 10.1.1.1
ip nhrp server-only
ip nhrp redirect
ip tcp adjust-mss 1360
load-interval 30
tunnel source GigabitEthernet0/0/0
tunnel mode gre multipoint
tunnel key 518
end
Spoke 4:
!
interface Loopback518
ip address 6.6.6.6 255.255.255.255
end
!
interface Tunnel518
bandwidth 1000000
ip address 10.1.1.6 255.255.255.0
no ip redirects
ip mtu 1416
ip nhrp authentication DMVPN
ip nhrp map multicast dynamic
ip nhrp map 10.1.1.2 10.62.250.2
ip nhrp map multicast 10.62.250.2
ip nhrp map 10.1.1.1 10.62.250.1
ip nhrp map multicast 10.62.250.1
ip nhrp network-id 500
ip nhrp nhs 10.1.1.2
ip nhrp nhs 10.1.1.1
ip nhrp shortcut
ip nhrp redirect
ip tcp adjust-mss 1360
load-interval 30
tunnel source GigabitEthernet0/1
tunnel mode gre multipoint
tunnel key 518
end
My tunnels are up and working in the hubs and spokes:
Hub 1:
sh dmvpn
Legend: Attrb --> S - Static, D - Dynamic, I - Incomplete
N - NATed, L - Local, X - No Socket
# Ent --> Number of NHRP entries with same NBMA peer
NHS Status: E --> Expecting Replies, R --> Responding, W --> Waiting
UpDn Time --> Up or Down Time for a Tunnel
==========================================================================
Interface: Tunnel518, IPv4 NHRP Details
Type:Hub/Spoke, NHRP Peers:5,
# Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb
----- --------------- --------------- ----- -------- -----
1 10.62.250.2 10.1.1.2 UP 16:15:11 S
1 10.62.250.3 10.1.1.3 UP 16:15:01 D
1 10.62.250.4 10.1.1.4 UP 16:15:10 D
1 10.62.250.5 10.1.1.5 UP 16:15:13 D
1 10.62.250.6 10.1.1.6 UP 16:15:01 D
Spoke 2:
sh dmvpn
Legend: Attrb --> S - Static, D - Dynamic, I - Incomplete
N - NATed, L - Local, X - No Socket
# Ent --> Number of NHRP entries with same NBMA peer
NHS Status: E --> Expecting Replies, R --> Responding, W --> Waiting
UpDn Time --> Up or Down Time for a Tunnel
==========================================================================
Interface: Tunnel518, IPv4 NHRP Details
Type:Spoke, NHRP Peers:3,
# Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb
----- --------------- --------------- ----- -------- -----
1 10.62.250.1 10.1.1.1 UP 16:28:46 S
1 10.62.250.2 10.1.1.2 UP 16:28:40 S
1 10.62.250.6 10.1.1.6 UP 01:48:41 D
Spoke 4:
sh dmvpn
Legend: Attrb --> S - Static, D - Dynamic, I - Incomplete
N - NATed, L - Local, X - No Socket
T1 - Route Installed, T2 - Nexthop-override
C - CTS Capable
# Ent --> Number of NHRP entries with same NBMA peer
NHS Status: E --> Expecting Replies, R --> Responding, W --> Waiting
UpDn Time --> Up or Down Time for a Tunnel
==========================================================================
Interface: Tunnel518, IPv4 NHRP Details
Type:Spoke, NHRP Peers:5,
# Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb
----- --------------- --------------- ----- -------- -----
1 10.62.250.1 10.1.1.1 UP 16:13:18 S
1 10.62.250.2 10.1.1.2 UP 6w2d S
1 10.62.250.3 10.1.1.3 UP 01:24:01 D
1 10.62.250.4 10.1.1.4 UP 01:33:27 D
1 10.62.250.5 10.1.1.5 UP 01:23:54 D
My basic question is how to configure BGP to allow for hub A to be considered the primary and hub B the backup