Flexible Ethernet Services Encapsulation
Flexible Ethernet services is a type of encapsulation that enables a physical interface to support different types of Ethernet encapsulations at the logical interface level. You can configure the Flexible Ethernet services encapsulation to support the service provider and the enterprise-style configuration. The below topics discuss the overview of flexible Ethernet services encapsulation and its configuration details.
Understanding Flexible Ethernet Services Encapsulation on Switches
Junos OS supports two different styles of configuration for switch interfaces: the service provider style and the enterprise style. The service provider style requires more configuration but provides greater flexibility. The enterprise style is easier to configure but offers less functionality. Each configuration style requires a different Ethernet encapsulation type. You can configure a physical interface to support both styles of configuration using flexible Ethernet services.
On EX4300, QFX5100 (running Junos OS 16.1R5 or earlier), and QFX5200, the service provider style and enterprise style interface configurations are handled differently within Junos OS. If the service provider style and enterprise style interface configurations are mixed, the egress VLAN translation within the hardware can be incorrectly programmed leading to forwarding issues across the configured ports. Use the service provider style configuration in a Q-in-Q scenario. For all other scenarios, use the enterprise style configuration.
Flexible Ethernet services is a type of encapsulation that enables a physical interface to support different types of Ethernet encapsulations at the logical interface level. Defining multiple per-unit Ethernet encapsulations makes it easier to customize Ethernet-based services to multiple hosts connected to the same physical interface.
Service Provider Style
The service provider style of configuration allows for customization of Ethernet-based services at the logical interface level. Service providers typically have multiple customers connected to the same physical interface. Using the service provider style, you can configure multiple logical interfaces on the physical interface, and associate each unit with a different VLAN. This provides the flexibility to configure different services for each customer, but also requires more configuration, because each feature must be explicitly configured on the logical interface.
When configuring a physical interface to support only the service
provider style, the physical interface must be encapsulated with the extended-vlan-bridge
option to support bridging features. VLAN
tagging must also be configured on the physical interface so that
it can operate in trunk mode and transmit Ethernet frames with VLAN
tags for multiple VLANs. Each logical interface is bound to a unique
VLAN ID.
Enterprise Style
The enterprise style of configuration is designed to provide basic bridging functionality for consumers of Ethernet-based services. The isolation of services for different customers on a single port is not required, because each port is typically connected to a host or is providing a trunk to another switch.
With the enterprise style of configuration, logical interfaces
are placed into Layer 2 mode by specifying ethernet-switching
as the interface family. Without using flexible Ethernet services, ethernet-switching
can only be configured on a single logical
unit, unit 0. You cannot bind a VLAN ID to unit 0, because
these interfaces operate either in trunk mode, which supports traffic
with various VLAN tags, or in access mode, which supports untagged
traffic.
Flexible Ethernet Services
The flexible Ethernet services encapsulation type enables a
physical interface to support both styles of configuration. To support
the service provider style, flexible Ethernet services allows for
encapsulations to be configured at the logical interface level instead
of the physical interface. To support the enterprise style, flexible
Ethernet services allows the ethernet-switching
family
to be configured on any logical interface unit number instead of only
unit 0.
For example, the configuration below shows three logical interfaces
configured on a physical interface, xe-0/0/51, that is encapsulated
for flexible Ethernet services. Unit 100 and unit 200 are
configured in the service provider style and unit 300 is configured
in the enterprise style. The encapsulation type of vlan-bridge
is used to enable bridging on unit 100 and unit 200, and family ethernet-switching
enables bridging on unit 300.
interfaces { xe-0/0/51 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 100 { encapsulation vlan-bridge; vlan-id 100; } unit 200 { encapsulation vlan-bridge; vlan-id 200; } unit 300 { family ethernet-switching { interface-mode trunk; vlan members 300; } } } }
Following are the guidelines to follow when you configure the flexible Ethernet services encapsulation:
On the QFX10000 line of switches, configuring either
vlan-tagging
orflexible-vlan-tagging
withfamily ethernet-switching
on the same interface is not supported.Only on the QFX10000 and EX9200 line of switches, you can enable
vlan-ccc
encapsulation whenflexible-ethernet-services
is already enabled.On QFX5100 switches, you can combine encapsulations on the same physical interface for
vlan-bridge
andfamily ethernet switching
. Starting with Junos OS Release 16.1R6, you can also combine encapsulations on the same physical interface forfamily inet
andfamily ethernet-switching
.It is not required that the unit number and VLAN ID match, but it is considered a best practice.
Configuring Flexible Ethernet Services Encapsulation to Support the Service Provider and Enterprise Styles of Configuration
Flexible Ethernet services is a type of encapsulation that enables a physical interface to specify Ethernet encapsulations at the logical interface level. Each logical interface can have a different Ethernet encapsulation. Defining multiple per-unit Ethernet encapsulations makes it easier to customize Ethernet-based services to multiple hosts connected to the same physical interface.
An Ethernet interface that is not encapsulated with flexible
Ethernet services and is operating in Layer 2 mode is limited to a
single logical interface unit (0). Bridging is enabled on the interface
by configuring ethernet-switching
as the interface family
on unit 0. The ethernet-switching
family can be configured
only on logical interface unit 0, and no other logical units
can be defined on that interface.
Some switching features, however, cannot be configured on logical interface unit 0. Features such as Q-in-Q tunneling require the logical interface to transmit VLAN-tagged frames. To enable a logical interface to receive and forward Ethernet frames tagged with a matching VLAN ID, you must bind the logical interface to that VLAN. These features must be configured on a logical interface unit other than 0, because you cannot bind a VLAN ID to unit 0.
When you encapsulate an interface by using flexible Ethernet
services, you can configure a logical interface unit other than 0
with family ethernet-switching
. You can also configure
other logical interfaces on that same interface with different types
of Ethernet encapsulations. This enables logical interfaces that are
bound to a VLAN ID to coexist with logical interfaces configured with family ethernet-switching
.
For example, if you configure PVLAN on the same physical interface
on which you are configuring Q-in-Q tunneling, you can use flexible
ethernet services to support the enterprise style of configuration
for PVLAN, using family ethernet-switching
, along with vlan-bridge
encapsulation for Q-in-Q tunneling.
We recommend you configure the following statements using groups when configuring devices that function as hardware VTEPs:
set interfaces interface-name flexible-vlan-tagging
set interfaces interface-name encapsulation extended-vlan-bridge
set interfaces interface-name native-vlan-id vlan-id
To configure the interface to support both the service provider and enterprise styles of configuration:
For EX4300 device, the service provider style configuration (encapsulation extended-vlan-bridge) is recommended only for QinQ scenarios. For other scenarios, use the enterprise style configuration.
See Also
Configure Flexible Ethernet Services Encapsulation to Include Layer 2 Interface Support with Other Encapsulations
SUMMARY Flexible Ethernet services is a type of encapsulation that enables a physical interface to specify Ethernet encapsulations at the logical interface level. Perform the following steps to configure flexible Ethernet services to support a Layer 2 bridging interface while simultaneously supporting other encapsulation options on the same physical interface.
On the QFX10000 line of Switches running Junos OS releases earlier than Release 21.2R1,
you cannot configure vlan-bridging
and any other encapsulations on an
interface that has flexible-ethernet-services
enabled.
Configure a physical or aggregated Ethernet interface to simultaneously support a VLAN based circuit cross-connect (CCC) connection, Layer 3 IP routing, and Layer 2 bridging:
Verify your configuration using the show interfaces
interface-name
command in the configuration mode.
user@switch> show interfaces xe-0/0/0 vlan-tagging; encapsulation flexible-ethernet-services; unit 1 { encapsulation vlan-ccc; vlan-id 103; } unit 2 { vlan-id 102; family inet { address 10.0.0.1/30; } unit 3 { encapsulation vlan-bridge; vlan-id 101; } }
See Also
Configure Flexible Ethernet Services Encapsulation to Support Multiple Logical Interfaces on the Same Physical Interface Mapped to the Same Bridge Domain
SUMMARY Flexible Ethernet services is a type of encapsulation that enables a physical interface to specify Ethernet encapsulations at the logical interface level. Perform the following steps to configure multiple logical interfaces on the same physical interface mapped to the same bridge domain.
The QFX10002-60C switches do not support this feature.
The combination of enterprise-style and service provider-style interfaces on the same physical interface is not supported when there are multiple service provider style logical interfaces attached to the same bridge domain.
Verify your configuration using the show interfaces
interface-name and
command in the configuration mode.show vlans
user@switch> show interfaces xe-0/0/2:2 flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 1 { encapsulation vlan-bridge; vlan-id 1; } unit 2 { encapsulation vlan-bridge; vlan-id 2; }
user@switch> show vlans v100 { vlan-id 100; interface xe-0/0/2:2.1; interface xe-0/0/2:2.2; }
See Also
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.
family inet
and family ethernet-switching
.