-
Notifications
You must be signed in to change notification settings - Fork 883
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: fix ipv6_dhcpv6_stateful/stateless/slaac configuration for rhel (#…
…4395) When network type is ipv6_dhcpv6-stateful/stateless/slaac, cloud-init seems to enable dhcp for both ipv4 and ipv6. Network manager prefers dhcp over ipv4 and hence dhcp6 is not used to obtain the IP address. This is incorrect. For only ipv6_dhcpv6-stateful/stateless/slaac networks, we should set: ipv4.method = disabled // disables all ipv4 dhcp For ifcfg files (sysconfig renderer), the corresponding changes should be: BOOTPROTO = none // instead of dhcp so that dhcp4 is disabled. Additionally, for only ipv6_dhcpv6_stateful, we should set: ipv6.may-fail = no // dhcp6 must succeed. which translates to the following ifcfg setting: IPV6_FAILURE_FATAL = yes // so that dhcp6 should succeed. This patch fixes this for rhel. The patch has been tested by Red Hat QE. RHBZ: 2046491 fixes: f550c87 ("Adding BOOTPROTO = dhcp to render sysconfig dhcp6 stateful on RHEL (#685)") Signed-off-by: Ani Sinha <anisinha@redhat.com>
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters