This is the old SliTaz forum - Please use the main forum.slitaz.org

Virtual Interfaces in SliTaz
  • adeeladeel July 2010
    Is there any way to create virtual interfaces in SliTaz?
    I used:

    vconfig add eth0 0

    But all I got was an error:

    vconfig: can't open '/proc/net/vlan/config' : No such file or directory

    I installed ethtool and tried ifconfig:

    ifconfig eth0:0 192.168.2.1 netmask 255.255.255.0 up

    Any kind of help will be highly appreciated.
    Thank You.
  • deadwaitdeadwait January 2011
    seems to be a old query, but i had done the same and tested, copying the same stuff from my blog
    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


  • FrancisFrancis February 2011
    @deadwait
    Cheers mate.

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

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

    Just what i needed :D


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social