master-thesis/bin/set_ipv6_neighbour.sh
2019-07-28 16:16:43 +02:00

9 lines
180 B
Bash
Executable file

#!/bin/sh
set -x
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:${hwaddr} dev enp2s0f1
done