dhcpcd-discuss

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

Roy Marples

Mon Mar 19 12:04:35 2012

Hi

On 18/03/2012 11:15, Sergiu Copacinschi wrote:
We have the following configuration: dhcpcd with FreeBSD using vlans
(connected to switch with trunk port):

When we try to obtain DHCP lease through vlan interface we get:
# /sbin/dhcpcd -d -C resolv.conf -C mtu -G -C ntpd.conf -L em1.1424
dhcpcd[94893]: version 5.5.4 starting
dhcpcd[94893]: Kernel is not configured to accept IPv6 RAs
dhcpcd[94893]: em1.1424: unknown hardware family

and Dhcpdump says:
# dhcpdump -i em1.1424
 TIME: 2012-03-18 13:01:40.009
IP: 0.0.0.0 (00:0a:e4:80:a4:39) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
 OP: 1 (BOOTPREQUEST)
 HTYPE: 0 (wrong specified)
 HLEN: 0
 HOPS: 0

Dhcp snooping is enabled on the switch, so dhcp lease wont work (same
error appear).

So question is:
Is there any method to override this warning (unknown hardware family)
or to set it manually by the dhcpcd option.
Maybe some OS setting need to be tunned.

General question would be:
Is dhcpcd working with subinterfaces (vlans) well on xBSD systems ?

# dhcpcd --version
dhcpcd 5.5.4
Copyright (c) 2006-2012 Roy Marples

# uname -a
FreeBSD stats 9.0-RELEASE FreeBSD 9.0-RELEASE #2: Wed Mar 14 12:51:18
EET 2012 sc@stats:/usr/obj/usr/src/sys/MYKERN amd64

That seems to be an issue with FreeBSD-9.
Using FreeBSD-7.1 dhcpcd-5.5.4 does not complain about this.
It seems that the ether address on the interface is not IFT_ETHER but something else. Try the attached patch which should sow the interface type FreeBSD-9 now says it is.

Thanks

Roy

Attachment: dhcpcd-freebsd9-vlan.diff
Description: Binary data


References:
dhcpcd using FreBSD vlan (subinterface) says: unknown hardware familySergiu Copacinschi
Archive administrator: postmaster@marples.name