Talk:VLAN
Hello,
Using the following configuration Alpine 3.19.0 kernel 6.6.13-0-lts does not seem to work depsite the vlan package being present.
auto vlan8 iface vlan8 address 192.168.0.2/24 gateway 192.168.0.1 vlan-raw-device eth0
Has anyone tested this recently ?
— Preceding unsigned comment added by Nailko (talk • contribs) 10:02, 29 January 2024
- Hi there, looks like the very old examples in the article are using the wrong syntax for busybox's ifup... (the vlan package doesn't use ifupdown-ng)... The
address
andnetmask
lines cannot be combined. Also good practice to explicitly specify if the interface is DHCP or static... See if something like this will work for you:
auto vlan8 iface vlan8 inet static address 192.168.0.2 netmask 255.255.255.0 gateway 192.168.0.1 vlan-raw-device eth0
- My testing only consisted of seeing if the networking service could be bought up successfully, I have no idea if the VLAN tagging is working or not.
- BTW, for clarity's sake, I set preformatting on for the config in your post to make it easier to see the differences, hope you don't mind!
- –zcrayfish (talk•contribs•send email) 19:07, 29 January 2024 (UTC)