LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem with adding default route... (https://www.linuxquestions.org/questions/linux-networking-3/problem-with-adding-default-route-46601/)

Grim Reaper 02-21-2003 10:56 PM

Problem with adding default route...
 
Just having a bit of trouble...I'm trying to issue this command to add a default route: route add default gw 192.168.0.1 metric 1
now, i issue that command and it executes fine, but then when i go 'route' to check if it was added to the routing table, it displays the first two routes that were already in there (localnet and loopback routes) then hangs for about 20 seconds then im droppde back to the console, it doesn't even display the newly added default route...any idea's?

trickykid 02-22-2003 07:29 AM

Not sure if this will work or not but try dropping off the metric 1 your trying to set. It isn't necessarily needed. Or you can try with a metric M. But I never use the metric option when setting a default route.
If that doesn't work and you have maybe two NIC's, try specifying the nic like:

route add default gw 192.168.0.1 dev eth0


All times are GMT -5. The time now is 01:37 AM.