OcNOS SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Command Reference : L2VPN over L2 Subinterface Commands
L2VPN over L2 Subinterface Commands
This chapter is a reference for the L2VPN commands over L2 subinterface.
VPWS:
VPLS:
 
access-if-vpws
Use this command in L2 subinterface mode to create the vpws access-port.
Use the no form of this command to delete the vpws access port.
Command Syntax
access-if-vpws
no access-if-vpws
Parameters
None
Command Mode
L2 Sub-interface mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
#configure terminal
(config)#interface xe1.1 switchport
(config-if)#access-if-vpws
(config-acc-if-vpws)#end
mpls-l2-circuit
Use this command to bind am mpls-l2-circuit to an L2 subinterface
Use the no form of this command to unbind an mpls-l2-circuit from an L2 subinterface
Command Syntax
mpls-l2-circuit 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
Command Mode
access-if-vpws mode
Applicability
This command w as introduced in OcNOS version 5.0.
Examples
#configure terminal
(config)#interface xe1.1 switchport
(config-if)#access-if-vpws
(config-acc-if-vpws)#mpls-l2-circuit vc1 primary
(config-acc-if-vpws)#mpls-l2-circuit vc2 secondary
(config-acc-if-vpws)#end
vc-mode
Use this command to configure vc-mode as revertive for an mpls l2-circuit.
Use the no form of this command to remove the vc-mode.
Command Syntax
vc-mode revertive
no vc-mode revertive
Parameters
None
Command Mode
access-if-vpws mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
#configure terminal
(config)#interface xe1.1 switchport
(config-if)#access-if-vpws
(config-acc-if-vpws)#mpls-l2-circuit vc1 primary
(config-acc-if-vpws)#mpls-l2-circuit vc2 secondary
(config-acc-if-vpws)#vc-mode revertive
(config-acc-if-vpws)#end
access-if-vpls
Use this command in L2 subinterface mode to create the vpls access-port.
Use the no form of this command to delete the vpls access port
Command Syntax
access-if-vpls
no access-if-vpls
Parameters
None
Command Mode
L2 Sub-interface mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
#configure terminal
(config)#interface xe1.1 switchport
(config-if)#access-if-vpls
(config-acc-if-vpls)#end
mpls-vpls
Use this command to bind a VPLS instance to an L2 subinterface.
Use the no form of this command to unbind vpls instance from a L2 subinterface.
Command Syntax
mpls-vpls NAME
no mpls-vpls NAME
Parameters
NAME
VPLS instance name
Command Mode
access-if-vpls mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
#configure terminal
(config)#interface xe1.2 switchport
(config-if)#access-if-vpls
(config-acc-if-vpls)#mpls-vpls v100
(config-acc-if-vpls)#end
 
learning disable
Use this command to disable learning on a particular Attachment Circuit (AC) interface.
Use the no form of this command to enable learning on a particular AC interface.
Note: This command disables MAC learning only on that interface.
Command Syntax
learning disable
no learning disable
Parameters
None
Command Mode
access-if-vpls mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
#configure terminal
(config)#interface xe1.2 switchport
(config-if)#access-if-vpls
(config-acc-if-vpls)#learning disable
(config-acc-if-vpls)#end
split-horizon (subinterface)
Use this command to configure split-horizon group for L2 sub-interface.
Use the no form of this command to remove split-horizon group from L2 sub-interface.
Command Syntax
split-horizon group (network | access1 | access2)
no split-horizon group
Parameters
network
Split-horizon group name network
access1
Split-horizon group name access1
access2
Split-horizon group name access2
Default
By default, split horizon is disabled.
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 6.3.0 and applicable only on Qumran1 devices..
Examples
#configure terminal
(config)#interface xe1.1 switchport
(config-if)#split-horizon group access1
(config-if)#no split-horizon group
 
 
static-mac
Use this command to add a static MAC address to an attachment circuit specific for a VPLS instance.
Use the no parameter with this command to remove static MAC address.
Command Syntax
static-mac XXXX.XXXX.XXXX
no static-mac XXXX.XXXX.XXXX
Parameters
XXXX.XXXX.XXXX
MAC address in HHHH.HHHH.HHHH format
Command Mode
access-if-vpls mode
Applicability
This command was introduced in OcNOS version 5.0.
Examples
#configure terminal
(config)#interface xe1.2 switchport
(config-if)#access-if-vpls
(config-acc-if-vpls)#static-mac 0091.0000.1010
(config-acc-if-vpls)#end