diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2016-06-23 16:25:45 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2016-06-23 16:26:53 +0200 |
commit | 0e6bd01fbb95b218af8970b6a95a70ab69a0baaf (patch) | |
tree | 0445ad81a3f984a2f26c66d37e406088e7561de7 /sysconfig/network-scripts/ifup-eth | |
parent | 6aa22f033aebbcca27c05d7a7138ad941220de0e (diff) | |
download | initscripts-0e6bd01fbb95b218af8970b6a95a70ab69a0baaf.tar initscripts-0e6bd01fbb95b218af8970b6a95a70ab69a0baaf.tar.gz initscripts-0e6bd01fbb95b218af8970b6a95a70ab69a0baaf.tar.bz2 initscripts-0e6bd01fbb95b218af8970b6a95a70ab69a0baaf.tar.xz initscripts-0e6bd01fbb95b218af8970b6a95a70ab69a0baaf.zip |
ifup-eth: fix setting preferred_lft and valid_lft
Cherry-picked from: 1087a2776ab6d27c65233918db7cffecd326dec0
Resolves: #1240775
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 7499dd2e..ebcfd9cb 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. |