aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2016-11-24 18:06:23 +0100
committerDee'Kej <deekej@linuxmail.org>2017-02-27 15:53:07 +0100
commitbd251de0d123f0937cb03dabf6b9cb6148dc2177 (patch)
tree87367a66ca0f66adb5fbfa2101a24f7f0395411f /sysconfig
parentedcc7e730a0370f41cd4961f632e7590cbaa084f (diff)
downloadinitscripts-bd251de0d123f0937cb03dabf6b9cb6148dc2177.tar
initscripts-bd251de0d123f0937cb03dabf6b9cb6148dc2177.tar.gz
initscripts-bd251de0d123f0937cb03dabf6b9cb6148dc2177.tar.bz2
initscripts-bd251de0d123f0937cb03dabf6b9cb6148dc2177.tar.xz
initscripts-bd251de0d123f0937cb03dabf6b9cb6148dc2177.zip
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.
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions-ipv62
1 files changed, 1 insertions, 1 deletions
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