I changed config from dhcp to static (, but still getting a dhcp assigned ( IP. I don't know where else to check... any idea?


ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        inet6 fe80::20c:29ff:fe87:6981  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:87:69:81  txqueuelen 1000  (Ethernet)
        RX packets 43080139  bytes 55213169928 (55.2 GB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 17923871  bytes 1406116280 (1.4 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet  netmask
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 56350  bytes 6166732 (6.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 56350  bytes 6166732 (6.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nmcli d

ens33   ethernet  unmanaged  --
lo      loopback  unmanaged  --


# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# Generated by debian-installer.

# The loopback interface
auto lo
iface lo inet loopback

#The primary network interface
auto ens33
iface ens33 inet static





uname -a

Linux server 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • You brought the interface down and back up again? – Kaz Wolfe Nov 18 '17 at 19:37
  • Yes: sudo service network-manager restart But, still dhcp ip showing Strange that I can connect to and .. even ping both.. – igtoth Nov 18 '17 at 19:38
  • Try using ifdown ens33; ifup ens33 as root. – Kaz Wolfe Nov 18 '17 at 19:41
  • sudo ifdown ens33: ifdown: interface ens33 not configured – igtoth Nov 18 '17 at 19:42
  • Is Network Manager running in a server?? – chili555 Nov 18 '17 at 19:51

Networking is handled by netplan by default in Ubuntu Server 17.10. I suggest that you edit the /etc/netplan/01-netcfg.yaml file to read:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
  version: 2
  renderer: networkd
      dhcp4: no
      dhcp6: no
      addresses: []
        addresses: [,]

Exit and save your changes by running the command:

sudo netplan apply

Please note and follow the spacing and indentation.

Comment out all the ens33 stanzas in /etc/network/interfaces. Reboot.

Any improvement?

  • 1
    Wow, I couldn't find that information in the internet. Why every release people change the way linux is configured? Miss old 90's era, where the Ethernet device was "eth0" and inet.conf .. :/ .. Do I need to disable that "Network Manager" as well ? – igtoth Nov 18 '17 at 19:59
  • 1
    Generally, a server runs headless with no desktop environment; i.e. GUI and therefor Network Manager is not running or even installed. If you wish to run NM, I'd first try setting the static IP there. I suspect it will work perfectly. Please clarify your intentions. Also, what is your current netplan file? ls /etc/netplan? – chili555 Nov 18 '17 at 20:06
  • 1
    @chili555 where did you find that info about netplan? – guntbert Nov 18 '17 at 22:19
  • 2
    @guntbert websiteforstudents.com/… and I went through the exercise a few days ago on another question. – chili555 Nov 18 '17 at 22:29
  • 1
    Also see: wiki.ubuntu.com/Netplan and: phoronix.com/… – chili555 Nov 18 '17 at 23:52

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.