Talk:VLAN: Difference between revisions
m (Unsigned comment attribution.) |
m (Reply to Nailko's comment.) |
||
Line 3: | Line 3: | ||
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. | 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 | <pre>auto vlan8 | ||
iface vlan8 | iface vlan8 | ||
address 192.168.0.2/24 | address 192.168.0.2/24 | ||
gateway 192.168.0.1 | gateway 192.168.0.1 | ||
vlan-raw-device eth0 | vlan-raw-device eth0</pre> | ||
Has anyone tested this recently ? | Has anyone tested this recently ? | ||
<small><span class="autosigned">— Preceding [[Help:Signature|unsigned]] comment added by [[User:Nailko|Nailko]] ([[User talk:Nailko|{{int:talkpagelinktext}}]] • [[Special:Contributions/Nailko|{{int:contribslink}}]]) 10:02, 29 January 2024</span></small> | <small><span class="autosigned">— Preceding [[Help:Signature|unsigned]] comment added by [[User:Nailko|Nailko]] ([[User talk:Nailko|{{int:talkpagelinktext}}]] • [[Special:Contributions/Nailko|{{int:contribslink}}]]) 10:02, 29 January 2024</span></small> | ||
: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 {{ic|address}} and {{ic|netmask}} 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: | |||
<pre>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</pre> | |||
: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! | |||
:–[[User:zcrayfish|zcrayfish]] <small>([[User talk:zcrayfish|talk]]•[[Special:Contributions/zcrayfish|contribs]]•[[Special:EmailUser/zcrayfish|send email]])</small> 19:07, 29 January 2024 (UTC) |
Latest revision as of 19:07, 29 January 2024
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)