aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2016-11-14 13:28:42 +0100
committerDee'Kej <deekej@linuxmail.org>2016-11-16 15:55:27 +0100
commita5b36c2165e4e7564bb4e6e5d2a180be3480497c (patch)
treeae5323fc171c503c8099e865e806821941f9a664 /sysconfig
parent85153da13bf9623083095f4405bbb02c9da90767 (diff)
downloadinitscripts-a5b36c2165e4e7564bb4e6e5d2a180be3480497c.tar
initscripts-a5b36c2165e4e7564bb4e6e5d2a180be3480497c.tar.gz
initscripts-a5b36c2165e4e7564bb4e6e5d2a180be3480497c.tar.bz2
initscripts-a5b36c2165e4e7564bb4e6e5d2a180be3480497c.tar.xz
initscripts-a5b36c2165e4e7564bb4e6e5d2a180be3480497c.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. Resolves: RHBZ #1086388
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 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