Like other Layer 2 VPNs, you must enable a routing instance to isolate VPLS traffic from other network traffic. To configure, include the instance-type vpls statement at the [edit routing-instances instance-name] hierarchy level.
Within the instance, you can define the maximum number of sites that can participate in this VPLS instance, the size of the MAC address table, a local site name, and a local site identifier.
To configure the maximum number of sites, include the site-range statement at the [edit routing-instances instance-name protocols vpls] hierarchy level. The maximum site range is 65,535.
![]() |
Note: The site ID must be less than the site range. If you specify a site ID that is greater than the site range, your connections won't come up, even though the commit will be successful. |
By default on MX-series routers, MAC statistics are disabled. To enable MAC statistics on MX-series routers, include the mac-statistics statement at the [edit routing-instances routing-instance-name instance-type vpls] hierarchy level.
To configure the size of the MAC address table, include the mac-table-size statement at the [edit routing-instances instance-name protocols vpls] hierarchy level. The default size is 5120 addresses, the minimum is 16 addresses, and the maximum is 65,536 addresses.
To configure a site name, include the site statement at the [edit routing-instances instance-name protocols vpls] hierarchy level. To configure the site ID, include the site-identifier statement at the [edit routing-instances instance-name protocols vpls site name] hierarchy level. For more information on configuring VLAN IDs and Integrated Routing and Bridging (IRB) on MX-series routers, see Optional: Configuring Integrated Routing and Bridging and VLAN IDs in a VPLS Routing Instance (MX-Series Routers Only).
- [edit routing-instances]
-
instance-name {
-
instance-type vpls;
- interface ge-0/1/0.0;
- route-distinguisher 10.245.14.218:1;
- vrf-target target:11111:1;
-
- protocols {
-
- vpls {
- vpls-id id-name; # LDP signaling only.
- neighbor neighbor-id; # LDP signaling
only.
- site-range 10; # BGP signaling only.
- mac-statistics; # MX-series routers only.
- mac-table-size 1024;
-
-
site greenPE1 { # BGP signaling
only.
-
site-identifier 1;
- interface fe-0/1/0.0;
- }
- }
- }
- }