My initial tests with Gaëtan's patch suggests it disables DHCP for but doesn't set a route or DNS manually.
ci-info: +--------+------+----------------+-----------------+--------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+------+----------------+-----------------+--------+-------------------+ ci-info: | eth0 | True | 172.16.255.107 | 255.255.254.0 | global | 06:94:b2:8b:c0:3e | ci-info: | eth0 | True | 172.16.254.112 | 255.255.254.0 | global | 06:94:b2:8b:c0:3e | ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | ci-info: | lo | True | 172.27.221.33 | 255.255.255.255 | global | . | ci-info: +--------+------+----------------+-----------------+--------+-------------------+ ci-info: ++++++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++++ ci-info: +-------+--------------+--------------+---------------+-----------+-------+ ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | ci-info: +-------+--------------+--------------+---------------+-----------+-------+ ci-info: | 0 | 0.0.0.0 | 172.16.254.1 | 0.0.0.0 | eth0 | UG | ci-info: | 1 | 172.16.254.0 | 0.0.0.0 | 255.255.254.0 | eth0 | U | ci-info: +-------+--------------+--------------+---------------+-----------+-------+
and
network: version: 2 ethernets: eth0: addresses: - 172.16.255.107/23 - 172.16.254.112/23 dhcp6: true match: macaddress: 06:94:b2:8b:c0:3e set-name: eth0
My initial tests with Gaëtan's patch suggests it disables DHCP for but doesn't set a route or DNS manually.
ci-info: +------ --+---- --+---- ------- -----+- ------- ------- --+---- ----+-- ------- ------- ---+ --+---- --+---- ------- -----+- ------- ------- --+---- ----+-- ------- ------- ---+ --+---- --+---- ------- -----+- ------- ------- --+---- ----+-- ------- ------- ---+ +++++++ +++++++ +++++++ ++Route IPv4 info+++ +++++++ +++++++ +++++++ ++++++ -+----- ------- --+---- ------- ---+--- ------- -----+- ------- ---+--- ----+ -+----- ------- --+---- ------- ---+--- ------- -----+- ------- ---+--- ----+ -+----- ------- --+---- ------- ---+--- ------- -----+- ------- ---+--- ----+
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +------
ci-info: | eth0 | True | 172.16.255.107 | 255.255.254.0 | global | 06:94:b2:8b:c0:3e |
ci-info: | eth0 | True | 172.16.254.112 | 255.255.254.0 | global | 06:94:b2:8b:c0:3e |
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
ci-info: | lo | True | 172.27.221.33 | 255.255.255.255 | global | . |
ci-info: +------
ci-info: +++++++
ci-info: +------
ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
ci-info: +------
ci-info: | 0 | 0.0.0.0 | 172.16.254.1 | 0.0.0.0 | eth0 | UG |
ci-info: | 1 | 172.16.254.0 | 0.0.0.0 | 255.255.254.0 | eth0 | U |
ci-info: +------
and
network:
addresses:
macaddress: 06:94:b2:8b:c0:3e
set- name: eth0
version: 2
ethernets:
eth0:
- 172.16.255.107/23
- 172.16.254.112/23
dhcp6: true
match: