This diagnostic command manipulates network routing tables.
Syntax
route [-f] [command [destination] [MASK netmask] [gateway]]
Parameters
-f
Clears the routing tables of all gateway entries. If this parameter is used in conjunction with one of the commands, the tables are cleared prior to running the command.
command
Specifies one of four commands.
Command | Purpose |
Prints a route | |
add | Adds a route |
delete | Deletes a route |
change | Modifies an existing route |
destination
Specifies the host-to-send command.
MASK
Specifies, if present, that the next parameter be interpreted as the netmask parameter.
netmask
Specifies, if present, the subnet mask value to be associated with this route entry. If not present, this parameter defaults to 255.255.255.255.
gateway
Specifies the gateway.