On a Fedora server, I have the following line in my /etc/sysconfig/network-scripts/ifcfg-eth0:0
:
IPV6ADDR=<REDACTED>:48ea::1/64
Now binding to that specific address works:
$ nc -l <REDACTED>:48ea::1 1025
However, binding to another address in the same netmask space fails:
$ nc -l <REDACTED>:48ea::2 1025
Ncat: bind to <REDACTED>:48ea::2:1025: Cannot assign requested address. QUITTING.
If explicitly add <REDACTED>:48ea::2/128
(either by adding it to IPV6ADDR_SECONDARIES
or by running ip addr add <REDACTED>:48ea::2/128 dev eth0
), then I can bind to it.
Why adding the /64
address is not enough? Do I have to explicitly add every single /128 address to the device before using it?