Module 5-Static Routing

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Chapter 2: Static Routing

Instructor Materials

CCNA Routing and Switching

Routing and Switching Essentials v6.0


Static Routing
Reach Remote Networks
▪ A router learns about remote networks in two ways:
• Manually entered into the route table using static routes
• Static routes are not automatically updated and must be reconfigured when topology changes
• Dynamically (Automatically) learned using a routing protocol

Static Dynamic
and Routing
Default
Routes

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
Static Routing
Why Use Static Routing?

Dynamic versus Static Routing

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
Types of Static Routes
Default Static Route
▪ Default route matches all packets and is used
when a packet does not match a specific
route in the routing table

▪ Can be dynamically learned or statically


configured
▪ Default Static route uses 0.0.0.0/0 as the
destination IPv4 address

▪ Creates a Gateway of Last Resort


▪ Common use is when connecting a
company’s edge router to the ISP network

▪ Router has only one router to which it is


connected

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Configure IPv4 Static Routes
ip route Command

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
Configure IPv4 Default Routes
Default Static Route
▪ Default static routes are commonly used when connecting:
• An edge router to a service provider network
• A stub router (a router with only one upstream neighbor router)
▪ Default route is used when no other routes in the routing table match the destination IP

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
Configure IPv4 Default Routes
Configure a Default Static Route
Any packets
not matching
route entries
are forwarded
to 172.16.2.2

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
Configure IPv4 Default Routes
Verify a Default Static Route
▪ show ip route static displays
just the static routes
• S indicates static route
• candidate default route
indicated by *
• /0 mask in route entry indicates
none of the bits are required to
match

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
Configure Floating Static Routes
Floating Static Routes
Floating static routes have an administrative
distance greater than the dynamic routing protocol
or other static route
▪ Used as backup routes

▪ Administrative distance of common routing protocols


• EIGRP = 90
• IGRP = 100
• OSPF = 110
• IS-IS = 115
• RIP = 120
▪ By default, AD of static route = 1

▪ Static route AD can be increased to make route


less desirable until preferred route is lost
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
Configure Floating Static Routes
Configure a Floating Static Route

Preferred router from


R1 is to R2 (AD = 1)

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
Configure Floating Static Routes
Test the IPv4 Floating Static Route

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
Configure Floating Static Routes
Test the IPv4 Floating Static Route (Cont.)

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
Troubleshoot IPv4 Static and Default Route Configuration
Troubleshoot a Missing Route
▪ Common IOS troubleshooting commands
include:
• ping
• traceroute
• show ip route
• show ip interface brief
• show cdp neighbors detail

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
Troubleshoot IPv4 Static and Default Route Configuration
Troubleshoot a Missing Route (Cont.)

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
Troubleshoot IPv4 Static and Default Route Configuration
Solve a Connectivity Problem

A traceroute reveals that R2


forwards the traceroute back
to R1. R1 returns it to R2

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15

You might also like