set hwaddr/ipv6 neigh until 32
This commit is contained in:
parent
1534edff2b
commit
cddf348575
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue