Friday, December 9, 2011

ON DEMAND ROUTING (ODR)


ODR

  • ODR  is basic routing protocol based around CDP
  • it has admin distance of 160 by default.
  • It used cdp to advertise directly connected networks to hub routers 
  • hub router advertise a default route to spokes via CDP also
  • no routing protocols are allowed on the spokes
  • CDP has to be enabled on the interface
  • To run ODR over point-to-multipoint interfaces, you need to enable CDP. By default CDP is disabled on point-to-multipoint interfaces.
  • You cannot redistribute routes from either the hub side or the spoke side into ODR.
  • You should not enable ODR on the spoke side and it is not required on the spoke side, since it uses CDP to propagate the IP prefix of the connected interface
  • Once you have static routes in the spoke pointing somewhere other than the hub, the spoke no longer functions as a stub router; it becomes a transit router. ODR is not intended for transit routers, and it is not recommended to use ODR in such an environment
  • on the hub you can redistribute into more scalable protocols like ospf eigrp etc
Commands

On hub
router odr

sh ip int cdp- to see if cdp is enabled

cdp enable-to enabled cdp



LAB

so r1 in my lab will be the hub and r4 and r5 will be the spokes

so on r4

r4(config)#int s0/0/0
r4(config-if)#frame-relay map ip 10.229.254.3 101
done a manually mapping to r1 turning off inverse arp
r4#clear frame-relay in
r4#sh frame-relay map
Serial0/0/0 (up): ip 10.229.254.3 dlci 401(0x191,0x6410), static,
              CISCO, status defined, active
to clear inverse arp mapping to 5
and i enabled cdp on the interace s0/0/0

r4(config)#int s0/0/0
r4(config-if)#cdp enable
r4(config-if)#
r4#
r4#sh cdp int
FastEthernet0/0 is administratively down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
FastEthernet0/1 is administratively down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
Serial0/0/0 is up, line protocol is up
  Encapsulation FRAME-RELAY
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
i will do the same type of config on r5

r5(config)#int s0/0/0
r5(config-if)#frame-relay map ip 10.229.254.3 501
r5(config-if)#exit
r5(config)#exit
r5#sh fr
*Dec  9 21:07:44.391: %SYS-5-CONFIG_I: Configured from console by consoleame-relay map
Serial0/0/0 (up): ip 10.229.254.3 dlci 501(0x1F5,0x7C50), static,
              CISCO, status defined, active
Serial0/0/0 (up): ip 10.229.254.1 dlci 504(0x1F8,0x7C80), dynamic,
              broadcast,, status defined, active
r5#clear frame-relay
% Incomplete command.
r5#clear frame-relay in
r5#sh frame-relay map
Serial0/0/0 (up): ip 10.229.254.3 dlci 501(0x1F5,0x7C50), static,
              CISCO, status defined, active
i enabled cdp
r5(config)#int s0/0/0
r5(config-if)#cdp enable
r5(config-if)#exit
r5(config)#do sh ip cdp int
sh ip cdp int
       ^
% Invalid input detected at '^' marker.
r5(config)#do sh cdp int
FastEthernet0/0 is administratively down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
FastEthernet0/1 is administratively down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
Serial0/0/0 is up, line protocol is up
  Encapsulation FRAME-RELAY
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
Serial0/1/0 is administratively down, line protocol is down
  Encapsulation HDLC
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
r5(config)#

r1(config)#in s0/0
r1(config-if)#cdp enable
r1(config-if)#do sh int cdp
sh int cdp
         ^
% Invalid input detected at '^' marker.
r1(config-if)#do sh cdp int
FastEthernet0/0 is administratively down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
Serial0/0 is up, line protocol is up
  Encapsulation FRAME-RELAY
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
Serial0/1 is administratively down, line protocol is down
  Encapsulation HDLC
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
r1(config)#router odr
r1(config-router)#

i created 2 loopback interface on r1
1 with ip 12.12.12.12 and another with ip 13.13.13.13
also r5 has a loopback for 6.6.6.6 and 5.0.0.1

r1#sh ip route
Codes: 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
Gateway of last resort is not set
o    5.0.0.0/8 [160/1] via 10.229.254.2, 00:00:51, Serial0/0
     6.0.0.0/32 is subnetted, 1 subnets
o       6.6.6.6 [160/1] via 10.229.254.2, 00:00:51, Serial0/0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.229.254.0 is directly connected, Serial0/0
     12.0.0.0/32 is subnetted, 1 subnets
C       12.12.12.12 is directly connected, Loopback0
     13.0.0.0/32 is subnetted, 1 subnets
C       13.13.13.13 is directly connected, Loopb

I am picking up the loopbacks from r5
and i can ping
r1#ping 6.6.6.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/65/68 ms
r1#ping 5.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/65/68 ms
r1#
in r5
------
i get a default route to r1 learnt from odr

r5#sh ip route
Codes: 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
Gateway of last resort is 10.229.254.3 to network 0.0.0.0
C    5.0.0.0/8 is directly connected, Loopback0
     6.0.0.0/32 is subnetted, 1 subnets
C       6.6.6.6 is directly connected, Loopback2
     10.0.0.0/24 is subnetted, 1 subnets
C       10.229.254.0 is directly connected, Serial0/0/0
o*   0.0.0.0/0 [160/1] via 10.229.254.3, 00:00:18, Serial0/0/0
r5#

r5#ping 13.13.13.13
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.13, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/66/68 ms
r5#


you can also redistribute odr into larger protocol like ospf so this could be used for your stub then redistribute into more scalable protocol

No comments:

Post a Comment