OcNOS DC : Layer 2 Guide : Layer 2 Command Reference : VLAN Cross-Connect Commands
VLAN Cross-Connect Commands
This chapter contains VLAN cross-connect commands.
cross-connect
Use this command to enter VLAN cross-connect mode to configure cross-connect parameters.
Use the no form of this command to delete a cross-connect.
Command Syntax
cross-connect WORD
no cross-connect WORD
Parameters
WORD
Cross-connect name, length <1-255>
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 1.3.6.
Examples
#conf t
Enter configuration commands, one per line. End with CNTL/Z.
(config)#cross-connect VC1
(config-XC)#
 
#conf t
Enter configuration commands, one per line. End with CNTL/Z.
(config)#no cross-connect VC1
(config)#
disable
Use this command to make a cross-connect administratively disabled or enabled.
Command Syntax
disable
no disable
Parameters
None
Command Mode
Cross-connect mode
Applicability
This command was introduced in OcNOS version 1.3.6.
Examples
OcNOS#sh cross-connect
Cross-connect name : VC1
EP1:ce24/1 EP2:ce31/1 Admin Status:UP Oper Status:UP
+==================================================================================================================+
| EP | OVID | IVID | Rx packets | Rx bytes | Tx packets |Tx bytes |Interface Status|
+==================================================================================================================+
| EP1 |100 | - |0 |0 |0 |0 |UP |
| EP2 |100 | - |0 |0 |0 |0 |UP |
+==================================================================================================================+
 
cross-connect summary
Total XC : 1
Admin Up : 1
Admin Down : 0
Total Rules : 1
OcNOS#conf t
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#cross-connect VC1
OcNOS(config-XC)#disable
2021 Mar 22 07:35:30.083 : OcNOS : NSM : CRITI : [VXC_DOWN_2]: Cross_Connect VC1 changed state to down
OcNOS(config-XC)#end
OcNOS#sh cross-connect
ross-connect name : VC1
EP1:ce24/1 EP2:ce31/1 Admin Status:DOWN Oper Status:DOWN
+==================================================================================================================+
| EP | OVID | IVID | Rx packets | Rx bytes | Tx packets |Tx bytes |Interface Status|
+==================================================================================================================+
| EP1 | - | - |0 |0 |0 |0 |UP |
| EP2 | - | - |0 |0 |0 |0 |UP |
+==================================================================================================================+
 
cross-connect summary
Total XC : 1
Admin Up : 0
Admin Down : 1
Total Rules : 0
 
OcNOS#conf t
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#cross-connect VC1
OcNOS(config-XC)#no disable
OcNOS(config-XC)#2021 Mar 22 07:35:46.814 : OcNOS : NSM : CRITI : [VXC_UP_2]: Cross_Connect VC1 changed state to up
OcNOS#sh cross-connect
Cross-connect name : VC1
EP1:ce24/1 EP2:ce31/1 Admin Status:UP Oper Status:UP
+==================================================================================================================+
| EP | OVID | IVID | Rx packets | Rx bytes | Tx packets |Tx bytes |Interface Status|
+==================================================================================================================+
| EP1* | - | - |47836 |47836000 |0 |0 |UP |
| EP2* | - | - |0 |0 |48149 |48149000 |UP |
+==================================================================================================================+
 
cross-connect summary
Total XC : 1
Admin Up : 1
Admin Down : 0
Total Rules : 1
 
outer-vlan VLAN_RANGE2 (inner-vlan VLAN_RANGE2 |)
Use this command to configure parameters for VLAN cross-connect.
Command Syntax
outer-vlan VLAN_ID inner-vlan VLAN_ID ep1 IFNAME ep2 IFNAME
Parameters
outer-vlan
Outer-VLAN associated with the cross-connect
VLAN ID
VLAN ID <2 - 4094>
inner-vlan
Inner-VLAN associated with the cross-connect
VLAN ID
VLAN ID <2 - 4094>
ep1
Interface for cross-connect endpoint 1
IFNAME
Interface name for endpoint 1
ep2
Interface for cross-connect endpoint 2
IFNAME
Interface name for endpoint 2
Command Mode
Cross-connect mode
Applicability
This command was introduced in OcNOS version 1.3.6.
Examples
#conf t
Enter configuration commands, one per line. End with CNTL/Z. (config)#cross-connect VC1
(config-XC)#vlan ep1 ce25/1 ep2 ce16/1
(config-VXC)#outer-vlan 10 inner-vlan 20
(config-VXC)#
 
show cross-connect
Use this command to display the VLAN cross-connect configuration.
Command Syntax
show cross-connect
Parameters
None
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 1.3.6.
Examples
OcNOS#sh cross-connect
Cross-connect name : VC1
EP1:ce25/1 EP2:ce16/1 Admin Status:UP Oper Status:UP
+==================================================================================================================+
| EP | OVID | IVID | Rx packets | Rx bytes | Tx packets |Tx bytes |Interface Status|
+==================================================================================================================+
| EP1 |100 | - |0 |0 |0 |0 |UP |
| EP2 |100 | - |0 |0 |0 |0 |UP |
+==================================================================================================================+
 
cross-connect summary
Total XC : 1
Admin Up : 1
Admin Down : 0
Total Rules : 1