UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
I have a Gateway LT31 Netbook which I use as mumble server for friends and I. I want to set it's IP to static and I can't seem to figure out what I'm doing wrong.
A lot of the guides I'm reading seem to also mention broadcast and network as well and I have tried putting those values into the configuration as well with still no luck.
So what happens is that when I save this file and restart networking
Code:
sudo service networking restart
And then do an ifconfig: I just get the following like enp3s0 doesn't even exist anymore. I can set it back to DHCP and then it works just fine again. Not sure what to do.
If network manager is running then it is controlling the interface. If running a desktop you can use the network manager applet to configure a static IP. There is also a command line tool nmcli if not running a desktop. You can shutdown network manager and configure the IP manually as above.
However, if you take your netbook outside your LAN you might want to consider adding an address reservation in your router (most do) or DHCP server. Basically you have a static IP using DHCP.
It appears to say something about rtnetlink answers: file exists.
I do a search on that, and I don't understand any of the terminology and there appears to be a variety of ways to fix it, and some additional steps may be required. this appears to be a problem with two nics, yet my netbook only has one unless the wlan counts as a nic as well. Furthermore, I'm confused as when this was on 14.04 it worked just fine. There is also mention of ethX, and I have enp3s0. Does that make a difference? Why is not just a standard eth?
Should I just try all of the solutions until one works?
If network manager is running then it is controlling the interface. If running a desktop you can use the network manager applet to configure a static IP. There is also a command line tool nmcli if not running a desktop. You can shutdown network manager and configure the IP manually as above.
However, if you take your netbook outside your LAN you might want to consider adding an address reservation in your router (most do) or DHCP server. Basically you have a static IP using DHCP.
This netbook will live out it's life being a samba server, mumble server and possible a small game server for my friends and I. No need to take it away from the home. It has no GUI on it either, but I will try out that command line tool you mention. Thank you.
You may need to add auto enp3s0 on top of your configuration.
It was actually already in my config file, I just didn't post it, silly me. I'm writing the contents out manually as I lose ssh access to it once I change from dhcp to static and then can no longer retrieve the contents.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.