You can also do Q-in-Q using Enterprise Style, like
set interfaces ge-1/0/8 flexible-vlan-tagging
set interfaces ge-1/0/8 native-vlan-id 1
set interfaces ge-1/0/8 input-native-vlan-push disable
set interfaces ge-1/0/8 mtu 9216
set interfaces ge-1/0/8 encapsulation extended-vlan-bridge
set interfaces ge-1/0/8 unit 0 vlan-id-list 1-4094
set interfaces ge-1/0/8 unit 0 input-vlan-map push
set interfaces ge-1/0/8 unit 0 input-vlan-map vlan-id 206
set interfaces ge-1/0/8 unit 0 output-vlan-map pop
set interfaces ge-1/0/8 unit 0 family ethernet-switching vlan members qinqvlan
set vlans qinqvlan vlan-id 206
------------------------------
PER GRANATH
------------------------------
Original Message:
Sent: 07-16-2024 03:58
From: Dmitriy
Subject: Question on Q-in-Q on EX
Hi,
My provider-style configuration on EX.
EX4300-1> show configuration interfaces ge-1/0/8
description "UNI: Customer1";
flexible-vlan-tagging;
native-vlan-id 206;
encapsulation extended-vlan-bridge;
unit 0 {
vlan-id 206;
}
EX4300-1> show configuration interfaces ae0 | display inheritance no-comments
description "TRUNK";
flexible-vlan-tagging;
mtu 9216;
hold-time up 1000 down 0;
encapsulation extended-vlan-bridge;
aggregated-ether-options {
no-flow-control;
minimum-links 1;
link-speed 10g;
lacp {
active;
periodic fast;
}
}
unit 206 {
description "Customer1";
vlan-id 206;
}
EX4300-1> show configuration vlans SVLAN206
interface ae0.206;
interface ge-1/0/8.0;
My config for Q-in-Q transparency:
EX4300-1> show configuration interfaces ge-0/0/2
description "UNI: q-in-q test s2-s1-s3 vlan ";
flexible-vlan-tagging; - mandatory statement
native-vlan-id 302; - mandatory statement S-Tag
mtu 9216; - maximum sized, should be set to 9100
encapsulation extended-vlan-bridge; - mandatory statement
unit 0 {
vlan-id-list 1-4094; - allowed C-VLAN numbers
input-vlan-map push; - mandatory statement in case of vlan-id-list
output-vlan-map pop; - mandatory statement in case of vlan-id-list
}
Frames passed:
up to 9100 bytes;
untagged/tagged/double-tagged/priority tagged packets with VLAN ID set to 0;
802.1q CoS bits passed unchanged in any (first and second) client tags.
Added "no-mac-learning".
EX4300-1> show configuration vlans SVLAN302
interface ae0.302;
interface ge-0/0/2.0;
switch-options {
no-mac-learning;
}
Added transparency L2CP.
EX4300-1> show configuration protocols layer2-control mac-rewrite
interface ge-0/0/2 {
protocol {
stp;
vtp;
cdp;
ieee8021x;
ieee8023ah;
elmi;
lacp;
lldp;
mmrp;
mvrp;
gvrp;
vstp;
udld;
}
}
EX4300-1> show configuration protocols rstp
bridge-priority 16k;
interface ge-0/0/2 {
disable;
}
interface all;
EX4300-1> show configuration protocols layer2-control bpdu-block
interface ge-0/0/0;
- ge-0/0/2 absent
interface ge-0/0/1;
interface ge-0/0/3;
interface ge-0/0/4;
interface ge-0/0/6;
interface ge-0/0/7;
interface ge-0/0/8;
interface ge-0/0/9;
interface ge-0/0/10;
Tested L2CP transparency between two Cisco switches. CDP, VTP, PVSTP/PVSTP+, MSTP, LACP are passed OK. Mac-rewrite statement is configured on the edge ports and uplinks with routers. Trunks between switches do not have the statement.
------------------------------
WBW,
Dmitriy
Original Message:
Sent: 07-15-2024 10:00
From: djadhav
Subject: Question on Q-in-Q on EX
Hi.
Consider an L2 provider topology using EX switches as follows.
CE-1 ----------------- EX-1 ---- EX-2---- EX-3 ----------------- CE-2
EX-1 is a provider edge bridge and so adds a customer-specific S-tag to the frames coming in from CE-1. To do this, EX-1 needs to be configured in the service provider style, not the enterprise style. Same with the other provider edge bridge EX-2.
My question is about the provider bridge switch EX-2. I know that it is configured with only the S-VLAN, but do we configure it in the enterprise style, or service provider style?
Thanks,
Deepak