mpls-l2-circuit NAME
Use this command in the Interface mode to bind an interface to a MPLS Layer-2 Virtual Circuit created in the configure mode. The qos profiles cos-to-queue and queue-color-to-cos are optional parameters and are configurable dynamically on the virtual circuit by repeating mpls-l2-circuit command along with one or both profile options. In order to dynamically unbind the profile, same command pattern should be repeated by removing the profile which needs to be unbound from the command. Refer ‘qos profile’ commands from configuration guide for more details about qos profiles.
Use the no parameter with this command to delete this instance.
Note: QoS profiles are supported only on vlan based virtual circuits. For port based virtual circuits (service template with match-all option), qos profiles can be bound to interface which will take effect, otherwise default qos profile will take effect. Refer ‘qos map-profile’ command for binding qos profiles on interface.
Note: For untagged traffic forwarded via port based virtual circuits (service template with match-all option), queue will be 0 by default. In order to assign a non-zero queue for untagged traffic, use ‘qos untagged-priority <0-7>’ command on the interface.
Note: QoS profile queue-color-to-cos will take effect when MPLS model is uniform. For virtual circuit without rewrite option, ‘qos remark-cos’ need to be additionally configured to update cos. For virtual circuits with rewrite action pop, cos will always be updated based on qos profile irrespective of the MPLS model.
Command Syntax
mpls-l2-circuit NAME service-template NAME ({cos-to-queue NAME | queue-color-to-cos NAME}|) ((primary|secondary)|)
no mpls-l2-circuit NAME
Parameters
NAME
A string identifying the MPLS Layer-2 Virtual Circuit
primary
Identify L2 circuit as the primary link
secondary
Identify L2 circuit as the secondary link; the secondary link is not activated unless the primary link fails
service-template
Customer service template
NAME
Name of Customer service template
cos-to-queue
Profile for cos to queue map
NAME
Profile name for cos to queue map
queue-color-to-cos
Profile for queue color to cos map
NAME
Profile name for queue color to cos map
Default
By default, mpls l2-circuit is disabled
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth1
(config-if)#switchport
(config-if)#mpls-l2-circuit vc1 service-template C1
(config-if)#no mpls-l2-circuit vc1
(config)#interface eth2
(config-if)#switchport
(config-if)#mpls-l2-circuit vc2 service-template C2
(config-if)#no mpls-l2-circuit vc2
(config-if)#mpls-l2-circuit vc2 service-template C2
(config-if)#no mpls-l2-circuit vc2
(config)#interface eth2
(config-if)#switchport
(config-if)#mpls-l2-circuit vc2 service-template C2
(config-if)#no mpls-l2-circuit vc2
(config-if)#mpls-l2-circuit vc2 service-template C2
(config-if)#no mpls-l2-circuit vc2
Last modified date: 10/17/2023