Configuring On-Demand Routing: Finding Feature Information
Configuring On-Demand Routing: Finding Feature Information
The On-Demand Routing feature provides IP routing for stub sites, with minimum cost. The cost of a general, dynamic routing protocol is avoided without incurring the configuration and management burden of static routing.
Contents
Prerequisites for Configuring On-Demand Routing, page 2 Restrictions for Configuring On-Demand Routing, page 2 Information About On-Demand Routing, page 2 How to Configure On-Demand Routing, page 3 Configuration Examples for On-Demand Routing, page 10 Additional References, page 11 Feature Information for Configuring On-Demand Routing, page 13
Americas Headquarters: Cisco Systems, Inc., 170 West Tasman Drive, San Jose, CA 95134-1706 USA
Benefits of On-Demand Routing, page 2 Stub Networks, page 2 Overview of On-Demand Routing, page 3
Stub Networks
A stub router can be considered a spoke router in a hub-and-spoke network topologyas shown in Figure 1where the only router to which the spoke is adjacent is the hub router. In such a network topology, the IP routing information required to represent this topology is fairly simple. These stub routers commonly have a WAN connection to the hub router, and a small number of LAN network segments (stub networks) are directly connected to the stub router. These stub networks might consist only of end systems and the stub router, and therefore do not require the stub router to learn any dynamic IP routing information.
Figure 1
Enabling ODR, page 4 (required) Disabling the Propagation of ODR Stub Routing Information, page 4 (optional) Disabling the Propagation of ODR Stub Routing Information on a Specified Interface, page 5 (optional) Filtering ODR Information, page 6 (optional)
135835
Redistributing ODR Information into the Dynamic Routing Protocol of the Hub, page 7 (optional) Reconfiguring Cisco Discovery Protocol or ODR Timers, page 8 (optional) Using Dialer Map Statements to Direct Cisco Discovery Protocol Broadcast Packets, page 9 (optional)
Enabling ODR
Once ODR is enabled on a hub router, the hub router begins installing stub network routes in the IP forwarding table. The hub router also can be configured to redistribute these routes into any configured dynamic IP routing protocols. To enable ODR on a hub router, perform the steps in this task.
SUMMARY STEPS
1. 2. 3.
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
router odr
Enables ODR on a Cisco router, and places the router in router configuration mode.
Example:
Router(config)# router odr
SUMMARY STEPS
1. 2. 3.
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
no cdp run
Example:
Router(config)# no cdp run
SUMMARY STEPS
1. 2. 3. 4.
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Command or Action
Step 3
interface type number [name-tag]
Example:
Router(config)# interface Ethernet 0/0
Step 4
no cdp enable
Example:
Router(config-if)# no cdp enable
Filtering ODR Information To filter ODR information, perform the steps in this task.
SUMMARY STEPS
1. 2. 3. 4. 5. 6. 7.
enable configure terminal access-list access-list-number {deny | permit} source [source-wildcard] [log] access-list access-list-number {deny | permit} source [source-wildcard] [log] access-list access-list-number {deny | permit} source [source-wildcard] [log] router odr distribute-list [[access-list-number | name] | [route-map map-tag]] in [interface-type | interface-number]
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
Example:
Router(config)# access-list 101 permit 10.48.0.3
Step 4
Example:
Router(config)# access-list 101 deny 10.48.0.0 0.0.255.255
Step 5
Example:
Router(config)# access-list 101 permit 10.0.0.0 0.255.255.255
Step 6
router odr
Example:
Router(config)# router odr
Step 7
Example:
Router(config-router)# distribute-list 101 in
Redistributing ODR Information into the Dynamic Routing Protocol of the Hub
The exact command syntax needed to redistribute ODR information into the dynamic routing protocol of the hub depends upon the routing protocol into which ODR is being redistributed. See the Redistributing Routing Information section in the Configuring IP Routing Protocol-Independent Features module for further information.
SUMMARY STEPS
1. 2. 3. 4. 5.
enable configure terminal cdp timer seconds router odr timers basic update invalid holddown flush [sleeptime]
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
Specifies how often the Cisco IOS software sends Cisco Discovery Protocol updates.
Example:
Router(config)# cdp timer 80
Command or Action
Step 4
router odr
Example:
Router(config)# router odr
Step 5
Example:
Router(config-router)# timers basic 5 15 15 30
Using Dialer Map Statements to Direct Cisco Discovery Protocol Broadcast Packets
For interfaces that specify dialer mappings, Cisco Discovery Protocol packets will make use of dialer map configuration statements that pertain to the IP protocol. Because Cisco Discovery Protocol packets are always broadcast packets, these dialer map statements must handle broadcast packets, typically through use of the dialer map command with the broadcast keyword. The dialer string command in interface configuration mode may also be used. On dial-on-demand (DDR) routing interfaces, certain kinds of packets can be classified as interesting. These interesting packets can cause a DDR connection to be made or cause the idle timer of a DDR interface to be reset. For the purposes of DDR classification, Cisco Discovery Protocol packets are considered uninteresting. This classification occurs even while Cisco Discovery Protocol is making use of dialer map statements for IP, where IP packets are classified as interesting. The following task describes how to use dialer map statements to direct Cisco Discovery Protocol broadcast packets:
SUMMARY STEPS
1. 2. 3. 4.
enable configure terminal interface type number [name-tag] dialer map protocol-keyword protocol-next-hop-address [broadcast | class dialer-map-class-name | modem-script modem-regular-expression | vrf vrf-name | name host-name | spc | speed 56 | speed 64 | system-script system-regular-expression | dial-string[:isdn-subaddress]] or dialer string dial-string[:isdn-subaddress]
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
Example:
Router(config)# interface async 1
Step 4
dialer map protocol-keyword protocol-next-hop-address [broadcast | class dialer-map-class-name | modem-script modem-regular-expression | vrf vrf-name | name host-name | spc | speed 56 | speed 64 | system-script system-regular-expression | dial-string[:isdn-subaddress]]
Configures an asynchronous interface to call multiple sites or to receive calls from multiple sites. Specifies the string (telephone number) to be called for interfaces calling a single site.
or
dialer string dial-string[:isdn-subaddress]
Example:
Router(config)# dialer map ip 172.19.2.5 speed 56
Enabling ODR and Filtering ODR Information: Example, page 10 Disabling ODR on a Specified Interface: Example, page 11
10
Additional References
The following sections provide references related to the ODR feature.
Related Documents
Related Topic Redistributing ODR information into the dynamic routing protocol of the hub. Cisco Discovery Protocol features ODR commands Document Title Redistributing Routing Information section in the Configuring IP Routing Protocol-Independent Features chapter of the Cisco IOS IP Routing Protocols Configuration Guide Using Cisco Discovery Protocol chapter of the Cisco IOS Network Management Configuration Guide On-Demand Routing Commands chapter of the Cisco IOS IP Routing Protocols Command Reference
Standards
Standard Title
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
MIBs
MIB No new or modified MIBs are supported, and support for existing MIBs has not been modified. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs
11
RFCs
RFC No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Title
Technical Assistance
Description The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies. To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. Link http://www.cisco.com/techsupport
12
Note
Table 1 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release train. Unless noted otherwise, subsequent releases of that Cisco IOS software release train also support that feature.
Table 1
Feature Information The On-Demand Routing (ODR) feature provides IP routing for stub sites, with minimum overhead. This entire document provides information about this feature:
CCDE, CCENT, CCSI, Cisco Eos, Cisco Explorer, Cisco HealthPresence, Cisco IronPort, the Cisco logo, Cisco Nurse Connect, Cisco Pulse, Cisco SensorBase, Cisco StackPower, Cisco StadiumVision, Cisco TelePresence, Cisco TrustSec, Cisco Unified Computing System, Cisco WebEx, DCE, Flip Channels, Flip for Good, Flip Mino, Flipshare (Design), Flip Ultra, Flip Video, Flip Video (Design), Instant Broadband, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn, Cisco Capital, Cisco Capital (Design), Cisco:Financed (Stylized), Cisco Store, Flip Gift Card, and One Million Acts of Green are service marks; and Access Registrar, Aironet, AllTouch, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Lumin, Cisco Nexus, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, Continuum, EtherFast, EtherSwitch, Event Center, Explorer, Follow Me Browsing, GainMaker, iLYNX, IOS, iPhone, IronPort, the IronPort logo, Laser Link, LightStream, Linksys, MeetingPlace, MeetingPlace Chime Sound, MGX, Networkers, Networking Academy, PCNow, PIX, PowerKEY, PowerPanels, PowerTV, PowerTV (Design), PowerVu, Prisma, ProConnect, ROSA, SenderBase, SMARTnet, Spectrum Expert, StackWise, WebEx, and the WebEx logo are registered trademarks of Cisco and/or its affiliates in the United States and certain other countries. All other trademarks mentioned in this document or website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1002R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. 19962009 Cisco Systems, Inc. All rights reserved.
13
14