H3C LS-5100-16P-SI-OVS-H3 Configuration page 279

Low-end ethernet switches
Table of Contents

Advertisement

QinQ
H3C Low-End Ethernet Switches Configuration Examples
II. Configuration procedure
Configure the S3600-1
# Create SVLANs 100 through 102 and SVLANs 200 through 202.
<S3600-1> system-view
[S3600-1] vlan 100 to 102
[S3600-1] vlan 200 to 202
# Configure Ethernet 1/0/10 as a hybrid port, and assign it to SVLANs 100 through 102
and SVLAN 500. Configure SVLAN 500 as the default VLAN of Ethernet 1/0/10, and
configure Ethernet 1/0/10 to forward the traffic of the four VLANs with their outer VLAN
tag removed.
[S3600-1] interface Ethernet 1/0/10
[S3600-1-Ethernet1/0/10] port link-type hybrid
[S3600-1-Ethernet1/0/10] port hybrid vlan 100 101 102 500 untagged
[S3600-1-Ethernet1/0/10] port hybrid pvid vlan 500
# Enable basic QinQ on Ethernet 1/0/10 to tag the untagged multicast traffic with the
SVLAN ID 500.
[S3600-1-Ethernet1/0/10] vlan-vpn enable
# Enable selective QinQ on Ethernet 1/0/10 to tag the received tagged traffic with an
SVLAN ID based on the CVLAN ID.
[S3600-1-Ethernet1/0/10] vlan-vpn vid 100
[S3600-1-Ethernet1/0/10-vid-100] raw-vlan-id inbound 20 to 100
[S3600-1-Ethernet1/0/10-vid-100] quit
[S3600-1-Ethernet1/0/10] vlan-vpn vid 101
[S3600-1-Ethernet1/0/10-vid-101] raw-vlan-id inbound 200 to 300
[S3600-1-Ethernet1/0/10-vid-101] quit
[S3600-1-Ethernet1/0/10] vlan-vpn vid 102
[S3600-1-Ethernet1/0/10-vid-102] raw-vlan-id inbound 400
[S3600-1-Ethernet1/0/10-vid-102] quit
[S3600-1-Ethernet1/0/10]
# Enable MAC address replicating on Ethernet 1/0/10 to replicate the MAC addresses
learned in VLAN 500 to SVLANs 100 through 102.
[S3600-1-Ethernet1/0/10]
destination-vlan 100
[S3600-1-Ethernet1/0/10]
destination-vlan 101
[S3600-1-Ethernet1/0/10]
destination-vlan 102
# Set the TPID in outer VLAN tags to 0x9100.
[S3600-1-Ethernet1/0/10] vlan-vpn tpid 9100
mac-address-mapping
mac-address-mapping
mac-address-mapping
2-5
Chapter 2 Configuration Examples
0
source-vlan
1
source-vlan
2
source-vlan
500
500
500

Advertisement

Table of Contents
loading

Table of Contents