The following is
an example for configuring DMVPN on hub.
router eigrp DMVPN
!
address-family ipv4 unicast autonomous-system 100
!
af-interface Tunnel0 \
summary-address 192.168.0.0 255.255.0.0
no split-horizon
exit-af-interface
!
af-interface Tunnel1
summary-address 192.168.0.0 255.255.0.0
no split-horizon
exit-af-interface
!
topology base
maximum-secondary-paths 4
fast-reroute per-prefix all
fast-reroute tie-break interface-disjoint 1
exit-af-topology
network 10.0.0.0
network 20.0.0.0
network 192.168.149.0
exit-address-family
!
The following is an example for configuring DMVPN on spoke 1.
router bgp 1
bgp log-neighbor-changes
bgp listen range 20.0.0.0/8
peer-group SPOKES2
bgp listen range 10.0.0.0/8
peer-group SPOKES
network 192.168.149.0
aggregate-address 192.168.0.0 255.255.0.0 summary-only
timers bgp 10 30
neighbor SPOKES peer-group
neighbor SPOKES remote-as 1
neighbor SPOKES next-hop-self
neighbor SPOKES2 peer-group
neighbor SPOKES2 remote-as 1
neighbor SPOKES2 next-hop-self
maximum-secondary-paths eigrp 1
!
The following is an example for configuring DMVPN on spoke 2.
router bgp 1
bgp log-neighbor-changes
bgp listen range 20.0.0.0/8
peer-group SPOKES2
bgp listen range 10.0.0.0/8
peer-group SPOKES
bgp additional-paths install
network 192.168.149.0
aggregate-address 192.168.0.0 255.255.0.0 summary-only
timers bgp 10 30
neighbor SPOKES peer-group
neighbor SPOKES remote-as 1
neighbor SPOKES next-hop-self
neighbor SPOKES2 peer-group
neighbor SPOKES2 remote-as 1
neighbor SPOKES2 next-hop-self
maximum-secondary-paths eigrp 1
!
The following is
the sample output for the
show ip bgp command.
Device# show ip bgp
BGP table version is 10, local router ID is 192.168.149.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? – incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.0.0/16 0.0.0.0 32768 I
s i t192.168.40.0 20.0.0.41 0 100 0 I
s>i 10.0.0.41 0 100 0 I
s>i 192.168.50.0 10.0.0.51 0 100 0 I
s i t 20.0.0.51 0 100 0 I
s> 192.168.149.0 0.0.0.0 0 32768 I
Device#
The following is the sample output for the
show ip bgp command in two different
interfaces.
Device# show ip bgp 192.168.40.0
BGP routing table entry for 192.168.40.0/24, version 6
Paths: (2 available, best #2, table default, Advertisements suppressed by an aggregate.)
Not advertised to any peer
Refresh Epoch 1
Local 20.0.0.41 from *20.0.0.41 (192.168.40.2)
Origin IGP, metric 0, localpref 100, valid, internal, secondary path
rx pathid: 0, tx pathid: 0
Refresh Epoch 1
Local 10.0.0.41 from *10.0.0.41 (192.168.40.1)
Origin IGP, metric 0, localpref 100, valid, internal, best
rx pathid: 0, tx pathid: 0x0
Device# show ip bgp 192.168.50.0
BGP routing table entry for 192.168.50.0/24, version 10
Paths: (2 available, best #1, table default, Advertisements suppressed by an aggregate.)
Not advertised to any peer
Refresh Epoch 1
Local 10.0.0.51 from *10.0.0.51 (192.168.50.1)
Origin IGP, metric 0, localpref 100, valid, internal, best
rx pathid: 0, tx pathid: 0x0
Refresh Epoch 1
Local 20.0.0.51 from *20.0.0.51 (192.168.50.2)
Origin IGP, metric 0, localpref 100, valid, internal, secondary path
rx pathid: 0, tx pathid:
The following is the sample output for the
show ip route command.
Device# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B – BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l – LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, Tunnel0
L 10.0.0.149/32 is directly connected, Tunnel0
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, Tunnel1
L 20.0.0.149/32 is directly connected, Tunnel1
B 192.168.0.0/16 [200/0], 00:02:26, Null0
B 192.168.40.0/24 [200/0] via 10.0.0.41, 00:02:26
B 192.168.50.0/24 [200/0] via 10.0.0.51, 00:01:55
192.168.149.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.149.0/24 is directly connected, Ethernet1/0
L 192.168.149.1/32 is directly connected, Ethernet1/0
The following is the sample output for the
show ip route command for the secondary path.
Device# show ip route
sec Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B – BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l – LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, Tunnel0
L 10.0.0.149/32 is directly connected, Tunnel0
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, Tunnel1
L 20.0.0.149/32 is directly connected, Tunnel1
B 192.168.0.0/16 [200/0], 00:02:26, Null0
B 192.168.40.0/24 [200/0] via 10.0.0.41, 00:02:26
[SEC][200/0] via 20.0.0.41, 00:02:26
B 192.168.50.0/24 [200/0] via 10.0.0.51, 00:01:55
[SEC][200/0] via 20.0.0.51, 00:01:55
192.168.149.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.149.0/24 is directly connected, Ethernet1/0
L 192.168.149.1/32 is directly connected, Ethernet1/0
The following is the sample output for the
show ip cef command.
Device# show ip cef 192.168.40.0 detail
192.168.40.0/24, epoch 0, flags [rib only nolabel, rib defined all labels]
recursive via 10.0.0.41
attached to Tunnel0
Device#show ip cef 192.168.40.0 int
192.168.40.0/24, epoch 0, flags [rnolbl, rlbls], RIB[B], refcnt 5, per-destination sharing
sources: RIB
feature space:
IPRM: 0x00018000
ifnums:
Tunnel0(19): 10.0.0.41
path list F3BDA6DC, 3 locks, per-destination, flags 0x269 [shble, rif, rcrsv, hwcn, bgp]
path F3BDABAC, share 1/1, type recursive, for IPv4
recursive via 10.0.0.41[IPv4:Default], fib F693B80C, 1 terminal fib, v4:Default:10.0.0.41/32
path list F3BDA72C, 2 locks, per-destination, flags 0x49 [shble, rif, hwcn]
path F3BDAC14, share 1/1, type adjacency prefix, for IPv4
attached to Tunnel0, IP midchain out of Tunnel0, addr 10.0.0.41 F555A5E0
output chain: IP midchain out of Tunnel0, addr 10.0.0.41 F555A5E0
IP adj out of Ethernet0/0, addr 11.0.0.41 F3CCCC10
The following is the sample output for the
show ip route command for the repair paths.
Device# show ip route repair-paths
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B – BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l – LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, Tunnel0
L 10.0.0.149/32 is directly connected, Tunnel0
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, Tunnel1
L 20.0.0.149/32 is directly connected, Tunnel1
B 192.168.0.0/16 [200/0], 00:02:26, Null0
B 192.168.40.0/24 [200/0] via 10.0.0.41, 00:00:10
[RPR][200/0] via 20.0.0.41, 00:00:10
B 192.168.50.0/24 [200/0] via 10.0.0.51, 00:00:10
[RPR][200/0] via 20.0.0.51, 00:00:10
192.168.149.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.149.0/24 is directly connected, Ethernet1/0
L 192.168.149.1/32 is directly connected, Ethernet1/0
The following is the sample output for the
show ip route command.
Device# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B – BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l – LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, Tunnel0
L 10.0.0.149/32 is directly connected, Tunnel0
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, Tunnel1
L 20.0.0.149/32 is directly connected, Tunnel1
D 192.168.0.0/16 is a summary, 00:08:53, Null0
D 192.168.40.0/24 [90/30378666] via 20.0.0.41, 00:08:45, Tunnel1
D 192.168.50.0/24 [90/30378666] via 20.0.0.51, 00:08:34, Tunnel1
192.168.149.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.149.0/24 is directly connected, Ethernet1/0
L 192.168.149.1/32 is directly connected, Ethernet1/0
The following is the sample output for the
show ip route command for the secondary path.
Device# show ip route sec
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B – BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l – LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, Tunnel0
L 10.0.0.149/32 is directly connected, Tunnel0
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 20.0.0.0/8 is directly connected, Tunnel1
L 20.0.0.149/32 is directly connected, Tunnel1
D 192.168.0.0/16 is a summary, 00:08:53, Null0
D 192.168.40.0/24 [90/30378666] via 20.0.0.41, 00:08:45, Tunnel1
[SEC][90/31232000] via 10.0.0.41, 00:08:45, Tunnel0
D 192.168.50.0/24 [90/30378666] via 20.0.0.51, 00:08:34, Tunnel1
[SEC][90/31232000] via 10.0.0.51, 00:08:34, Tunnel0
192.168.149.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.149.0/24 is directly connected, Ethernet1/0
L 192.168.149.1/32 is directly connected, Ethernet1/0