Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. 200-301/
  4. 200-301 Learning Path/
  5. Study FAQs/
  6. How do you configure and verify default, network, and host static routes in Cisco IOS XE?

Study FAQ

How do you configure and verify default, network, and host static routes in Cisco IOS XE?

Exam · 200-301Knowledge domain · IP ConnectivityUpdated Nov 25, 2026
Also asked as 2
  • What are examples of IPv4 and IPv6 default, network, and host static routes on Cisco IOS XE?
  • How can I set and check three different static route prefix lengths on Cisco IOS XE?

Answer

Use ip route with a destination and dotted-decimal mask for IPv4, and ipv6 route with an address and prefix length for IPv6. The destination prefix determines how much of the address must match. A default route uses length zero, a network route names a subnet, and a host route has length 32 for IPv4 or 128 for IPv6.

These Cisco IOS XE 17.15.x examples assume a Catalyst 9300 with routing enabled, ipv6 unicast-routing enabled for IPv6, operational Layer 3 interfaces for both address families, and the given next hops reachable on the lab transit links. With those prerequisites in place, enter the routes in global configuration mode using addresses that match your lab topology.

ip route 0.0.0.0 0.0.0.0 192.0.2.1
ip route 198.51.100.0 255.255.255.0 192.0.2.1
ip route 203.0.113.9 255.255.255.255 192.0.2.1
ipv6 route ::/0 2001:db8:1::1
ipv6 route 2001:db8:2::/64 2001:db8:1::1
ipv6 route 2001:db8:3::9/128 2001:db8:1::1

On Ethernet, specify the next-hop address. An interface-only IPv4 route can cause the router to try to resolve every covered destination as on-link. An adjacent IPv6 link-local next hop also requires the exit interface, for example ipv6 route 2001:db8:2::/64 GigabitEthernet1/0/1 fe80::1. Verify the installed choice for a test destination with show ip route 203.0.113.9 or show ipv6 route 2001:db8:3::9, then confirm the next hop and end-to-end reachability from the intended source. IOS, IOS XE, and Packet Tracer images can differ in supported command forms and interface names.

References

  • Catalyst 9300 IPv4 routing, IOS XE 17.15.x
  • Catalyst 9300 IPv6 unicast and static routing
  • Cisco static route next-hop and floating-route behavior
  • Cisco IOS XE IPv4 and IPv6 routing-table display commands

Full explanation

Routing Tables, Forwarding Decisions, and Static Routes

Study guide · 200-301

Read the full explanation →
← Back to 200-301 FAQsView learning path →

Related questions

What should you check when a client cannot reach a service on another network? →How does first-hop redundancy work with OSPF to keep clients connected? →When does a floating static route take over from the primary route? →When does single-area OSPFv2 need a DR and BDR? →Why can an OSPFv2 neighbor be FULL while a route is missing? →What should you check when an expected OSPFv2 adjacency does not reach FULL? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.