Friday, April 29, 2022

Re: vlan autoconf fails to conf at boot

On Fri, Apr 29, 2022 at 09:33:50PM -0700, George Morgan wrote:
> I created a hostname.vlan10 file which has a single line:
>
> inet autoconf parent vge0 vnetid 10 lladdr ...
>
> At boot the interface fails to configure but after boot I can login to the console and run "doas sh /etc/netstart" and the interface will configure.
>
> What am I doing wrong? Do I need to add something to rc.conf.local to force the parent to configure first? The parent (vge0) has a static IPv4 address.

The vlan has to be created and assigned parentage before autoconfiguration.
Craft your hostname.vlan10 file in two lines:

vnetid 10 parent vge0 addrr ...
inet autoconf

This information brought to my attention via Reddit:

https://www.reddit.com/r/openbsd/comments/ua0wqd/no_longer_able_to_connect_to_the_internet_after/i5z24fj/

No comments:

Post a Comment