Help with IPv6

Started by Taomyn, March 29, 2017, 02:36:35 PM

Previous topic - Next topic
You will want to run this command from ssh:
clog -f /var/log/dhcpd.log

and watch it while applying interface settings on WAN; you should see log entries from dhcp6c.

Nope, still nothing, just entries from "dhcpd"

I'm now on 17.1.5 and I wanted to revisit this issue.

I still get an IPv6 address to my WAN (VLAN PPPoE, request IPv6 via IPv4), but none of my LAN interfaces get an address. I've stuck to keeping it simple on the WAN, and chosen "Track Interface" on each LAN network giving them different Prefix IDs.

Any ideas?

Hi,

what is your config on the WAN interface for "DHCPv6 client configuration". Which configuration mode are you using? If it is "Advanced" then please switch to "Basic". I had used "Advanced" for the "debug"  switch but it stopped it from working. I switched to "Basic", waited some time and then I had IPv6 running on the LAN interface and the clients behind.

Best regards,

    Jochen


Please enable

- Request only a IPv6 prefix
- Directly send SOLICIT

Do you get a /56 from your provider?

Quote from: Space on April 27, 2017, 11:19:33 AM
Please enable

- Request only a IPv6 prefix
- Directly send SOLICIT


Either option causes the WAN to lose the IPv6 address from my ISP

Quote from: Space on April 27, 2017, 11:19:33 AM
Do you get a /56 from your provider?


That's what I have been told by my provider, but I don't know how to prove this.

April 27, 2017, 11:42:09 AM #37 Last Edit: April 27, 2017, 11:53:38 AM by Space
I don't have an IP on the WAN  either ... that IP moves to the LAN and then the DHCPd is able to send IPs to the systems in your LAN ... but you should be able to connect to IPv6 systems from the Firewall still ...

Correction: I have an IP on the WAN but only in the output of ifconfig ... the GUI only shows the fe80 address.

Quote from: Space on April 27, 2017, 11:42:09 AM
I don't have an IP on the WAN  either ... that IP moves to the LAN and then the DHCPd is able to send IPs to the systems in your LAN ... but you should be able to connect to IPv6 systems from the Firewall still ...

Tried it again, left it a while, still no IPv6 addresses get assigned to either of my LANs - nothing shows on the dashboard nor on the interface overview page.

Log onto the system via ssh and run as root:

clog -f /var/log/dhcpd.log

And then press the Save button on the WAN interface again and report what lines got added to that file.

Quote from: Space on April 27, 2017, 11:56:31 AM
Log onto the system via ssh and run as root:

clog -f /var/log/dhcpd.log

And then press the Save button on the WAN interface again and report what lines got added to that file.



Quote

Apr 27 12:17:38 bart dhcpd: Internet Systems Consortium DHCP Server 4.3.5
Apr 27 12:17:38 bart dhcpd: Copyright 2004-2016 Internet Systems Consortium.
Apr 27 12:17:38 bart dhcpd: All rights reserved.
Apr 27 12:17:38 bart dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 27 12:17:38 bart dhcpd: Config file: /etc/dhcpd.conf
Apr 27 12:17:38 bart dhcpd: Database file: /var/db/dhcpd.leases
Apr 27 12:17:38 bart dhcpd: PID file: /var/run/dhcpd.pid
Apr 27 12:17:38 bart dhcpd: Internet Systems Consortium DHCP Server 4.3.5
Apr 27 12:17:38 bart dhcpd: Copyright 2004-2016 Internet Systems Consortium.
Apr 27 12:17:38 bart dhcpd: All rights reserved.
Apr 27 12:17:38 bart dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 27 12:17:38 bart dhcpd: Wrote 3 leases to leases file.
Apr 27 12:17:38 bart dhcpd: Listening on BPF/em3/00:30:xx:xx:xx:xx/192.168.100.0/24
Apr 27 12:17:38 bart dhcpd: Sending on   BPF/em3/00:30:xx:xx:xx:xx/192.168.100.0/24
Apr 27 12:17:38 bart dhcpd: Sending on   Socket/fallback/fallback-net
Apr 27 12:17:38 bart dhcpd: Server starting service.
Apr 27 12:17:40 bart dhcp6c[13806]: Sending Solicit
Apr 27 12:17:40 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:17:44 bart dhcp6c[27159]: Sending Solicit
Apr 27 12:17:45 bart dhcp6c[13806]: exiting
Apr 27 12:17:45 bart dhcp6c[34719]: failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
Apr 27 12:17:45 bart dhcp6c[34719]: failed initialize control message authentication
Apr 27 12:17:45 bart dhcp6c[34719]: skip opening control port
Apr 27 12:17:46 bart dhcp6c[35753]: Sending Solicit
Apr 27 12:17:46 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:17:47 bart dhcp6c[35753]: Sending Solicit
Apr 27 12:17:47 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:17:49 bart dhcp6c[35753]: Sending Solicit
Apr 27 12:17:49 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:17:53 bart dhcp6c[35753]: Sending Solicit
Apr 27 12:17:53 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:18:01 bart dhcp6c[35753]: Sending Solicit
Apr 27 12:18:01 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:18:18 bart dhcp6c[35753]: Sending Solicit
Apr 27 12:18:18 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:18:50 bart dhcp6c[35753]: Sending Solicit
Apr 27 12:18:50 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:19:05 bart dhcp6c[35753]: exiting
Apr 27 12:19:06 bart dhcp6c[59937]: failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
Apr 27 12:19:06 bart dhcp6c[59937]: failed initialize control message authentication
Apr 27 12:19:06 bart dhcp6c[59937]: skip opening control port
Apr 27 12:19:07 bart dhcp6c[60279]: Sending Solicit
Apr 27 12:19:07 bart dhcp6c[60279]: transmit failed: Device not configured
Apr 27 12:19:08 bart dhcp6c[60279]: Sending Solicit
Apr 27 12:19:08 bart dhcp6c[60279]: transmit failed: Can't assign requested address
Apr 27 12:19:10 bart dhcp6c[60279]: Sending Solicit
Apr 27 12:19:10 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:19:12 bart dhcpd: Internet Systems Consortium DHCP Server 4.3.5
Apr 27 12:19:12 bart dhcpd: Copyright 2004-2016 Internet Systems Consortium.
Apr 27 12:19:12 bart dhcpd: All rights reserved.
Apr 27 12:19:12 bart dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 27 12:19:12 bart dhcpd: Config file: /etc/dhcpd.conf
Apr 27 12:19:12 bart dhcpd: Database file: /var/db/dhcpd.leases
Apr 27 12:19:12 bart dhcpd: PID file: /var/run/dhcpd.pid
Apr 27 12:19:12 bart dhcpd: Internet Systems Consortium DHCP Server 4.3.5
Apr 27 12:19:12 bart dhcpd: Copyright 2004-2016 Internet Systems Consortium.
Apr 27 12:19:12 bart dhcpd: All rights reserved.
Apr 27 12:19:12 bart dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 27 12:19:12 bart dhcpd: Wrote 3 leases to leases file.
Apr 27 12:19:12 bart dhcpd: Listening on BPF/em3/00:30:xx:xx:xx:xx/192.168.100.0/24
Apr 27 12:19:12 bart dhcpd: Sending on   BPF/em3/00:30:xx:xx:xx:xx/192.168.100.0/24
Apr 27 12:19:12 bart dhcpd: Sending on   Socket/fallback/fallback-net
Apr 27 12:19:12 bart dhcpd: Server starting service.
Apr 27 12:19:18 bart dhcp6c[60279]: exiting
Apr 27 12:19:18 bart dhcp6c[81249]: failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
Apr 27 12:19:18 bart dhcp6c[81249]: failed initialize control message authentication
Apr 27 12:19:18 bart dhcp6c[81249]: skip opening control port
Apr 27 12:19:19 bart dhcp6c[82469]: Sending Solicit
Apr 27 12:19:19 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:19:20 bart dhcp6c[82469]: Sending Solicit
Apr 27 12:19:20 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:19:22 bart dhcp6c[82469]: Sending Solicit
Apr 27 12:19:22 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:19:26 bart dhcp6c[82469]: Sending Solicit
Apr 27 12:19:26 bart dhcp6c[27159]: unexpected interface (11)
Apr 27 12:19:34 bart dhcp6c[82469]: Sending Solicit
Apr 27 12:19:35 bart dhcp6c[27159]: unexpected interface (11)

That's eerie, how did I end up in your logs?!?  :D

Bart...

Quote from: bartjsmit on April 27, 2017, 12:53:19 PM
That's eerie, how did I end up in your logs?!?  :D

Bart...

Ah, so that's the problem then? ;-)

I am out ... of ideas ... But I am a newbie with OPNsense myself :)

Quote from: Space on April 27, 2017, 01:13:54 PM
I am out ... of ideas ... But I am a newbie with OPNsense myself :)


No problem, but thanks for the help - it always helps to try things out in case I missed something before.


Hopefully someone else can help soon.