Provider Bridging Commands
This chapter describes the Provider Bridging (PB) commands.
IEEE 802.1ad standardizes the architecture and bridged protocols to allow Ethernet frames with multiple VLAN tags. Packets through a provider network are doubly tagged with both an:
• Inner (C-VLAN) tag which is the customer network VLAN identifier
• Outer (S-VLAN) tag which is the service provider network VLAN identifier
bridge protocol provider-mstp
Use this command to create a provider multiple spanning-tree protocol (MSTP) bridge. MSTP bridges can have different spanning-tree topologies for different VLANs inside a region of similar MSTP bridges.
Using this command creates an instance of the spanning tree, and associates the VLANs specified with that instance. A bridge created by this command forms its own separate region.
The multiple spanning tree protocol, like the rapid spanning tree protocol, provides rapid reconfiguration features, while providing load-balancing capability.
Command Syntax
bridge <1-32> protocol provider-mstp (edge|)
Parameters
<1-32>
Bridge identifier.
edge
Configure as an edge bridge.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#bridge 2 protocol provider-mstp edge
bridge protocol provider-rstp
Use this command to add an IEEE 802.1D-2004 Rapid Spanning Tree Protocol (RSTP) bridge.
After creating a bridge instance, add interfaces to the bridge using the bridge-group command. Bring the bridge instance into operation with the no shutdown command in interface mode.
Command Syntax
bridge <1-32> protocol provider-rstp (edge|)
Parameters
<1-32>
Bridge identifier.
edge
Configure as an edge bridge.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#bridge 2 protocol provider-rstp edge
cvlan registration table
Use this command to create a customer VLAN (CVLAN) registration table that maps between CVLANs and service provider VLANs (SVLANs).
Use the no parameter with this command to delete the CVLAN registration table.
Command Syntax
cvlan registration table WORD bridge <1-32>
no cvlan registration table WORD bridge <1-32>
Parameters
WORD
Name of the CVLAN registration table.
<1-32>
Specify a bridge ID.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#cvlan registration table customer1
(config-cvlan-registration)#
cvlan svlan
Use this command to map one or more customer VLANs (CVLANs) to a service provider VLAN (SVLAN).
To update the optional QoS parameters cos-to-queue and remark-cos, execute the complete command along with the optional parameters. To remove these options, execute the same command by removing the optional parameters.
Refer qos profile commands from configuration guide for more details about qos profiles.
Use the no forms of this command to delete a mapping.
Command Syntax
cvlan VLAN_RANGE2 (cvlan VLAN_ID|) svlan VLAN_ID ({untagged-pep|untagged-cep}|)({cos-to-queue NAME | remark-cos}|)
no cvlan VLAN_RANGE2 svlan VLAN_ID
Parameters
cvlan
CVLAN
VLAN_RANGE2
VLAN identifier <1-4094> or range such as 2-5,10 or 2-5,7-19
cvlan
Translation of CVID
VLAN_ID
Translated CVID <1-4095>
svlan
SVLAN corresponding to the C-VLAN
VLAN_ID
VLAN identifier 1-4094>
untagged-pep
Provider edge port is untagged for this CVLAN
untagged-cep
Customer edge port is untagged for this CVLAN
cos-to-queue
Configure cos-to-queue map for cvlan
NAME
Ingress profile to modify queue/color on basis of c-cos
remark-cos
Remark Egress COS
Command Mode
CVLAN Registration mode
Applicability
This command was introduced before OcNOS version 1.3 and updated in OcNOS-SP version 1.0.
Example
#configure terminal
(config)#cvlan registration table customer1 bridge 1
(config-cvlan-registration)#cvlan 2 svlan 3
(config-cvlan-registration)#cvlan 3 svlan 3 cos-to-queue c1 remark-cos
(config-cvlan-registration)#cvlan 100 cvlan 101 svlan 200 cos-to-queue p1 remark-cos
(config-cvlanregistration)#cvlan 3 svlan 3 remark-cos
(config-cvlan-registration)#cvlan 4 svlan 5 untagged-pep
(config-cvlan-registration)#cvlan 5 svlan 6 untagged-cep
(config-cvlan-registration)#no cvlan 3 svlan 3
(config-cvlan-registration)#cvlan 23 svlan 31 untagged-pep untagged-cep cos-to-queue p1 remark-cos
(config-cvlan-registration)#cvlan 15-16 svlan 18 untagged-cep remark-cos
dotad
This command allows you to change the TPID for a port.
Use the no form of this command to unset the TPID to default value.
Command Syntax
dotad ethertype ETHERTYPE
no dotad ethertype
Parameters
dotad
Set the switching characteristics of the Layer2 dot1q header.
ETHERTYPE
Ethertype value for outer tag (Allowed ethertype values are 0x8100 (default) or 0x88a8 0r 0x9100 or 0x9200)
Default
The default TPID value is 8100.
Command Mode
Interface Mode
Applicability
This command was introduced before OcNOS-SP version 1.0.
Examples
#configure terminal
(config)#interface xe1
(config-if)# dotad ethertype 0x88a8
(config-if)# no dotad ethertype
show cvlan registration table
Use this command to display the CVLAN registration table.
Command Syntax
show cvlan registration table (WORD|bridge <1-32>|WORD bridge <1-32>|)
Parameters
WORD
CVLAN registration table name.
<1-32>
Bridge identifier
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#sh cvlan registration table bridge 1
Bridge Table Name Port List
====== ========== =========
1 map xe17
CVLAN ID T-CVLAN ID SVLAN ID Profile Name Egress remark-Cos
======== ========== ======== ============ =================
100 101 200 p1 Yes
Table 15-31 explains the output fields.
Table 15-31: show cvlan registration table output
Entry | Description |
---|
Bridge | ID number of the bridge associated with the Customer VLAN (CVLAN). |
Table Name | ID of the CVLAN registration table. |
Port List | List of ports used by this CVLAN (including Link aggregators). |
CVLAN ID | ID number of the CVLAN. |
T-CVLAN ID | Translation CVLAN ID. |
SVLAN ID | ID number of the Service VLAN (SVLAN) associated with the CVLAN. |
Profile Name | cos-to-queue profile name. |
Egress remark-Cos | Remark Egress Cos |
switchport customer-edge
Use this command to set the switching characteristics of the layer 2 interface and the default customer VLAN.
Use the no form of this command to remove a customer VLAN.
Command Syntax
switchport customer-edge (access|hybrid) vlan <2-4094>
no switchport customer-edge (access|hybrid) vlan
Parameters
access
Set the layer 2 interface as access.
hybrid
Set the layer 2 interface as hybrid.
<2-4094>
Set the default VID for the interface.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth0
(config-if)#switchport customer-edge access vlan 3
(config)#interface eth0
(config-if)#no switchport customer-edge access vlan
switchport customer-edge hybrid
Use this command to set the switching characteristics of the Layer 2 customer-facing interface to hybrid. Both tagged and untagged frames will be classified over hybrid interfaces.
Command Syntax
switchport customer-edge hybrid allowed vlan add VLAN_ID
switchport customer-edge hybrid allowed vlan remove VLAN_ID
switchport customer-edge hybrid allowed vlan all
switchport customer-edge hybrid allowed vlan none
Parameters
add
Add a VLAN to transmit and receive through the Layer 2 interface.
VLAN_ID
ID of the VLAN <2-4094>.
remove
Remove a VLAN from the member set.
VLAN_ID
ID of the VLAN <2-4094>.
all
Allow all VLANs to transmit and receive through the Layer 2 interface.
none
Allow no VLANs to transmit and receive through the Layer 2 interface.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#interface eth0
(config-if)#switchport customer-edge hybrid allowed vlan add 2
switchport customer-edge trunk
Use this command to set the Layer2 interface as trunk.
Command Syntax
switchport customer-edge trunk allowed vlan add VLAN_ID
switchport customer-edge trunk allowed vlan remove VLAN_ID
switchport customer-edge trunk allowed vlan all
switchport customer-edge trunk allowed vlan none
Parameters
add
Add a VLAN to the member set.
VLAN_ID
Specify a VLAN ID <2-4094>
remove
Remove a VLAN from the member set.
all
Allow all VLANs to transmit and receive through the Layer 2 interface.
none
Allow no VLANs to transmit and receive through the Layer 2 interface.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth1
(config-if)#switchport customer-edge trunk allowed vlan add 12
switchport customer-edge vlan registration
Use this command to configure the VLAN registration parameters.
Use the no parameter with this command to delete the mapping from the interface.
Command Syntax
switchport customer-edge vlan registration WORD
no switchport customer-edge vlan registration
Parameters
WORD
Name of the CVLAN registration table.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth1
(config-if)#switchport customer-edge vlan registration customer1
switchport customer-network allowed vlan
Use this command to add SVLAN IDs to the Customer Network Port.
Command Syntax
switchport customer-network allowed vlan add VLAN_RANGE
Parameters
VLAN_RANGE
VLAN identifier <1-4094> or range such as 2-5,10 or 2-5,7-19.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 6.2.0.
Examples
In this example, the xe1 interface allows S-TAG 100-200 and 400 traffic from customer.
(config)#interface xe1
(config-if)#switchport
(config-if)#dot1ad ethertype 0x88a8
(config-if)#bridge-group 1
(config-if)#switchport mode customer-network
(config-if)#switchport customer-network allowed vlan add 100-200,400
switchport customer-network vlan
Use this command to set the default SVLAN ID for the Customer Network Port.
Command Syntax
switchport customer-network vlan <2-4094>
no switchport customer-network vlan
Parameters
<2-4094>
Set the default VLAN ID for the interface.
Default
Default Customer Network VLAN is 1.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 6.2.0
Examples
In this example, the xe1 interface allows C-TAG/untagged traffic from customers, adding SVLAN ID 100 before forwarding to the provider network. While egressing out, the SVLAN ID 100 will be stripped out.
(config)#interface xe1
(config-if)#switchport
(config-if)#dot1ad ethertype 0x88a8
(config-if)#bridge-group 1
(config-if)#switchport mode customer-network
(config-if)#switchport customer-network allowed vlan add 100
(config-if)#switchport customer-network vlan 100
switchport mode
Use this command to set the switching characteristics of the Layer 2 interface.
Command Syntax
switchport mode (provider-network|customer-edge|customer-network)
Parameters
provider-network
Provider network.
customer-edge
Customer edge.
customer-network
Customer network.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#switchport mode provider-network
switchport mode customer-edge
Use this command to set the switching characteristics of the Layer 2 customer facing interface and classify only untagged frames. Received frames are classified based on the VLAN characteristics, then accepted or discarded based on the specified filtering criteria.
Command Syntax
switchport mode customer-edge (access|hybrid|trunk)
switchport mode customer-edge (access|hybrid|trunk)
Parameters
access
Set the layer 2 interface as access.
hybrid
Set the layer 2 interface as hybrid.
trunk
Set the layer 2 interface as trunk.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#switchport mode customer-edge access
switchport mode customer-edge hybrid acceptable-frame-type
Use this command to set the layer 2 interface acceptable frames types. This processing occurs after VLAN classification.
Command Syntax
switchport mode customer-edge hybrid acceptable-frame-type (all|vlan-tagged)
Parameters
all
Set all frames can be received.
vlan-tagged
Set only VLAN-tagged frames can be received.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#switchport mode customer-edge hybrid acceptable-frame-type vlan-tagged
switchport provider-network
Use this command to set the switching characteristics of the provider-network interface.
Command Syntax
switchport provider-network allowed vlan add VLAN_RANGE2
switchport provider-network allowed vlan remove VLAN_RANGE2
switchport provider-network allowed vlan except VLAN_RANGE2
switchport provider-network allowed vlan all
switchport provider-network allowed vlan none
Parameters
add
Add a VLAN to transmit and receive through the Layer 2 interface.
VLAN_RANGE2
VLAN ID 1-4094 or range(s): 2-5 10 or 2-5 7-20.
remove
Remove a VLAN from the member set.
VLAN_RANGE2
VLAN ID 1-4094 or range(s): 2-5 10 or 2-5 7-20.
Except
All VLANs except these VLANs are part of the member set.
VLAN_RANGE2
VLAN ID 1-4094 or range(s): 2-5 10 or 2-5 7-20.
all
Allow all VLANs to transmit and receive through the Layer 2 interface.
none
Allow no VLANs to transmit and receive through the Layer 2 interface.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#interface eth0
(config-if)#switchport provider-network allowed vlan add 2
switchport provider-network isolated-vlan
Use this command to attach a VLAN as an isolated VLAN for a provider network port.
Using an isolated VLAN for PNP ports on a switch can forward all frames received from the PNP port to all other PNP ports. However, if VLANs are configured to be isolated, they can traverse PNP port without sharing any of their frames.
Use the no form of this command to remove an isolated VLAN for a provider network port.
Command Syntax
switchport provider-network isolated-vlan VLAN_RANGE
no switchport provider-network isolated-vlan VLAN_RANGE
Parameters
VLAN_RANGE
VLAN identifier <2-4094> or range such as 2-5,10 or 2-5,7-19
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS-SP version 1.0.
Example
#configure terminal
(config)#bridge 1 protocol provider-rstp
(config)#vlan database
(config-vlan)#vlan 2-10 type service point-point bridge 1 state enable
(config-vlan)#exit
(config)#interface xe0
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport provider-network allowed vlan all
(config-if)#switchport provider-network isolated-vlan 2-10
switchport provider-network vlan translation
Use this command to add a translation table entry for CVLAN and SVLAN on a provider network port.
Use the no form of this command to delete a translation table entry for CVLAN and SVLAN on a provider network port.
Command Syntax
switchport provider-network vlan translation (cvlan <2-4094>| ) svlan <2-4094> (cvlan <2-4094> | ) svlan <2-4094>
no switchport (provider-network) vlan translation svlan VLAN_ID svlan VLAN_ID
no switchport (provider-network) vlan translation cvlan <1-4095> svlan <1-4095>
Parameters
cvlan
CVLAN to translate
<2-4094>
CVLAN identifier to translate
svlan
SVLAN to translate
<2-4094>
SVLAN identifier to translate
cvlan
Translated CVLAN
<2-4094>
Translated CVLAN identifier
svlan
Translated SVLAN
<2-4094>
Translated SVLAN identifier
scos
Class of Service in the Priority Code Point (PCP) field of the service provider tag (STAG)
<0-7>
Class-of-service value
scfi
Canonical Format Indicator in the Drop Eligible Indicator (DEI) field of the STAG
<0-1>
Canonical Format Indicator value
ccos
Class of Service in the PCP field of the customer tag (CTAG)
<0-7>
Class-of-service value
ccfi
Canonical Format Indicator in the DEI field of the CTAG
<0-1>
Canonical Format Indicator value
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth1
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport mode provider-network
(config-if)#switchport provider-network allowed vlan all
(config-if)#switchport provider-network vlan translation cvlan 2 svlan 3 cvlan 4 svlan 5
vlan type
This command allows you to create a single/range of VLAN’s on provide/edge bridge.
Use the no form of this command to delete the VLAN.
Command Syntax
vlan VLAN_RANGE type customer bridge <1-32>
vlan VLAN_RANGE type customer bridge <1-32> name WORD
vlan VLAN_RANGE type customer bridge <1-32> state (enable | disable)
vlan VLAN_RANGE type service point-point bridge <1-32>
vlan VLAN_RANGE type service point-point bridge <1-32> name WORD
vlan VLAN_RANGE type service point-point bridge <1-32> state (enable | disable)
no vlan VLAN_RANGE type customer bridge <1-32>
no vlan VLAN_RANGE type service bridge <1-32>
Parameters
VLAN_RANGE
VLAN identifier <2-4094> or range such as 2-5,10 or 2-5,7-19
customer
Identifies the Customer VLAN
bridge
Specify the bridge group ID in the range <1-32>.
name
The ASCII name of the VLAN. Maximum length allowed is 16 characters.
point-point
Sets the VLAN connectivity mode to point-to-point
WORD
ASCII name of the VLAN.
state
Indicates the operational state of the VLAN.
enable
Sets VLAN into an enable state.
disable
Sets VLAN into a disable state.
Command Mode
Configuration Mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)vlan 2,4,5-6 customer bridge 2
(config)vlan 10-12 service type point-point bridge 3
vlan type customer
Use this command to configure VLANs of type customer, to enable or disable the state of the VLANs, and to configure the name for VLANs.
Use the no form of this command to remove the VLAN type.
Command Syntax
vlan <2-4094> type customer bridge <1-32>
vlan <2-4094> type customer bridge <1-32> state (enable|disable)
vlan <2-4094> type customer bridge <1-32> name WORD
no vlan <2-4094> type customer bridge <1-32>
Parameters
<2-4094>
The VID of the VLAN that will be enabled or disabled on the bridge <2-4094>.
type
Identifies the VLAN as a customer, service, or VLAN.
customer
Identifies the Customer VLAN
bridge
Indicates a Service VLAN <1-32>.
name
The ASCII name of the VLAN. Maximum length allowed is 16 characters.
state
Indicates the operational state of the VLAN.
enable
Sets VLAN into an enable state.
disable
Sets VLAN into a disable state.
WORD
ASCII name of the VLAN.
Command Mode
VLAN Configuration mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#vlan database
(config-vlan)#vlan 12 type customer bridge 1 name new state enable