V
V
Vincent12021-01-06 12:35:28
linux
Vincent1, 2021-01-06 12:35:28

How to configure Ubuntu to use /64 ipv6 subnet?

The provider gave me the /64 ipv6 subnet. If I understood correctly, then one of these ips was assigned to my server via DHCP. I tried to use this same ip in 3proxy and everything works as it should. But if you take any other ip from the /64 range and try to use it in 3proxy, then nothing works. I suspect there are settings in /etc/network/interfaces, but what settings?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vincent1, 2021-01-07
@Vincent1

To use ipv6 addresses in conjunction with 3proxy, they must be added to /etc/network/interface. Below is part of the config file

iface eth0 inet6 auto
  address 2a04:ac00:4:294b::2
  netmask 64
  gateway 2a04:ac00:4:294b::1

up ip addr add 2a04:ac00:4:294b:237f:5fbf:7ff6:63fc/64 dev eth0
up ip addr add 2a04:ac00:4:294b:1ebc:09ba:a68c:4713/64 dev eth0
up ip addr add 2a04:ac00:4:294b:9732:5a7f:457b:cabb/64 dev eth0
up ip addr add 2a04:ac00:4:294b:1879:8d27:82d3:baeb/64 dev eth0
up ip addr add 2a04:ac00:4:294b:9174:ab79:6421:d697/64 dev eth0

eth0 if required, change to your own.
Restart
service networking restart

N
none7, 2021-01-06
@none7

/etc/network/interfaces should be something like
iface eth0 inet6 auto #if there is such a line, then just add the lines below.
    up ip addr add $chosen_address dev eth0
    down ip addr del $chosen_address dev eth0
Although I can't guarantee that the interface name is eth0. see ip link show

S
Sanes, 2021-01-06
@Sanes

In the connection settings, write down the statics and check. First, the one you see via DHCP, then another from this network. You could be given one address.
In Ubuntu, the network is configured through Netplan.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question