Pages

How to configure network for dhcpv6 address

mardi 26 juillet 2016

Hello, I'm having trouble getting ubuntu 16.04 server to request/get a dhcpv6 provided IP address when the networking.service restarts or the server reboots. I'm able to manually run dhclient -6 and get a dhcpv6 provided IP address. Under normal operation I just get a autoconfigured/peer probed IP address that is based on the subet and mac of the server. This is my network configuration.

Code:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens6
iface ens6 inet dhcp
iface ens6 inet6 dhcp
I've attempted to change any system setting with ipv6 and autoconf in it to 0 but that doesn't seem to change how this system attempts to get an ipv6 address.

Code:

defaults (leaving out lo interface)
net.ipv6.conf.all.autoconf = 1
net.ipv6.conf.default.autoconf = 1
net.ipv6.conf.ens6.autoconf = 1

new settings
sysctl -w net.ipv6.conf.all.autoconf=0
sysctl -w net.ipv6.conf.default.autoconf=0
sysctl -w net.ipv6.conf.ens6.autoconf=0
after systemctl restart networking.service I still get a autoconfigured IPv6 address not one provided by the dhcpv6 server.

Any idea how to make this system request a dhcpv6 provided IP instead of doing the autoconfig thing?

Let's block ads! (Why?)



How to configure network for dhcpv6 address

Aucun commentaire:

Enregistrer un commentaire