2019-07-28 14:16:43 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# eth1 / nsg
|
|
|
|
remote_mac=f8:f2:1e:41:44:9c
|
|
|
|
|
2019-08-04 07:04:01 +00:00
|
|
|
# enp2s0f1 / esprimo
|
|
|
|
remote_mac=f8:f2:1e:09:62:d1
|
|
|
|
intf=enp2s0f1
|
|
|
|
|
2019-07-28 14:16:43 +00:00
|
|
|
set -x
|
|
|
|
|
2019-08-04 07:08:17 +00:00
|
|
|
for addr in $(seq 1 66); do
|
2019-07-28 14:16:43 +00:00
|
|
|
hwaddr=$(printf "%0.2d" $addr)
|
2019-08-04 07:08:17 +00:00
|
|
|
sudo ip neighbor del 10.0.0.$addr dev ${intf}
|
2019-08-04 07:04:01 +00:00
|
|
|
sudo ip neighbor add 10.0.0.$addr lladdr $remote_mac dev ${intf}
|
2019-07-28 14:16:43 +00:00
|
|
|
done
|