Vpls pseudowire interfaces and dynamic profiles – Juniper Networks JUNOS OS 10.4 User Manual
Page 89

interface ge-0/0/2.1;
interface ge-0/0/3.1;
vlan-tags outer 200 inner 100;
protocols vpls {
vpls-id 10;
neighbor 10.1.1.20;
}
{...more...}
}
[edit interfaces]
ge-0/0/1 {
unit 0 {
vlan-id 10;
}
}
ge-0/0/2 {
unit 0 {
vlan-id 20;
}
}
ge-0/0/3 {
unit 0 {
vlan-id 30;
}
}
NOTE:
This is not a complete router configuration.
With this configuration, broadcast packets inside frames arriving with VLAN identifier 10
on
ge-0/0/1
are normalized to a dual-tagged frame with an outer VLAN value of 200
and an inner VLAN value of 100. The broadcast packet and frames exiting
ge-0/0/2
or
ge-0/0/3
have the outer VLAN value stripped and the inner VLAN value swapped to 20
and 30 respectively, according to the interface configuration. However, this stripping of
the outer VLAN tag and the swapping is extra work, because the frames will still egress
the VPLS pseudowire in routing instance
green
with an outer VLAN tag value of 200 and
an inner VLAN tag value of 100, also according to the configuration.
The same configuration can be accomplished more effectively using dynamic profiles.
VPLS Pseudowire Interfaces and Dynamic Profiles
Consider the following configuration, which uses dynamic profiles to manipulate VLAN
identifiers:
[edit routing-instances]
green {
instance-type vpls;
interface ge-0/0/1.1;
interface ge-0/0/2.1;
interface ge-0/0/3.1;
vlan-id 100; # Desired inner VLAN tag on the VPLS pseudowire
protocols vpls {
69
Copyright © 2013, Juniper Networks, Inc.
Chapter 6: Dynamic Profiles for VLAN Interfaces and Protocols