<Quidway> system-view
[Quidway] sysname SwitchF
[SwitchF] vlan batch 10 20
# Create VLAN 20 on SwitchG.
<Quidway> system-view
[Quidway] sysname SwitchG
[SwitchG] vlan 20
Step 2 Configure the interfaces as QinQ interfaces.
# Configure GE 1/0/1, GE 2/0/1, and GE 3/0/1 of SwitchF as QinQ interfaces. Set the VLAN
ID of the outer VLAN tag added by GE 1/0/1 and GE 3/0/1/ to VLAN 10; set the VLAN ID of
the outer VLAN tag added by GE 2/0/1 to VLAN 20.
[SwitchF] interface gigabitethernet 1/0/1
[SwitchF-GigabitEthernet1/0/1] port link-type dot1q-tunnel
[SwitchF-GigabitEthernet1/0/1] port default vlan 10
[SwitchF-GigabitEthernet1/0/1] quit
[SwitchF] interface gigabitethernet 2/0/1
[SwitchF-GigabitEthernet2/0/1] port link-type dot1q-tunnel
[SwitchF-GigabitEthernet2/0/1] port default vlan 20
[SwitchF-GigabitEthernet2/0/1] quit
[SwitchF] interface gigabitethernet 3/0/1
[SwitchF-GigabitEthernet3/0/1] port link-type dot1q-tunnel
[SwitchF-GigabitEthernet3/0/1] port default vlan 10
[SwitchF-GigabitEthernet3/0/1] quit
# Set GE 1/0/1 and GE 2/0/1 of SwitchG as QinQ interfaces; set the VLAN ID of the outer
VLAN tags added by GE 1/0/1 and GE 2/0/1/ to VLAN 20.
[SwitchG] interface gigabitethernet 1/0/1
[SwitchG-GigabitEthernet1/0/1] port link-type dot1q-tunnel
[SwitchG-GigabitEthernet1/0/1] port default vlan 20
[SwitchG-GigabitEthernet1/0/1] quit
[SwitchG] interface gigabitethernet 2/0/1
[SwitchG-GigabitEthernet2/0/1] port link-type dot1q-tunnel
[SwitchG-GigabitEthernet2/0/1] port default vlan 20
[SwitchG-GigabitEthernet2/0/1] quit
Step 3 Configure other interfaces.
# Add GE 4/0/1 of SwitchF to VLAN 20.
[SwitchF] interface gigabitethernet 4/0/1
[SwitchF-GigabitEthernet4/0/1] port link-type trunk
[SwitchF-GigabitEthernet4/0/1] port trunk allow-pass vlan 20
[SwitchF-GigabitEthernet4/0/1] quit
# Add GE 3/0/1 of SwitchG to VLAN 20.
[SwitchG] interface gigabitethernet 3/0/1
[SwitchG-GigabitEthernet3/0/1] port link-type trunk
[SwitchG-GigabitEthernet3/0/1] port trunk allow-pass vlan 20
[SwitchG-GigabitEthernet3/0/1] quit
Step 4 Verify the configuration.
Ping a remote host on the same VLAN in another office location of Enterprise 1 from a host of
Enterprise 1. If it can ping the remote host, hosts in different locations of Enterprise 1 can
communicate with each other.
Ping a remote host on the same VLAN in another office location of Enterprise 2 from a host of
Enterprise 2. If it can ping the remote host, hosts in different locations of Enterprise 2 can
communicate with each other.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 5 QinQ Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
217