Monday, February 05, 2024

Re: dhcpcd not obtaining ipv6 /48

I recently started having a similar issue too. I can't get IPv6 anymore,
a /60 with
Comcast. I think it may be my ISP's fault since it happened after one of
their
maintenance windows, but it is odd seeing someone else having a similar
issue.
What do you get as output when you run dhcpcd in the foreground?

On 2/2/24 06:50, void wrote:
> Hello,
>
> I have an edgerouter lite 3 running octeon for the past few years.
> The connection is dual-stack. On the ipv6 side, there's two prefixes:
>
> for the ND side, a /64 let's call it 2a02:8011:
> for the DP (delegation prefix) it's a /48 let's call it 2a02:8010.
> v6 IPs from the /48 are distributed to the DMZ.
>
> on the edgerouter:
> cnmac2 is not used
> cnmac0 points to the dmz and has ipv4 assigned manually
> pppoe0 is on cnmac1 and it always has, as expected, ipv6 from the ND prefix.
> cnmac1 points to the dmz and has ipv4 and, normally, ipv6, and the ipv6 would be
> from the PD prefix.
>
> This *used* to work and stopped working sometime while at 7.3.
> It's at 7.4 now. Sometimes it would stop working and a reboot would fix it.
> I'm unsure if it's a misconfiguration at my end or if it's an ISP problem.
> The problem persists even if pf is stopped.
> Please can anyone advise?
>
> hostname.pppoe0
> ===============
> inet 0.0.0.0 255.255.255.255 NONE mtu 1500 \
> pppoedev cnmac1 authproto chap \
> authname 'REDACTED' authkey 'REDACTED' up
> dest 0.0.0.1
> !/sbin/route add default -ifp pppoe0 0.0.0.1
>
> inet6 eui64
> !/sbin/route add -inet6 default -ifp pppoe0 fe80::%pppoe0
> ###
>
> hostname.cnmac1
> ===============
> mtu 1508
> inet6 autoconf
> up
> ###
>
> hostname.cnmac0
> ===============
> inet my.real.ipv4.router.ip 255.255.255.248 NONE
> ###
>
> The problem is cnmac1 isn't getting its DHCP-DP /48 as expected.
> It does get an ipv6 but it's
> inet6 fe80::f29f:c2ff:fe10:488f%cnmac1 prefixlen 64 scopeid 0x2
> and that's it.
>
> Additionally:
>
> Fri Feb 02 14:29:27
> root@axs /etc # rcctl stop dhcpcd
> dhcpcd(ok)
>
> Fri Feb 02 14:30:18
> root@axs /etc # rcctl start dhcpcd
> dhcpcd(timeout)
>
> Fri Feb 02 14:31:00
> root@axs /etc # rcctl check dhcpcd
> dhcpcd(ok)
>
> Fri Feb 02 14:32:13
> root@axs /etc # rcctl restart dhcpcd
> dhcpcd(ok)
> dhcpcd(timeout)
>
> Here's /etc/dhcpcd.conf
>
> ###
> Fri Feb 02 14:32:58
> root@axs /etc # cat /etc/dhcpcd.conf
> ipv6only
> noipv6rs
> duid
> persistent
> option rapid_commit
> require dhcp_server_identifier
>
> script ""
>
> allowinterfaces pppoe0 cnmac0 cnmac1
>
> interface pppoe0
> ipv6rs
> ia_na 1
>
> ia_pd 2/::48 cnmac0/1
>
> ### dmesg
>
> [ using 762280 bytes of bsd ELF symbol table ]
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> The Regents of the University of California. All rights reserved.
> Copyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org
>
> OpenBSD 7.4 (GENERIC.MP) #1382: Tue Oct 10 09:43:29 MDT 2023
> deraadt@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/GENERIC.MP
> real mem = 536870912 (512MB)
> avail mem = 520994816 (496MB)
> random: good seed from bootblocks
> mainbus0 at root: board 20002 rev 2.18, model CN3xxx/CN5xxx
> cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
> cpu0: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way
> cpu1 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
> cpu1: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way
> clock0 at mainbus0: int 5
> octcrypto0 at mainbus0
> iobus0 at mainbus0
> simplebus0 at iobus0: "soc"
> octciu0 at simplebus0
> octsmi0 at simplebus0
> octpip0 at simplebus0
> octgmx0 at octpip0 interface 0
> cnmac0 at octgmx0: port 0 RGMII, address f0:9f:c2:10:48:8e
> atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2
> cnmac1 at octgmx0: port 1 RGMII, address f0:9f:c2:10:48:8f
> atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2
> cnmac2 at octgmx0: port 2 RGMII, address f0:9f:c2:10:48:90
> atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2
> com0 at simplebus0: ns16550a, 64 byte fifo
> com0: console
> dwctwo0 at iobus0 base 0x1180068000000 irq 56
> usb0 at dwctwo0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev 2.00/1.00 addr 1
> octrng0 at iobus0 base 0x1400000000000 irq 0
> umass0 at uhub0 port 1 configuration 1 interface 0 "USB SanDisk 3.2Gen1" rev 2.10/1.00 addr 2
> umass0: using SCSI over Bulk-Only
> scsibus0 at umass0: 2 targets, initiator 0
> sd0 at scsibus0 targ 1 lun 0: <USB, SanDisk 3.2Gen1, 1.00> removable serial.078155838107b4280bcc
> sd0: 29340MB, 512 bytes/sector, 60088320 sectors
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> scsibus2 at softraid0: 256 targets
> root on sd0a (d02ce061c45edca4.a) swap on sd0b dump on sd0b
> WARNING: CHECK AND RESET THE DATE!
> ###
>
> Thanks in advance for any assistance

No comments:

Post a Comment