GNU/Linux Command – ROUTE

route — Show / Manipulate the IP routing table.
Route manipulates the kernel’s IP routing tables. Its primary use is to set static routes to a specific hosts and networks via a network interface (like eth0, eth1).
$ route -- Show routing table. It will try resolve the name for IP.  $ route -n -- Same as above. But won't resolve.  $ route -ee -- Show more detailed info.  $ route -A inet6 -- Show IPv6 related route info.  # route add -net -- Adds the normal loopback entry.  # route add -net netmask dev eth0 -- Adds a route to the network 192.168.14.x via "eth0".  # route add default gw midas-gw dev eth1 -- Set the default Gateway for eth1.  # route del default dev eth0 -- Remove the default Gateway of eth0.  # route add -net netmask reject -- Sets rejectingroute for the "10.x.x.x."  # route add -net netmask gw wify1 -- Adds the net "192.168.13.x" to be gatewayed through wify1.
Read: man route

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: