Mail archive
alpine-devel

Re: [alpine-devel] Vlan support ??

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

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

absolutely
>
> 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:


/etc/modules
  8021q


/etc/network/interfaces

-- 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
   address 192.168.1.1
   netmask 255.255.255.0
   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


HTH



---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Wed Dec 10 2008 - 09:24:44 UTC