In order to be able to have a management IPv6 address assigned on the br0
interface of a Ubiquiti AirFiber, there is a hacky way to do it.
Login via SSH to execute the commands
- Restart bridge interface, so /proc/sys/net/ipv6/conf/br0 is available
- Disable duplicate address detection on bridge
- The behavior of the bridge will cause it to always detect a duplicate address
- Enable IPv6 on bridge
ip link set br0 down; ip link set br0 up # one line so you don't lock yourself out!
sysctl -w net.ipv6.conf.br0.dad_transmits=0
sysctl -w net.ipv6.conf.br0.accept_dad=0
sysctl -w net.ipv6.conf.br0.disable_ipv6=0
- Create scripts in
/etc/persistent
(content below)/etc/persistent/rc.poststart
/etc/persistent/setup-ipv6-mgmt
- Make script executable:
chmod +x /etc/persistent/setup-ipv6-mgmt
- Persist to disk
cfgmtd -w -p /etc/