Mail archive

Re: [alpine-devel] Vlan support ??

From: Nathan Angelacos <>
Date: Wed, 10 Dec 2008 09:24:44 -0500

Harry Lachanas wrote:
> Any Vlan support included ???

> if yes which package(s) I should apk_add ???

vconfig is in busybox these days; or you can apk_add vconfig
As far as setting up the vlans, I tend to use the
/etc/network/interfaces file for all configuration of interfaces
(bonding,vlans,bridges, etc)

Example vlan config:



-- the physical interface
auto eth0
iface eth0 inet manual
    up ifup eth0.300
    up ifup eth0.200
    down ifdown eth0 300
    down ifdown eth0 200

-- vlan 200
iface eth0.200 inet dhcp
    pre-up vconfig add eth0 200
    hostname alpine-vlan-200
    post-down vconfig rem $IFACE

-- vlan 300
iface eth0.300 inet static
   pre-up vconfig add eth0 300
   post-down vconfig rem $IFACE

That lets you manage the vlans with an ifup/ifdown:

ifup eth0 <- brings up all vlans
ifdown eth0.200 <- takes down 200, but leaves up the 300 vlan iface


Received on Wed Dec 10 2008 - 09:24:44 UTC