I have an usb ethernet adapter that I use to test network configuration, a Raspberry pi is at the other end of the cable.
I'm trying to setup ipv6 connectivity, but a link-local address is never set. On my local machine:
$ ip -br a
ip a
enxa0cec855bd4d DOWN
$ sudo ip -6 addr add "fc00:7500:6700::1/64" dev enxa0cec855bd4d
$ ip a
enxa0cec855bd4d DOWN fc00:7500:6700::1/64
# Power up raspberry so iface comes up
$ ip a
enxa0cec855bd4d UP fc00:7500:6700::1/64
There is no fe80:: address :(, let's try will the iface is up from the beginning:
$ ip -br a
ip a
enxa0cec855bd4d UP
$ sudo ip -6 addr add "fc00:7500:6700::1/64" dev enxa0cec855bd4d
$ ip a
enxa0cec855bd4d UP fc00:7500:6700::1/64
There is no link-local address.
My main internet iface correctly gets an ipv6 link-local and global addr, I have the following sysctl
net.ipv6.conf.enxa0cec855bd4d.accept_dad = 1
net.ipv6.conf.enxa0cec855bd4d.accept_ra = 0
net.ipv6.conf.enxa0cec855bd4d.addr_gen_mode = 1
net.ipv6.conf.enxa0cec855bd4d.autoconf = 1
net.ipv6.conf.enxa0cec855bd4d.disable_ipv6 = 0
Why this iface not getting a link-local addr?