dhcpcd using FreBSD vlan (subinterface) says: unknown hardware family
Sergiu Copacinschi
Sun Mar 18 11:09:34 2012Hi, We have the following configuration: dhcpcd with FreeBSD using vlans (connected to switch with trunk port): em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether 00:0a:e4:80:a4:39 inet6 fe80::20a:e4ff:fe80:b539%em1 prefixlen 64 scopeid 0x2 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (100baseTX <full-duplex>) status: active em1.1424: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=3<RXCSUM,TXCSUM> ether 00:0a:e4:80:a4:39 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 1424 parent interface: em1 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 dhcpcd[94893]: em1.1424: using hwaddr 00:0a:e4:80:b5:39 dhcpcd[94893]: em1.1424: executing `/libexec/dhcpcd-run-hooks', reason PREINIT dhcpcd[94893]: em1.1424: executing `/libexec/dhcpcd-run-hooks', reason CARRIER dhcpcd[94893]: em1.1424: broadcasting for a lease dhcpcd[94893]: em1.1424: sending DISCOVER (xid 0x4af2a19c), next in 3.87 seconds dhcpcd[94893]: em1.1424: sending DISCOVER (xid 0x4af2a19c), next in 7.86 seconds 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
Archive administrator: postmaster@marples.name