& Switching v5 Workbook -
Advanced Technology Labs - IP
CCIE Routing
CCIE R&S v5
Routing
ODR - On-Demand Routing
A Note On Section Initial Configuration Files: You must load the
initial configuration files for the section, named Basic IP Addressing,
which can be found in
. Reference the Advanced Technology Labs With
Addressing Diagram to complete this task.
Task
Disable all physical interfaces on R1, R2, R3, R4, and R5, with the exception of their
connections to the DMVPN cloud.
Ensure that CDP is enabled on the DMVPN cloud between these devices and enable
ODR on R5.
Ensure that all DMVPN routers have IPv4 reachability to each other’s Loopback0
prefixes.
Configuration
R1:
interface gigabitEthernet1.13
shutdown
!
interface gigabitEthernet1.146
shutdown
!
interface Tunnel0
cdp enable
R2:
interface gigabitEthernet1.23
shutdown
!
interface Tunnel0
cdp enable
R3:
interface gigabitEthernet1.13
shutdown
!
interface gigabitEthernet1.23
shutdown
!
interface gigabitEthernet1.37
shutdown
!
interface Tunnel0
cdp enable
R4:
interface gigabitEthernet1.45
shutdown
!
interface gigabitEthernet1.146
shutdown
!
interface Tunnel0
cdp enable
R5:
interface gigabitEthernet1.5
shutdown
!
interface gigabitEthernet1.45
shutdown
!
interface gigabitEthernet1.58
shutdown
!
interface Tunnel0
cdp enable
!
router odr
Verification
On-Demand Routing (ODR) uses Cisco Discovery Protocol (CDP) to advertise
connected IPv4 routes of a stub router to the hub. The hub router then advertises a
default IPv4 route back to the spokes via CDP. For ODR to be functional, there
should be no dynamic routing protocol configured on spokes. Assuming that the hub
and spokes are already running CDP, the configuration of this feature requires only
one command on the hub,
router odr
. In this design, CDP is disabled on the
mGRE Tunnel interface of all routers by default; therefore, the additional command
cdp enable
is required on all routers. Verify that spoke routers are CDP neighbors
with the hub router, which is R5.
R1#show cdp neighbors tunnel0
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID
Local Intrfce
Holdtme
Capability
Platform
Port ID
R5
Tunnel0
138
R I
CSR1000V
Tunnel0
Total cdp entries displayed : 1
!R2#show cdp neighbors tunnel0
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID
Local Intrfce
Holdtme
Capability
Platform
Port ID
R5
Tunnel0
126
R I
CSR1000V
Tunnel0
Total cdp entries displayed : 1
!R3#show cdp neighbors tunnel0
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID
Local Intrfce
Holdtme
Capability
Platform
Port ID
R5
Tunnel0
123
R I
CSR1000V
Tunnel0
Total cdp entries displayed : 1
!R4#show cdp neighbors tunnel0
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID
Local Intrfce
Holdtme
Capability
Platform
Port ID
R5
Tunnel0
122
R I
CSR1000V
Tunnel0
Total cdp entries displayed : 1
!R5#show cdp neighbors tunnel0
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID
Local Intrfce
Holdtme
Capability
Platform
Port ID
R2
Tunnel0
140
R I
CSR1000V
Tunnel0
R3
Tunnel0
143
R I
CSR1000V
Tunnel0
R1
Tunnel0
134
R I
CSR1000V
Tunnel0
R4
Tunnel0
149
R I
CSR1000V
Tunnel0
Total cdp entries displayed : 4
Verify that all spokes received the default route form the hub, and the hub has
learned about the Loopback0 prefixes of spokes.
R1#show ip route odr | b Gateway
Gateway of last resort is 155.1.0.5 to network 0.0.0.0
o*0.0.0.0/0 [160/1] via 155.1.0.5, 00:00:27, Tunnel0
!R2#show ip route odr | b Gateway
Gateway of last resort is 155.1.0.5 to network 0.0.0.0
o*0.0.0.0/0 [160/1] via 155.1.0.5, 00:00:34, Tunnel0
!R3#show ip route odr | b Gateway
Gateway of last resort is 155.1.0.5 to network 0.0.0.0
o*0.0.0.0/0 [160/1] via 155.1.0.5, 00:00:36, Tunnel0
!R4#show ip route odr | b Gateway
Gateway of last resort is 155.1.0.5 to network 0.0.0.0
o*0.0.0.0/0 [160/1] via 155.1.0.5, 00:00:38, Tunnel0
!R5#show ip route odr | i 150.1.
150.1.0.0/32 is subnetted, 5 subnets
o150.1.1.1 [160/1] via 155.1.0.1, 00:00:10, Tunnel0
o150.1.2.2 [160/1] via 155.1.0.2, 00:00:12, Tunnel0
o150.1.3.3 [160/1] via 155.1.0.3, 00:00:10, Tunnel0
o150.1.4.4 [160/1] via 155.1.0.4, 00:00:10, Tunnel0
Verify IPv4 connectivity between Loopback0 prefixes.
R1#ping 150.1.2.2 source loopback0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.2.2, timeout is 2 seconds:
Packet sent with a source address of 150.1.1.1 !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
!R1#ping 150.1.3.3 source loopback0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.3.3, timeout is 2 seconds:
Packet sent with a source address of 150.1.1.1 !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/6 ms
!R1#ping 150.1.4.4 source loopback0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.4.4, timeout is 2 seconds:
Packet sent with a source address of 150.1.1.1 !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/8/31 ms
!R1#ping 150.1.5.5 source loopback0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.5.5, timeout is 2 seconds:
Packet sent with a source address of 150.1.1.1 !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/3 ms
Verify that ODR is enabled on the hub, but not on the spokes.
R5#show ip protocols | section odr
Routing Protocol is "odr"
Sending updates every 60 seconds, next due in 52 seconds
Invalid after 180 seconds, hold down 0, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Maximum path: 4
Routing Information Sources:
Gateway
Distance
Last Update155.1.0.216000:00:37
155.1.0.3
160
00:00:41
155.1.0.1
160
00:00:42
155.1.0.4
160
00:00:40
Distance: (default is 160)
!R1#show ip protocols | section odr
R1#