ITE PC v4.0 Chapter 1
Chapter 2: Static Routing
Routing and Switching Essentials v6.0
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
Presentation_ID
‹#›
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
1
Cisco Networking Academy Program
Routing and Switching Essentials v6.0
Chapter 2: Static Routing
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Chapter 2 – Sections & Objectives
2.1 Static Routing Implementation
Explain the advantages and disadvantages of static routing.
Explain the purpose of different types of static routes.
2.2 Configure Static and Default Routes
Configure IPv4 and IPv6 static routes by specifying a next-hop address.
Configure IPv4 and IPv6 default routes.
Configure a floating static route to provide a backup connection.
Configure IPv4 and IPv6 static host routes that direct traffic to a specific host
2.3 Troubleshoot Static and Default Route Issues
Explain how a router processes packets when a static route is configured.
Troubleshoot common static and default route configuration issues.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
2
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
2.1 Static Routing Implementation
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
Presentation_ID
‹#›
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
3
Cisco Networking Academy Program
Routing and Switching Essentials v6.0
Chapter 2: Static Routing
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Static Routing
Reach Remote Networks
A router can learn about remote networks in one of two ways:
Manually – Remote networks are manually entered into the route table using static routes.
Dynamically – Remote routes are automatically learned using a dynamic routing protocol.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
4
2.1 – Static Routing
2.1.1.1 – Reach Remote Networks
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Static Routing
Why Use Static Routing?
Static routing provides some advantages over dynamic routing, including:
Static routes are not advertised over the network, resulting in better security.
Static routes use less bandwidth than dynamic routing protocols, no CPU cycles are used to calculate and communicate routes.
The path a static route uses to send data is known.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
5
2.1.1.2 – Why Use Static Routing?
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Static Routing
When to Use Static Routes
Static routing has three primary uses:
Providing ease of routing table maintenance in smaller networks.
Routing to and from stub networks. A stub network is a network accessed by a single route, and the router has no other neighbors.
Using a single default route to represent a path to any network that does not have a more specific match with another route in the routing table.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
6
2.1.1.3 – When to Use Static Routes
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Types of Static Routes
Static Route Applications
Static Routes are often used to:
Connect to a specific network.
Provide a Gateway of Last Resort for a stub network.
Reduce the number of routes advertised by summarizing several contiguous networks as one static route.
Create a backup route in case a primary route link fails.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
7
2.1.2 – Types of Static Routes
2.1.2.1 – Static Route Applications
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Types of Static Routes
Standard Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
8
2.1.2.2 Standard Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Types of Static Routes
Default Static Route
A default static route is a route that matches all packets.
A default route identifies the gateway IP address to which the router sends all IP packets that it does not have a learned or static route.
A default static route is simply a static route with 0.0.0.0/0 as the destination IPv4 address.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
9
2.1.2.3 Default Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Types of Static Routes
Summary Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
10
2.1.2.4 Summary Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Types of Static Routes
Floating Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
11
2.1.2.5 Floating Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
6.2 Configure Static and Default Routes
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
Presentation_ID
‹#›
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
12
Cisco Networking Academy Program
Routing and Switching Essentials v6.0
Chapter 2: Static Routing
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv4 Static Routes
ip route Command
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
13
2.2 Configure Static and Default Routes
2.2.1.1 ip route Command
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv4 Static Routes
Next-Hop Options
The next hop can be identified by an IP address, exit interface, or both. How the destination is specified creates one of the three following route types:
Next-hop route – Only the next-hop IP address is specified.
Directly connected static route – Only the router exit interface is specified.
Fully specified static route – The next-hop IP address and exit interface are specified.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
14
2.2.1.2 Next-Hop Options
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv4 Static Routes
Configure a Next-Hop Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
15
2.2.1.3 Configure a Next-Hop Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv4 Static Routes
Configure Directly Connected Static Routes
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
16
2.2.1.4 Configure a Directly Connected Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv4 Static Routes
Verify a Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
17
2.2.1.6 Verify a Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv4 Static Routes
Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
18
2.2.2.1 Default Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv4 Static Routes
Configure a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
19
2.2.2.2 Configure a Default Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv4 Static Routes
Verify a Default Static Route
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
20
2.2.2.3 Verify a Default Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Static Routes
The ipv6 route Command
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
21
2.2.3.1 The ipv6 route Command
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Static Routes
Next-Hop Options
Verify a Default Static Route
Verify a Default Static Route
Next-hop static IPv6 route – Only the next-hop IPv6 address is specified
Directly connected static IPv6 route – Only the router exit interface is specified
Fully specified static IPv6 route – The next-hop IPv6 address and exit interface are specified
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
22
2.2.3.2 Next-Hop Options
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Static Routes
Configure a Next-Hop Static IPv6 Route
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
23
2.2.3.3 Configure a Next-Hop Static IPv6 Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Static Routes
Directly Connected Static IPv6 Route
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
24
2.2.3.4 Configure a Directly Connected Static IPv6 Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Static Routes
Fully Specified Static IPv6 Route
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
25
2.2.3.5 Configure a Fully Specified Static IPv6 Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Static Routes
Verify IPv6 Static Routes
Verify a Default Static Route
Verify a Default Static Route
In addition to ping and traceroute, commands to verify static routes include:
show ipv6 route
show ipv6 route static
show ipv6 route network
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
26
2.2.3.6 Verify IPv6 Static Routes
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Default Routes
Default Static IPv6 Route
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
27
2.2.4.1 Default Static IPv6 Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Default Routes
Configure a Default Static IPv6 Route
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
28
2.2.4.2 Configure a Default Static IPv6 Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Default Routes
Verify a Default IPv6 Static Route
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
29
2.2.4.3 Verify a Default Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Default Routes
Floating Static Routes
Verify a Default Static Route
Verify a Default Static Route
Floating static routes have an administrative distance greater than the administrative distance of another static route or dynamic routes.
The static route “floats” and is not used when the route with the better administrative distance is active.
If the preferred route is lost the floating static route can take over.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
30
2.2.5.1 Floating Static Routes
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Default Routes
Configure an IPv4 Floating Static Route
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
31
2.2.5.2 Configure an IPv4 Floating Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure IPv6 Default Routes
Test the IPv4 Floating Static Route
Verify a Default Static Route
Verify a Default Static Route
To test a floating static route:
Use the show ip route command to verify that the routing table is using the default static route.
Use the traceroute command to follow the traffic flow out the primary route.
Disconnect the link or shutdown the primary interface(s). In the curriculum example the serial interfaces on R2 are shutdown.
Use a show ip route command to verify that the routing table is using the floating static route.
Use a traceroute command to follow the traffic flow out the backup route.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
32
2.2.5.3 Test the IPv4 Floating Static Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure Static Host Routes
Automatically Installed Host Routes
Verify a Default Static Route
Verify a Default Static Route
A host route is an IPv4 address with a 32-bit mask or an IPv6 address with a 128-bit mask.
Automatically installed when an IP address is configured on the router.
The local routes are marked with “L” in the output of the routing table.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
33
2.2.6.1 Automatically Installed Host Routes
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure Static Host Routes
Configure IPv4 and IPv6 Static Host Routes
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
34
2.2.6.3 Configure IPv4 and IPv6 Static Host Routes
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Configure Static Host Routes
Configure IPv4 and IPv6 Static Host Routes
Verify a Default Static Route
Verify a Default Static Route
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
35
2.2.6.3 Configure IPv4 and IPv6 Static Host Routes
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
6.2 Troubleshoot Static and Default Route Issues
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
Presentation_ID
‹#›
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
36
Cisco Networking Academy Program
Routing and Switching Essentials v6.0
Chapter 2: Static Routing
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Troubleshoot IPv4 Static and Default Route Configuration
Troubleshoot a Missing Route
Verify a Default Static Route
IOS troubleshooting commands include:
ping
Extended ping enables you to specify the source IP address for the ping packets.
traceroute
show ip route
show ip interface brief
show cdp neighbors detail
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
37
2.3.2.1 Troubleshoot a Missing Route
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Packet Processing with Static Routes
Solve a Connectivity Problem
Verify a Default Static Route
Finding a missing (or misconfigured) route requires using the right tools in a methodical manner.
Use the ping command to confirm the destination can’t be reached.
A traceroute would also reveal the closest router (or hop) that fails to respond as expected. In this case, the router would then send an Internet Control Message Protocol (ICMP) destination unreachable message back to the source.
The next step is to investigate the routing table using the show ip route command. Look for missing or misconfigured routes.
Incorrect static routes are a common cause of routing problems.
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
38
2.3.2.2 Solve a Connectivity Problem
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
2.4 Chapter Summary
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
Presentation_ID
‹#›
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
39
Cisco Networking Academy Program
Routing and Switching Essentials v6.0
Chapter 2: Static Routing
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
Explain the advantages and disadvantages of static routing.
Explain the purpose of different types of static routes.
Configure IPv4 and IPv6 static routes by specifying a next-hop address.
Configure IPv4 and IPv6 default routes.
Configure a floating static route to provide a backup connection.
Configure IPv4 and IPv6 static host routes that direct traffic to a specific host.
Explain how a router processes packets when a static route is configured.
Troubleshoot common static and default route configuration issues.
Chapter Summary
Summary
Presentation_ID
‹#›
© 2008 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
40
Summary
© 2006, Cisco Systems, Inc. All rights reserved.
Presentation_ID.scr
/docProps/thumbnail.jpeg