Friday, December 7, 2007

Checking the route table in Linux

Mirrored from: http://www.cpqlinux.com/routes.html

netstat -rn
route

Adding and Removing a Network in Linux

route add -net 10.10.10.0/24 gw 192.168.0.1
route del -net 10.10.10.0/24 gw 192.168.0.1

Adding and Removing a specific host in Linux

route add -host 10.10.10.45 gw 192.168.0.1
route del -host 10.10.10.45 gw 192.168.0.1

Adding a Default GW in Linux

route add default gw 192.168.0.1
route del default gw 192.168.0.1

Note: The old gw will still remain and may need to be taken out for the system to function properly.

Routes are made permanent in Red Hat Linux by adding routes to /etc/sysconfig/static-routes Checking the route table in Windows NT

route print

Adding and Removing a network in Windows NT

route add 10.10.10.0 mask 255.255.255.0 192.168.0.1
route delete 10.10.10.0 mask 255.255.255.0 192.168.0.1

Adding and Removing a specific host in Windows NT

route add 10.10.10.45 192.168.0.1
route delete 10.10.10.45 192.168.0.1

Adding a Default GW in Windows NT

route add 0.0.0.0 mask 255.255.255.255 192.168.0.1
or
route add 0.0.0.0 192.168.0.1
or
route -p add 0.0.0.0 192.168.0.1
route delete 0.0.0.0
or
route delete 0.0.0.0 mask 255.255.255.255
or
route delete 0.0.0.0 mask 255.255.255.255 192.168.0.1

Routes are made permanent in Windows NT by using "-p" with the route add command. Here is an example:

route -p add 10.10.10.45 192.168.0.1

prev next index

Wednesday, December 5, 2007

When your car gives up on you...

Just the other day, it snowed in NJ.
For some reason, the brakes on my car
decided not to work just when I was
coming down a steep road. I could
figure out that it was not the car slipping
on the snow but rather my brakes jamming.


I started pumping the breaks trying to revive
them but it just would not work. Finally by sheer
instinct I veered my car over to the curb,
where the friction finally brought my car
to a screeching halt. I will never forget that
one exciting drive in my cougar XR7!