set hwaddr/ipv6 neigh until 32

This commit is contained in:
Nico Schottelius 2019-07-28 12:52:59 +02:00
parent 1534edff2b
commit cddf348575

View file

@ -2,6 +2,7 @@
set -x
for addr in $(seq 1 8); do
sudo ip -6 neighbor add 2001:db8:42::$addr lladdr 02:53:55:4d:45:0${addr} dev enp2s0f1
for addr in $(seq 1 32); do
hwaddr=$(printf "%0.2d" $addr)
sudo ip -6 neighbor add 2001:db8:42::$addr lladdr 02:53:55:4d:45:0${hwaddr} dev enp2s0f1
done