You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
314 B

#!/bin/sh
# eth1 / nsg
remote_mac=f8:f2:1e:41:44:9c
# enp2s0f1 / esprimo
remote_mac=f8:f2:1e:09:62:d1
intf=enp2s0f0
set -x
for addr in $(seq 1 66); do
hwaddr=$(printf "%0.2d" $addr)
sudo ip neighbor del 10.0.0.$addr dev ${intf}
sudo ip neighbor add 10.0.0.$addr lladdr $remote_mac dev ${intf}
done