Browse Source

Add v4 neighbor setting

master
Nico Schottelius 4 years ago
parent
commit
c3068206af
  1. 11
      bin/set_ipv4_neighbor.sh
  2. 0
      bin/set_ipv6_neighbour.sh

11
bin/set_ipv4_neighbor.sh

@ -0,0 +1,11 @@
#!/bin/sh
# eth1 / nsg
remote_mac=f8:f2:1e:41:44:9c
set -x
for addr in $(seq 1 64); do
hwaddr=$(printf "%0.2d" $addr)
sudo ip neighbor add 10.0.0.$addr lladdr $remote_mac dev enp2s0f0
done

0
netpfga/set_ipv6_neighbour.sh → bin/set_ipv6_neighbour.sh

Loading…
Cancel
Save