Nowadays, Route (command) is a topic that has captured the attention of many people around the world. With a significant impact on various areas of life, Route (command) has generated unprecedented debate, attracting supporters and critics alike. As Route (command) continues to loom large in the collective consciousness, his influence extends across multiple sectors, from politics to entertainment, and from technology to society at large. In this article, we will explore the various facets of Route (command), examining its current relevance and potential future impact.
| route | |
|---|---|
The ReactOS route command | |
| Developers | Fred N. van Kempen, Microsoft, IBM, ReactOS Contributors |
| Operating system | Unix-like, OS/2, Microsoft Windows, ReactOS |
| Platform | Cross-platform |
| Type | Command |
| License | OS/2, Windows: Proprietary commercial software ReactOS: GPLv2 |
In computing, route is a command used to view and manipulate the IP routing table in Unix-like and Microsoft Windows[1] operating systems and also in IBM OS/2 and ReactOS.[2] Manual manipulation of the routing table is characteristic of static routing.
The route command originated in 4.2BSD. It is not part of any UNIX standard, but the BSD interface is widely implemented.[3]
Linux contains a version of the route originally written by Fred N. van Kempen, later merged with netstat's codebase (another command originating in 4.2BSD). It implements an extended syntax compared to the BSD version. In Linux distributions based on 2.2.x Linux kernels, the ifconfig and route commands are operated together to connect a computer to a network, and to define routes between computer networks. Distributions based on later kernels have deprecated ifconfig and route, replacing them with iproute2.[4]
On macOS, the route utility is present but largely nonfunctional. Displaying the routing table is instead performed via netstat -nr.
The BSD syntax is:
route {add|del|flush|get|monitor} args]
The Linux syntax is:
route # List kernel routing tables
route {add|del|flush} ... # Modify routing table for AF.
route {-h|--help} # Detailed usage syntax for specified AF.
route {-V|--version} # Display version/author and exit.
In other words, the basic route add and route del commands are portable.
user@linux:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.101.0 192.168.102.102 255.255.255.0 UG 0 0 0 eth0
192.168.102.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.103.0 192.168.102.102 255.255.255.0 UG 0 0 0 eth0
192.168.12.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.12.1 0.0.0.0 UG 0 0 0 eth0
The command is only available if the TCP/IP protocol is installed as a component in the properties of a network adapter.
The command-syntax is:
route ] ]
The -p parameter is only supported on Windows NT 4.0, Windows 2000, Windows Millennium Edition, and Windows XP. It is not supported on Windows 95 or Windows 98.
The command-syntax is:
route args]
ReactOS is an open-source Windows clone. The route implementation will eventually cover all options supported by Windows, but the current (as of 2025) version does not. It instead implements a subset of the options, a "poor man's route":[2]
Print the route table:
route print
Add a route:
route add <target> <gw>
Delete a route:
route delete <target> <gw>