That did it... thanks! On Wed, Apr 29, 2020 at 10:42 PM Sebastian Benoit <benoit-li...@fb12.de> wrote:
> Lars Bonnesen(lars.bonne...@gmail.com) on 2020.04.29 21:58:27 +0200: > > In earlier obsd versions I have been having success with this in > > hostname.vlan703 > > inet 172.18.11.9 255.255.255.252 NONE vlandev em5 description VLAN703 > > > > On an obsd 6.6, I use the vmx device, but the syntax: > > inet 172.18.11.9 255.255.255.252 NONE vlandev vmx2 description VLAN703 > does > > not work as expected. If I do a tcpdump, I can find the packages reaching > > vmx2, but they are never passed on to vlan703 > > > > How to to if I have configured a trunk on a switch, I want to configure > say > > VLAN id 703 on a vmx device? > > Between OpenBSD 6.1 and 6.2 the syntax for configuring VLAN interfaces was > changed. > > You now have to use the 'vnetid' and 'parent' options, as well as 'up'. > > # cat /etc/hostname.vlan7 > vnetid 7 parent em0 > up > lladdr random > # ifconfig vlan7 > vlan7: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > lladdr 60:e8:d7:0d:10:6d > index 7 priority 0 llprio 3 > encap: vnetid 7 parent: em0 > groups: vlan > status: active > >