No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

ME60 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access 01

This is ME60 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring Selective QinQ

Example for Configuring Selective QinQ

This section provides an example for configuring selective QinQ. Selective QinQ is an extension to QinQ tunneling and is more flexible. When receiving packets, a selective QinQ-enabled interface adds different outer tags depending on the inner tags of the packets.

Networking Requirements

On the network shown in Figure 9-17, company 1 and company 2 each have multiple offices.

  • VLANs 2 to 500 are used on the network of company 1.

  • VLANs 501 to 4094 are used on the network of company 2.

  • GE 1/0/1 on Device A receives packets from different VLANs of company 1 and company 2.

Selective QinQ is required on GE 1/0/1 of Device A on the carrier network so that the office networks of each company can communicate with each other, but the office networks of different companies cannot.

Figure 9-17 Networking of selective QinQ
NOTE:

Interfaces 1 through 3 in this example are GE 1/0/1, GE 2/0/1, GE 3/0/1, respectively.



Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure default outer VLAN IDs.

  2. Configure selective QinQ on Layer 2 interfaces so that the interfaces can add different outer VLAN tags to packets.

  3. Configure other selective QinQ-incapable interfaces to forward packets carrying a specific outer VLAN ID.

Data Preparation

To complete the configuration, you need the following data:

  • Numbers of interfaces connected to companies 1 and 2

  • Outer VLAN IDs that Layer 2 interfaces on Device A and Device B add to packets from different companies

Procedure

  1. Create default outer VLAN IDs on Layer 2 interfaces.

    # Configure DeviceA.

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceA
    [*HUAWEI] commit
    [~DeviceA] vlan batch 10 20
    [*DeviceA] commit

    # Configure DeviceB.

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceB
    [*HUAWEI] commit
    [~DeviceB] vlan batch 20
    [*DeviceB] commit

  2. Configure selective QinQ on Layer 2 interfaces.

    # Configure DeviceA.

    [*DeviceA] interface gigabitethernet 1/0/1
    [*DeviceA-GigabitEthernet1/0/1] portswitch
    [*DeviceA-GigabitEthernet1/0/1] port vlan-stacking vlan 2 to 500 stack-vlan 10
    [*DeviceA-GigabitEthernet1/0/1] port vlan-stacking vlan 1000 to 2000 stack-vlan 20
    [*DeviceA-GigabitEthernet1/0/1] undo shutdown
    [*DeviceA-GigabitEthernet1/0/1] quit
    [*DeviceA] interface gigabitethernet 2/0/1
    [*DeviceA-GigabitEthernet2/0/1] portswitch
    [*DeviceA-GigabitEthernet2/0/1] port vlan-stacking vlan 100 to 500 stack-vlan 10
    [*DeviceA-GigabitEthernet2/0/1] undo shutdown
    [*DeviceA-GigabitEthernet2/0/1] commit
    [~DeviceA-GigabitEthernet2/0/1] quit

    # Configure DeviceB.

    [~DeviceB] interface gigabitethernet 1/0/1
    [*DeviceB-GigabitEthernet1/0/1] portswitch
    [*DeviceB-GigabitEthernet1/0/1] port vlan-stacking vlan 1000 to 4094 stack-vlan 20
    [*DeviceB-GigabitEthernet1/0/1] undo shutdown
    [*DeviceB-GigabitEthernet1/0/1] quit
    [*DeviceB] interface gigabitethernet 2/0/1
    [*DeviceB-GigabitEthernet2/0/1] portswitch
    [*DeviceB-GigabitEthernet2/0/1] port vlan-stacking vlan 500 to 2500 stack-vlan 20
    [*DeviceB-GigabitEthernet2/0/1] undo shutdown
    [*DeviceB-GigabitEthernet2/0/1] commit
    [~DeviceB-GigabitEthernet2/0/1] quit

  3. Configure other interfaces.

    # Configure GE 3/0/1 on Device A to forward packets carrying outer VLAN ID 20.

    [*DeviceA] interface gigabitethernet 3/0/1
    [*DeviceA-GigabitEthernet3/0/1] portswitch
    [*DeviceA-GigabitEthernet3/0/1] port trunk allow-pass vlan 20
    [*DeviceA-GigabitEthernet3/0/1] undo shutdown
    [*DeviceA-GigabitEthernet3/0/1] commit
    [~DeviceA-GigabitEthernet3/0/1] quit

    # Configure GE 3/0/1 on Device B to forward packets carrying outer VLAN ID 20.

    [*DeviceB] interface gigabitethernet 3/0/1
    [*DeviceB-GigabitEthernet3/0/1] portswitch
    [*DeviceB-GigabitEthernet3/0/1] port trunk allow-pass vlan 20
    [*DeviceB-GigabitEthernet3/0/1] undo shutdown
    [*DeviceB-GigabitEthernet3/0/1] commit
    [~DeviceB-GigabitEthernet3/0/1] quit

  4. Verify the configuration.

    Hosts in different offices but the same VLAN can ping each other in company 1.

    Hosts in different offices but the same VLAN can ping each other in company 2.

    Hosts in company 1 and hosts in company 2 cannot ping each other.

Configuration Files

  • Device A configuration file

    #
     sysname DeviceA
    #
     vlan batch 10 20
    #
    interface GigabitEthernet1/0/1
     undo shutdown
     portswitch
     port vlan-stacking vlan 2 to 500 stack-vlan 10
     port vlan-stacking vlan 1000 to 2000 stack-vlan 20
    #
    interface GigabitEthernet2/0/1
     undo shutdown
     portswitch
     port vlan-stacking vlan 100 to 500 stack-vlan 10
    #
    interface GigabitEthernet3/0/1
     undo shutdown
     portswitch
     port trunk allow-pass vlan 20
    #
    return
  • Device B configuration file

    #
     sysname DeviceB
    #
     vlan batch 20
    #
    interface GigabitEthernet1/0/1
     undo shutdown
     portswitch
     port vlan-stacking vlan 1000 to 4094 stack-vlan 20
    #
    interface GigabitEthernet2/0/1
     undo shutdown
     portswitch
     port vlan-stacking vlan 500 to 2500 stack-vlan 20
    #
    interface GigabitEthernet3/0/1
     undo shutdown
     portswitch
     port trunk allow-pass vlan 20
    #
    return
Translation
Download
Updated: 2019-01-04

Document ID: EDOC1100059440

Views: 27294

Downloads: 18

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next