vlan in slitaz linux

| September 25th, 2009

slitax linux busybox already has vconfig in it, which if you did’nt know ( i did’nt till an hour back), lets you setup vlan interfaces in your linux box, like sub-interfaces in your cisco router. so you too can make your slitaz laptop a router on a stick very easily with this. the command goes like this, as root type

vconfig add eth0 47

the above command adds a interface eth0.47 which will have encapsulation of 802.1q, if you get any errors when you give the command, most probably it will be that the vlan module has not been loaded, on slitaz we load it like this

modprobe 8021q

then you try again and you should not get any errors, after that all you have to do is

ifconfig eth0.47 up

and confirm that the interface is up with the ifconfig command.

there you have it, slitaz linux router on a stick.

notes: for linux to act as a router , you have type in the following command

echo 1 > /proc/sys/net/ipv4/ip_forward

also i add 8021q to the modules section in /etc/rcS.conf

A nice article on vlans in linux is available here, http://www.linuxjournal.com/article/7268

4 Responses to “vlan in slitaz linux”

  1. rod Says:

    Hi Deadwait

    Can you confirm this works with the dynataz CD? I can’t see to locate the 8021q module. If not, any chance you can rebuild dynataz on a later version of slitaz that has the above vlan support?

    Many thanks,
    Rod.

  2. deadwait Says:

    i will have rebuild dynataz with the latest cooking i think, i was about to do the same by december end, along with a cacti live cd. hope that’s not too late for you.

  3. rod Says:

    I might have a play and see if I can wrap my head around slitaz remastering. I know absolutely nothing about the slitaz distro so in all likelihood you’ll probably be finished by the time i am getting started.

    Huge thanks though for the dynataz v1.0 - I pxeboot it at the moment, which means virtually any PC i plug into my network can become another dynagen host.

    And I definitely look forward to dynataz 2.0!

  4. deadwait Says:

    rod, i would love it, if you could do that, time is a killer for me right now, and i would gladly host your iso on this website. also gns3-labs would too. also i fyou have a blog you could post the pxe boot method you use, so that others could use it, if you dont have one and dont want to start one, i could give author rights on this blog, if your interested i.e. thanx for your comments, feels good to know people still use dynataz

Leave a Reply