master-thesis/bin/set_ipv6_neighbour.sh

9 lines
180 B
Bash
Raw Normal View History

#!/bin/sh
set -x
2019-07-28 10:52:59 +00:00
for addr in $(seq 1 32); do
hwaddr=$(printf "%0.2d" $addr)
2019-07-28 10:53:38 +00:00
sudo ip -6 neighbor add 2001:db8:42::$addr lladdr 02:53:55:4d:45:${hwaddr} dev enp2s0f1
done