From a5b36c2165e4e7564bb4e6e5d2a180be3480497c Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Mon, 14 Nov 2016 13:28:42 +0100 Subject: ipv6_add_addr_on_device: replace the existing address on NIC Instead of adding the IPv6 address when ifup is called, we replace the address, because it might have been auto-assigned before by RA. This is to assure that static NIC configuration will take effect if the NIC was already dynamically configured by RA. Resolves: RHBZ #1086388 --- sysconfig/network-scripts/network-functions-ipv6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6 index 24100cba..14833b7f 100644 --- a/sysconfig/network-scripts/network-functions-ipv6 +++ b/sysconfig/network-scripts/network-functions-ipv6 @@ -330,7 +330,7 @@ ipv6_add_addr_on_device() { local address="$address_implicit/$prefixlength_implicit" fi - /sbin/ip -6 addr add $address dev $device + /sbin/ip -6 addr replace $address dev $device local result=$? if [ $result -eq 2 ]; then -- cgit v1.2.1