Score:0

Network interface will not come up, obtain a DHCP lease automatically

ar flag

I have a minimal Ubuntu 18.04 system. I want one of my network interfaces, eth1, to come up automatically at boot and obtain an IP address from DHCP.

I created /etc/network/interfaces.d/default containing:

auto eth1
iface eth1 inet dhcp

Hoever eth1 is not brought up at boot time. Instead:

eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000

I can run sudo dhclient eth1 and it comes up and obtains an IP. But why doesn't this happen automatically?

Johan Palych avatar
us flag
Ubuntu Bionic: Netplan(Netplan replaced ifupdown as the default configuration utility starting with Ubuntu 17.10 Artful) https://ubuntu.com/blog/ubuntu-bionic-netplan
Score:1
ar flag

According to a comment in /etc/network/interfaces the default is to use netplan.io instead. The files in interfaces.d/ were not being sourced.

network:
  version: 2
  renderer: networkd
  ethernets:
    eth1:
      dhcp4: true
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.