OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • multiple dhcp6c (multi wan) problem
« previous next »
  • Print
Pages: [1]

Author Topic: multiple dhcp6c (multi wan) problem  (Read 2237 times)

moellerheide

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
multiple dhcp6c (multi wan) problem
« on: November 06, 2017, 07:53:11 am »
I've got two wan connections
- pppoe0 - DTAG VDSL
- em0_vlan51 - Vodafone Cable
both with fix ipv4-adress and fix ipv6 /56 subnet. Both providers need dhcp to hand out an ipv6 ip to the opnsense/router. I'm able to set up wan1 (DTAG) OR wan2 (Vodafone) and it works trouble-free.
When i'm trying to set up wan1 AND wan2 the opnsense will start two dhcp6c processes - both bindung to *:546 and the problems start.

# sockstat|grep dhcp6c
root     dhcp6c     55384 3  dgram  -> /var/run/logpriv
root     dhcp6c     55384 7  udp6   *:546                 *:*
root     dhcp6c     85812 3  dgram  -> /var/run/logpriv
root     dhcp6c     85812 7  udp6   *:546                 *:*

# ps ax|grep dhcp6c
55384  -  Is      0:00.16 /usr/local/sbin/dhcp6c -d -c /var/etc/dhcp6c_opt5.conf -p /var/run/dhcp6c_pppoe0.pid pppoe0
85812  -  Is      0:00.12 /usr/local/sbin/dhcp6c -d -c /var/etc/dhcp6c_opt13.conf -p /var/run/dhcp6c_em0_vlan51.pid em0_vlan51

if one dhcp6c process will start renewing adress, the other one will get the answer
/var/log/dhcpd.log:
Nov  6 07:48:18 OPNsense dhcp6c[55384]: Sending Solicit
Nov  6 07:48:18 OPNsense dhcp6c[85812]: unexpected interface (26)

so only one ipv6 connection will be ok - ipv4 works without trouble.

Is there a way to bind the dhcp6c client to an interface or merge the config files so only one dhcp6c is used?

Michael
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 1211
    • View Profile
Re: multiple dhcp6c (multi wan) problem
« Reply #1 on: November 06, 2017, 03:19:04 pm »
Hi Michael,

I think that’s possible in theory. I’m currently travelling, can you record this on GitHub, the forum as a feature backlog is not very good...

https://github.com/opnsense/core/issues

However, rtsold man page gives a hint as to why this may not fully work by design: https://www.freebsd.org/cgi/man.cgi?query=rtsold&sektion=8

 
Quote
The IPv6 autoconfiguration   specification assumes a   single-interface host.
     You may see kernel   error messages if you try to autoconfigure a host with
     multiple interfaces.  Also, it seems contradictory   for rtsold to accept
     multiple interface   arguments.

Thank you,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • multiple dhcp6c (multi wan) problem
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2