installer sets "iface encf5f0 inet dhcp" although a static IP address was preseeded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-snappy (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
== Comment: #0 - Thorsten Diehl - 2016-03-11 12:49:44 ==
I installed xenial with installer version 432 and a preseed file that has a IPv4 static configuration. Upon the initial boot after installation, everything is fine, system comes up with network. When I perform a reboot, the network service waits for "something" and prints continuously messages aka "A start job is running for Raise network interfaces (3min 14s / 5min)". After that, the network is up.
I found, that it was waiting for DHCP responses. (attaching /var/log/syslog).
/etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto encf5f0
iface encf5f0 inet static
address 9.152.162.158
netmask 255.255.252.0
network 9.152.160.0
broadcast 9.152.163.255
gateway 9.152.160.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 9.152.120.241
dns-search boeblingen.
/etc/network/
allow-hotplug encf5f0
iface encf5f0 inet dhcp
which seems to be the cause. After removing the second line, it worked as expected.
Not sure, whether this is the best approach. I just wanted to point to the root cause. But starting a dhcp client when you have a static IP address configured is definitely wrong.
== Comment: #2 - Thorsten Diehl <email address hidden> - 2016-03-11 12:55:54 ==
uname -r
4.4.0-12-generic
affects: | ubuntu → debian-installer (Ubuntu) |
Changed in debian-installer (Ubuntu): | |
assignee: | Skipper Bug Screeners (skipper-screen-team) → Dimitri John Ledkov (xnox) |
Changed in debian-installer (Ubuntu): | |
importance: | Undecided → Wishlist |
Changed in debian-installer (Ubuntu): | |
status: | Invalid → New |
importance: | Wishlist → High |
Changed in ubuntu-snappy (Ubuntu): | |
status: | Triaged → In Progress |
no longer affects: | debian-installer (Ubuntu) |
Default Comment by Bridge