Show/manipulate the IP routing table
route -v {verbose} -n {numeric} -e {extend} -F {fib} -C {cache} ๐ verbose ๐ numeric ๐ extend ๐ fib ๐ cache route -v {verbose} -n {numeric} -e {extend} -F {fib} -C {cache} Sandbox: execFile · Timeout: 30s
network.config.route | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
verbose | string | No | - | be verbose | -v, --verbose |
numeric | string | No | - | don't resolve names | -n, --numeric |
extend | string | No | - | display other/more information | -e, --extend |
fib | string | No | - | display Forwarding Information Base (default) | -F, --fib |
cache | string | No | - | display routing cache instead of FIB | -C, --cache |
Basic usage with verbose
route ${verbose} Display help message
route --help Display the IP routing table
route Add a new route to a specific network
route add -net {network} netmask {netmask} gw {gateway} {interface} Add a default gateway
route add default gw {gateway} {interface} Delete a route to a specific network
route del -net {network} netmask {netmask} gw {gateway} {interface} Delete the default gateway
route del default Add a route to a host
route add -host {destination-host} gw {gateway} {interface} Change the metric of a route
route change -net {network} netmask {netmask} gw {gateway} {interface} metric {metric} Show the routing table continuously with a delay
watch -n 1 route -n route is a command-line utility for show/manipulate the ip routing table.
route -v {verbose} -n {numeric} -e {extend} -F {fib} -C {cache}