Skip to Content
CISCO IOS in a Nutshell
book

CISCO IOS in a Nutshell

by James Boney
December 2001
Intermediate to advanced
608 pages
25h 14m
English
O'Reilly Media, Inc.
Content preview from CISCO IOS in a Nutshell

Static Routes

Static routes are routes you assign in the router configuration. These routes don’t change until you reconfigure them yourself. You might ask, “Why not just use static routes and forget all this routing stuff?” Well, if all you had were static routes and something changed—perhaps you had to add another subnet, or you changed your Internet service provider—you would have to reconfigure every router to conform to the network changes. It would be impossible to react to short-term changes, such as equipment failures, in all but the simplest networks.

Static routes do have their place in a modern network. They are appropriate for default routes, routes to the null interface, routes to stub networks, and other situations in which the possibility of change is minimal.

To define a static route to network 192.168.11.0 via the router 192.168.5.1, you would use the command:

ip route 192.168.11.0 255.255.255.0 192.168.5.1

Default Static Routes

Static routes are commonly used for the default route. A default route is used when a router does not have a specific route to a certain address. The Internet gateway is always a good default route. For example, if our gateway router’s IP address is 192.168.2.1, our default route might look like this:

ip route 0.0.0.0 0.0.0.0 192.168.2.1

On the gateway router, the static route could point to the interface that is connected to the Internet:

ip route 0.0.0.0 0.0.0.0 serial 0

The 0.0.0.0 0.0.0.0 route establishes a default only for the current router ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Cisco IOS in a Nutshell, 2nd Edition

Cisco IOS in a Nutshell, 2nd Edition

James Boney
Cisco IOS XR Fundamentals

Cisco IOS XR Fundamentals

Mobeen Tahir, Mark Ghattas, Dawit Birhanu, Syed Natif Nawaz

Publisher Resources

ISBN: 156592942XCatalog PageErrata