Context
I need to know how to setup an entirely /48 IPv6 block in my server to perform outgoing requests with any of these IPv6 addresses without setting up each one individually.
My ISP provides this subnet via an DHCP6 server connected directly to my machine on their data center.
The machine runs Ubuntu Server 20.04.
I've arleady tried this:
ip addr add 0000:000:00::/48 dev lo
, works really well with IPv4 adresses, i already get an /26 IPv4 block working this way for outgoing requests, but i can't with IPv6;ip route add local 0000:000:00::/48 dev lo
, i can ping any IP locally usingping6
, but i can't bind any TCP socket to the IP and perform outgoing requests, I receiveEADDRNOTAVAIL
;
Question
Am I missing something? How i can get this working?
Resourses
Netplan config
network:
version: 2
renderer: networkd
ethernets:
enp132s0:
dhcp4: yes
dhcp6: yes
enp6s0:
dhcp4: yes
dhcp6: yes