route add -net 192.168.1.0 netmask 255.255.255.0 eth0
adds a route for the 192.168.1 network for eth0
the default for the netmask would be the same
This is done when ifconfig is done for eth0.
route add 192.168.1.15 eth0
adds an explicit route for a single host
probably not needed
route add default gw 192.168.1.1
adds a default route
route del -net 192.168.1.0
deletes a network route
route del 192.168.1.15
deletes an explicit route for a single host
probably not needed
route del default gw 192.168.1.1
deletes a default route
Subscribe to:
Posts (Atom)