DHCPv6 Client Settings - DHCP only option

Started by jifox, September 14, 2019, 06:18:21 AM

Previous topic - Next topic

On my Linux Box I have to enable the "DHCP only" option instead of the "Automatic" option to obtain an IPv6 addresss from my provider. As I don't get assigned an ipv6 address on my OPNsense, I suspect that I should set this options too.

Can anyone tell me if it's possible or how to configure that option on OPNsense?

KR
Josef

I was able to sort out the problem by manually configure the dhcp6c service.

1.) I've appended the dhcp6c... lines to activate dhcp6c on interface `vmx1` in file /etc/rc.conf


root@OPNsense:~ # cat /etc/rc.conf

# -- BEGIN BSD Installer automatically generated configuration  -- #
# -- Written on Wed Sep 11 14:48:18 UTC 2019-- #
keymap='de'
# -- END of BSD Installer automatically generated configuration -- #
dhcp6c_enable='YES'
dhcp6c_interfaces='vmx1'


2.) I used the stateful part of the sample as /usr/local/etc/dhcp6c.config


root@OPNsense:~ # cat /usr/local/etc/dhcp6c.conf
# The following is a sample configuration for a client on a LAN
# where IPv6 addresses are assigned via DHCPv6 ("stateful address
# assignment"). Use this if you want the client to query the
# DHCPv6 server for an IPv6 address and for DNS servers, as in
# traditional IPv4 DHCP.

interface vmx1 {
       send ia-na 0;
       send rapid-commit;
       send domain-name-servers;
};

id-assoc na {
};


After reboot all is working as expected