5 # Adds static arps for device $DEVICE
6 # Called from ifup-post.
8 if is_no "$IPV4_NETWORKING"; then
12 if [ ! -f /etc/sysconfig/static-arp ]; then
16 # note the trailing white space character in the grep gets rid of aliases
17 grep -E "^($DEVICE|any)[[:blank:]]" /etc/sysconfig/static-arp | while read iface mac ip state args; do
18 [ -z "$state" ] && state="stale"
19 /sbin/ip neigh replace $ip lladdr $mac nud $state dev $DEVICE