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! |
route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If]
|
route add gw <name or ip> <interface name e.g. eth0>
|
Oh, so there is route command!
and how about the lmhost file for WINS, is something also like that? thanks guys |
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. |