diff options
author | Zhiqiang Liu <liuzhiqiang26@huawei.com> | 2019-03-06 04:25:00 +0800 |
---|---|---|
committer | Jan Macku <jamacku@redhat.com> | 2021-06-24 12:07:01 +0200 |
commit | a8212c1b232a902938d0e5ea6a82bd6ae52e861c (patch) | |
tree | d20ab96dc25e964e9b5672e098acec4d0d2580d6 /network-scripts | |
parent | 81b7893dd1627c43464064e670583803aca2d5ff (diff) | |
download | initscripts-a8212c1b232a902938d0e5ea6a82bd6ae52e861c.tar initscripts-a8212c1b232a902938d0e5ea6a82bd6ae52e861c.tar.gz initscripts-a8212c1b232a902938d0e5ea6a82bd6ae52e861c.tar.bz2 initscripts-a8212c1b232a902938d0e5ea6a82bd6ae52e861c.tar.xz initscripts-a8212c1b232a902938d0e5ea6a82bd6ae52e861c.zip |
ifup-eth: add a new PERSISTENT_DHCLIENT_IPV6 option for IPv6 dhclient daemon
In 76226a34 ("ifup-eth: apply PERSISTENT_DHCLIENT to IPv6 dhclient daemon"),
one PERSISTENT_DHCLIENT option works for both IPv4 and IPv6, so the IPv4
and IPv6 settings are consistent. However, the user settings for IPv4 and IPv6
are limited.
For example, users try to adopt both IPv4 and IPv6 protocol. DHCPv6 servers
may be not stable as DHCP servers, thus the expectation for obtaining IPv6
address is lower than IPv4 address. For users, IPv4 address must be
obtained for the basic communication. So the PERSISTENT_DHCLIENT option is
set to be "yes | 1" for IPv4 address. However, the network service may be
stuck until it fails due to missing DHCPv6 servers, and the remaining devices also
cannot obtain both IPv4 and IPv6 addresses. The problem is very serious for users.
Here, I add a new PERSISTENT_DHCLIENT_IPV6 option only for IPv6 dhclient daemon,
so users can set IPv4 and IPv6 separately.
Fixes: 76226a3 ("ifup-eth: apply PERSISTENT_DHCLIENT to IPv6 dhclient daemon")
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Diffstat (limited to 'network-scripts')
-rwxr-xr-x | network-scripts/ifup-eth | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network-scripts/ifup-eth b/network-scripts/ifup-eth index 2f58d195..a4c0d2b4 100755 --- a/network-scripts/ifup-eth +++ b/network-scripts/ifup-eth @@ -365,7 +365,7 @@ if is_true "${DHCPV6C}" && [ -x /sbin/dhclient ]; then echo -n $"Determining IPv6 information for ${DEVICE}..." # Initialize the dhclient args for IPv6 and obtain the hostname options if needed: - if is_true "${PERSISTENT_DHCLIENT}"; then + if is_true "${PERSISTENT_DHCLIENT_IPV6}"; then ONESHOT=""; else ONESHOT="-1"; |