On SUSE mixed static and dhcp setups are no properly configured
Bug #1858808 reported by
Robert Schweikert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Robert Schweikert |
Bug Description
It should be possible to have a static IPv4 address and a DHCP IPv6 address and vice versa. This does not work on SUSE distributions as the "BOOTPROTO" setting in the generated ifcfg-* file is not correct.
The BOOTPROTO setting should be
dhcp - if both IPv6 and IPv4 configurations are expected to be supplied by a DHCP server
dhcp4 - if IPv4 configuration is expected to be supplied by a DHCP server, IPv6 configuration can be static
dhcp6 - IPv6 configuration is expected to be supplied by a DHCP server, IPv4 configuration can be static
static - if both IPv6 and IPv4 configurations are defined, or if only one protocol is used and the IP is static
Changed in cloud-init: | |
assignee: | nobody → Robert Schweikert (rjschwei) |
Changed in cloud-init: | |
status: | New → In Progress |
To post a comment you must log in.
openSuSE docs[1] suggest a bit more detail on BOOTPROTO values:
# With BOOTPROTO you can choose in which mode the interface will be set up:
# - static: Set up static address(es)
# - dhcp: Start a dhcp client (IPV4 and IPv6) on that interface.
# - dhcp4: Start a dhcp client (IPv4 only) on that interface.
# - dhcp6: Start a dhcp client (IPv6 only) on that interface.
# - autoip: Automatic search for a free address and assign it statically.
# - dhcp+autoip: Try dhcp4 and use autoip if dhcp fails.
# - 6to4: Set up ipv6 over ipv4 tunnel (see man ifcfg-tunnel)
# - none: Do not set up the link or ip, a (bonding) master will do it.
# If you use dhcp or autoip you may additionally specify static address(es).
#
BOOTPROTO=
Note, 'static' is not valid per the docs.
On RedHat etc.
BOOTPROTO=protocol
where protocol is one of the following:
none — No boot-time protocol should be used.
bootp — The BOOTP protocol should be used.
dhcp — The DHCP protocol should be used.