master-thesis/netpfga/set_ipv6_neighbour.sh

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