From bd251de0d123f0937cb03dabf6b9cb6148dc2177 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Thu, 24 Nov 2016 18:06:23 +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. --- sysconfig/network-scripts/network-functions-ipv6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6 index 4fe75e7a..c5d05d7c 100644 --- a/sysconfig/network-scripts/network-functions-ipv6 +++ b/sysconfig/network-scripts/network-functions-ipv6 @@ -177,7 +177,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