Académique Documents
Professionnel Documents
Culture Documents
Configuring VPLS
Virtual private LAN service (VPLS) allows you to provide a point-to-multipoint LAN between a set of sites in a virtual private network (VPN). To configure VPLS functionality, you must enable VPLS support on the provider edge (PE) router. You must also configure PE routers to distribute routing information to the other PE routers in the VPLS and configure the circuits between the PE routers and the customer edge (CE) routers. Each VPLS is configured under a routing instance of type vpls. A vpls routing instance can transparently carry Ethernet traffic across the service providers network. As with other routing instances, all logical interfaces belonging to a VPLS routing instance are listed under that instance. For VPLS to function, the PE router must have a Tunnel Services Physical Interface Card (PIC).
379
For VPLS, only some of the statements in the [edit routing-instances] hierarchy are valid. For the full hierarchy, see the JUNOS Routing Protocols Configuration Guide. In addition to these statements, you must configure Multiprotocol Label Switching (MPLS) label-switched paths (LSPs) between the PE routers, internal border gateway protocol (IBGP) sessions between the PE routers, and an interior gateway protocol (IGP) on the PE and provider (P) routers. By default, VPLS is disabled.
380
Many configuration procedures for VPLS are identical to the procedures for Layer 2 VPNs and Layer 3 VPNs. These procedures are described in detail in Configuring VPNs on page 11 and include the following: Enabling a Signaling Protocol on the PE Routers on page 12 Configuring an IGP on the PE and P Routers on page 15 Configuring an IBGP Session Between PE Routers on page 16 Configuring a VPN Routing Instance on the PE Routers on page 17 This chapter describes how to configure VPLS, discussing the following topics: Configuring Interfaces for VPLS Routing on page 382 Configuring the VPLS Routing Instance on page 387 Configuring an Ethernet Switch as the CE Device on page 391 Mapping VPLS Traffic to a Specific LSP on page 392 Configuring VPLS Filters and Policers on page 393 Specifying the VT Interfaces Used by VPLS Routing Instances on page 399 Tracing VPLS Traffic and Operations on page 400
381
You can include the interface statement at the following hierarchy levels:
[edit routing-instances routing-instance-name] [edit logical-routers logical-router-name routing-instances routing-instance-name]
You must also define each interface by including the following statements:
vlan-tagging; encapsulation encapsulation-type; unit logical-unit-number { vlan-id vlan-id-number; family vpls (Interfaces); }
The following sections provide enough information to enable you to configure interfaces for VPLS routing. For detailed information on configuring interfaces and the statements at the [edit interfaces] hierarchy level, see the JUNOS Network Interfaces Configuration Guide. To configure an interface for VPLS, you perform the steps in the following sections: Configuring the Interface Name on page 383 Configuring the Interface Encapsulation on page 384 Enabling VLAN Tagging on page 386
382
For example, in ge-1/2/1.2, ge-1/2/1 is the physical portion of the interface name and 2 is the logical portion. If you do not specify the logical portion of the interface name, 0 is set by default. A logical interface can be associated with only one routing instance. If you enable a routing protocol on all instances by specifying interfaces all when configuring the master instance of the protocol at the [edit protocols] hierarchy level, and you configure a specific interface for VPLS routing at the [edit routing-instances routing-instance-name] hierarchy level, the latter interface statement takes precedence and the interface is used exclusively for VPLS. If you explicitly configure the same interface name at both the [edit protocols] and [edit routing-instances routing-instance-name] hierarchy levels, when you try to commit the configuration, it will fail.
383
You can include the encapsulation statement for physical interfaces at the following hierarchy levels:
[edit interfaces interface-name] [edit logical-routers logical-router-name interfaces interface-name]
You can configure the following physical interface encapsulations for VPLS routing instances:
ethernet-vplsUse Ethernet VPLS encapsulation on Ethernet interfaces that have VPLS enabled and that must accept packets carrying standard Tag Protocol ID (TPID) values. On M-series routers (except the M320), the 4-port Fast Ethernet TX PIC and the 1-port, 2-port, and 4-port, 4-slot Gigabit Ethernet PICs can use the Ethernet VPLS encapsulation type. extended-vlan-vplsUse extended virtual LAN (VLAN) VPLS encapsulation on Ethernet interfaces that have VLAN 802.1Q tagging and VPLS enabled and that must accept packets carrying TPIDs 0x8100, 0x9100, and 0x9901. On M-series routers (except the M320), the 4-port Fast Ethernet TX PIC and the 1-port, 2-port, and 4-port, 4-slot Gigabit Ethernet PICs can use the Ethernet VPLS encapsulation type. vlan-vplsUse VLAN VPLS encapsulation on Ethernet interfaces with VLAN
tagging and VPLS enabled. Interfaces with VLAN VPLS encapsulation accept packets carrying standard TPID values only. On M-series routers (except the M320), the 4-port Fast Ethernet TX PIC and the 1-port, 2-port, and 4-port, 4-slot Gigabit Ethernet PICs can use the Ethernet VPLS encapsulation type.
384
To configure the encapsulation type for logical interfaces, include the encapsulation statement:
encapsulation (ether-vpls-over-atm-llc | vlan-vpls);
You can include the encapsulation statement for logical interfaces at the following hierarchy levels:
[edit interfaces interface-name unit number] [edit logical-routers logical-router-name interfaces interface-name unit number]
You can configure the following logical interface encapsulations for VPLS routing instances:
ether-vpls-over-atm-llcUse Ethernet VPLS over Asynchronous Transfer Mode (ATM) logical link control (LLC) encapsulation to bridge Ethernet interfaces and ATM interfaces over a VPLS routing instance (as described in RFC 2684, Multiprotocol Encapsulation over ATM Adaptation Layer 5). Packets from the ATM interfaces are converted to standard ENET2/802.3-encapsulated Ethernet frames with the frame check sequence (FCS) field removed. This encapsulation type is supported on ATM intelligent queuing (IQ) interfaces only. vlan-vplsUse VLAN VPLS encapsulation on Ethernet interfaces with VLAN
tagging and VPLS enabled. Interfaces with VLAN VPLS encapsulation accept packets carrying standard TPID values only. On M-series routers (except the M320), the 4-port Fast Ethernet TX PIC and the 1-port, 2-port, and 4-port, 4-slot Gigabit Ethernet PICs can use the Ethernet VPLS encapsulation type. When you configure the physical interface encapsulation as vlan-vpls, you also need to configure the same interface encapsulation for the logical interface. You need to configure the vlan-vpls encapsulation on the logical interface because the vlan-vpls encapsulation allows you to configure a mixed mode, where some of the logical interfaces use regular Ethernet encapsulation (the default for logical interfaces) and some use vlan-vpls. For more information, see the JUNOS Network Interfaces Configuration Guide.
385
You can include the vlan-tagging statement at the following hierarchy levels:
[edit interfaces interface-name] [edit logical-routers logical-router-name interfaces interface-name]
Gigabit Ethernet interfaces can be partitioned; you can assign up to 4095 different logical interfaces, one for each VLAN, but you are limited to a maximum of 1024 VLANs on any single Gigabit Ethernet or 10-Gigabit Ethernet port. Fast Ethernet interfaces can also be partitioned, with a maximum of 1024 logical interfaces for the 4-port FE PIC and 16 logical interfaces for the M40e Internet router. Table 10 lists VLAN ID range by interface type.
Table 10: VLAN ID Range by Interface Type Interface Type
Fast Ethernet Gigabit Ethernet
VLAN ID Range
512 through 1023 512 through 4094
You can include the vlan-id statement at the following hierarchy levels:
[edit interfaces interface-name unit logical-unit-number] [edit logical-routers logical-router-name interfaces interface-name unit logical-unit-number]
For more information on how to configure VLANs, see the JUNOS Network Interfaces Configuration Guide.
386
The configuration for the VPLS routing instance statements is explained in the following sections: Configuring the VPLS Site Name and Site Identifier on page 388 Limiting the Number of MAC Addresses Learned from an Interface on page 390 Configuring the Site Range on page 389 Configuring the VPLS MAC Table Timeout Interval on page 389 Configuring the Size of the VPLS MAC Address Table on page 390 Limiting the Number of MAC Addresses Learned from an Interface on page 390
387
The site identifier can be any number between 1 and 65,534 that uniquely identifies the VPLS site. You can include these statements at the following hierarchy levels:
[edit routing-instances routing-instance-name protocols vpls] [edit logical-routers logical-router-name routing-instances routing-instance-name protocols vpls]
You can also configure a limit on the number of MAC addresses that can be learned from the specified interface. See Limiting the Number of MAC Addresses Learned from an Interface on page 390 for more information.
388
You can include the site-range statement at the following hierarchy levels:
[edit routing-instances routing-instance-name protocols vpls] [edit logical-routers logical-router-name routing-instances routing-instance-name protocols vpls]
389
You can include the mac-table-size statement at the following hierarchy levels:
[edit routing-instances routing-instance-name protocols vpls] [edit logical-routers logical-router-name routing-instances routing-instance-name protocols vpls]
Configuring the interface-mac-limit statement at the [edit routing-instances routing-instance-name protocols vpls] hierarchy level causes the same limit to be applied to all of the interfaces configured for that specific routing instance.
390
You can also limit the number of MAC addresses learned by a specific interface configured for a VPLS routing instance. This gives you the ability to limit particular interfaces that you expect might generate a lot of MAC addresses. To limit the number of MAC addresses learned by a specific interface, include the interface-mac-limit statement at the following hierarchy levels:
[edit routing-instances routing-instance-name protocols vpls site site-name interfaces interface-name] [edit logical-routers logical-router-name routing-instances routing-instance-name protocols vpls site site-name interfaces interface-name]
The MAC limit configured for an individual interface at this hierarchy level overrides any value configured at the [edit routing-instances routing-instance-name protocols vpls] hierarchy level. Also, the MAC limit configured using the mac-table-size statement can override the limit configured using the interface-mac-limit statement. The MAC address limit applies to customer facing interfaces only.
391
You can include the policy-statement vpls-priority statement at the following hierarchy levels:
[edit policy-options] [edit logical-routers logical-router-name policy-options]
392
You can include the forwarding-table statement at the following hierarchy levels:
[edit routing-options] [edit logical-routers logical-router-name routing-options]
For more information on how to configure routing policies, see the JUNOS Policy Framework Configuration Guide.
393
To configure a filter for VPLS traffic, you complete the following tasks: Configuring an Interface-Specific Counter for VPLS on page 395 Configuring the VPLS Filter Match Conditions on page 395 Configuring an Action for the VPLS Filter on page 396 Configuring VPLS FTFs on page 396 Changing Precedence for Spanning Tree BPDU Packets on page 396 Apply a VPLS Filter to an Interface on page 397 Apply a VPLS Filter to a VPLS Routing Instance on page 397 Configuring a Filter for Flooded Traffic on page 398 For more information on how to configure firewall filters, see the JUNOS Policy Framework Configuration Guide.
394
this maximum length, it might be rejected. For more information on the interface-specific statement and an example of how to configure it, see the JUNOS Policy Framework Configuration Guide.
395
Description
Specified destination MAC address. Ethernet packets. Configure the ether-type match condition when the encapsulation of the associated interfaces is ethernet-vpls. Specified forwarding class. Interface group on which the packet was received. An interface group is a set of one or more logical interfaces. Source MAC address. VLAN Ethernet packets. Configure the vlan-ether-type match condition when the encapsulation of the associated interfaces is either vlan-vpls or extended-vlan-vpls.
You can include the filter input statement at the following hierarchy levels:
[edit routing-instance routing-instance-name forwarding-options family vpls] [edit logical-routers logical-router-name routing-instance routing-instance-name forwarding-options family vpls]
For the statement summaries of these statements, see the JUNOS Policy Framework Configuration Guide.
396
You can include the filter statement at the following hierarchy levels:
[edit interfaces interface-name unit number family vpls] [edit logical-routers logical-router-name interfaces interface-name unit number family vpls]
In the input statement, list the name of the VPLS filter to be evaluated when packets are received on the interface. In the output statement, list the name of the VPLS filter to be evaluated when packets are transmitted on the interface.
NOTE: For output interface filters, MAC addresses are learned after the filter action is completed. When an output interface filters action is discard, the packet is
dropped before the MAC address is learned. However, an input interface filter would learn the MAC address before discarding the packet. For the statement summaries for these statements, see the JUNOS Network Interfaces Configuration Guide.
You can include the filter input statement at the following hierarchy levels:
[edit routing-instances routing-instance-name forwarding-options family vpls] [edit logical-routers logical-router-name routing-instances routing-instance-name forwarding-options family vpls]
397
You can include the flood input statement at the following hierarchy levels:
[edit routing-instances routing-instance-name forwarding-options family vpls] [edit logical-routers logical-router-name routing-instances routing-instance-name forwarding-options family vpls]
For the statement summaries of these statements and more information on how to configure policers, see the JUNOS Policy Framework Configuration Guide.
398
You can include the policer statement at the following hierarchy levels:
[edit interfaces interface-name unit number family vpls] [edit logical-routers logical-router-name interfaces interface-name unit number family vpls
In the input statement, list the name of the VPLS policer to be evaluated when packets are received on the interface. In the output statement, list the name of the VPLS policer to be evaluated when packets are transmitted on the interface. For the statement summaries for these statements, see the JUNOS Network Interfaces Configuration Guide.
instance. If you do not configure this option, all VT interfaces available to the router can be used for de-encapsulating traffic for this instance.
primarySpecifies the primary VT interface to be used by the VPLS routing
instance. The VT interface specified is used to de-encapsulate all VPLS traffic from the MPLS core network for this routing instance. If the VT interface specified is unavailable, then one of the other acceptable VT interfaces (specified in the devices option) is used for handling the VPLS traffic. If you do not configure this option, any acceptable VT interface can be used to de-encapsulate VPLS traffic from the core.
399
To specify that traffic for a particular VPLS routing instance be forwarded to specific VT interfaces, include the tunnel-services statement:
tunnel-services { devices device-names; primary primary-device-name; }
You can include the traceoptions statement at the following hierarchy levels:
[edit logical-routers logical-router-name routing-instances routing-instance-name protocols vpls] [edit routing-instances routing-instance-name protocols vpls]
The following trace flags display the operations associated with VPLS:
allAll VPLS tracing options connectionsVPLS connections (events and state changes) errorError conditions nlriVPLS advertisements received or sent using BGP routeTrace-routing information topologyVPLS topology changes caused by reconfiguration or advertisements
400