
Unit testing on a single vlan:

on the same vlan than the BSD server, choose a host (W7):
link local address of this host is:
fe80::6d19:b3a3:b8cb:6f1b
global address of this host is:
2a01:e35:8aae:bc60:a159:8fcf:7043:3278

on the BSD server, use the host addresses:

  compile with debug messages
  sysctl -w net.inet6.ndproxyconf_uplink_interface=em0
  sysctl -w net.inet6.ndproxyconf_downlink_mac_address=00:01:23:45:67:89
  sysctl -w net.inet6.ndproxyconf_uplink_ipv6_addresses='2a01:e35:8aae:bc60:a159:8fcf:7043:3278;fe80::6d19:b3a3:b8cb:6f1b;::'
  ifconfig em0 promisc
  tail -f /var/log/messages

unit testing from the host (W7):

  - 1st test:
    ping 2a01:e35:8aae:bc60::29ff:fe9d:1234
    netsh interface ipv6 show neig
    and find 2a01:e35:8aae:bc60::29ff:fe9d:1234

  - 2nd test:
    netsh interface ipv6 show interface
    ping -6 fe80::1:1:1:3%28
    netsh interface ipv6 show neig
    and find fe80::1:1:1:3%28

------------------------------------------------------------

Testing with poudriere on AWS
create an EC2 instance of a FreeBSD version newer than the latest poudriere target to test
add a ZFS volume dedicated to poudriere
add DEVELOPER=yes to /etc/make.conf
zpool create ztank /dev/xbd1
update /usr/local/etc/poudriere.conf:
root@ip-172-30-1-13:/usr/local/etc # diff poudriere.conf poudriere.conf.orig
  12c12
  < ZPOOL=ztank
  ---
  > #ZPOOL=tank
  30c30
  < FREEBSD_HOST=ftp://ftp.freebsd.org
  ---
  > FREEBSD_HOST=_PROTO_://_CHANGE_THIS_
  48c48
  < USE_PORTLINT=yes
  ---
  > USE_PORTLINT=no
  82c82
  < DISTFILES_CACHE=/root/distfiles
  ---
  > DISTFILES_CACHE=/usr/ports/distfiles
mkdir /root/distfiles
portsnap fetch
portsnap extract
cp -rp /usr/ports /root/ports
poudriere ports -c -F -f none -M /root/ports -p local
sh ndproxy.shar
mv ndproxy /root/ports/net/ndproxy
poudriere jail -c -j 111amd64 -v 11.1-RELEASE -a amd64
poudriere jail -c -j 111i386 -v 11.1-RELEASE -a i386
poudriere jail -c -j 12amd64 -v head -a amd64 -m svn+https
poudriere jail -c -j 12i386 -v head -a i386 -m svn+https
poudriere testport -j 111amd64 -p local -o net/ndproxy
poudriere testport -j 111i386 -p local -o net/ndproxy
poudriere testport -j 12amd64 -p local -o net/ndproxy
poudriere testport -j 12i386 -p local -o net/ndproxy

For CURRENT, the jail version must be less recent than the host one (see uname -a to get the host svn revision version):
- install a host using a source tree with svn co -r 321619 https://svn.freebsd.org/base/head src
- or (faster) install a jail like that: poudriere jail -c -j 12amd64 -v head@321619 -a amd64 -m svn+https
