master-thesis/netpfga/set_ipv6_neighbour.sh
Nico Schottelius 7bbd1fbe1c -leading 0
2019-07-28 12:53:38 +02:00

8 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