v6 routing problem, static workstation config, expired ndp for gateway's address

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

v6 routing problem, static workstation config, expired ndp for gateway's address

Stuart Henderson
My workstation has static v6 configuration. Recently I have occasionally
losing v6 connectivity:

$ grep inet6 /etc/hostname.vlan2
inet6 2a02:8011:7003:1:fab1:56ff:feac:3276
inet6 -autoconfprivacy

$ grep : /etc/mygate
2a02:8011:7003:1::1

$ ping6 2a02:8011:7003:1::1
PING 2a02:8011:7003:1::1 (2a02:8011:7003:1::1): 56 data bytes
ping6: sendmsg: No route to host
ping: wrote 2a02:8011:7003:1::1 64 chars, ret=-1
^C
--- 2a02:8011:7003:1::1 ping statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss

The default route is present and pointing to 2a02:8011:7003:1::1,
but ndp for that address is showing as expired.

$ ndp -an
Neighbor                             Linklayer Address  Netif Expire    S Flags
2a02:8011:7003:1::1                  00:0d:b9:41:7e:48  vlan2 expired   P R 3
2a02:8011:7003:1:20d:93ff:fe63:da5a  00:0d:b9:14:30:ec  vlan2 23h45m30s S
2a02:8011:7003:1:4c5:3773:8878:f8e9  00:0d:b9:14:30:ec  vlan2 14h30m52s S
2a02:8011:7003:1:9446:5c90:a2b0:d2ec 00:0d:b9:14:30:ec  vlan2 23h45m35s S
2a02:8011:7003:1:fab1:56ff:feac:3276 f8:b1:56:ac:32:76  vlan2 permanent R l
2a02:8011:7003:3::1                  00:0d:b9:41:7e:48  vlan5 23h47m46s S R
2a02:8011:7003:3:fab1:56ff:feac:3276 f8:b1:56:ac:32:76  vlan5 permanent R l
fe80::fab1:56ff:feac:3276%vlan2      f8:b1:56:ac:32:76  vlan2 permanent R l
fe80::fab1:56ff:feac:3276%vlan4      f8:b1:56:ac:32:76  vlan4 permanent R l
fe80::fab1:56ff:feac:3276%vlan5      f8:b1:56:ac:32:76  vlan5 permanent R l

Other machines on the subnet are able to resolve and ping6
2a02:8011:7003:1::1 and beyond. (those machines are on older snaps).

Trying to remove the old ndp entry with ndc -d <addr> or ndp -c reports
that it has been deleted but it shows up again in ndp -a output immediately
afterwards

# ndp -c; ndp -an | grep 2a02:8011:7003:1::1
2a02:8011:7003:1::1 (2a02:8011:7003:1::1) deleted
2a02:8011:7003:1::1                  00:0d:b9:41:7e:48  vlan2 expired   I R

Removing the default route and then the ndp entry does result in
it being removed, but adding the default route back in results in
ndp showing up as 'expired' again.

More bits below. Nothing relating to ND showing in log with nd6_debug.
Rebooting the workstation seemed to fix it, last time it happened
I tried rebooting the gateway instead and that seemed to fix it too.
Any ideas or suggestions of more things to collect next time it
happens?

$ netstat -rnfinet6
Routing tables

Internet6:
Destination                        Gateway                        Flags   Refs      Use   Mtu  Prio Iface
default                            2a02:8011:7003:1::1            UGS        1   142441     -     8 vlan2
::/96                              ::1                            UGRS       0        0 32768     8 lo0  
::/104                             ::1                            UGRS       0        0 32768     8 lo0  
::1                                ::1                            UHhl      14       58 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  
2a02:8011:7003:1::/64              2a02:8011:7003:1:fab1:56ff:feac:3276 UCn        4       28     -     4 vlan2
2a02:8011:7003:1::1                00:0d:b9:41:7e:48              UHLch      1    53101     -     4 vlan2
2a02:8011:7003:1:20d:93ff:fe63:da5a 00:0d:b9:14:30:ec              UHLc       0     1847     -     4 vlan2
2a02:8011:7003:1:4c5:3773:8878:f8e9 00:0d:b9:14:30:ec              UHLc       0      538     -     4 vlan2
2a02:8011:7003:1:9446:5c90:a2b0:d2ec 00:0d:b9:14:30:ec              UHLc       0      261     -     4 vlan2
2a02:8011:7003:1:fab1:56ff:feac:3276 f8:b1:56:ac:32:76              UHLl       0    75101     -     1 vlan2
2a02:8011:7003:3::/64              2a02:8011:7003:3:fab1:56ff:feac:3276 UCn        1       14     -     4 vlan5
2a02:8011:7003:3::1                00:0d:b9:41:7e:48              UHLc       0     9753     -     4 vlan5
2a02:8011:7003:3:fab1:56ff:feac:3276 f8:b1:56:ac:32:76              UHLl       0    58021     -     1 vlan5
fe80::/10                          ::1                            UGRS       0        4 32768     8 lo0  
fec0::/10                          ::1                            UGRS       0        0 32768     8 lo0  
fe80::1%lo0                        fe80::1%lo0                    UHl        0        0 32768     1 lo0  
fe80::%vlan2/64                    fe80::fab1:56ff:feac:3276%vlan2 UCn        0        6     -     4 vlan2
fe80::fab1:56ff:feac:3276%vlan2    f8:b1:56:ac:32:76              UHLl       0        6     -     1 vlan2
fe80::%vlan4/64                    fe80::fab1:56ff:feac:3276%vlan4 UCn        0        0     -     4 vlan4
fe80::fab1:56ff:feac:3276%vlan4    f8:b1:56:ac:32:76              UHLl       0        0     -     1 vlan4
fe80::%vlan5/64                    fe80::fab1:56ff:feac:3276%vlan5 UCn        0       24     -     4 vlan5
fe80::fab1:56ff:feac:3276%vlan5    f8:b1:56:ac:32:76              UHLl       0       33     -     1 vlan5
ff01::/16                          ::1                            UGRS       1        5 32768     8 lo0  
ff01::%lo0/32                      ::1                            Um         0        1 32768     4 lo0  
ff01::%vlan2/32                    fe80::fab1:56ff:feac:3276%vlan2 Um         0        1     -     4 vlan2
ff01::%vlan4/32                    fe80::fab1:56ff:feac:3276%vlan4 Um         0        0     -     4 vlan4
ff01::%vlan5/32                    fe80::fab1:56ff:feac:3276%vlan5 Um         0        1     -     4 vlan5
ff02::/16                          ::1                            UGRS       1        5 32768     8 lo0  
ff02::%lo0/32                      ::1                            Um         0        1 32768     4 lo0  
ff02::%vlan2/32                    fe80::fab1:56ff:feac:3276%vlan2 Um         0        1     -     4 vlan2
ff02::%vlan4/32                    fe80::fab1:56ff:feac:3276%vlan4 Um         0        0     -     4 vlan4
ff02::%vlan5/32                    fe80::fab1:56ff:feac:3276%vlan5 Um         0       19     -     4 vlan5

$ route -n get -inet6 2a02:8011:7003:1::1
   route to: 2a02:8011:7003:1::1
destination: 2a02:8011:7003:1::1
       mask: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  interface: vlan2
 if address: 2a02:8011:7003:1:fab1:56ff:feac:3276
   priority: 4 (connected)
      flags: <UP,HOST,DONE,LLINFO,CLONED,CACHED>
     use       mtu    expire
   53103         0   -828109


^^ Not sure if relevant but the above "expire" is quite negative.


$ ifconfig vlan2
vlan2: flags=48843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,INET6_NOPRIVACY> mtu 1500
        lladdr f8:b1:56:ac:32:76
        description: natted
        index 6 priority 0 llprio 3
        vlan: 2 parent interface: trunk0
        vnetid: 2
        parent: trunk0
        groups: vlan natted egress
        status: active
        inet 82.68.199.130 netmask 0xfffffff0 broadcast 82.68.199.143
        inet6 fe80::fab1:56ff:feac:3276%vlan2 prefixlen 64 scopeid 0x6
        inet6 2a02:8011:7003:1:fab1:56ff:feac:3276 prefixlen 64

$ dmesg
[...]
OpenBSD 6.0-current (GENERIC.MP) #2457: Thu Sep 15 18:42:44 MDT 2016
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8477306880 (8084MB)
avail mem = 8215908352 (7835MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec400 (90 entries)
bios0: vendor Dell Inc. version "A04" date 07/20/2014
bios0: Dell Inc. PowerEdge T20
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT SLIC LPIT SSDT SSDT SSDT HPET SSDT MCFG SSDT ASF! DMAR
acpi0: wakeup devices UAR1(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4) GLAN(S4) EHC1(S3) EHC2(S3) XHC_(S4) HDEF(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-1225 v3 @ 3.20GHz, 3392.56 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz, 3392.14 MHz
cpu1: 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz, 3392.14 MHz
cpu2: 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz, 3392.14 MHz
cpu3: 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 4 (RP03)
acpiprt4 at acpi0: bus -1 (PEG0)
acpiprt5 at acpi0: bus -1 (PEG1)
acpiprt6 at acpi0: bus -1 (PEG2)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
"INT3F0D" at acpi0 not configured
"PNP0501" at acpi0 not configured
acpibtn0 at acpi0: PWRB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 3392 MHz: speeds: 3201, 3200, 3000, 2900, 2700, 2500, 2300, 2200, 2000, 1800, 1700, 1500, 1300, 1100, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Xeon E3-1200 v3 Host" rev 0x06
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics P4600" rev 0x06
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1920x1200
error: [drm:pid0:intel_dp_set_idle_link_train] *ERROR* Timed out waiting for DP idle patterns
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
puc0 at pci0 dev 22 function 3 "Intel 8 Series KT" rev 0x04: ports: 1 com
com4 at puc0 port 0 apic 8 int 19: ns16550a, 16 byte fifo
com4: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 "Intel I217-LM" rev 0x04: msi, address f8:b1:56:ac:32:76
ehci0 at pci0 dev 26 function 0 "Intel 8 Series USB" rev 0x04: apic 8 int 16
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x04: msi
azalia0: codecs: Realtek/0x0280
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xd4
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel 8 Series PCIE" rev 0xd4: msi
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 "TI XIO2001 PCIE-PCI" rev 0x00
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 2 "Intel 8 Series PCIE" rev 0xd4: msi
pci4 at ppb3 bus 4
em1 at pci4 dev 0 function 0 "Intel 82572EI" rev 0x06: apic 8 int 18, address 00:1b:21:2d:f7:0c
ehci1 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x04: apic 8 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
pcib0 at pci0 dev 31 function 0 "Intel C226 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Samsung SSD 850, EMT0> SCSI3 0/direct fixed naa.5002538d4086e2f8
sd0: 476940MB, 512 bytes/sector, 976773168 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x04: apic 8 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x19: mcp98243
sdtemp1 at iic0 addr 0x1b: mcp98243
spdmem0 at iic0 addr 0x51: 4GB DDR3 SDRAM ECC PC3-12800 with thermal sensor
spdmem1 at iic0 addr 0x53: 4GB DDR3 SDRAM ECC PC3-12800 with thermal sensor
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.04 addr 2
uhub4 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.04 addr 2
uaudio0 at uhub4 port 4 configuration 1 interface 0 "EDIROL UA-1EX" rev 1.10/1.00 addr 3
uaudio0: audio rev 1.00, 0 mixer controls
audio1 at uaudio0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (55d00535300500ff.a) swap on sd0b dump on sd0b
[...]