LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-15-2003, 01:06 PM   #1
dhsieh
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 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
 
Old 10-15-2003, 01:40 PM   #2
dhsieh
LQ Newbie
 
Registered: Oct 2003
Posts: 29

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

route add default gw 192.168.0.1 dev eth1
 
  


Reply


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 04:05 AM.

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