How does hostap want the vlans configured?

Jouni Malinen j at w1.fi
Wed Oct 28 01:52:45 PDT 2015


On Fri, Oct 23, 2015 at 04:42:20PM -0700, Frank Rizzo wrote:
> When I launch hostap, it creates the vlans listed in the config file:
> 
> 2       vlan2
> 3       vlan3
> 4	vlan4
> 
> And the bridges to support them.  But all without IP addresses.
> 
> I used some other tools (vconfig, ipconfig, etc.) to create the
> components BEFORE launching hostap, and it errors out.
> 
> So, my question, what is the CORRECT way to setup the vlans, and
> bridges so that hostap can open them, AND they have the correct IP
> addresses?

If this is for an interface that hostapd adds dynamically, the only
currently available option would be to have some external component
follow interface addition (or setting UP) events (e.g., from netlink
RTM_NEWLINK) and perform the needed configurations steps once the netdev
is up.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list