dhcpcd-discuss

Re: Re: dhcpcd using FreBSD vlan (subinterface) says: unknown hardware family

Roy Marples

Mon Mar 19 15:47:48 2012

On 19/03/2012 13:19, Sergiu Copacinschi wrote:
After aplying patch, following appear:
# /sbin/dhcpcd  -d -C resolv.conf -C mtu -G -C ntpd.conf -L em1.1424
dhcpcd[72309]: version 5.5.4 starting
dhcpcd[72309]: Kernel is not configured to accept IPv6 RAs
dhcpcd[72309]: em1.1424: unknown interface type 135
dhcpcd[72309]: em1.1424: unknown hardware family
dhcpcd[72309]: em1.1424: using hwaddr 00:0a:e4:80:b5:39
dhcpcd[72309]: em1.1424: executing `/libexec/dhcpcd-run-hooks',
reason PREINIT
dhcpcd[72309]: em1.1424: executing `/libexec/dhcpcd-run-hooks',
reason CARRIER
dhcpcd[72309]: em1.1424: broadcasting for a lease
dhcpcd[72309]: em1.1424: sending DISCOVER (xid 0xc1d60c3e), next in
4.98 seconds
dhcpcd[72309]: em1.1424: sending DISCOVER (xid 0xc1d60c3e), next in
7.48 seconds

OK, the attached patch should fix this.

Meanwhile I tested last ISC-DHCP client with the same configuration
and it worked correctly :
/usr/local/sbin/dhclient -v em1.1424  
Internet Systems Consortium DHCP Client 4.2.3-P2
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on BPF/em1.1424/00:0a:e4:80:a4:39
Sending on   BPF/em1.1424/00:0a:e4:80:a4:39
Sending on   Socket/fallback
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on em1.1424 to 255.255.255.255 port 67 interval 5
DHCPOFFER from x.x.238.1
DHCPREQUEST on em1.1424 to 255.255.255.255 port 67
DHCPACK from x.x.238.1
dhclient: New Network Number: x.x.238.0
dhclient: New Broadcast Address: x.x.238.255
dhclient: New IP Address (em1.1424): x.x.238.3
dhclient: New Subnet Mask (em1.1424): 255.255.255.0
dhclient: New Broadcast Address (em1.1424): x.x.238.255
bound to x.x.238.3 -- renewal in 1702 seconds.

IIRC, dhclient assumes ethernet whereas dhcpcd does not.
It now warns and falls back to ethernet with the attached patch.

Thanks

Roy

Attachment: dhcpcd-iftypes.diff
Description: Binary data


Follow-Ups:
Re: Re: dhcpcd using FreBSD vlan (subinterface) says: unknown hardware familyRoy Marples
References:
Re: dhcpcd using FreBSD vlan (subinterface) says: unknown hardware familySergiu Copacinschi
Archive administrator: postmaster@marples.name