LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   route command under linux (https://www.linuxquestions.org/questions/linux-networking-3/route-command-under-linux-70385/)

rob99 07-05-2003 08:04 PM

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!

bentz 07-05-2003 10:19 PM

route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If]

dwillyson 07-06-2003 05:45 AM

route add gw <name or ip> <interface name e.g. eth0>

rob99 07-06-2003 08:11 AM

Oh, so there is route command!
and how about the lmhost file for WINS,
is something also like that?
thanks guys

bentz 07-07-2003 10:02 AM

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.


All times are GMT -5. The time now is 03:09 PM.