SlideShare a Scribd company logo
1 of 5
Static Routes in the Cisco IOS
As a network administrator, you must be able to configure your routers to route
traffic across the network. Static routes are commonly used on routers to accomplish
this. For a network admin, knowing how to use a static route is a requirement. Let’s
learn about static routes, and how to properly use them.

Static vs. Dynamic
There are two types of routing that can be configured on a network device- static and
dynamic. Static routes are hard-coded on a network device. They tell the device
exactly where to send traffic, no matter what. Dynamic routes, on the other hand,
use a routing protocol to determine the best path. If one route becomes less
preferred, the route being used may change. With dynamic routes, routes
communicate with each other and exchange routing information. Examples of
dynamic routing protocols are RIP, EIGRP, OSPF, and BGP.

Basics of Static Routes
Now that you know the difference between static and dynamic routes, let’s learn the
basics of static routes. When there are two or more routes to the same destination,
routers use administrative distance to decide which routing protocol (or static route)
to trust more. For example, here are some administrative distances (the lower the
number, the more trustworthy the type of route is): - Static Route to a connected
interface = 0 - Static Route to a IP address = 1 - Internal EIGRP = 90 - OSPF = 110 - RIP
= 120

Because of how administrative distance works, when you enter static routes that are
the same as a dynamic route (learned from another router), your static route will be
used over the dynamic route. As you may be overriding routes manually, you must
make sure your routes are accurate.

As you may have noticed above, there are static routes that point to an interface on
the router, and static routes that point to an IP address on the network. For example,
a static route to an interface may tell a router “send all traffic going to X network out
interface Ethernet0/0”. A static route to an IP address may tell a router “send all
traffic going to X network to IP address 1.1.1.1”. Either of these types of routes can
be used, depending on the situation.

There is a special kind of static route called a default route. Sometimes a default
route is called a “zero / zero” route. This is because the network and subnet you are
specifying, as the destination for the traffic it would match, are all zeros. A default
route says “for any traffic that does not match a specific route in the routing table,
send that traffic to this destination”. In other words, a default route is a “catch-all”.

The syntax for the global configuration command used to enter a static route is: ip
route {destination prefix} {destination prefix mask} {interface OR forwarding
router’s IP address}
For example, a static route sending all traffic out Serial 0/0 would look like this:




A specific route, sending traffic going to network 10.10.10.0, to router 1.1.1.1, would
look like this:




Once these routes are configured, you can use the show ip route command to see
the routing table:
Notice in this output the static routes being with an S on the left-hand side. You can
see our two static routes 10.10.10.0, and 0.0.0.0/0. You can also see our connected
interfaces (shown with a C). As a side-note, the show ip route command can be
abbreviated ship ro.

Real-World Example of using Static Routes
Now that we understand the basics of using static routes, let me provide a real-world
example. Say that you have two locations, connected by a WAN T1 circuit. On the
LAN side of each of these locations, you have a small Ethernet network. Here is a
network diagram:




The only way for the devices on Ethernet LAN 10.10.1.0 to communicate with devices
on network 10.10.2.0, is to use routing. With such a simple network, static routing is
a perfect solution. You can enter one route on each router and be done with the
configuration. With dynamic routing, there would be slightly more configuration. You
would also forever have the network overhead of the routing protocols
communicating across the WAN circuit.

To configure the static routes for this simple network, here is what you would do:
San Diego, CA Router-




Chicago, IL Router-




By doing this, you have told the San Diego Router that any traffic destined for the
Chicago LAN, should be sent to IP address 20.1.1.2. The IP address 20.1.1.2 is the
WAN serial interface of the Chicago router. In other words, you are sending that
traffic to the “next hop” on the WAN, which happens to be the destination for this
traffic. On the Chicago router, you are doing just the reverse so that the response
from your San Diego traffic can find its way back to San Diego.
In two simple commands you have configured routing for this network.

Summary
Static routes are essential knowledge for any network administrator. While they do
not scale well to a large network, they have their uses in all sizes of networks. Even if
you are using a dynamic routing protocol, there are cases where using a static route
is still a requirement. Theip route command has many more options than what we
were able to explore in this short article. To learn more, go to your router and type ip
route? Or consult the Cisco IOS documentation on the ip route command.
More Related Topics:
When Do You Use Static Routes?
Static Routing vs. Dynamic Routing
Port Forwarding a Range of Ports on Cisco IOS
What’s the Order of Operations for Cisco IOS?

More Related Content

What's hot (20)

OSPF Summary LSA (Type 3 LSA)
OSPF Summary LSA (Type 3 LSA)OSPF Summary LSA (Type 3 LSA)
OSPF Summary LSA (Type 3 LSA)
 
EIGRP Authentication & Load Balancing
EIGRP Authentication & Load BalancingEIGRP Authentication & Load Balancing
EIGRP Authentication & Load Balancing
 
Frame Relay
Frame RelayFrame Relay
Frame Relay
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
 
C C N A Day3
C C N A  Day3C C N A  Day3
C C N A Day3
 
OSPF
OSPF OSPF
OSPF
 
OSPF Network LSA (Type 2 LSA)
OSPF Network LSA (Type 2 LSA)OSPF Network LSA (Type 2 LSA)
OSPF Network LSA (Type 2 LSA)
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Ospf
OspfOspf
Ospf
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
IP Routing
IP RoutingIP Routing
IP Routing
 
EIGRP Automatic & Manual Summarization
EIGRP Automatic & Manual SummarizationEIGRP Automatic & Manual Summarization
EIGRP Automatic & Manual Summarization
 
OSPF summary & Differences between OSPF and EIGRP
OSPF summary&Differences between OSPF and EIGRPOSPF summary&Differences between OSPF and EIGRP
OSPF summary & Differences between OSPF and EIGRP
 
EIGRP Overview
EIGRP OverviewEIGRP Overview
EIGRP Overview
 
RIP - Routing Information Protocol
RIP - Routing Information ProtocolRIP - Routing Information Protocol
RIP - Routing Information Protocol
 
OSPF External Route Summarization
OSPF External Route Summarization OSPF External Route Summarization
OSPF External Route Summarization
 
OSPF Summarization
OSPF SummarizationOSPF Summarization
OSPF Summarization
 
Open Shortest Path First (OSPF) || 2020 || Ser-2
Open Shortest Path First (OSPF) || 2020 || Ser-2Open Shortest Path First (OSPF) || 2020 || Ser-2
Open Shortest Path First (OSPF) || 2020 || Ser-2
 
Switching Types
Switching TypesSwitching Types
Switching Types
 
OSPF Internal Route Summarization
OSPF Internal Route SummarizationOSPF Internal Route Summarization
OSPF Internal Route Summarization
 

Viewers also liked

Tips for å vinne på craps
Tips for å vinne på crapsTips for å vinne på craps
Tips for å vinne på crapschristjopher
 
Abdurrahaman wahid#1310502022#smester5#ttl#generator ac
Abdurrahaman wahid#1310502022#smester5#ttl#generator acAbdurrahaman wahid#1310502022#smester5#ttl#generator ac
Abdurrahaman wahid#1310502022#smester5#ttl#generator acabdurrahmanw1
 
Bab 1 sejarah internet
Bab 1 sejarah internetBab 1 sejarah internet
Bab 1 sejarah internetNatria Shaniya
 
Java project titles for mca @dreamweb techno solutions trichy
Java   project titles for  mca @dreamweb techno solutions trichyJava   project titles for  mca @dreamweb techno solutions trichy
Java project titles for mca @dreamweb techno solutions trichyElakkiya Triplen
 
La veille de Red Guy du 27.02.13 - la face cachée des ntic
La veille de Red Guy du 27.02.13 - la face cachée des nticLa veille de Red Guy du 27.02.13 - la face cachée des ntic
La veille de Red Guy du 27.02.13 - la face cachée des nticRed Guy
 
Mixed Methods on the Commercialization of Cash Waqf in Nigeria: An Analysis o...
Mixed Methods on the Commercialization of Cash Waqf in Nigeria: An Analysis o...Mixed Methods on the Commercialization of Cash Waqf in Nigeria: An Analysis o...
Mixed Methods on the Commercialization of Cash Waqf in Nigeria: An Analysis o...iosrjce
 
A Logit Model of Informal Traders’ Decision to Evade Tax: A Case of Zimbabwe
A Logit Model of Informal Traders’ Decision to Evade Tax: A Case of ZimbabweA Logit Model of Informal Traders’ Decision to Evade Tax: A Case of Zimbabwe
A Logit Model of Informal Traders’ Decision to Evade Tax: A Case of Zimbabweiosrjce
 
XIDE: Expanding End-User Web Development
XIDE: Expanding End-User Web DevelopmentXIDE: Expanding End-User Web Development
XIDE: Expanding End-User Web DevelopmentMarkku Laine
 
Financial Inclusion in India – A Road Map towards Growth of Initiatives and A...
Financial Inclusion in India – A Road Map towards Growth of Initiatives and A...Financial Inclusion in India – A Road Map towards Growth of Initiatives and A...
Financial Inclusion in India – A Road Map towards Growth of Initiatives and A...iosrjce
 

Viewers also liked (11)

Hotels near saif zone
Hotels near saif zoneHotels near saif zone
Hotels near saif zone
 
Mike Godsey CUE 2015
Mike Godsey CUE 2015Mike Godsey CUE 2015
Mike Godsey CUE 2015
 
Tips for å vinne på craps
Tips for å vinne på crapsTips for å vinne på craps
Tips for å vinne på craps
 
Abdurrahaman wahid#1310502022#smester5#ttl#generator ac
Abdurrahaman wahid#1310502022#smester5#ttl#generator acAbdurrahaman wahid#1310502022#smester5#ttl#generator ac
Abdurrahaman wahid#1310502022#smester5#ttl#generator ac
 
Bab 1 sejarah internet
Bab 1 sejarah internetBab 1 sejarah internet
Bab 1 sejarah internet
 
Java project titles for mca @dreamweb techno solutions trichy
Java   project titles for  mca @dreamweb techno solutions trichyJava   project titles for  mca @dreamweb techno solutions trichy
Java project titles for mca @dreamweb techno solutions trichy
 
La veille de Red Guy du 27.02.13 - la face cachée des ntic
La veille de Red Guy du 27.02.13 - la face cachée des nticLa veille de Red Guy du 27.02.13 - la face cachée des ntic
La veille de Red Guy du 27.02.13 - la face cachée des ntic
 
Mixed Methods on the Commercialization of Cash Waqf in Nigeria: An Analysis o...
Mixed Methods on the Commercialization of Cash Waqf in Nigeria: An Analysis o...Mixed Methods on the Commercialization of Cash Waqf in Nigeria: An Analysis o...
Mixed Methods on the Commercialization of Cash Waqf in Nigeria: An Analysis o...
 
A Logit Model of Informal Traders’ Decision to Evade Tax: A Case of Zimbabwe
A Logit Model of Informal Traders’ Decision to Evade Tax: A Case of ZimbabweA Logit Model of Informal Traders’ Decision to Evade Tax: A Case of Zimbabwe
A Logit Model of Informal Traders’ Decision to Evade Tax: A Case of Zimbabwe
 
XIDE: Expanding End-User Web Development
XIDE: Expanding End-User Web DevelopmentXIDE: Expanding End-User Web Development
XIDE: Expanding End-User Web Development
 
Financial Inclusion in India – A Road Map towards Growth of Initiatives and A...
Financial Inclusion in India – A Road Map towards Growth of Initiatives and A...Financial Inclusion in India – A Road Map towards Growth of Initiatives and A...
Financial Inclusion in India – A Road Map towards Growth of Initiatives and A...
 

Similar to Static routes in the cisco ios

Day 8 1 introducing routing n
Day 8 1 introducing routing nDay 8 1 introducing routing n
Day 8 1 introducing routing nCYBERINTELLIGENTS
 
Chapter 5 Routing.pptx
Chapter 5 Routing.pptxChapter 5 Routing.pptx
Chapter 5 Routing.pptxAyaanMohamed4
 
Route static Configuration
Route static ConfigurationRoute static Configuration
Route static ConfigurationGausul Azam
 
1164 Routers
1164 Routers1164 Routers
1164 Routerstechbed
 
Introduction 140318015826-phpapp01
Introduction 140318015826-phpapp01Introduction 140318015826-phpapp01
Introduction 140318015826-phpapp01amit singh
 
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...
ccna summer training ppt ( Cisco certified network analysis) ppt.  by Traun k...ccna summer training ppt ( Cisco certified network analysis) ppt.  by Traun k...
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...Tarun Khaneja
 
ccna project on topic company infrastructure
ccna project on topic company infrastructureccna project on topic company infrastructure
ccna project on topic company infrastructurePrince Gautam
 
Comment by JCB Please center this on the pag.docx
Comment by JCB Please center this on the pag.docxComment by JCB Please center this on the pag.docx
Comment by JCB Please center this on the pag.docxclarebernice
 
All About Routers: Types Of Routers, Routing Table And IP Routing : Notes
All About Routers: Types Of Routers, Routing Table And IP Routing : NotesAll About Routers: Types Of Routers, Routing Table And IP Routing : Notes
All About Routers: Types Of Routers, Routing Table And IP Routing : NotesSubhajit Sahu
 
Fortigatefirewall routing specficatoinmmm
Fortigatefirewall routing specficatoinmmmFortigatefirewall routing specficatoinmmm
Fortigatefirewall routing specficatoinmmmmaheshumanath1
 
Building Scalable Cisco Internetworks (Bsci)
Building Scalable Cisco Internetworks (Bsci)Building Scalable Cisco Internetworks (Bsci)
Building Scalable Cisco Internetworks (Bsci)CCNAResources
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ansRavi Kodoli
 
Basic Introduction to Technology (networking).pdf
Basic Introduction to Technology (networking).pdfBasic Introduction to Technology (networking).pdf
Basic Introduction to Technology (networking).pdftthind
 
Site to Site VPN between Cisco Routers
Site to Site VPN between Cisco RoutersSite to Site VPN between Cisco Routers
Site to Site VPN between Cisco RoutersSandeep Kumar
 
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aqPLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aqPROIDEA
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPFarpit
 

Similar to Static routes in the cisco ios (20)

Day 8 1 introducing routing n
Day 8 1 introducing routing nDay 8 1 introducing routing n
Day 8 1 introducing routing n
 
Chapter 5 Routing.pptx
Chapter 5 Routing.pptxChapter 5 Routing.pptx
Chapter 5 Routing.pptx
 
Route static Configuration
Route static ConfigurationRoute static Configuration
Route static Configuration
 
1164 Routers
1164 Routers1164 Routers
1164 Routers
 
Introduction 140318015826-phpapp01
Introduction 140318015826-phpapp01Introduction 140318015826-phpapp01
Introduction 140318015826-phpapp01
 
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...
ccna summer training ppt ( Cisco certified network analysis) ppt.  by Traun k...ccna summer training ppt ( Cisco certified network analysis) ppt.  by Traun k...
ccna summer training ppt ( Cisco certified network analysis) ppt. by Traun k...
 
ccna project on topic company infrastructure
ccna project on topic company infrastructureccna project on topic company infrastructure
ccna project on topic company infrastructure
 
Comment by JCB Please center this on the pag.docx
Comment by JCB Please center this on the pag.docxComment by JCB Please center this on the pag.docx
Comment by JCB Please center this on the pag.docx
 
All About Routers: Types Of Routers, Routing Table And IP Routing : Notes
All About Routers: Types Of Routers, Routing Table And IP Routing : NotesAll About Routers: Types Of Routers, Routing Table And IP Routing : Notes
All About Routers: Types Of Routers, Routing Table And IP Routing : Notes
 
Fortigatefirewall routing specficatoinmmm
Fortigatefirewall routing specficatoinmmmFortigatefirewall routing specficatoinmmm
Fortigatefirewall routing specficatoinmmm
 
Building Scalable Cisco Internetworks (Bsci)
Building Scalable Cisco Internetworks (Bsci)Building Scalable Cisco Internetworks (Bsci)
Building Scalable Cisco Internetworks (Bsci)
 
Group 1
Group 1Group 1
Group 1
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
 
Ch5
Ch5Ch5
Ch5
 
35d70683c4fd405d89db4a5287aa4b89
35d70683c4fd405d89db4a5287aa4b8935d70683c4fd405d89db4a5287aa4b89
35d70683c4fd405d89db4a5287aa4b89
 
Basic Introduction to Technology (networking).pdf
Basic Introduction to Technology (networking).pdfBasic Introduction to Technology (networking).pdf
Basic Introduction to Technology (networking).pdf
 
Site to Site VPN between Cisco Routers
Site to Site VPN between Cisco RoutersSite to Site VPN between Cisco Routers
Site to Site VPN between Cisco Routers
 
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aqPLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
IP essentials
IP essentialsIP essentials
IP essentials
 

More from IT Tech

Cisco ip phone key expansion module setup
Cisco ip phone key expansion module setupCisco ip phone key expansion module setup
Cisco ip phone key expansion module setupIT Tech
 
Cisco catalyst 9200 series platform spec, licenses, transition guide
Cisco catalyst 9200 series platform spec, licenses, transition guideCisco catalyst 9200 series platform spec, licenses, transition guide
Cisco catalyst 9200 series platform spec, licenses, transition guideIT Tech
 
Cisco isr 900 series highlights, platform specs, licenses, transition guide
Cisco isr 900 series highlights, platform specs, licenses, transition guideCisco isr 900 series highlights, platform specs, licenses, transition guide
Cisco isr 900 series highlights, platform specs, licenses, transition guideIT Tech
 
Hpe pro liant gen9 to gen10 server transition guide
Hpe pro liant gen9 to gen10 server transition guideHpe pro liant gen9 to gen10 server transition guide
Hpe pro liant gen9 to gen10 server transition guideIT Tech
 
The new cisco isr 4461 faq
The new cisco isr 4461 faqThe new cisco isr 4461 faq
The new cisco isr 4461 faqIT Tech
 
New nexus 400 gigabit ethernet (400 g) switches
New nexus 400 gigabit ethernet (400 g) switchesNew nexus 400 gigabit ethernet (400 g) switches
New nexus 400 gigabit ethernet (400 g) switchesIT Tech
 
Tested cisco isr 1100 delivers the richest set of wi-fi features
Tested cisco isr 1100 delivers the richest set of wi-fi featuresTested cisco isr 1100 delivers the richest set of wi-fi features
Tested cisco isr 1100 delivers the richest set of wi-fi featuresIT Tech
 
Aruba campus and branch switching solution
Aruba campus and branch switching solutionAruba campus and branch switching solution
Aruba campus and branch switching solutionIT Tech
 
Cisco transceiver module for compatible catalyst switches
Cisco transceiver module for compatible catalyst switchesCisco transceiver module for compatible catalyst switches
Cisco transceiver module for compatible catalyst switchesIT Tech
 
Cisco ios on cisco catalyst switches
Cisco ios on cisco catalyst switchesCisco ios on cisco catalyst switches
Cisco ios on cisco catalyst switchesIT Tech
 
Cisco's wireless solutions deployment modes
Cisco's wireless solutions deployment modesCisco's wireless solutions deployment modes
Cisco's wireless solutions deployment modesIT Tech
 
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dellCompetitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dellIT Tech
 
Four reasons to consider the all in-one isr 1000
Four reasons to consider the all in-one isr 1000Four reasons to consider the all in-one isr 1000
Four reasons to consider the all in-one isr 1000IT Tech
 
The difference between yellow and white labeled ports on a nexus 2300 series fex
The difference between yellow and white labeled ports on a nexus 2300 series fexThe difference between yellow and white labeled ports on a nexus 2300 series fex
The difference between yellow and white labeled ports on a nexus 2300 series fexIT Tech
 
Cisco transceiver modules for compatible cisco switches series
Cisco transceiver modules for compatible cisco switches seriesCisco transceiver modules for compatible cisco switches series
Cisco transceiver modules for compatible cisco switches seriesIT Tech
 
Guide to the new cisco firepower 2100 series
Guide to the new cisco firepower 2100 seriesGuide to the new cisco firepower 2100 series
Guide to the new cisco firepower 2100 seriesIT Tech
 
892 f sfp configuration example
892 f sfp configuration example892 f sfp configuration example
892 f sfp configuration exampleIT Tech
 
Cisco nexus 7000 and nexus 7700
Cisco nexus 7000 and nexus 7700Cisco nexus 7000 and nexus 7700
Cisco nexus 7000 and nexus 7700IT Tech
 
Cisco firepower ngips series migration options
Cisco firepower ngips series migration optionsCisco firepower ngips series migration options
Cisco firepower ngips series migration optionsIT Tech
 
Eol transceiver to replacement model
Eol transceiver to replacement modelEol transceiver to replacement model
Eol transceiver to replacement modelIT Tech
 

More from IT Tech (20)

Cisco ip phone key expansion module setup
Cisco ip phone key expansion module setupCisco ip phone key expansion module setup
Cisco ip phone key expansion module setup
 
Cisco catalyst 9200 series platform spec, licenses, transition guide
Cisco catalyst 9200 series platform spec, licenses, transition guideCisco catalyst 9200 series platform spec, licenses, transition guide
Cisco catalyst 9200 series platform spec, licenses, transition guide
 
Cisco isr 900 series highlights, platform specs, licenses, transition guide
Cisco isr 900 series highlights, platform specs, licenses, transition guideCisco isr 900 series highlights, platform specs, licenses, transition guide
Cisco isr 900 series highlights, platform specs, licenses, transition guide
 
Hpe pro liant gen9 to gen10 server transition guide
Hpe pro liant gen9 to gen10 server transition guideHpe pro liant gen9 to gen10 server transition guide
Hpe pro liant gen9 to gen10 server transition guide
 
The new cisco isr 4461 faq
The new cisco isr 4461 faqThe new cisco isr 4461 faq
The new cisco isr 4461 faq
 
New nexus 400 gigabit ethernet (400 g) switches
New nexus 400 gigabit ethernet (400 g) switchesNew nexus 400 gigabit ethernet (400 g) switches
New nexus 400 gigabit ethernet (400 g) switches
 
Tested cisco isr 1100 delivers the richest set of wi-fi features
Tested cisco isr 1100 delivers the richest set of wi-fi featuresTested cisco isr 1100 delivers the richest set of wi-fi features
Tested cisco isr 1100 delivers the richest set of wi-fi features
 
Aruba campus and branch switching solution
Aruba campus and branch switching solutionAruba campus and branch switching solution
Aruba campus and branch switching solution
 
Cisco transceiver module for compatible catalyst switches
Cisco transceiver module for compatible catalyst switchesCisco transceiver module for compatible catalyst switches
Cisco transceiver module for compatible catalyst switches
 
Cisco ios on cisco catalyst switches
Cisco ios on cisco catalyst switchesCisco ios on cisco catalyst switches
Cisco ios on cisco catalyst switches
 
Cisco's wireless solutions deployment modes
Cisco's wireless solutions deployment modesCisco's wireless solutions deployment modes
Cisco's wireless solutions deployment modes
 
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dellCompetitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
 
Four reasons to consider the all in-one isr 1000
Four reasons to consider the all in-one isr 1000Four reasons to consider the all in-one isr 1000
Four reasons to consider the all in-one isr 1000
 
The difference between yellow and white labeled ports on a nexus 2300 series fex
The difference between yellow and white labeled ports on a nexus 2300 series fexThe difference between yellow and white labeled ports on a nexus 2300 series fex
The difference between yellow and white labeled ports on a nexus 2300 series fex
 
Cisco transceiver modules for compatible cisco switches series
Cisco transceiver modules for compatible cisco switches seriesCisco transceiver modules for compatible cisco switches series
Cisco transceiver modules for compatible cisco switches series
 
Guide to the new cisco firepower 2100 series
Guide to the new cisco firepower 2100 seriesGuide to the new cisco firepower 2100 series
Guide to the new cisco firepower 2100 series
 
892 f sfp configuration example
892 f sfp configuration example892 f sfp configuration example
892 f sfp configuration example
 
Cisco nexus 7000 and nexus 7700
Cisco nexus 7000 and nexus 7700Cisco nexus 7000 and nexus 7700
Cisco nexus 7000 and nexus 7700
 
Cisco firepower ngips series migration options
Cisco firepower ngips series migration optionsCisco firepower ngips series migration options
Cisco firepower ngips series migration options
 
Eol transceiver to replacement model
Eol transceiver to replacement modelEol transceiver to replacement model
Eol transceiver to replacement model
 

Static routes in the cisco ios

  • 1. Static Routes in the Cisco IOS As a network administrator, you must be able to configure your routers to route traffic across the network. Static routes are commonly used on routers to accomplish this. For a network admin, knowing how to use a static route is a requirement. Let’s learn about static routes, and how to properly use them. Static vs. Dynamic There are two types of routing that can be configured on a network device- static and dynamic. Static routes are hard-coded on a network device. They tell the device exactly where to send traffic, no matter what. Dynamic routes, on the other hand, use a routing protocol to determine the best path. If one route becomes less preferred, the route being used may change. With dynamic routes, routes communicate with each other and exchange routing information. Examples of dynamic routing protocols are RIP, EIGRP, OSPF, and BGP. Basics of Static Routes Now that you know the difference between static and dynamic routes, let’s learn the basics of static routes. When there are two or more routes to the same destination, routers use administrative distance to decide which routing protocol (or static route) to trust more. For example, here are some administrative distances (the lower the number, the more trustworthy the type of route is): - Static Route to a connected interface = 0 - Static Route to a IP address = 1 - Internal EIGRP = 90 - OSPF = 110 - RIP = 120 Because of how administrative distance works, when you enter static routes that are the same as a dynamic route (learned from another router), your static route will be used over the dynamic route. As you may be overriding routes manually, you must make sure your routes are accurate. As you may have noticed above, there are static routes that point to an interface on the router, and static routes that point to an IP address on the network. For example, a static route to an interface may tell a router “send all traffic going to X network out interface Ethernet0/0”. A static route to an IP address may tell a router “send all traffic going to X network to IP address 1.1.1.1”. Either of these types of routes can be used, depending on the situation. There is a special kind of static route called a default route. Sometimes a default route is called a “zero / zero” route. This is because the network and subnet you are specifying, as the destination for the traffic it would match, are all zeros. A default route says “for any traffic that does not match a specific route in the routing table, send that traffic to this destination”. In other words, a default route is a “catch-all”. The syntax for the global configuration command used to enter a static route is: ip
  • 2. route {destination prefix} {destination prefix mask} {interface OR forwarding router’s IP address} For example, a static route sending all traffic out Serial 0/0 would look like this: A specific route, sending traffic going to network 10.10.10.0, to router 1.1.1.1, would look like this: Once these routes are configured, you can use the show ip route command to see the routing table:
  • 3. Notice in this output the static routes being with an S on the left-hand side. You can see our two static routes 10.10.10.0, and 0.0.0.0/0. You can also see our connected interfaces (shown with a C). As a side-note, the show ip route command can be abbreviated ship ro. Real-World Example of using Static Routes Now that we understand the basics of using static routes, let me provide a real-world example. Say that you have two locations, connected by a WAN T1 circuit. On the LAN side of each of these locations, you have a small Ethernet network. Here is a network diagram: The only way for the devices on Ethernet LAN 10.10.1.0 to communicate with devices on network 10.10.2.0, is to use routing. With such a simple network, static routing is
  • 4. a perfect solution. You can enter one route on each router and be done with the configuration. With dynamic routing, there would be slightly more configuration. You would also forever have the network overhead of the routing protocols communicating across the WAN circuit. To configure the static routes for this simple network, here is what you would do: San Diego, CA Router- Chicago, IL Router- By doing this, you have told the San Diego Router that any traffic destined for the Chicago LAN, should be sent to IP address 20.1.1.2. The IP address 20.1.1.2 is the WAN serial interface of the Chicago router. In other words, you are sending that traffic to the “next hop” on the WAN, which happens to be the destination for this traffic. On the Chicago router, you are doing just the reverse so that the response from your San Diego traffic can find its way back to San Diego. In two simple commands you have configured routing for this network. Summary Static routes are essential knowledge for any network administrator. While they do not scale well to a large network, they have their uses in all sizes of networks. Even if you are using a dynamic routing protocol, there are cases where using a static route is still a requirement. Theip route command has many more options than what we were able to explore in this short article. To learn more, go to your router and type ip route? Or consult the Cisco IOS documentation on the ip route command.
  • 5. More Related Topics: When Do You Use Static Routes? Static Routing vs. Dynamic Routing Port Forwarding a Range of Ports on Cisco IOS What’s the Order of Operations for Cisco IOS?