Paul de Weerd
2017-06-20 18:23:31 UTC
Synopsis: dhclient can't DHCPREQUEST using static route
Category: system
System : OpenBSD 6.1Category: system
Details : OpenBSD 6.1-current (GENERIC.MP) #76: Sun May 21 22:37:18 MDT 2017
***@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
When refreshing the DHCP lease from my ISP, dhclient first
DHCPREQUESTs the old IP address from the known DHCP server. This
errors out due to 'No route to host' (the DHCP server is not in the
same IP subnet as the lease), while a route is definitely present. It
subsequently doas a broadcast request and then gets a lease (from the
same DHCP server):
2017-06-20T18:09:57.349Z tuna dhclient[30480]: DHCPREQUEST on vlan4 to 10.10.0.33
2017-06-20T18:09:57.349Z tuna dhclient[30480]: send_packet: No route to host
2017-06-20T18:09:58.359Z tuna dhclient[30480]: DHCPREQUEST on vlan4 to 10.10.0.33
2017-06-20T18:09:58.359Z tuna dhclient[30480]: send_packet: No route to host
2017-06-20T18:09:59.369Z tuna dhclient[30480]: DHCPREQUEST on vlan4 to 255.255.255.255
2017-06-20T18:09:59.586Z tuna dhclient[30480]: DHCPACK from 10.10.0.33 (02:03:3b:04:90:94)
2017-06-20T18:09:59.586Z tuna dhclient[30480]: bound to 10.10.48.29 -- renewal in 1800 seconds.
[***@tuna] $ cat /var/db/dhclient.leases.vlan4
lease {
interface "vlan4";
fixed-address 10.10.48.29;
next-server 0.0.0.0;
option subnet-mask 255.255.248.0;
option routers 10.10.48.1;
option dhcp-lease-time 3600;
option dhcp-message-type 5;
option dhcp-server-identifier 10.10.0.33;
renew 2 2017/06/20 18:39:59 UTC;
rebind 2 2017/06/20 19:02:29 UTC;
expire 2 2017/06/20 19:09:59 UTC;
}
[***@tuna] $ route get 10.10.0.33
route to: 10.10.0.33
destination: 10.10.0.0
mask: 255.255.0.0
gateway: 10.10.48.1
interface: vlan4
if address: 10.10.48.29
priority: 8 (static)
flags: <UP,GATEWAY,DONE,STATIC>
use mtu expire
2321 0 0
[***@tuna] $ cat /etc/hostname.vlan4
vlan 4 vlandev em2
lladdr 00:60:e0:52:0f:9c
description "TV upstream"
dhcp
!/sbin/route add 185.6.48.0/26 10.10.48.1
!/sbin/route add 10.10.0.0/16 10.10.48.1
Start dhclient on an interface that gets a lease from a
non-local DHCP server (I think).
<how to correct or work around the problem, if known (multiple lines)>
dmesg:
OpenBSD 6.1-current (GENERIC.MP) #76: Sun May 21 22:37:18 MDT 2017
***@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2120876032 (2022MB)
avail mem = 2050867200 (1955MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xfc690 (23 entries)
bios0: vendor American Megatrends Inc. version "080015" date 09/15/2010
bios0: AXIOMTEK NA-320
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB GSCI SSDT
acpi0: wakeup devices P0P1(S4) USB0(S4) USB1(S4) USB2(S4) USB3(S4) EUSB(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) USB4(S4) USB5(S4) USBE(S4) GBEC(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) Atom(TM) CPU D510 @ 1.66GHz, 1662.71 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,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 512KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Atom(TM) CPU D510 @ 1.66GHz, 1662.50 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,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 512KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Atom(TM) CPU D510 @ 1.66GHz, 1662.50 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,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR
cpu2: 512KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU D510 @ 1.66GHz, 1662.50 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,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR
cpu3: 512KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P0P4)
acpiprt2 at acpi0: bus 3 (P0P5)
acpiprt3 at acpi0: bus 4 (P0P6)
acpiprt4 at acpi0: bus 5 (P0P7)
acpiprt5 at acpi0: bus 6 (P0P8)
acpiprt6 at acpi0: bus 7 (P0P9)
acpicpu0 at acpi0: C1(***@1 mwait.1)
acpicpu1 at acpi0: C1(***@1 mwait.1)
acpicpu2 at acpi0: C1(@1 halt!)
acpicpu3 at acpi0: C1(@1 halt!)
"PNP0501" at acpi0 not configured
"PNP0501" at acpi0 not configured
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
inteldrm0 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0: msi
Raw EDID:
00 00 00 00 00 00 00 00 01 01 01 01 01 01 01 01
03 03 03 03 03 03 03 03 07 07 07 07 07 07 07 07
0f 0f 0f 0f 0f 0f 0f 0f 1f 1f 1f 1f 1f 1f 1f 1f
3f 3f 3f 3f 3f 3f 3f 3f 7f 7f 7f 7f 7f 7f 7f 7f
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Raw EDID:
fc fc fc fc fc fc fc fc f9 f9 f9 f9 f9 f9 f9 f9
f3 f3 f3 f3 f3 f3 f3 f3 e7 e7 e7 e7 e7 e7 e7 e7
cf cf cf cf cf cf cf cf 9f 9f 9f 9f 9f 9f 9f 9f
3f 3f 3f 3f 3f 3f 3f 3f 7f 7f 7f 7f 7f 7f 7f 7f
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Raw EDID:
fc fc fc fc fc fc fc fc f9 f9 f9 f9 f9 f9 f9 f9
f3 f3 f3 f3 f3 f3 f3 f3 e7 e7 e7 e7 e7 e7 e7 e7
cf cf cf cf cf cf cf cf 9f 9f 9f 9f 9f 9f 9f 9f
3f 3f 3f 3f 3f 3f 3f 3f 7f 7f 7f 7f 7f 7f 7f 7f
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Raw EDID:
fc fc fc fc fc fc fc fc f9 f9 f9 f9 f9 f9 f9 f9
f3 f3 f3 f3 f3 f3 f3 f3 e7 e7 e7 e7 e7 e7 e7 e7
cf cf cf cf cf cf cf cf 9f 9f 9f 9f 9f 9f 9f 9f
3f 3f 3f 3f 3f 3f 3f 3f 7f 7f 7f 7f 7f 7f 7f 7f
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
drm:pid0:drm_do_get_edid *WARNING* VGA-1: EDID block 0 invalid.
inteldrm0: 1024x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x04: msi
pci1 at ppb0 bus 2
em0 at pci1 dev 0 function 0 "Intel 82583V" rev 0x00: msi, address 00:60:e0:52:0f:96
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x04: msi
pci2 at ppb1 bus 3
em1 at pci2 dev 0 function 0 "Intel 82583V" rev 0x00: msi, address 00:60:e0:52:0f:97
ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x04: msi
pci3 at ppb2 bus 4
em2 at pci3 dev 0 function 0 "Intel 82583V" rev 0x00: msi, address 00:60:e0:52:0f:98
ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x04: msi
pci4 at ppb3 bus 5
em3 at pci4 dev 0 function 0 "Intel 82583V" rev 0x00: msi, address 00:60:e0:52:0f:99
ppb4 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x04: msi
pci5 at ppb4 bus 6
em4 at pci5 dev 0 function 0 "Intel 82583V" rev 0x00: msi, address 00:60:e0:52:0f:9a
ppb5 at pci0 dev 28 function 5 "Intel 82801H PCIE" rev 0x04: msi
pci6 at ppb5 bus 7
em5 at pci6 dev 0 function 0 "Intel 82583V" rev 0x00: msi, address 00:60:e0:52:0f:9b
uhci0 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x04: apic 4 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x04: apic 4 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x04: apic 4 int 18
ehci0 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x04: apic 4 int 23
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
ppb6 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf4
pci7 at ppb6 bus 1
pcib0 at pci0 dev 31 function 0 "Intel 82801HBM LPC" rev 0x04
pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x04: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 "Intel 82801HBM AHCI" rev 0x04: msi, AHCI 1.1
ahci0: port 0: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, M4-CT256M4SSD2, 070H> SCSI3 0/direct fixed naa.500a07510927b253
sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x04: apic 4 int 17
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: 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
wbsio0 at isa0 port 0x2e/2: W83627DHG-P rev 0x73
lm1 at wbsio0 port 0xa00/8: W83627DHG
umass0 at uhub0 port 1 configuration 1 interface 0 "Western Digital My Passport 259D" rev 2.10/10.12 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <WD, My Passport 259D, 1012> SCSI4 0/direct fixed
sd1: 3815415MB, 512 bytes/sector, 7813969920 sectors
ses0 at scsibus2 targ 1 lun 1: <WD, SES Device, 1012> SCSI4 13/enclosure services fixed
ses0: unable to read enclosure configuration
uhub4 at uhub0 port 2 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/85.32 addr 3
uhidev0 at uhub4 port 1 configuration 1 interface 0 "RDing TEMPERHUM1V1.2" rev 2.00/0.01 addr 4
uhidev0: iclass 3/1, 1 report id
ukbd0 at uhidev0 reportid 1: 8 variable keys, 5 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub4 port 1 configuration 1 interface 1 "RDing TEMPERHUM1V1.2" rev 2.00/0.01 addr 4
uhidev1: iclass 3/1
ugold0 at uhidev1
uftdi0 at uhub4 port 2 configuration 1 interface 0 "FTDI SYNLEAF - FT232R USB UART" rev 2.00/6.00 addr 5
ucom0 at uftdi0 portno 1
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (86b81881bbaa38a1.a) swap on sd0b dump on sd0b
ugold0: 2 sensors type si7006 (temperature and humidity)
usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 addr 2: high speed, power 500 mA, config 1, My Passport 259D(0x259d), Western Digital(0x1058), rev 10.12, iSerialNumber 57583231443736503041334E
port 2 addr 3: high speed, self powered, config 1, USB2.0 Hub(0x0608), Genesys Logic(0x05e3), rev 85.32
port 1 addr 4: low speed, power 100 mA, config 1, TEMPERHUM1V1.2(0x7402), RDing(0x0c45), rev 0.01
port 2 addr 5: full speed, power 90 mA, config 1, SYNLEAF - FT232R USB UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A7XOCBSM
port 3 powered
port 4 powered
port 3 powered
port 4 powered
port 5 powered
port 6 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
--
http://www.weirdnet.nl/
++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]http://www.weirdnet.nl/