diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2016-10-30 17:26:29 +0100 |
---|---|---|
committer | Lukáš Nykrýn <lnykryn@redhat.com> | 2016-10-31 14:20:33 +0100 |
commit | 6a593a24130421689ea8056626cb2bb07d89d947 (patch) | |
tree | 14c3fa9a5e36b07ef5929e841be6e2ea19c1cc61 | |
parent | 3b9c49f08092e2d38ddf6bbb5257b1688851e17c (diff) | |
download | initscripts-6a593a24130421689ea8056626cb2bb07d89d947.tar initscripts-6a593a24130421689ea8056626cb2bb07d89d947.tar.gz initscripts-6a593a24130421689ea8056626cb2bb07d89d947.tar.bz2 initscripts-6a593a24130421689ea8056626cb2bb07d89d947.tar.xz initscripts-6a593a24130421689ea8056626cb2bb07d89d947.zip |
ifup-aliases: send gratuitous ARPs when adding addresses
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index 7bf2327e..ad44964b 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -277,6 +277,12 @@ function new_interface () /sbin/ip addr add ${IPADDR}/${PREFIX} brd ${BROADCAST} \ dev ${parent_device} label ${DEVICE} + # update ARP cache of neighboring computers: + if [ "${REALDEVICE}" != "lo" ]; then + /sbin/arping -q -A -c 1 -I ${parent_device} ${IPADDR} + ( sleep 2; /sbin/arping -q -U -c 1 -I ${parent_device} ${IPADDR} ) > /dev/null 2>&1 < /dev/null & + fi + ! is_false "$IPV6INIT" && \ /etc/sysconfig/network-scripts/ifup-ipv6 ${DEVICE} |