Hands-On Lab: Configuring and Naming Static Routes

This hands-on lab configures static routes with descriptive names attached using the name keyword, improving documentation and making the routing table significantly easier to interpret for anyone reviewing the configuration later.

Static Route Name KeywordRouting Table DocumentationConfiguration Readability

~3 min read · Updated Sep 22, 2026

Lab Objective

Configure static routes on a router using the optional name keyword to attach a descriptive label to each route, then verify the name appears in both the running configuration and the routing table itself.

Lab Purpose

A routing table full of bare IP addresses and next hops gives no indication of why a route exists or what it is for. Attaching a descriptive name to each static route is a simple, often-overlooked practice that makes troubleshooting and handoffs between engineers significantly faster.

Lab Topology

R1 ---- Serial0/0/0 ------ Serial0/0/0 ---- R2 (Branch-Office)
R1 ---- Serial0/0/1 ------ Serial0/0/1 ---- R3 (Data-Center)

R2's LAN: 192.168.30.0/24
R3's LAN: 192.168.40.0/24

Task 1: Configure a Named Static Route Toward the Branch Office

On R1, configure a static route to R2's LAN via 10.21.21.2 (R2's serial address), with the name To-Branch-Office.

Task 2: Configure a Named Static Route Toward the Data Center

On R1, configure a static route to R3's LAN via R3's serial address, with the name To-Data-Center.

Task 3: Verify the Names in the Running Configuration

Confirm both route names appear correctly in the running configuration.

Task 4: Verify the Names Appear in the Routing Table

Confirm the descriptive names are visible when examining the routing table itself.

Solution and Verification

R1(config)# ip route 192.168.30.0 255.255.255.0 10.21.21.2 name To-Branch-Office
R1(config)# ip route 192.168.40.0 255.255.255.0 10.31.31.2 name To-Data-Center

R1# show running-config | include ip route

ip route 192.168.30.0 255.255.255.0 10.21.21.2 name To-Branch-Office
ip route 192.168.40.0 255.255.255.0 10.31.31.2 name To-Data-Center

R1# show ip route static

S    192.168.30.0/24 [1/0] via 10.21.21.2, name To-Branch-Office
S    192.168.40.0/24 [1/0] via 10.31.31.2, name To-Data-Center

-- Anyone reviewing this output immediately
-- understands the purpose of each route,
-- without needing to cross-reference a
-- separate network diagram or documentation
-- file to figure out what 192.168.30.0 or
-- 10.21.21.2 actually represent

Key Takeaway

The name keyword adds no functional behavior to a static route — it exists purely for documentation and readability. In networks with dozens of static routes toward different branch offices, partners, or data centers, this small addition meaningfully reduces the time needed to understand or troubleshoot the routing table months or years after the original configuration was written.

Written & researched by Dr. Shahin Siami

Related Articles

Hands-On Lab: Configuring IPv6 Static Routes

This hands-on lab configures static routes for IPv6 destinations between two routers, mirroring the IPv4 static routing syntax covered earlier in this series while highlighting the IPv6-specific command keyword and address format.

Continue

Hands-On Lab: Configuring Default Static Routes

This hands-on lab configures a default static route on an edge router to reach the internet through an ISP connection, demonstrating how a single route can represent every otherwise-unknown destination rather than requiring individual routes for each one.

Continue

Hands-On Lab: Configuring Static Routing via IP Addresses

This hands-on lab configures static routes using a next-hop IP address rather than an outgoing interface, the generally preferred syntax, and compares the resulting routing table entry against the interface-based approach from the previous lab.

Continue

Hands-On Lab: Configuring Static Routing via Interfaces

This hands-on lab configures static routes using an outgoing interface rather than a next-hop IP address, demonstrating this approach's suitability for point-to-point links and its important limitation on multi-access networks.

Continue

Hands-On Lab: Installing a Wireless LAN Controller

This hands-on lab performs the initial setup of a Wireless LAN Controller, joins a lightweight access point to it, and creates a centrally managed WLAN, demonstrating the controller-based architecture that scales far beyond standalone access points.

Continue

Hands-On Lab: Installing a Wireless Access Point

This hands-on lab covers physically connecting and performing the initial configuration of a standalone wireless access point, including setting up an SSID, applying WPA3 security, and verifying wireless clients can associate and reach the wired network.

Continue