Netplan has no way to control DHCP client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Default settings and artwork for Baltix OS |
New
|
Undecided
|
Unassigned | ||
netplan |
Fix Released
|
Medium
|
Unassigned | ||
netplan.io (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
DHCP configurations where custom settings (routes, nameservers, etc.) need to be applied.
[Test case]
1) Configure netplan for the particulars of the network by configuring an appropriate dhcp{4,6}-override stanza:
network:
version: 2
ethernets:
engreen:
dhcp4: true
dhcp4-
use-dns: false
use-routes: false
Additionally, if so required, add a custom DNS / routes to the configuration. e.g.
nameservers:
search: [lab, kitchen]
addresses: [8.8.8.8]
(See https:/
2) Run 'netplan apply' or reboot to have the configuration applied.
3) Validate that the routes / DNS are properly ignored and/or replaced by the defined values.
[Regression potential]
Minimal; this adds new values to the configuration generated for networkd or NetworkManager. Existing configurations will remain unchanged, but new configurations using the dhcp{4,6}-overrides fields will benefit from additional flexibility.
---
Currently DHCP appears to be an all or nothing boolean, which is insufficient for many network configurations.
Ideally all of the DHCP configuration options supported by systemd would also be supported in netplan:
https:/
As an example, consider the following netplan configuration:
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: yes
nameservers: [8.8.8.8,8.8.4.4]
After running netplan apply I check the nameservers with systemd-resolve --status and it shows:
DNS Servers: 8.8.8.8
Here, "192.168.1.1" was provided by my DHCP server. On this particular node, I only want the manually configured DNS servers, but netplan has no way to indicate this.
Changed in netplan: | |
importance: | Undecided → Medium |
Changed in netplan: | |
status: | New → Fix Committed |
description: | updated |
Package in Ubuntu was renamed from nplan to netplan.io; but regardless this bug is relevant to the netplan project in general; just moving bugs around here.