vlan-id20;
}
}
ge-0/0/3{
unit0 {
vlan-id30;
}
}
NOTE: Thisis not a complete routerconfiguration.
Withthis configuration, broadcastpackets inside frames arriving with VLAN identifier 10
onge-0/0/1 are normalized to a dual-tagged frame with an outerVLAN value of 200
andan inner VLAN value of 100. The broadcast packetand frames egressing ge-0/0/2
orge-0/0/3 have the outer VLAN value strippedand the inner VLAN value swapped to
20and 30 respectively, accordingto the interface configuration. However,this stripping
ofthe outer VLAN tag and the swappingis extra work, because the frames will still egress
theVPLS pseudowire in routing instance green with an outerVLAN tag value of 200 and
aninner VLAN tag value of 100, also according tothe configuration.
Thesame configuration can be accomplishedmore effectively using dynamic profiles.
VPLSPseudowire Interfaces and Dynamic Profiles
Considerthe following configuration, which usesdynamic profiles to manipulate VLAN
identifiers:
[editrouting-instances]
green{
instance-typevpls;
interfacege-0/0/1.1;
interfacege-0/0/2.1;
interfacege-0/0/3.1;
vlan-id100; # Desired inner VLAN tag on the VPLS pseudowire
protocolsvpls {
vpls-id10;
neighbor10.1.1.20 {
associate-profilegreen_vpls_pw_1;# The profile
}
}
{...more...}
}
[editinterfaces]
ge-0/0/1{
unit0 {
vlan-id10;
}
}
ge-0/0/2{
unit0 {
vlan-id20;
}
65Copyright© 2010, Juniper Networks,Inc.
Chapter6: Dynamic Profiles forVLAN Interfaces and Protocols