Cisco Routing: ip Default-network Vs. Default Static Routes - myoddPc

Computer Information - myOddPc

Cisco Routing: ip Default-network Vs. Default Static Routes

One point of confusion for some CCNA and CCNP candidates is the difference between configuring a static default route and using the Cisco routing command ip default-network.At first glance, they appear to do the same thing. Both configure a destination to which packets should be routed if there is no more specific route in the routing table.The major difference between these two options is that configuring a static default route only defines a default route for the router you're configuring it on, while ip default-network will propagate the route via its routing protocol.Let's examine the routing tables of a hub-and-spoke network using the ip default-network command. R1 is the hub and R2 and R3 are the spokes. They are directly connected via the network 172.12.123.0 /24, and each has a loopback with a 32-bit mask that are numbered according to the router number (1.1.1.1, etc.) RIP is running on all three routers and the loopbacks are advertised.R1 has another serial interface with the IP address 10.1.1.1 /24, and this network has been flagged as a default network with the command ip default-network 10.0.0.0 . It is not being advertised by RIP.The routing protocol will then advertise this route. With RIP, the default network is advertised as 0.0.0.0 . (With IGRP, it appears as the network number, but is marked as an IGRP External route. ) This route has been designated a candidate default route on R1, as we see with the asterisk next to the 10.0.0.0 /24 network (code table removed for brevity):R1#show ip routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnets C 1.1.1.1 is directly connected, Loopback0 R 2.0.0.0/8 [120/1] via 172.12.123.2, 00:00:11, Serial0 R 3.0.0.0/8 [120/1] via 172.12.123.3, 00:00:11, Serial0 172.12.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.12.21.0/30 is directly connected, BRI0 C 172.12.123.0/24 is directly connected, Serial0 * 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Serial1On R2 and R3, a default RIP route is now seen (code tables again deleted):R2#show ip route Gateway of last resort is 172.12.123.1 to network 0.0.0.0R 1.0.0.0/8 [120/1] via 172.12.123.1, 00:00:00, Serial0.213 2.0.0.0/32 is subnetted, 1 subnets C 2.2.2.2 is directly connected, Loopback0 R 3.0.0.0/8 [120/2] via 172.12.123.1, 00:00:00, Serial0.213 172.12.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.12.21.0/30 is directly connected, BRI0 C 172.12.123.0/24 is directly connected, Serial0.213 R* 0.0.0.0/0 [120/1] via 172.12.123.1, 00:00:00, Serial0.213R3#show ip route Gateway of last resort is 172.12.123.1 to network 0.0.0.0R 1.0.0.0/8 [120/1] via 172.12.123.1, 00:00:27, Serial0.31 R 2.0.0.0/8 [120/2] via 172.12.123.1, 00:00:28, Serial0.31 3.0.0.0/32 is subnetted, 1 subnets C 3.3.3.3 is directly connected, Loopback0 172.12.0.0/24 is subnetted, 1 subnets C 172.12.123.0 is directly connected, Serial0.31 R* 0.0.0.0/0 [120/1] via 172.12.123.1, 00:00:28, Serial0.31And the default route works, since we can ping 10.1.1.1 from both R2 and R3. Since they have no other match in their routing tables, they use the default route.R2#ping 10.1.1.1Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 68/68/68 msR3#ping 10.1.1.1Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 68/68/68 msWhen deciding whether to use a default static route or a default network, keep in mind that if you want the routing protocol to propagate the default route, the ip default-network command will do that for you. But if you want only the local router to have the default route, a static IP route is the way to go.Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage, the home of the world's clearest, most concise, most comprehensive CCNA Study Guide available today. He offers free CCNA, CCNP, and Home Lab Setup Tutorials on the website, as well as online boot camps, Video courses and training, and binary/subnetting help. Join the revolution against overpriced and incomplete CCNA and CCNP study guides - visit http://www.thebryantadvantage.com today!

Chris Bryant

Sony PSP - Not Just For Games

Zen and the Art of Buying Computer Parts
The Ugly Face Of Technology
Wind Turbine Lights to Protect Birds
Robotic Manufacturing Lighting
Is that software really free?
Tips on Finding the Best CD Duplication Services
Making the Most of Digital Camera Memory Cards
Microsoft Dynamics GP & CRM in Transportation & Logistics
Computer Dos and Donts
Sony PSP - Not Just For Games

SyncUp – A File/Folder Synchronizer For Windows

Basic Tips and tricks for Windows XP
Buying the Perfect Computer – The FIRST Time
Dirty Little Computer Viruses and How To Protect Yourself
10 Secrets to a Healthy Computer and a Happier You
8 Simple Ways to Defend Against Evil Doers Both Online and Off
Microsoft CRM Programming Secrets – Tips For Developers
Microsoft Great Plains Integration with Legacy Systems – Overview For Developer
Microsoft RMS – Great Plains Integration – Overview For IT Specialist
Removing Incoming Email in MS Exchange, C# Example
SyncUp – A File/Folder Synchronizer For Windows

Articles by the same author

Cisco CCNA Certification:

Becoming A Truly Valuable CCNA.

Cisco Certification:

Five Things To Do DURING Your CCNA Exam

Cisco CCNA Cerfication:

Should You Take The One-Exam or Two-Exam Approach?

Cisco Certification:

How To Become A Truly Valuable CCNA

Cisco Certification:

The Joy Of Hex

Cisco Certification:

What To Do DURING Your Exam!

Cisco Certification:

Introduction To ISDN, Part I

Configuring Internal Cisco Router Security
Introduction To ISDN, Part II
Cisco Certification: Introduction To ISDN, Part III
Cisco Certification:

Introduction To ISDN, Part IV

Cisco Certification:

Introduction To ISDN, Part V

Cisco Certification:

Building Your Own Home Lab, Part I

Cisco Certification:

Building Your Home Lab, Part II

Cisco Certification:

Taking Your First Certification Exam

Learning To Navigate Ciscos Online Documentation
Cisco Certification:

What To Expect On Exam Day

Cisco Certification:

A Survival Guide To The Cisco Cable Jungle

Introduction To ISDN, Part III: PAP
How To Become A True CCNA
Cisco CCNA Certification:

Why You NEED Hands-On Practice !

Cisco CCNP Certification: Introduction To BGP
Cisco CCNA Certification: Five Things To Do DURING The Exam
The Hidden Value Of Computer Certifcations
Cisco Certification: The OSI Model Isnt Just For Exams Anymore!
Cisco Certification: The OSI Model, Part I
Cisco CCNA Certification:

The Hidden Details Of Telnet

Cisco CCNA Certification:

Passwords, Passwords, Passwords!

Cisco Certification:

Suggested Toplogies For Your Home CCNA / CCNP Lab

Cisco CCNA Certification:

An Illustrated Guide To Ethernet CSMA/CD

Cisco Certification:

The Definitive Guide To ARP, IARP, RARP, and Proxy ARP

Cisco CCNA Candidate FAQ
Cisco CCNA / CCNP Certification:

OSPF ASBRs Explained And Illustrated

Cisco Certification:

Dont Delay Those CCNA Studies!

Cisco Certification: The Most Important Cisco Study Youll Ever Do
MCSE? CCNA? How To Choose The Best Computer Certification For You
Cisco CCNA / CCNP Home Lab Setup Tutorial:

How To Buy & Build A Frame Relay Switch

Cisco Routing:

ip Default-network Vs. Default Static Routes

Cisco CCNA / CCNP Home Lab Tutorial:

Buying And Configuring An Access Server

Cisco Routing For The CCNA And CCNP: Administrative Distance
Computer Certification:

Keeping Your Cool On Exam Day

Disclaimer

Please note that this website is for information only. Whilst every care has been taken to provide accurate information you should always seek the advice of a professional before attempting any repairs or making any purchase(s).
You need to take special care to ensure that the information given applies your system.

Remortgages
Remortgage information and advice from the people at Money Expert.

Ringtones
Ringtones are an important revenue stream for all major record companies since illegal downloads became popular.
marker About Us | Site Map | Privacy Policy | Contact Us | ©2005-2006