Add v4 neighbor setting

This commit is contained in:
Nico Schottelius 2019-07-28 16:16:43 +02:00
parent 1b899740d3
commit c3068206af
2 changed files with 11 additions and 0 deletions

11
bin/set_ipv4_neighbor.sh Executable file
View file

@ -0,0 +1,11 @@
#!/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