aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2016-06-23 16:25:45 +0200
committerLukas Nykryn <lnykryn@redhat.com>2016-06-23 16:25:45 +0200
commit1087a2776ab6d27c65233918db7cffecd326dec0 (patch)
treeabdbc6569b052e3057adee87f7f727d57f623337 /sysconfig/network-scripts
parentf8eca61d5af878ddffb584a77158a21e13024e6d (diff)
downloadinitscripts-1087a2776ab6d27c65233918db7cffecd326dec0.tar
initscripts-1087a2776ab6d27c65233918db7cffecd326dec0.tar.gz
initscripts-1087a2776ab6d27c65233918db7cffecd326dec0.tar.bz2
initscripts-1087a2776ab6d27c65233918db7cffecd326dec0.tar.xz
initscripts-1087a2776ab6d27c65233918db7cffecd326dec0.zip
ifup-eth: fix setting preferred_lft and valid_lft
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 0a46076b..5b71374e 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -276,7 +276,7 @@ else
fi
# set lifetime of address to forever
- ip addr change ${ipaddr[$idx]} dev ${REALDEVICE} valid_lft forever preferred_lft forever
+ ip addr change ${ipaddr[$idx]}/${prefix[$idx]} dev ${REALDEVICE} valid_lft forever preferred_lft forever
done
# Set a default route.