Route (command)
In computing, ImplementationsUnix and Unix-likeIn Linux distributions based on 2.2.x Linux kernels, the SyntaxThe command-syntax is: route [-nNvee] [-FC] [<AF>] # List kernel routing tables
route [-v] [-FC] {add|del|flush} ... # Modify routing table for AF.
route {-h|--help} [<AF>] # Detailed usage syntax for specified AF.
route {-V|--version} # Display version/author and exit.
Exampleuser@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
Microsoft WindowsThe command is only available if the TCP/IP protocol is installed as a component in the properties of a network adapter. SyntaxThe command-syntax is: route [-f] [-p] [-4|-6] [Command [Destination] [mask Netmask] [Gateway] [[metric Metric]] [[if Interface]]
Parameters
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. IBM OS/2SyntaxThe command-syntax is: route [-nqv] [COMMAND] [[MODIFIERS] args]
Parameters
ReactOSSyntaxPrint the route table: route print
Add a route: route add <target> [mask <mask>] <gw> [metric <m>]
Delete a route: route delete <target> <gw>
See alsoFurther reading
ReferencesExternal linksWikibooks has a book on the topic of: Guide to Windows Commands
|