Difference between revisions of "Route"

From Linuxintro
imported>ThorstenStaerk
(New page: The command route lets you view and modify your computer's network routing table: # route -n Kernel IP routing table Destination Gateway Genmask Flags Metri...)
 
imported>ThorstenStaerk
Line 17: Line 17:
 
  127.0.0.0      0.0.0.0        255.0.0.0      U    0      0        0 lo
 
  127.0.0.0      0.0.0.0        255.0.0.0      U    0      0        0 lo
 
  0.0.0.0        192.168.0.1    0.0.0.0        UG    0      0        0 eth1
 
  0.0.0.0        192.168.0.1    0.0.0.0        UG    0      0        0 eth1
 +
 +
= See also =
 +
* [http://man-wiki.net/index.php/8:route route man page]

Revision as of 11:15, 13 April 2009

The command route lets you view and modify your computer's network routing table:

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth1
# route delete -net 192.168.0.0 netmask 255.255.255.0 eth0
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth1

See also