M BUZZ CRAZE NEWS
// general

Custom /etc/NetworkManager/system-connections file

By Joseph Russell

Ubuntu 16.04.1 is not generating a /etc/NetworkManager/system-connections file for eno1 wired Ethernet. I wrote my own but need ipv4 with static IP address yet Ubuntu is using DHCP to assign an automatic IP address. Below is the file. See method=manual. Why is Ubuntu ignoring method=manual and instead assuming method=auto? Also, cannot find any documentation describing syntax of addresses element of ipv4.

[connection]
id=eno1
uuid=4518f0a6-0500-4848-a849-85c0c6c389b6
type=802-3-ethernet
permissions=
secondaries=
[802-3-ethernet]
duplex=full
mac-address=XX:XX:XX:XX:XX:XX
[ipv4]
method=manual
addresses1=192.168.10.251;24;192.168.10.1;
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
2

1 Answer

Running headless, without display or graphical desktop environment, please edit /etc/network/interfaces to something like:

auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
address 192.168.10.251
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 192.168.10.1 8.8.8.8

Be sure to select a static address outside the range used by the DHCP server in the router, switch or other access point. Of course, substitute your details here.

Get the system to read and use the changes:

sudo ifdown eno1 && sudo ifup -v eno1

Did you connect?

ping -c3 192.168.10.1
ping -c3 
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy