GNU/Linux Command – ROUTE

route — Show / Manipulate the IP routing table.
 
Summary:
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).
 
Example:
$ 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 127.0.0.0 -- Adds the normal loopback entry.  # route add -net 192.168.14.0 netmask 255.255.255.0 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 10.0.0.0 netmask 255.0.0.0 reject -- Sets rejectingroute for the "10.x.x.x."  # route add -net 192.168.13.0 netmask 255.255.255.0 gw wify1 -- Adds the net "192.168.13.x" to be gatewayed through wify1.
Read: man route

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: