- Table of Contents
-
- H3C S6860 Switch Series Configuration Examples-Release 26xx-6W100
- 01-Login Management Configuration Examples
- 02-RBAC Configuration Examples
- 03-Software Upgrade Examples
- 04-ISSU Configuration Examples
- 05-Software Patching Examples
- 06-Ethernet Link Aggregation Configuration Examples
- 07-Port Isolation Configuration Examples
- 08-Spanning Tree Configuration Examples
- 09-VLAN Configuration Examples
- 10-VLAN Tagging Configuration Examples
- 11-PBB Configuration Examples
- 12-DHCP Snooping Configuration Examples
- 13-Cross-Subnet Dynamic IP Address Allocation Configuration Examples
- 14-IPv6 over IPv4 Manual Tunneling with OSPFv3 Configuration Examples
- 15-ISATAP Tunnel and 6to4 Tunnel Configuration Examples
- 16-IPv6 over IPv4 GRE Tunnel Configuration Examples
- 17-GRE with OSPF Configuration Examples
- 18-OSPF Configuration Examples
- 19-IS-IS Configuration Examples
- 20-BGP Configuration Examples
- 21-Policy-Based Routing Configuration Examples
- 22-OSPFv3 Configuration Examples
- 23-IPv6 IS-IS Configuration Examples
- 24-Routing Policy Configuration Examples
- 25-IGMP Snooping Configuration Examples
- 26-IGMP Configuration Examples
- 27-BIDIR-PIM Configuration Examples
- 28-Multicast VPN Configuration Examples
- 29-MLD Snooping Configuration Examples
- 30-IPv6 Multicast VLAN Configuration Examples
- 31-Basic MPLS Configuration Examples
- 32-MPLS L3VPN Configuration Examples
- 33-ACL Configuration Examples
- 34-Control Plane-Based QoS Policy Configuration Examples
- 35-Traffic Policing Configuration Examples
- 36-GTS and Rate Limiting Configuration Examples
- 37-Priority Mapping and Queue Scheduling Configuration Examples
- 38-Traffic Filtering Configuration Examples
- 39-AAA Configuration Examples
- 40-Port Security Configuration Examples
- 41-Portal Configuration Examples
- 42-SSH Configuration Examples
- 43-IP Source Guard Configuration Examples
- 44-Ethernet OAM Configuration Examples
- 45-CFD Configuration Examples
- 46-DLDP Configuration Examples
- 47-VRRP Configuration Examples
- 48-BFD Configuration Examples
- 49-NTP Configuration Examples
- 50-SNMP Configuration Examples
- 51-NQA Configuration Examples
- 52-Mirroring Configuration Examples
- 53-sFlow Configuration Examples
- 54-FCoE Configuration Examples
- 55-SPBM Configuration Examples
- 56-OpenFlow Configuration Examples
- 57-MAC Address Table Configuration Examples
- 58-Static Multicast MAC Address Entry Configuration Examples
- 59-IP Unnumbered Configuration Examples
- 60-MVRP Configuration Examples
- 61-MCE Configuration Examples
- 62-Congestion Avoidance and Queue Scheduling Configuration Examples
- 63-Attack Protection Configuration Examples
- 64-Smart Link Configuration Examples
- 65-RRPP Configuration Examples
- 66-BGP Route Selection Configuration Examples
- 67-IS-IS Route Summarization Configuration Examples
- 68-IRF Configuration Examples
- 69-MPLS OAM Configuration Examples
- 70-MPLS TE Configuration Examples
- 71-VXLAN Configuration Examples
- 72-Comprehensive EVPN Configuration Examples
- 73-DRNI Configuration Examples
- 74-IRF 3.1 Configuration Examples
- 75-DRNI and EVPN Configuration Examples
- 76-VCF Fabric Configuration Examples
- 77-EVPN Networks and the Public Network Communication Configuration Examples
- Related Documents
-
11-PBB Configuration Examples
|
H3C S6860 Switch Series |
PBB Configuration Examples |
|
Copyright © 2018 New H3C Technologies Co., Ltd. All rights reserved.
No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.
Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.
The information in this document is subject to change without notice.
Contents
Introduction
This document provides PBB configuration examples.
Prerequisites
The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.
This document assumes that you have basic knowledge of PBB.
Example: Configuring PBB
Network configuration
As shown in Figure 1, Site A and Site B both have VLANs 100 through 120.
· Configure QinQ on Device A and Device B to transmit VLANs 100 through 120 in SVLAN 1000.
· Configure PBB on BEB 1 and BEB 2 to extend the VLANs across the two sites.
Analysis
To meet the network requirements, you must perform the following tasks on BEB 1 and BEB 2:
· Configure a service instance on the downlink port to match frames that have an outer VLAN ID of 1000.
· Specify the access mode and data encapsulation type of the PBB VSI as Ethernet to retain the VLAN tags of the customer frames.
Software versions used
This configuration example was created and verified on S6860-CMW710-R2612.
Restrictions and guidelines
You need to configure PBB only on BEBs.
Procedures
Configuring BEB 1
# Create VLAN 1000 and VLAN 2000.
<BEB1> system-view
[BEB1] vlan 1000
[BEB1-vlan1000] quit
[BEB1] vlan 2000
[BEB1-vlan2000] quit
# Enable L2VPN.
[BEB1] l2vpn enable
# Create a VSI.
[BEB1] vsi test
# Assign PBB I-SID 1 to the VSI.
[BEB1-vsi-test] pbb i-sid 1
# Specify B-VLAN 2000 for the PBB VSI.
[BEB1-vsi-test-1] bvlan 2000
[BEB1-vsi-test-1] quit
[BEB1-vsi-test] quit
# Configure Ten-GigabitEthernet 1/0/1 as a trunk port, assign it to VLAN 2000, and remove it from VLAN 1. Configure Ten-GigabitEthernet 1/0/1 as an uplink port of the PBB VSI.
[BEB1] interface ten-gigabitethernet 1/0/1
[BEB1-Ten-GigabitEthernet1/0/1] port link-type trunk
[BEB1-Ten-GigabitEthernet1/0/1] port trunk permit vlan 2000
[BEB1-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[BEB1-Ten-GigabitEthernet1/0/1] pbb uplink vsi test
[BEB1-Ten-GigabitEthernet1/0/1] quit
# Configure Ten-GigabitEthernet 1/0/2 as a trunk port, assign it to VLAN 1000, and remove it from VLAN 1.
[BEB1] interface ten-gigabitethernet 1/0/2
[BEB1-Ten-GigabitEthernet1/0/2] port link-type trunk
[BEB1-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1000
[BEB1-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1
# Create service instance 1 on Ten-GigabitEthernet 1/0/2.
[BEB1-Ten-GigabitEthernet1/0/2] service-instance 1
# Configure the service instance to match frames that have an outer VLAN ID of 1000. Associate the service instance with the PBB VSI, and set the access mode to Ethernet.
[BEB1-Ten-GigabitEthernet1/0/2-srv1] encapsulation s-vid 1000
[BEB1-Ten-GigabitEthernet1/0/2-srv1] xconnect vsi test access-mode ethernet
[BEB1-Ten-GigabitEthernet1/0/2-srv1] quit
[BEB1-Ten-GigabitEthernet1/0/2] quit
# Enable Ethernet encapsulation for the PBB VSI.
[BEB1] vsi test
[BEB1-vsi-test] pbb i-sid 1
[BEB1-vsi-test-1] encapsulation ethernet
[BEB1-vsi-test-1] quit
[BEB1-vsi-test] quit
Configuring BEB 2
# Configure BEB 2 in the same way BEB 1 is configured. (Details not shown.)
Configuring BCB
# Create VLAN 2000.
<BCB> system-view
[BCB] vlan 2000
[BCB-vlan2000] quit
# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 as trunk ports, assign them to VLAN 2000, and remove them from VLAN 1.
[BCB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2
[BCB-if-range] port link-type trunk
[BCB-if-range] port trunk permit vlan 2000
[BCB-if-range] undo port trunk permit vlan 1
[BCB-if-range] quit
Configuring Device A
# Create VLAN 1000.
<DeviceA> system-view
[DeviceA] vlan 1000
[DeviceA-vlan1000] quit
# Configure Ten-GigabitEthernet 1/0/1 as an access port, and assign it to VLAN 1000.
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port access vlan 1000
# Enable QinQ on Ten-GigabitEthernet 1/0/1.
[DeviceA-Ten-GigabitEthernet1/0/1] qinq enable
[DeviceA-Ten-GigabitEthernet1/0/1] quit
# Configure Ten-GigabitEthernet 1/0/2 as a trunk port, assign it to VLAN 1000, and remove it from VLAN 1.
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceA-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1000
[DeviceA-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1
[DeviceA-Ten-GigabitEthernet1/0/2] quit
Configuring Device B
# Configure Device B in the same way Device A is configured. (Details not shown.)
Verifying the configuration
# Verify that correct PBB VSI uplink connections have been established between BEB 1 and BEB 2.
<BEB1> display pbb connection
BMAC BVLAN Port Type Aging
011e-8300-0001 2000 XGE1/0/1 MC N
0cda-415e-232e 2000 XGE1/0/1 UC Y
<BEB2> display pbb connection
BMAC BVLAN Port Type Aging
011e-8300-0001 2000 XGE1/0/1 MC N
00e0-fc58-1234 2000 XGE1/0/1 UC Y
# Verify that hosts in Site 1 and Site 2 can ping each another. (Details not shown.)
# Verify that the BCB does not learn customer MAC addresses.
<BCB> display mac-address
Configuration files
· BEB 1 and BEB 2:
#
vlan 1000
#
vlan 2000
#
l2vpn enable
#
vsi test
pbb i-sid 1
bvlan 2000
encapsulation ethernet
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2000
pbb uplink vsi test
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 1000
service-instance 1
encapsulation s-vid 1000
xconnect vsi test access-mode ethernet
#
· BCB:
#
vlan 2000
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2000
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2000
#
· Device A and Device B:
#
vlan 1000
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port access vlan 1000
qinq enable
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 1000
#
Related documentation
· H3C S6860 Switch Series Layer 2—LAN Switching Command Reference-Release 26xx
· H3C S6860 Switch Series Layer 2—LAN Switching Configuration Guide-Release 26xx