[VLAN] Problems with stacked VLAN's and PPPoE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gerald,

Have a look at the patch I sent to support "Q in Q":

	http://www.candelatech.com/pipermail/vlan/2005-July/000451.html

In fact, you should read the whole thread as it raised certain issues
that you need to be aware of before attempting Q in Q.

Alex

On Wed, 8 Mar 2006 11:15:09 +0100
<linuxvlan@xxxxxxx> wrote:

> Hi all,
> we face a problem when using a stacked VLAN with PPPoE, the inner
> VLAN tag is always missing in the packets sent.
> Playing with the REORDER_HDR flag does not help. Also the problem
> neither depends on the Linux kernel version nor does it
> depened on the ethernet hardware. Neverless I append the complete
> information here.
> 
> Any help is appreciated.
> 
> Best Regards,
> Gerald Klix
> 
> Kernel version:
> Linux vesuv6 2.4.20-4GB #1 Mon Mar 17 17:54:44 UTC 2003 i686 unknown
> unknown GNU/Linux
> 
> /proc/net/vlan/config:
> VLAN Dev name    | VLAN ID
> Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
> eth0.11        | 11  | eth0
> eth0.11.6      | 6  | eth0.11
> eth0.11.42     | 42  | eth0.11
> 
> /proc/net/vlan/eth0.11:
> eth0.11  VID: 11         REORDER_HDR: 1  dev->priv_flags: 1
>          total frames received:            0
>           total bytes received:            0
>       Broadcast/Multicast Rcvd:            0
> 
>       total frames transmitted:          205
>        total bytes transmitted:        42395
>             total headroom inc:            0
>            total encap on xmit:            0
> Device: eth0
> INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
> EGRESSS priority Mappings:
> 
> /proc/net/vlan/eth0.11.6:
> eth0.11.6  VID: 6        REORDER_HDR: 0  dev->priv_flags: 1
>          total frames received:            0
>           total bytes received:            0
>       Broadcast/Multicast Rcvd:            0
> 
>       total frames transmitted:          193
>        total bytes transmitted:        41403
>             total headroom inc:            0
>            total encap on xmit:            9
> Device: eth0.11
> INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
> EGRESSS priority Mappings:
> 
> lspci output:
> 00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host
> bridge(rev 03)
> 00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP
> bridge (rev 03)
> 00:04.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
> 00:04.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
> 00:04.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
> 00:04.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
> 00:09.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M
> [Tornado] (rev 74)
> 00:0a.0 Network controller: AVM Audiovisuelles MKTG & Computer
> System GmbH Fritz!PCI v2.0 ISDN (rev 01)
> 01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400
> AGP (rev 04)
> 
> Lsmod output:
> Module                  Size  Used by    Tainted: P
> af_packet              12392   0 (autoclean)
> ppp_async               6528   0 (autoclean)
> ppp_generic            19644   0 (autoclean) [ppp_async]
> 8021q                  12808   3
> videodev                5600   0 (autoclean)
> isa-pnp                29672   0 (unused)
> ipv6                  134388  -1 (autoclean)
> mousedev                4148   0 (unused)
> joydev                  5632   0 (unused)
> evdev                   4032   0 (unused)
> input                   3104   0 [mousedev joydev evdev]
> usb-uhci               22096   0 (unused)
> usbcore                57836   1 [usb-uhci]
> raw1394                14516   0 (unused)
> ieee1394               32880   0 [raw1394]
> 3c59x                  26064   1
> capidrv                25268   2
> isdn                  125356   2 [capidrv]
> slhc                    4624   0 [ppp_generic isdn]
> capi                   17440   0
> capifs                  3472   1 [capi]
> fcpci                 540640   2
> kernelcapi             29536   4 [capidrv capi fcpci]
> capiutil               22208   0 [capidrv kernelcapi]
> lvm-mod                65412   0 (autoclean)
> reiserfs              200532   1
> 
> Start of ppp configuration:
> # Nachladen des PPPoE-Plugins - Der Pfad muss eventuell angepasst
> # werden! first line Kernel mode
> # second line user mode, but we can simply call 'pppd pty
> # /usr/sbin/pppoe'
> to get into user mode
> 
> #t#pty /usr/sbin/pppoe
> pty "/usr/sbin/pppoe -I eth0.11.6"
> 
> # Dial On Demand
> #demand
> 
> Etherreal exported dump of PPPoE packtes captured with tcpdump:
> No.     Time        Source                Destination          
> Protocol Info
>      65 9.333128    10.32.45.229          Broadcast            
>      PPPoED
> Active Discovery Initiation (PADI)
> 
> Frame 65 (28 bytes on wire, 28 bytes captured)
>     Arrival Time: Mar  8, 2006 10:41:49.001867000
>     Time delta from previous packet: 9.333128000 seconds
>     Time since reference or first frame: 9.333128000 seconds
>     Frame Number: 65
>     Packet Length: 28 bytes
>     Capture Length: 28 bytes
>     Protocols in frame: eth:vlan:pppoed
> Ethernet II, Src: 10.32.45.229 (00:50:da:47:53:9a), Dst: Broadcast
> (ff:ff:ff:ff:ff:ff)
>     Destination: Broadcast (ff:ff:ff:ff:ff:ff)
>     Source: 10.32.45.229 (00:50:da:47:53:9a)
>     Type: 802.1Q Virtual LAN (0x8100)
> 802.1Q Virtual LAN
>     000. .... .... .... = Priority: 0
>     ...0 .... .... .... = CFI: 0
>     .... 0000 0000 0110 = ID: 6
>     Type: PPPoE Discovery (0x8863)
> PPP-over-Ethernet Discovery
>     0001 .... = Version: 1
>     .... 0001 = Type: 1
>     Code: Active Discovery Initiation (PADI) (0x09)
>     Session ID: 0x0000
>     Payload Length: 4
> PPPoE Tags
>     Service-Name: 
> 
> 0000  ff ff ff ff ff ff 00 50 da 47 53 9a 81 00 00 06  
> .......P.GS..... 0010  88 63 11 09 00 00 00 04 01 01 00 00          
>     .c..........
> 
> No.     Time        Source                Destination          
> Protocol Info
>      89 14.350195   10.32.45.229          Broadcast            
>      PPPoED
> Active Discovery Initiation (PADI)
> 
> Frame 89 (28 bytes on wire, 28 bytes captured)
>     Arrival Time: Mar  8, 2006 10:41:54.018934000
>     Time delta from previous packet: 5.017067000 seconds
>     Time since reference or first frame: 14.350195000 seconds
>     Frame Number: 89
>     Packet Length: 28 bytes
>     Capture Length: 28 bytes
>     Protocols in frame: eth:vlan:pppoed
> Ethernet II, Src: 10.32.45.229 (00:50:da:47:53:9a), Dst: Broadcast
> (ff:ff:ff:ff:ff:ff)
>     Destination: Broadcast (ff:ff:ff:ff:ff:ff)
>     Source: 10.32.45.229 (00:50:da:47:53:9a)
>     Type: 802.1Q Virtual LAN (0x8100)
> 802.1Q Virtual LAN
>     000. .... .... .... = Priority: 0
>     ...0 .... .... .... = CFI: 0
>     .... 0000 0000 0110 = ID: 6
>     Type: PPPoE Discovery (0x8863)
> PPP-over-Ethernet Discovery
>     0001 .... = Version: 1
>     .... 0001 = Type: 1
>     Code: Active Discovery Initiation (PADI) (0x09)
>     Session ID: 0x0000
>     Payload Length: 4
> PPPoE Tags
>     Service-Name: 
> 
> 0000  ff ff ff ff ff ff 00 50 da 47 53 9a 81 00 00 06  
> .......P.GS..... 0010  88 63 11 09 00 00 00 04 01 01 00 00          
>     .c..........
> 
> No.     Time        Source                Destination          
> Protocol Info
>     130 24.360294   10.32.45.229          Broadcast            
>     PPPoED
> Active Discovery Initiation (PADI)
> 
> Frame 130 (28 bytes on wire, 28 bytes captured)
>     Arrival Time: Mar  8, 2006 10:42:04.029033000
>     Time delta from previous packet: 10.010099000 seconds
>     Time since reference or first frame: 24.360294000 seconds
>     Frame Number: 130
>     Packet Length: 28 bytes
>     Capture Length: 28 bytes
>     Protocols in frame: eth:vlan:pppoed
> Ethernet II, Src: 10.32.45.229 (00:50:da:47:53:9a), Dst: Broadcast
> (ff:ff:ff:ff:ff:ff)
>     Destination: Broadcast (ff:ff:ff:ff:ff:ff)
>     Source: 10.32.45.229 (00:50:da:47:53:9a)
>     Type: 802.1Q Virtual LAN (0x8100)
> 802.1Q Virtual LAN
>     000. .... .... .... = Priority: 0
>     ...0 .... .... .... = CFI: 0
>     .... 0000 0000 0110 = ID: 6
>     Type: PPPoE Discovery (0x8863)
> PPP-over-Ethernet Discovery
>     0001 .... = Version: 1
>     .... 0001 = Type: 1
>     Code: Active Discovery Initiation (PADI) (0x09)
>     Session ID: 0x0000
>     Payload Length: 4
> PPPoE Tags
>     Service-Name: 
> 
> 0000  ff ff ff ff ff ff 00 50 da 47 53 9a 81 00 00 06  
> .......P.GS..... 0010  88 63 11 09 00 00 00 04 01 01 00 00          
>     .c..........
> 
> 
> _______________________________________________
> Vlan mailing list
> Vlan@xxxxxxxxxxxxxxx
> http://www.lanforge.com/mailman/listinfo/vlan

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux