12 lines
200 B
Bash
12 lines
200 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# eth1 / nsg
|
||
|
remote_mac=f8:f2:1e:41:44:9c
|
||
|
|
||
|
set -x
|
||
|
|
||
|
for addr in $(seq 1 64); do
|
||
|
hwaddr=$(printf "%0.2d" $addr)
|
||
|
sudo ip neighbor add 10.0.0.$addr lladdr $remote_mac dev enp2s0f0
|
||
|
done
|