Find the answer to your Linux question:
Results 1 to 3 of 3
As the title says i'm curios about usage and if anybody used QinQ to strip both vlan tags and succesfully send/receive trafic. I already tested dot1q on debian installing by ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2012
    Posts
    2

    QinQ/Vlan stacking on linux


    As the title says i'm curios about usage and if anybody used QinQ to strip both vlan tags and succesfully send/receive trafic.
    I already tested dot1q on debian installing by loading the dot1q module with the kernel on boot:

    wiki.ubuntu.com/vlan

    Since i'm not able to test at the moment i'll guess mtu of 1504 and a config like this will strip both vlans(vlan10):

    auto eth1.10.10
    iface eth1.10.10 inet static
    address 10.0.0.1
    netmask 255.255.255.0
    vlan-raw-device eth1

    Any thoughts?

  2. #2
    Just Joined!
    Join Date
    Aug 2013
    Posts
    1

    QinQ/Vlan stacking on linux

    Sorry for my bad english. Works for me. Tested in Debian 7 (wheezy). I have one phisical interface (eth0) with two (sub)interfaces:

    • eth0.100 --> vlan 100.
    • eth0.1028.106 --> stacked vlans: 1028 (outside) / 106 (inside).


    #--- /etc/modules ---
    Code:
    8021q

    #--- /etc/network/interfaces ---
    Code:
    #--- The loopback network interface ---
    auto lo
    iface lo inet loopback
    
    #--- VLANS ---
    auto eth0.100
    auto eth0.1028
    auto eth0.1028.106
    
    #--- VLAN 100 - INTERNET ---
    iface eth0.100 inet static
        address 192.168.0.9
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        dns-nameservers 192.168.0.2 192.168.0.3
        mtu 1500
        up route add -net 10.20.0.0 netmask 255.255.0.0 gw 192.168.0.4
    
    #--- VLAN 1028 - DATA ---
    iface eth0.1028 inet manual
        mtu 1500
        up /sbin/vconfig add eth0.1028 106
    
    #--- VLAN 1028/106 - DATA  ---
    iface eth0.1028.106 inet static
        address 172.16.0.88
        netmask 255.255.255.0
        network 172.16.0.0
        broadcast 172.16.0.255
        mtu 1500
        pre-up /sbin/ifconfig eth0.1028 up
        up route add -net 10.30.0.0 netmask 255.255.0.0 gw 172.16.0.1
    The workaround is the creation of the interface eth0.1028 in manual mode with the vconfig command in the up option.

  3. #3
    Just Joined!
    Join Date
    Sep 2012
    Posts
    2
    Thx for the reply , was the workaround really needed on the eth0.1028?
    You tried puting static/static on both so they will be up at init?
    or you need to specificaly bring it up when eth0.1028 is up?
    i want to try this:

    Code:
    iface eth0.1028.106 inet manual
        address 172.16.0.88
        netmask 255.255.255.0
        network 172.16.0.0
    From my experience if i bring the ethx.xxx up , it won' t need any declaration for for ethx , so naturally i'm wondering if i can do the same for ethx.xxx.xxx , without mentioning the ethx or the eth.xx , just the inner vlan.

    Thx again for your time.

    PS: I didn't see anything about mtu on the main interface- eth0 in your case?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •