IP Static Routing

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

In what scenario is it most beneficial to implement static routes within a network?

  • When there's a need for a backup path in case the primary route fails.
  • When the network is very large and complex, requiring dynamic adaptation.
  • When a dynamic routing protocol is mandatory for compliance reasons.
  • When there is only one path to a destination network. (correct)

Which of the following is not a type of static route?

  • Dynamic static route (correct)
  • Default static route
  • Standard static route
  • Floating static route

Which global configuration command is used to configure IPv4 static routes?

  • `ip route` (correct)
  • `ipv4 route`
  • `router static`
  • `ip static-route`

When configuring a 'next-hop' static route, what parameter is specified?

<p>Only the next-hop IP address. (B)</p> Signup and view all the answers

Consider a scenario where a network administrator wants to configure a static route on Router A to a destination network that is three hops away. Which type of static route is most suitable if the administrator only knows the IP address of the immediate next hop router?

<p>Next-hop static route (D)</p> Signup and view all the answers

Which of the following is the correct syntax to configure an IPv6 static route to the network 2001:db8:cafe:1::/64 via the next-hop address 2001:db8:acad:2::2?

<p><code>ipv6 route 2001:db8:cafe:1::/64 2001:db8:acad:2::2</code> (A)</p> Signup and view all the answers

If a router has multiple routes to a destination (a static route, a route learned by RIP, and a directly connected route), which route will the router prefer to use by default?

<p>The directly connected route because it has the lowest administrative distance. (D)</p> Signup and view all the answers

Consider a scenario where an administrator configures a static route using only the exit interface. What type of static route is this?

<p>Directly connected static route (D)</p> Signup and view all the answers

Which command is used to display the configured static routes on a Cisco router?

<p><code>show ip route static</code> (B)</p> Signup and view all the answers

Under which circumstances is it required to configure a fully specified static IPv6 route?

<p>When using a link-local address as the next-hop. (C)</p> Signup and view all the answers

Why is specifying both the exit interface and next-hop IP address (fully specified static route) recommended when the exit interface is an Ethernet network?

<p>To explicitly identify the next hop, as Ethernet is a multi-access interface. (C)</p> Signup and view all the answers

What is the effect of configuring an IPv4 default static route with a next-hop IP address?

<p>All traffic not matching any other route in the routing table will be forwarded to the specified next-hop. (B)</p> Signup and view all the answers

What is the significance of the /0 subnet mask in an IPv4 default static route?

<p>It specifies that none of the bits of the destination IP address need to match the route. (A)</p> Signup and view all the answers

You need to configure RouterA with a default static route to forward all traffic to RouterB. What is the appropriate command?

<p><code>RouterA(config)# ip route 0.0.0.0 0.0.0.0 [RouterB's IP]</code> (A)</p> Signup and view all the answers

What is the primary purpose of a floating static route?

<p>To provide a backup route in case the primary route fails. (B)</p> Signup and view all the answers

How is a floating static route configured so that it is not used unless the primary route fails?

<p>By assigning it a higher administrative distance than the primary route. (C)</p> Signup and view all the answers

What happens to network traffic when the primary route fails and a floating static route is configured?

<p>Traffic is automatically rerouted to the floating static route. (A)</p> Signup and view all the answers

What is the default administrative distance of a static route if not manually configured?

<p>1 (D)</p> Signup and view all the answers

What is a host route?

<p>A route to a specific IP address with a /32 (IPv4) or /128 (IPv6) mask. (D)</p> Signup and view all the answers

How does Cisco IOS handle host routes when an interface is configured with an IP address?

<p>It automatically installs a static host route. (D)</p> Signup and view all the answers

When configuring a static host route, what subnet mask should be used for an IPv4 address?

<p>/32 (B)</p> Signup and view all the answers

Which command verifies both IPv4 and IPv6 static host routes?

<p><code>show ip route</code> and <code>show ipv6 route</code> (D)</p> Signup and view all the answers

Consider a scenario where a network engineer needs to configure a static route to a specific server using its IPv6 address and wants to use the link-local address of the next-hop router. Besides the IPv6 destination address and the link-local address, what else is required in the configuration?

<p>The interface type and number of the next-hop router. (C)</p> Signup and view all the answers

What is the most specific route?

<p>Host route (A)</p> Signup and view all the answers

Why is configuring a fully specified static route with an IPv6 link-local address important?

<p>Link-local addresses are only unique on a given link; therefore, the exit interface must be specified. (D)</p> Signup and view all the answers

When configuring a static IPv4 route, which of the following parameters is mandatory?

<p>Network address, subnet mask, and next-hop IP address or exit interface (A)</p> Signup and view all the answers

Which command is used to verify a static IPv6 route?

<p><code>show ipv6 route</code> (A)</p> Signup and view all the answers

When would a network administrator use a 'summary static route'?

<p>To summarize multiple specific routes into a single route, reducing the size of the routing table. (A)</p> Signup and view all the answers

What is the key difference between a default static route and a summary static route?

<p>A default static route matches any network, while a summary static route matches a group of networks with a common network address. (A)</p> Signup and view all the answers

Which of the following commands will show the IPv4 routing table with the gateway of last resort?

<p><code>show ip route | begin Gateway</code> (C)</p> Signup and view all the answers

When configuring IPv6 static routes, which address type requires specifying an exit interface?

<p>Link-Local Addresses (A)</p> Signup and view all the answers

Which of the following is true regarding static routes and dynamic routing protocols?

<p>Static routes are commonly implemented even when a dynamic routing protocol is configured. (A)</p> Signup and view all the answers

What does the 'L' code indicate in the show ip route output?

<p>A local host route. (D)</p> Signup and view all the answers

If R1 can ping R2 but cannot ping R3, what does this indicate about their routing tables?

<p>R1 has entries for directly connected networks and R2, but not for R3's network. (D)</p> Signup and view all the answers

Which of the following commands would remove a static IPv6 route configured with the command ipv6 route 2001:db8:cafe:1::/64 Serial0/0/0 fe80::2?

<p><code>no ipv6 route 2001:db8:cafe:1::/64 Serial0/0/0 fe80::2</code> (A)</p> Signup and view all the answers

What must match between a packet and a route in the routing table for forwarding in IPv4 networks?

<p>The number of bits determined by the subnet mask (B)</p> Signup and view all the answers

Where is the default route used?

<p>When a more specific match does not exist (B)</p> Signup and view all the answers

Flashcards

Static Route

A static route configured for IPv4 or IPv6.

Next-hop route

Static routes that specify only the IP address of the next hop.

Directly connected static route

Static routes specifying only the exit interface of the router.

Fully specified static route

Static routes that specify both the next-hop IP address and the exit interface.

Signup and view all the flashcards

IPv4 Static Route Command

Global configuration command used to configure IPv4 static routes.

Signup and view all the flashcards

IPv6 Static Route Command

Global configuration command for IPv6 static routes.

Signup and view all the flashcards

Default static route

A static route matching all packets, representing any network not in the routing table.

Signup and view all the flashcards

IPv4 Default Static Route

Syntax for IPv4 default static route.

Signup and view all the flashcards

Floating static route

A static route used as a backup path if the primary route is unavailable.

Signup and view all the flashcards

Host route

An IPv4 address with a 32-bit mask or an IPv6 address with a 128-bit mask.

Signup and view all the flashcards

Link-Local Static Route

Static route points at link-local instead of IPv6 global addresses.

Signup and view all the flashcards

Study Notes

IP Static Routing

  • Static routes are typically implemented on a network, even when a dynamic routing protocol is configured.
  • IPv4 and IPv6 support standard, default, floating, and summary static routes.
  • Static routes use the ip route and ipv6 route global configuration commands.

Next-Hop static route

  • Consists of an IP address, exit interface, or both.
  • Next-hop route specifies only the next-hop IP address.
  • Directly connected static route specifies only the router exit interface.
  • Fully specified static route specifies both the IP address and exit interface

IPv4 Static Route

  • Configured using the global configuration command Router(config)# ip route network-address subnet-mask { ip-address | exit-intf [ip-address]} [distance]
  • Either the ip-address, exit-intf, or the ip-address and exit-intf parameters must be configured.

IPv6 Static Route

  • Configured using the global configuration command Router(config)# ipv6 route ipv6-prefix/prefix-length {ipv6-address | exit-intf [ipv6-address]} [distance]
  • Most parameters are identical to the IPv4 version.

Initial Router State

  • A router has entries for only directly connected networks and associated local addresses
  • Before static routes are configured R1 can ping R2, but cannot ping the R3 LAN

IPv4 Next-Hop Route Configuration

  • Next-hop IP address is specified, the exit interface is derived from the next hop
  • Command example using the IP address of the next hop, R2:
    • R1(config)# ip route 172.16.1.0 255.255.255.0 172.16.2.2
    • R1(config)# ip route 192.168.1.0 255.255.255.0 172.16.2.2
    • R1(config)# ip route 192.168.2.0 255.255.255.0 172.16.2.2

IPv6 Next-Hop Route Configuration

  • Commands to configure IPv6 static routes to the three remote networks.
  • First enable IPv6 unicast routing using the command: R1(config)# ipv6 unicast-routing
    • R1(config)# ipv6 route 2001:db8:acad:1::/64 2001:db8:acad:2::2
    • R1(config)# ipv6 route 2001:db8:cafe:1::/64 2001:db8:acad:2::2
    • R1(config)# ipv6 route 2001:db8:cafe:2::/64 2001:db8:acad:2::2

IPv4 Directly Connected Static Route Configuration

  • Use the exit interface to specify the next-hop address.
  • A next-hop address is generally recommended.
  • Directly connected static routes should only be used with point-to-point serial interfaces
    • R1(config)# ip route 172.16.1.0 255.255.255.0 s0/1/0
    • R1(config)# ip route 192.168.1.0 255.255.255.0 s0/1/0
    • R1(config)# ip route 192.168.2.0 255.255.255.0 s0/1/0

IPv6 Directly Connected Static Route Configuration

  • Three directly connected IPv6 static routes are configured using the exit interface.
  • The use of a next-hop address is generally recommended for static routes
    • R1(config)# ipv6 route 2001:db8:acad:1::/64 s0/1/0
    • R1(config)# ipv6 route 2001:db8:cafe:1::/64 s0/1/0
    • R1(config)# ipv6 route 2001:db8:cafe:2::/64 s0/1/0

IPv4 Fully Specified Static Route Configuration

  • Configured when the exit interface is a multi-access interface where it is necessary to explicitly identify the next hop.
  • An exit interface is optional, however it is necessary to use a next-hop address.
  • When the exit interface is an Ethernet network, use a static route that includes the next-hop address.
    • R1(config)# ip route 172.16.1.0 255.255.255.0 GigabitEthernet 0/0/1 172.16.2.2
    • R1(config)# ip route 192.168.1.0 255.255.255.0 GigabitEthernet 0/0/1 172.16.2.2
    • R1(config)# ip route 192.168.2.0 255.255.255.0 GigabitEthernet 0/0/1 172.16.2.2

IPv6 Fully Specified Static Route Configuration

  • Used when used IPv6 link-local address as the next-hop address
  • Command Example:
    • R1(config)# ipv6 route 2001:db8:acad:1::/64 fe80::2
    • The interface has to be specified for a link-local nexthop
    • R1(config)# ipv6 route 2001:db8:acad:1::/64 s0/1/0 fe80::2

Verify Route Configuration

  • Use show ip route, show ipv6 route, ping and traceroute
    • show ip route static
    • show ip route network
    • show running-config | section ip route
  • Replace ip with ipv6 for the IPv6 versions

Default Static Routes

  • A static route that matches all packets for networks not in the routing table.
  • Routers use default routes configured locally or learned from another router to identify the Gateway of Last Resort
  • Default static routes are used to connect an edge router to a service provider network, or a stub router

IPv4 Default Static Route Configuration

  • Similar to any other IPv4 static route, except that the network address and subnet mask is 0.0.0.0
  • The 0.0.0.0 0.0.0.0 in the route will match any network address., or quad-zero route.
  • Command example Router(config)# ip route 0.0.0.0 0.0.0.0 {ip-address | exit-intf}

IPv6 Default Static Route Configuration

  • Similar to any other IPv6 static route configuration except that the ipv6-prefix/prefix-length is ::/0, matching all routes.
  • Command example: Router(config)# ipv6 route ::/0 {ipv6-address | exit-intf}

Configuring a Default Static Route

  • For IPv4, any packets not matching more specific route entries are forwarded to R2 at 172.16.2.2
    • R1(config)# ip route 0.0.0.0 0.0.0.0 172.16.2.2
  • For IPv6, any packets not matching more specific IPv6 route entries are forwarded to R2 at 2001:db8:acad:2::2
    • R1(config)# ipv6 route ::/0 2001:db8:acad:2::2

Verify Default Static Route Configuration

  • The show ip route static command output displays the contents of the static routes in the routing table.
    • The asterisk (*) next to the route with code ‘S’ indicates that this static route is a candidate default route, which is why it is selected as the Gateway of Last Resort.
  • The static default route uses the /0 mask, or ::/0 prefix for IPv6, meaning none of the bits are required to match. As long as a more specific match does not exist, the default static route matches all packets.

Floating Static Route

  • Static routes that provide a backup path to a primary static or dynamic route and only used when the primary route is not available.
  • Achieved by configuring the route with a higher administrative distance than the primary route.
    • Higher administrative distance makes the route less desirable than that of another static route or a route learned through a dynamic routing protocol.
  • By default, static routes have an administrative distance of 1, making them preferable to routes learned from dynamic routing protocols.

IPv4 and IPv6 Floating Static Route Configuration

  • Command examples:
    • R1(config)# ip route 0.0.0.0 0.0.0.0 172.16.2.2
    • R1(config)# ip route 0.0.0.0 0.0.0.0 10.10.10.2 5
    • R1(config)# ipv6 route ::/0 2001:db8:acad:2::2
    • R1(config)# ipv6 route ::/0 2001:db8:feed:10::2 5

Floating Route Behavior

  • When used, Router 1 automatically generates syslog messages for the link going down.
  • Inspecting the routing table would show the secondary route being used.

Host Routes

  • An IPv4 address with a 32-bit mask, or an IPv6 address with a 128-bit mask.
  • Can be added to the routing table automatically when an IP address is configured on the router
  • Can be configured as a static host route

Automatically Installed Host Routes

  • Cisco IOS automatically installs a host route, also known as a local host route, when an interface address is configured on the router.
  • This allows a more efficient process for packets directed to the router itself, rather than for packet forwarding.
  • This route is designated with a C in the routing table for the network address of the interface.
  • The local routes are marked with L in the output of the routing table.

Static Host Route Configuration

  • Manually configured static route to direct traffic to a specific destination device, such as a server.
  • Destination IP address and a 255.255.255.255 (/32) mask.
  • For IPv6 a /128 prefix length is configured
  • Command Examples:
    • Branch(config)# ip route 209.165.200.238 255.255.255.255 198.51.100.2
    • Branch(config)# ipv6 route 2001:db8:acad:2::238/128 2001:db8:acad:1::2

Static Host Route Verification

  • A review of both the IPv4 and IPv6 route tables verifies that the routes are active.
  • The next-hop address can be the link-local address.
    • Also need to to specify an interface type and an interface number
  • First, the original IPv6 static host route is removed, then a fully specified route configured with the IPv6 address of the server and the IPv6 link-local address of the ISP router
  • Command Examples:
    • Branch(config)# no ipv6 route 2001:db8:acad:2::238/128 2001:db8:acad:1::2
    • Branch (config)# ipv6 route 2001:db8:acad:2::238/128 serial 0/1/0 fe80::2

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

IPv4 Addressing and Static Routing
5 questions
Static Routes and Host Configurations
42 questions
Module 15: IP Static Routing
43 questions
Use Quizgecko on...
Browser
Browser