LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   removing and adding route (https://www.linuxquestions.org/questions/linux-networking-3/removing-and-adding-route-309190/)

juanb 04-03-2005 06:22 AM

removing and adding route
 
Hi,

I use red hat.

I have on the machine this routing table:

[root@sns-jr-dmz root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 255.255.255.255 UH 0 0 0 eth0
208.170.171.128 * 255.255.255.128 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

I want to remove the first line (default gateway ) and add a line which says the default gateway is 0.0.0.0 0.0.0.0 so that evey traffic will go throw eth0

(the netmask should be 0.0.0.0 right ?)

beacuse the difault gateway which is here is not working...



THANKS !!

w7hd 04-03-2005 08:33 AM

Easily done, sir:

route delete default
route add default dev eth0

Ron W7HD
Tucson, AZ


All times are GMT -5. The time now is 05:59 AM.