View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-15-2003, 01:06 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 29

Rep: Reputation: 15
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

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
Old 10-15-2003, 01:40 PM   #2
LQ Newbie
Registered: Oct 2003
Posts: 29

Original Poster
Rep: Reputation: 15
I found it. It's

route add default gw dev eth1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
unable to add default route (network unreachable) beebop Linux - Networking 12 05-30-2005 11:07 AM
How to add a route table for eth1 and make it the default banner Linux - General 3 05-08-2005 11:14 AM
"route add default gw" - trouble Vijayasarathy Linux - Networking 2 03-23-2005 07:54 AM
Permanently set "route add" -host and default gw sacants Linux - Newbie 1 07-18-2003 04:04 AM

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration