OcNOS-SP : Layer 2 Guide : Layer 2 Configuration Guide : Provider Bridging Configuration (SVLAN)
Provider Bridging Configuration (SVLAN)
This chapter contains sample provider bridging configurations for Customer-Network Port (CNP).
A provider bridged network is a virtual bridged Local Area Network that comprises provider bridges (SVLAN bridges and provider edge bridges) and attached LANs, under the administrative control of a single service provider. Provider bridges interconnect the separate MACs of the IEEE 802 LANs that compose a provider bridged network, relaying frames to provide connectivity between all the LANs that provide customer interfaces for each service instance.
Customer-Network Port (CNP)
In Q-in-Q, the customer network port is similar to provider network port, which can be present in provider-edge bridge (PEB) or provider bridge core (PB), where it can be directly connected to a dedicated customer network. Only SVLAN ids are configurable on Customer network port and learning and forwarding occurs based on SVLAN.
STAG-based Interface
In this case, the customer will be sending traffic with SVLAN, which will be learned and forwarded via provider network.
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
Port-based Interface
In this case, the customer traffic with C-VLAN/untagged, received on interface will be stacked with a customer-network SVLAN ID and will be forwarded via provider network. While egressing out of customer-network port for the default SVLAN, the outer SVLAN id will be stripped and the packet will be sent as C-TAG or untagged to customer device.
In this example, the xe1 interface allows C-TAG/untagged traffic from customers, adding an SVLAN ID 100 before forwarding to the provider network. While egressing out, the SVLAN ID100 will be stripped.
(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
Topology
Single provider bridge configuration
Configuration
SW1 (PEB)
 
SW1#configure terminal
Enter configuration mode
SW1(config)#bridge 1 protocol provider-rstp edge
Create bridge
SW1(config)#vlan database
Enter VLAN configuration mode
SW1(config-vlan)#vlan 100,200 type service point-point bridge 1 state enable
Create service vlan VLAN 100, 200
SW1(config-vlan)#exit
Exit VLAN configuration mode
SW1(config)#interface eth1
Enter interface configuration mode for eth1
SW1(config-if)#switchport
Configure switchport
SW1(config-if)#dot1ad ethertype 0x88a8
Add Provider Bridging Service VLAN tag identifier
SW1(config-if)#switchport mode customer-network
Configure switchport mode for CNP(customer network port)
SW1(config-if)#switchport customer-network allowed vlan add 200
Associate vlan 200 with interface
SW1(config-if)#switchport customer-network vlan 200
Add vlan 200 as default SVLAN-ID for traffic with CVLAN/untagged
SW1(config-if)#exit
Exit interface mode
SW1(config-if)#interface eth2
Enter interface configuration mode for eth2
SW1(config-if)#switchport
Make interface as switchport
SW1(config-if)#bridge-group 1
Associate interface with bridge-group 1
SW1(config-if)#switchport mode provider- network
Configure switchport pnp port
SW1(config-if)#switchport provider-network allowed vlan all
Associate all svlan to the port
SW1(config-if)#commit
Commit the configuration.
SW1(config-if)#exit
Exit interface configuration mode
 
SW2 (PB)
 
SW2#configure terminal
Enter configuration mode
SW2(config)#bridge 1 protocol provider-rstp
Create provider bridge
SW2(config)#vlan database
Enter VLAN configuration mode
SW2(config-vlan)#vlan 200 type service point-point bridge 1 state enable
Create service vlan VLAN200
SW2(config-vlan)#exit
Exit VLAN configuration mode
SW2(config)#interface eth1
Enter interface configuration mode for eth1
SW2(config-if)#switchport
Make interface as switchport
SW2(config-if)#bridge-group 1
Associate interface with bridge-group 1
SW2(config-if)#switchport mode provider- network
Configure switchport pnp port
SW2(config-if)#switchport provider-network allowed vlan all
Associate all svlan to the port
SW2(config-if)#exit
Exit interface configuration mode
SW2(config-if)#interface eth2
Enter interface configuration mode for eth2
SW2(config-if)#switchport
Make interface as switchport
SW2(config-if)#bridge-group 1
Associate interface with bridge-group 1
SW2(config-if)#switchport mode provider- network
Configure switchport pnp port
SW2(config-if)#switchport provider-network allowed vlan all
Associate all svlan to the port
SW2(config-if)#commit
Commit the configuration.
SW2(config-if)#exit
Exit interface configuration mode
SW3 (PEB)
 
SW3#configure terminal
Enter configuration mode
SW3(config)#bridge 1 protocol provider-rstp edge
Create bridge
SW3(config)#vlan database
Enter VLAN configuration mode
SW3(config-vlan)#vlan 200 type service point-point bridge 1 state enable
Create service vlan VLAN200
SW3(config-vlan)#exit
Exit VLAN configuration mode
SW3(config)#interface eth1
Enter interface configuration mode for eth1
SW3(config-if)#switchport
Configure switchport
SW3(config-if)#dot1ad ethertype 0x88a8
Add Provider Bridging Service VLAN tag identifier
SW3(config-if)#bridge-group 1
Associate interface with bridge-group 1
SW3(config-if)#switchport mode customer-network
Configure switchport CNP port
SW3(config-if)#switchport customer-network allowed vlan add 200
Associate vlan 200 with interface
SW3(config-if)#switchport customer-network vlan 200
Add vlan 200 as default SVLAN-ID for traffic with CVLAN/untagged
SW3(config-if)#exit
Exit interface mode
SW3(config-if)#interface eth2
Enter interface configuration mode for eth2
SW3(config-if)#switchport
Make interface as switchport
SW3(config-if)#bridge-group 1
Associate interface with bridge-group 1
SW3(config-if)#switchport mode provider- network
Configure switchport pnp port
SW3(config-if)#switchport provider-network allowed vlan all
Associate all svlan to the port
SW3(config-if)#commit
Commit the configuration.
SW3(config-if)#exit
Exit interface configuration mode
Validation
SW3#show bridge
bridge 1 is running on provider-rstp edge
Ageout time is global and if something is configured for vxlan then it will be affected here also
Bridge CVLAN SVLAN BVLAN Port MAC Address FWD Time-out
---------+------+------+------+-----------+-----------------+-----+------+
1 200 eth1 0000.0000.0f00 1 300
1 200 eth2 0001.0000.0800 1 300
 
SW1#show bridge
bridge 1 is running on provider-rstp edge
Ageout time is global and if something is configured for vxlan then it will be affected here also
Bridge CVLAN SVLAN BVLAN Port MAC Address FWD Time-out
---------+------+------+------+-----------+-----------------+-----+------+
1 200 eth2 0000.0000.0f00 1 300
1 200 eth1 0001.0000.0800 1 300