Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
What distro are you using? This matters when editing the config files.
To set up the DNS severs, edit the /etc/resolv.conf file.
You can change the setting til the next reboot buy issuing the command:
ifconfig eth0 10.10.10.1 netmask 255.255.255.0
and
route add default gw 10.10.10.254
I believe in Red Hat and other distros based on it, edit the config file /ect/sysconfig/network-scripts/eth0 (or something like that). There should be lines in that file that let you set the IP, netmask and default gateway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.