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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I am running Ubuntu through VMware, everything is running fine but I want to be able to assign my ubuntu machine a static IP (192.168.136.2) so that it will be easier to access it. I have to use NAT because the university I am at does not give me more than one IP on my network port. If I use DHCP the internet works fine, if I assign it statically and set 192.168.136.1 as the gateway (the host OS) it no longer works. I can ping .1 just fine... but when I try to goto to a website, I get host not found.
I've had this problem before on gentoo, and I remember having to add a line to /etc/host.conf i just can't remember what it was... I tired nameserver *. Anyone that can help, it would be greatly appreciated.
but when I try to goto to a website, I get host not found.
I've had this problem before on gentoo, and I remember having to add a line to /etc/host.conf i just can't remember what it was
I think rather you just need to add a nameserver or two to /etc/resolv.conf. With DHCP this is done for you, but if configured statically, you must add it yourself. Just use the same nameserver(s) that your gateway does, in the form:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.