LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   route add default gw ... (https://www.linuxquestions.org/questions/linux-software-2/route-add-default-gw-104298/)

dhsieh 10-15-2003 01:06 PM

route add default gw ...
 
Deos any one know how to add routing gateway for a specific device such as eth1. I use the following command:

route add default gw 192.168.0.1

However, the gateway was added to Iface etho after I enter the command "route". Is there a way for the route command to specify a specific device such as "eth1" when adding it?

- Dhsieh

dhsieh 10-15-2003 01:40 PM

I found it. It's

route add default gw 192.168.0.1 dev eth1


All times are GMT -5. The time now is 08:46 PM.