LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-05-2003, 08:04 PM   #1
rob99
Member
 
Registered: Jan 2003
Posts: 50

Rep: Reputation: 15
route command under linux


Hi All,
Is route command under linux available like in windows?
If not how to set or change routing table on linux?
I need to add new gateway.
thanks!
 
Old 07-05-2003, 10:19 PM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If]
 
Old 07-06-2003, 05:45 AM   #3
dwillyson
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
route add gw <name or ip> <interface name e.g. eth0>
 
Old 07-06-2003, 08:11 AM   #4
rob99
Member
 
Registered: Jan 2003
Posts: 50

Original Poster
Rep: Reputation: 15
Oh, so there is route command!
and how about the lmhost file for WINS,
is something also like that?
thanks guys
 
Old 07-07-2003, 10:02 AM   #5
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
The /etc/hosts file is the equivalent to C:\Winnt\System32\drivers\etc\hosts.

WINS stands for Windows Internet Name Server, so you don't really want to use it in this environment unless you have to. There are exceptions, but from the type of questions you are asking, it sounds like they don't (currenty) apply to you.

DNS is the standard for name resolution, as support for it exists on all relevent platforms that support TCP/IP. DNS Server settings go in /etc/resolv.conf if your network is so equipped with a DNS server.

Last edited by bentz; 07-07-2003 at 10:04 AM.
 
  


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
Need help with route command dalek Linux - Networking 5 07-15-2005 12:26 AM
ROUTE command in linux ediestajr Linux - Networking 3 02-03-2005 11:23 AM
how can I use route command ? arong Linux - Newbie 1 12-03-2003 08:54 AM
Route command kelper Linux - General 1 02-24-2003 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration