Hi,

i have a server at the german hosting provider Hetzner. They provide
IPv6. You get a /64 assigned for your host. The problem is, that IPv6
doesn't work right after a reboot, but you have to ping the gateway
first and after that, everything works as expected. For that i have a
line in roots crontab:

@reboot sleep 10 && ping6 -c 10 fe80::1\%em0 > /dev/null

mpi@ suggested to stop working around this and fixing it. He asked for
the output of the routing table before pinging the gateway without IPv6
access and after pinging the gateway with working IPv6.

Before:
~ $ route -n show
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio
Iface
default            136.243.67.65      UGS      107      402     -     8
em0
224/4              127.0.0.1          URS        0        0 32768     8
lo0
127/8              127.0.0.1          UGRS       0        0 32768     8
lo0
127.0.0.1          127.0.0.1          UHhl      12      409 32768     1
lo0
136.243.67.64/26   136.243.67.92      UCn        1        0     -     4
em0
136.243.67.65      cc:e1:7f:07:e0:88  UHLch      1        3     -     3
em0
136.243.67.92      30:85:a9:a4:ce:5e  UHLl       0      121     -     1
em0
136.243.67.127     136.243.67.92      UHb        0        0     -     1
em0

Internet6:
Destination                        Gateway                        Flags
 Refs      Use   Mtu  Prio Iface
default                            fe80::1%em0                    UGS
    2      233     -     8 em0
::/96                              ::1                            UGRS
    0        0 32768     8 lo0
::/104                             ::1                            UGRS
    0        0 32768     8 lo0
::1                                ::1                            UHhl
   15       74 32768     1 lo0
::127.0.0.0/104                    ::1                            UGRS
    0        0 32768     8 lo0
::224.0.0.0/100                    ::1                            UGRS
    0        0 32768     8 lo0
::255.0.0.0/104                    ::1                            UGRS
    0        0 32768     8 lo0
::ffff:0.0.0.0/96                  ::1                            UGRS
    0        0 32768     8 lo0
2002::/24                          ::1                            UGRS
    0        0 32768     8 lo0
2002:7f00::/24                     ::1                            UGRS
    0        0 32768     8 lo0
2002:e000::/20                     ::1                            UGRS
    0        0 32768     8 lo0
2002:ff00::/24                     ::1                            UGRS
    0        0 32768     8 lo0
2a01:4f8:212:216c::/64             2a01:4f8:212:216c::2           UCPn
    0        2     -     4 em0
2a01:4f8:212:216c::/64             2a01:4f8:212:216c::25          UCPn
    0        0     -     4 em0
2a01:4f8:212:216c::/64             2a01:4f8:212:216c::1:443       UCPn
    0        0     -     4 em0
2a01:4f8:212:216c::2               30:85:a9:a4:ce:5e              UHLl
    0       23     -     1 em0
2a01:4f8:212:216c::25              30:85:a9:a4:ce:5e              UHLl
    0        4     -     1 em0
2a01:4f8:212:216c::1:443           30:85:a9:a4:ce:5e              UHLl
    0       67     -     1 em0
fe80::/10                          ::1                            UGRS
    0        1 32768     8 lo0
fec0::/10                          ::1                            UGRS
    0        0 32768     8 lo0
fe80::%em0/64                      fe80::3285:a9ff:fea4:ce5e%em0  UCn
    1        0     -     4 em0
fe80::1%em0                        link#1                         UHLch
    1        2     -     3 em0
fe80::3285:a9ff:fea4:ce5e%em0      30:85:a9:a4:ce:5e              UHLl
    0        0     -     1 em0
fe80::1%lo0                        fe80::1%lo0                    UHl
    0        0 32768     1 lo0
ff01::/16                          ::1                            UGRS
    0        1 32768     8 lo0
ff01::%em0/32                      fe80::3285:a9ff:fea4:ce5e%em0  Um
    0        3     -     4 em0
ff01::%lo0/32                      ::1                            Um
    0        1 32768     4 lo0
ff02::/16                          ::1                            UGRS
    0        1 32768     8 lo0
ff02::%em0/32                      fe80::3285:a9ff:fea4:ce5e%em0  Um
    0        3     -     4 em0
ff02::%lo0/32                      ::1                            Um
    0        1 32768     4 lo0

Output from not working ping6:
~ $ ping6 www.google.de
PING www.google.de (2a00:1450:4001:821::2003): 56 data bytes
ping6: failed to get receiving hop limit
ping6: failed to get receiving hop limit
ping6: failed to get receiving hop limit
ping6: failed to get receiving hop limit
^C
--- www.google.de ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss


now i ping the GW:
~ $ ping6 -c 5 fe80::1%em0
PING fe80::1%em0 (fe80::1%em0): 56 data bytes
64 bytes from fe80::1%em0: icmp_seq=0 hlim=64 time=1.228 ms
64 bytes from fe80::1%em0: icmp_seq=1 hlim=64 time=0.603 ms
64 bytes from fe80::1%em0: icmp_seq=2 hlim=64 time=0.615 ms
64 bytes from fe80::1%em0: icmp_seq=3 hlim=64 time=0.621 ms
64 bytes from fe80::1%em0: icmp_seq=4 hlim=64 time=0.641 ms

--- fe80::1%em0 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.603/0.742/1.228/0.244 ms

After:
~ $ route -n show
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio
Iface
default            136.243.67.65      UGS       14      553     -     8
em0
224/4              127.0.0.1          URS        0        0 32768     8
lo0
116.31.116.39      136.243.67.65      UGHD       0      540     - L   8
em0
127/8              127.0.0.1          UGRS       0        0 32768     8
lo0
127.0.0.1          127.0.0.1          UHhl      12     1340 32768     1
lo0
136.243.67.64/26   136.243.67.92      UCn        1        0     -     4
em0
136.243.67.65      cc:e1:7f:07:e0:88  UHLch      2        4     -     3
em0
136.243.67.92      30:85:a9:a4:ce:5e  UHLl       0      172     -     1
em0
136.243.67.127     136.243.67.92      UHb        0        0     -     1
em0

Internet6:
Destination                        Gateway                        Flags
 Refs      Use   Mtu  Prio Iface
default                            fe80::1%em0                    UGS
    0      456     -     8 em0
::/96                              ::1                            UGRS
    0        0 32768     8 lo0
::/104                             ::1                            UGRS
    0        0 32768     8 lo0
::1                                ::1                            UHhl
   15       99 32768     1 lo0
::127.0.0.0/104                    ::1                            UGRS
    0        0 32768     8 lo0
::224.0.0.0/100                    ::1                            UGRS
    0        0 32768     8 lo0
::255.0.0.0/104                    ::1                            UGRS
    0        0 32768     8 lo0
::ffff:0.0.0.0/96                  ::1                            UGRS
    0        0 32768     8 lo0
2002::/24                          ::1                            UGRS
    0        0 32768     8 lo0
2002:7f00::/24                     ::1                            UGRS
    0        0 32768     8 lo0
2002:e000::/20                     ::1                            UGRS
    0        0 32768     8 lo0
2002:ff00::/24                     ::1                            UGRS
    0        0 32768     8 lo0
2a01:4f8:212:216c::/64             2a01:4f8:212:216c::2           UCPn
    0        2     -     4 em0
2a01:4f8:212:216c::/64             2a01:4f8:212:216c::25          UCPn
    0        0     -     4 em0
2a01:4f8:212:216c::/64             2a01:4f8:212:216c::1:443       UCPn
    0        0     -     4 em0
2a01:4f8:212:216c::2               30:85:a9:a4:ce:5e              UHLl
    0       49     -     1 em0
2a01:4f8:212:216c::25              30:85:a9:a4:ce:5e              UHLl
    0       51     -     1 em0
2a01:4f8:212:216c::1:443           30:85:a9:a4:ce:5e              UHLl
    0      105     -     1 em0
fe80::/10                          ::1                            UGRS
    0        1 32768     8 lo0
fec0::/10                          ::1                            UGRS
    0        0 32768     8 lo0
fe80::%em0/64                      fe80::3285:a9ff:fea4:ce5e%em0  UCn
    1        0     -     4 em0
fe80::1%em0                        cc:e1:7f:07:e0:88              UHLch
    1        9     -     3 em0
fe80::3285:a9ff:fea4:ce5e%em0      30:85:a9:a4:ce:5e              UHLl
    0        7     -     1 em0
fe80::1%lo0                        fe80::1%lo0                    UHl
    0        0 32768     1 lo0
ff01::/16                          ::1                            UGRS
    0        1 32768     8 lo0
ff01::%em0/32                      fe80::3285:a9ff:fea4:ce5e%em0  Um
    0        3     -     4 em0
ff01::%lo0/32                      ::1                            Um
    0        1 32768     4 lo0
ff02::/16                          ::1                            UGRS
    0        1 32768     8 lo0
ff02::%em0/32                      fe80::3285:a9ff:fea4:ce5e%em0  Um
    0        4     -     4 em0
ff02::%lo0/32                      ::1                            Um
    0        1 32768     4 lo0


pinging google.de does work now:
~ $ ping6 www.google.de
PING www.google.de (2a00:1450:4001:821::2003): 56 data bytes
64 bytes from 2a00:1450:4001:821::2003: icmp_seq=0 hlim=56 time=5.085 ms
64 bytes from 2a00:1450:4001:821::2003: icmp_seq=1 hlim=56 time=5.048 ms
64 bytes from 2a00:1450:4001:821::2003: icmp_seq=2 hlim=56 time=5.052 ms
^C
--- www.google.de ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 5.048/5.062/5.085/0.016 ms


If any information is missing, i will be happy to provide it.

Maybe someone can shed some light on this and fix it.

Thanks,
Marc



dmesg:
OpenBSD 6.1 (GENERIC.MP) #7: Mon Jun 12 20:41:01 CEST 2017


rob...@syspatch-61-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

real mem = 17057746944 (16267MB)

avail mem = 16536100864 (15770MB)

mpath0 at root

scsibus0 at mpath0: 256 targets

mainbus0 at root

bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeb300 (102 entries)

bios0: vendor American Megatrends Inc. version "2106" date 07/16/2012

bios0: ASUSTeK Computer INC. P8B WS

acpi0 at bios0: rev 2

acpi0: sleep states S0 S1 S3 S4 S5

acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SSDT DMAR

acpi0: wakeup devices P0P1(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4)
PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4)
PXSX(S4) RP08(S4) PEGP(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits

acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat

cpu0 at mainbus0: apid 0 (boot processor)

cpu0: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz, 3400.45 MHz

cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SS
E4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT


cpu4: 256KB 64b/line 8-way L2 cache

cpu4: smt 1, core 0, package 0

cpu5 at mainbus0: apid 3 (application processor)

cpu5: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz, 3400.02 MHz

cpu5:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SS
E4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT


cpu5: 256KB 64b/line 8-way L2 cache

cpu5: smt 1, core 1, package 0

cpu6 at mainbus0: apid 5 (application processor)

cpu6: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz, 3400.02 MHz

cpu6:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SS
E4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT


cpu6: 256KB 64b/line 8-way L2 cache

cpu6: smt 1, core 2, package 0

cpu7 at mainbus0: apid 7 (application processor)

cpu7: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz, 3400.02 MHz

cpu7:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SS
E4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT


cpu7: 256KB 64b/line 8-way L2 cache

cpu7: smt 1, core 3, package 0

ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins

acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63

acpihpet0 at acpi0: 14318179 Hz

acpiprt0 at acpi0: bus 0 (PCI0)

acpiprt1 at acpi0: bus 6 (P0P1)

acpiprt2 at acpi0: bus 3 (RP01)

acpiprt3 at acpi0: bus -1 (RP02)

acpiprt4 at acpi0:

drm0 at inteldrm0

usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb2 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb5: msi
pci4 at ppb3 bus 4
em0 at pci4 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
30:85:a9:a4:ce:5e
ppb4 at pci0 dev 28 function 7 "Intel 6 Series PCIE" rev 0xb5: msi
pci5 at ppb4 bus 5
xhci0 at pci5 dev 0 function 0 "ASMedia ASM1042 xHCI" rev 0x00: msi
usb1 at xhci0: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "ASMedia xHCI root hub" rev
3.00/1.00 addr 1
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 2 int 23
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci6 at ppb5 bus 6
pcib0 at pci0 dev 31 function 0 "Intel C206 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: msi,
AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST33000650NS, 0004> SCSI3 0/direct
fixed naa.5000c5004dfb2697
sd0: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd1 at scsibus1 targ 1 lun 0: <ATA, ST33000650NS, 0004> SCSI3 0/direct
fixed naa.5000c5004dfb2367
sd1: 2861588MB, 512 bytes/sector, 5860533168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic
2 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x18: stts2002
sdtemp1 at iic0 addr 0x19: stts2002
sdtemp2 at iic0 addr 0x1a: stts2002
sdtemp3 at iic0 addr 0x1b: stts2002
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
spdmem2 at iic0 addr 0x52: 4GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
spdmem3 at iic0 addr 0x53: 4GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33
lm1 at wbsio0 port 0x290/8: NCT6776F
vmm0 at mainbus0: VMX/EPT
uhub3 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
uhub4 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub4 port 5 configuration 1 interface 0 "GASIA PS2toUSB
Adapter" rev 1.10/2.01 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub4 port 5 configuration 1 interface 1 "GASIA PS2toUSB
Adapter" rev 1.10/2.01 addr 3
uhidev1: iclass 3/1, 3 report ids
ums0 at uhidev1 reportid 1: 5 buttons, Z dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=2, output=0, feature=0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd2: 2861588MB, 512 bytes/sector, 5860532576 sectors
root on sd2a (7e4e73c2d1d85347.a) swap on sd2b dump on sd2b

Reply via email to