Table: SAP lookup matching order for QinQ ports describes the SAP lookup matching order that is applied when connection-profile-vlan is used in QinQ ports.
Incoming frame | System/port settings = new-qinq-untagged-sap | |||||||
---|---|---|---|---|---|---|---|---|
qtag1.qtag2 | SAP lookup precedence order (assumption: X and Y are defined in CP ranges) |
|||||||
:X.Y | :X.0 | :X.CP | :CP.* | :X.* | :0.* | :*.null | :*.* | |
x.y |
1st |
1st |
2nd |
2nd |
3rd |
|||
x.0 |
1st |
2nd |
2nd |
3rd |
||||
0.y |
1st |
2nd |
||||||
0.0 |
1st |
2nd |
||||||
x |
1st |
2nd |
2nd |
3rd |
4th |
|||
0 |
1st |
2nd |
3rd |
|||||
<untagged> |
1st |
2nd |
3rd |
The following considerations apply when connection profile VLAN (CP VLAN) is used in QinQ ports:
A CP can be defined for inner or outer tags but not both at the same time; for example, ‟:X.CP” and ‟:CP.*” are possible, but not ‟:CP.CP”.
It is important to note that ‟:CP:Y” is not allowed; for example, if a CP is defined at the outer VID, the inner VID can only be a ‟*” or a ‟0”.
‟:0.CP” SAPs are not allowed; if the outer VID is 0, the inner VID cannot be a connection-profile-vlan value.
A CP cannot contain a VID that is associated with an explicitly defined inner or outer tag in a specific port. For example, assuming that X and Y are tags defined in ‟CP”, a specific port can be defined with ":X.CP" or ":Y.CP", but not with ":X.Y" and ":X.CP" or ":CP.*" and "X.*" in the same port.
The following combinations are allowed:
:CP.0 (matches frames with outer tags contained in CP and inner tags 0 or null)
:CP.* (matches frames with outer tags contained in CP and any inner tags)
In the case where a VLAN tag combination matches different SAPs, the highest priority SAP is picked, irrespective of its oper-status, as long as the SAP is still created. Therefore, if the SAP is down, the frames do not go to a different SAP. For example, suppose that ingress frames with VIDs 10.25 are classified as part of sap 10.cp-1. Only when sap 10.cp-1 is removed from the configuration do the frames with VIDs 10.25 go to sap cp-1.*.
# cp-1 includes vlan ids (10-100).
sap 1/1/4:cp-1.* create
exit
sap 1/1/4:10.cp-1 create
exit