You can configure the router to receive and forward single-tag
frames, dual-tag frames, or a mixture of single-tag and dual-tag frames.
- To configure the router to receive and forward single-tag
frames with 802.1Q VLAN tags, include the
vlan-tagging
statement
at the [edit interfaces interface-name]
hierarchy level:
- Configure the
flexible-vlan-tagging
statement
at the [edit interfaces ge-fpc/pic/port]
hierarchy level. [edit interfaces ge-fpc/pic/port]
user@host#flexible-vlan-tagging;
For encapsulation type flexible-ethernet-services
, all VLAN IDs are valid.
- To accept untagged packets, include the
native-vlan-id
statement and the flexible-vlan-tagging
statement at
the [edit interfaces interface-name]
hierarchy level:[edit interfaces ge-fpc/pic/port]
flexible-vlan-tagging;
native-vlan-id number;
The range for native-vlan-id
is 0 to 4094.
The logical interface on which untagged packets are to be received
must be configured with the same native VLAN ID as that configured
on the physical interface. To configure the logical interface, include
the vlan-id
statement (matching the native-vlan-id
statement on the physical interface) at the [edit interfaces interface-name unit logical-unit-number]
hierarchy level.
- Configure the
vlan-id range
providing the range
at the [edit interfaces ge-fpc/pic/port unit logical-unit-number]
hierarchy level:[edit interfaces ge-fpc/pic/port unit logical-unit-number]
user@host# vlan-id range number;
- Configure the
vlan-tags
statement with inner
and outer
options or the vlan-id range
statement at the [edit interfaces ge-fpc/pic/port unit logical-unit-number]
hierarchy level:[edit interfaces ge-fpc/pic/port unit logical-unit-number]
user@host# vlan-id range number;
user@host# vlan-tags outer tpid.vlan-id inner tpid.vlan-id;
The range for inner
and outer
option 32
to 4094.
To verify the configuration execute the show
command.
user@host> show configuration
set interfaces ge-1/0/3 flexible-vlan-tagging
set interfaces ge-1/0/3 native-vlan-id 1010
set interfaces ge-1/0/3 unit 1 vlan-id-range 100-200
set interfaces ge-1/0/3 unit 2 vlan-tags outer 300
set interfaces ge-1/0/3 unit 2 vlan-tags inner 123
set interfaces ge-1/0/3 unit 3 vlan-tags outer 400
set interfaces ge-1/0/3 unit 3 vlan-tags inner 323