H3C S6800 & S6860 & S6861 Switches Configuration Examples-Release 27xx-6W100

HomeSupportConfigure & DeployConfiguration ExamplesH3C S6800 & S6860 & S6861 Switches Configuration Examples-Release 27xx-6W100
Table of Contents
Related Documents
11-PBB Configuration Examples
Title Size Download
11-PBB Configuration Examples 77.53 KB

 

H3C S6800 & S6860 & S6861 Switches

PBB Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2019 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.

 



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.

Figure 1 Network diagram

 

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.

Applicable hardware and software versions

The following matrix shows the hardware and software versions to which this configuration example is applicable:

 

Hardware

Software version

S6800 switch series

S6860 switch series

Release 2702

S6861 switch series

Not supported

 

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 S6800[S6860][S6861] (R27xx) & S6820 (R630x) Switch Series Layer 2—LAN Switching Command Reference

·          H3C S6800[S6860][S6861] (R27xx) & S6820 (R630x) Switch Series Layer 2—LAN Switching Configuration Guide

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网