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

Low-end ethernet switches
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents