diff options
author | Blake Caldwell <blakec@ornl.gov> | 2016-05-30 12:58:09 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2016-05-30 12:58:33 +0200 |
commit | eacf0e68acd1f0da0ff1c789da411bb815e1c032 (patch) | |
tree | faa8575caaeb69133882ce8c206dbc77145e2f36 /sysconfig | |
parent | c7d25db27dbab853c4ccda8c984d84a7ceaf881d (diff) | |
download | initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.tar initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.tar.gz initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.tar.bz2 initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.tar.xz initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.zip |
ifup: set valid_lft and preferred_lft to forever for static ip
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 3638a6ee..d1828820 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -274,6 +274,9 @@ else ( sleep 2; /sbin/arping -q -U -c 1 -I ${REALDEVICE} ${ipaddr[$idx]} ) > /dev/null 2>&1 < /dev/null & fi + + # set lifetime of address to forever + ip addr change ${ipaddr[$idx]} dev ${REALDEVICE} valid_lft forever preferred_lft forever done # Set a default route. |