Linux Network Pro Configuring Static Routes on Linux Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 15 | Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What is the primary purpose of configuring static routes on a Linux server?

Explanation

Static routes let an administrator specify which gateway or interface should be used to reach particular network destinations. Unlike automatic route discovery, they provide explicit control over traffic paths and are useful when network routes need to remain predictable.

Submit
Please wait...
About This Quiz
Linux Network Pro Configuring Static Routes On Linux Quiz - Quiz

This quiz evaluates your ability to configure and manage static routes on Linux systems. You'll test your knowledge of routing tables, route commands, network configuration files, and best practices for implementing static routes in enterprise environments. Essential for network administrators and Linux professionals managing complex network topologies.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. When configuring a static route, the ______ parameter specifies the next-hop gateway address.

Explanation

Both `via` and `gw` are used in route configuration syntax to identify the next-hop gateway—the router address through which packets are forwarded toward the destination network.

Submit

3. Which tool is used to display detailed routing information including next-hop details?

Explanation

Each command can show routing-table details in a different format: `route -v` provides verbose route information, `ip route show` displays routes and their `via` next hops, and `netstat -rn` lists routes numerically, including gateways. Thus, all three can be used to inspect routing information.

Submit

4. In a routing table, what does a 0.0.0.0/0 destination represent?

Explanation

A 0.0.0.0/0 route has a prefix length of zero, so it matches any IPv4 destination. Routers use it as the default route when no more specific route is available.

Submit

5. What does the 'scope' parameter in an ip route command typically define?

Explanation

The `scope` parameter specifies the range within which a route is valid or reachable, such as on a local link or across a broader network. It does not indicate bandwidth, encryption, or a hop limit.

Submit

6. Which command verifies that a static route is reachable and functional?

Explanation

Ping checks whether the destination responds over the network, confirming basic end-to-end reachability through the configured route. Traceroute displays the hops packets take toward that destination, helping confirm the path and identify where forwarding fails. Both commands can therefore be used to verify that a static route is reachable and functioning.

Submit

7. What is the default metric value assigned to a new static route if not specified?

Explanation

A newly configured static route is assigned a default metric of 1 when no metric is specified. This value represents the route’s default cost or preference during route selection, though it can be changed to influence which route is chosen.

Submit

8. How do you remove a static route using the ip command?

Explanation

Use `ip route del` followed by the destination network and, when applicable, the next-hop gateway. Here, the command removes the route to `192.168.1.0/24` that goes via `10.0.0.1`.

Submit

9. What does the 'dev' parameter specify when adding a static route?

Explanation

The `dev` parameter identifies the network device or interface used to send traffic along the static route, such as `eth0` or `wlan0`. It specifies the route’s outgoing interface, not a gateway address or device priority.

Submit

10. On Debian/Ubuntu systems, where are persistent static routes typically configured?

Explanation

On Debian and Ubuntu, persistent network settings are commonly managed through `/etc/network/interfaces` on systems using ifupdown, or through YAML files under `/etc/netplan/` on systems using Netplan. Static routes defined in the applicable configuration are applied when networking starts and remain in effect after reboot. The other paths are not typical locations for these distributions.

Submit

11. What is CIDR notation used for in static route configuration?

Explanation

CIDR (Classless Inter-Domain Routing) notation combines a network address with a prefix length, such as `192.168.1.0/24`. The prefix indicates how many bits belong to the network, providing a concise way to specify the address and subnet mask in a static route.

Submit

12. What does the metric value in a route determine?

Explanation

A route’s metric is a value used to compare routes to the same destination. When multiple routes are available, the system generally prefers the route with the lower metric, helping determine which path traffic uses.

Submit

13. Which file on Red Hat/CentOS systems stores static route configurations persistently?

Explanation

On Red Hat and CentOS systems that use legacy network scripts, `/etc/sysconfig/network-scripts/route-eth0` stores persistent routes for the `eth0` interface. Routes defined there are applied when networking starts, unlike temporary routes added at runtime. `/etc/network/interfaces` is commonly used on Debian-based systems.

Submit

14. Which command displays the current routing table on a Linux system?

Explanation

Each listed command can display the Linux routing table. `route -n` shows routes with numeric addresses, `netstat -r` presents the kernel routing table, and `ip route show` displays routes using the modern `iproute2` utility. Their output formats differ, but all provide the system’s current routing information, so “All of the above” applies.

Submit

15. Which parameter in the route command specifies the network interface for a static route?

Explanation

In the `route` command, `dev` identifies the network interface through which packets for the static route should be sent. For example, `route add -net 192.168.1.0/24 dev eth0` directs matching traffic through `eth0`.

Submit

16. Routes added with 'ip route add' are temporary unless made persistent. True or False?

Explanation

Routes added with `ip route add` modify the active kernel routing table and generally remain only until the network is restarted or the system reboots. To preserve a route across reboots, configure it using the system’s persistent network configuration or a startup mechanism.

Submit

17. Which command adds a static route using the modern ip route utility?

Explanation

The `ip route add` command is the modern syntax for adding a static route. It directs traffic for the `192.168.1.0/24` network through the next-hop gateway `10.0.0.1`.

Submit

18. Static routes are preferred over dynamic routing protocols in small networks. True or False?

Explanation

Static routes are often preferred in small networks because they are simple to configure, predictable, and require no routing-protocol overhead. With few routers and routes, manual updates are manageable. Dynamic routing becomes more useful as networks grow or change frequently, despite its additional configuration and resource requirements.

Submit

19. What is the primary advantage of using static routes instead of dynamic routing?

Explanation

Static routes are manually configured and do not require routing protocols to exchange updates or calculate paths. This reduces CPU processing and memory usage, making them suitable for small, stable networks, though they lack automatic adaptation to topology changes.

Submit

20. To make a static route persistent across reboots on a modern systemd-based Linux system, you should configure it in ______.

Explanation

Static routes must be saved in the network configuration system used by the distribution so they are restored at startup. Systems using Netplan typically define routes in files under `/etc/netplan/`, while distributions that use the traditional network-scripts framework store them under `/etc/sysconfig/network-scripts/`. The appropriate location therefore depends on the distribution and its network manager.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is the primary purpose of configuring static routes on a Linux...
When configuring a static route, the ______ parameter specifies the...
Which tool is used to display detailed routing information including...
In a routing table, what does a 0.0.0.0/0 destination represent?
What does the 'scope' parameter in an ip route command typically...
Which command verifies that a static route is reachable and...
What is the default metric value assigned to a new static route if not...
How do you remove a static route using the ip command?
What does the 'dev' parameter specify when adding a static route?
On Debian/Ubuntu systems, where are persistent static routes typically...
What is CIDR notation used for in static route configuration?
What does the metric value in a route determine?
Which file on Red Hat/CentOS systems stores static route...
Which command displays the current routing table on a Linux system?
Which parameter in the route command specifies the network interface...
Routes added with 'ip route add' are temporary unless made persistent....
Which command adds a static route using the modern ip route utility?
Static routes are preferred over dynamic routing protocols in small...
What is the primary advantage of using static routes instead of...
To make a static route persistent across reboots on a modern...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!