Moving from PPPoE to QinQ

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
  • (Edited)
hi guys, i have a link i want to configure qing. now on this link there is a PPPoe connection and other vlans for other services through the same port. how can i use Qinq.
Photo of holacia button

holacia button

  • 70 Points

Posted 3 years ago

  • 0
  • 1
Photo of Daniel Flouret

Daniel Flouret, Employee

  • 7,470 Points 5k badge 2x thumb

You don't mention if your switches are running EXOS or EOS. The following commands correspond to EXOS. If it's EOS I'll let somebody else answer as I'm not all that familiar with it.

In EXOS QinQ is called a VMAN (Virtual Metropolitan Area Network) and you can think of it as a Service Provider VLAN, whose objective is to transport customer traffic transparently, preserving its VLAN tags (which are called Customer VLAN IDs or CVIDs).

Like a VLAN, a VMAN has tagged and untagged ports. Network or tagged ports are called Provider Network Ports or PNP. Access or untagged ports are called Customer Network Ports or CNP. There's a second type of access port, called a Customer Edge Port, or CEP. I'll talk later about CEPs.

Anything that enters the VMAN through a CNP  (untagged port) gets tagged with the VMAN ID (which is called the SVID or Service VLAN ID), and transmitted through PNPs to other switches. Upon reaching its destination and exiting through another CNP (untagged, again) the SVID is removed, leaving the traffic exactly as it entered the VMAN.

The commands are very similar to VLAN commands but replacing the vlan keyword with vman:
create vman vman_name 
configure vman vman_name tag vman_tag
configure vman vman_name add ports port_list {untagged | tagged}
There are other commands that let you do things not available for vlans. A CNP will take all traffic and encapsulate inside a single VMAN. But, what if you want certain CVIDs to go to a VMAN and othres to another one? That port is the Customer Edge Port, or CEP, we mentioned earlier

CEP  supports multiple VMANs and is configured to map certain CVIDs to a certain VMAN with the following command:
configure vman  vman_name add ports port_list cep cvid first_cvid - last_cvid {untagged | tagged}
There are other commands that let you translate CVIDs, add a CVID to untagged traffic, or filter CVIDs so only certain CVIDs in a VMAN exit through a CNP or CEP, but you probably don't need that. In any case it is clearly explained in the EXOS User Guide.

An important thing to remember is that, since VMANs add a SVID to the frames, you must enable Jumbo Frames in all the ports involved, using the command:
enable jumbo-frame ports port_list
Now, what is not clear is what you are trying to accomplish.

Are you trying to encapsulate PPPoE and VLANs inside a VMAN to transport them somewhere else?
Are you trying to establish a VMAN that will share a port with PPPoE and VLANs?

All those combinations are supported, but only in certain devices (see table). Also, the CEP functionality  is available starting with EXOS v12.6.