H3C S5600 Series Operation Manual page 1161

Hide thumbs Also See for H3C S5600 Series:
Table of Contents

Advertisement

Operation Manual – VLAN-VPN
H3C S5600 Series Ethernet Switches
# Create VLAN 1000, VLAN 1200 and VLAN 5 (the default VLAN of GigabitEthernet
1/0/3) on SwitchA.
<SwitchA> system-view
[SwitchA] vlan 1000
[SwitchA-vlan1000] quit
[SwitchA] vlan 1200
[SwitchA-vlan1200] quit
[SwitchA] vlan 5
[SwitchA-vlan5] quit
# Configure GigabitEthernet 1/0/5 as a hybrid port and configure it not to remove VLAN
tags when forwarding packets of VLAN 5, VLAN 1000, and VLAN 1200.
[SwitchA] interface GigabitEthernet 1/0/5
[SwitchA-GigabitEthernet1/0/5] port link-type hybrid
[SwitchA-GigabitEthernet1/0/5] port hybrid vlan 5 1000 1200 tagged
[SwitchA-GigabitEthernet1/0/5] quit
# Configure GigabitEthernet 1/0/3 as a hybrid port and configure VLAN 5 as its default
VLAN. Configure GigabitEthernet 1/0/3 to remove VLAN tags when forwarding packets
of VLAN 5, VLAN 1000, and VLAN 1200.
[SwitchA] interface GigabitEthernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] port link-type hybrid
[SwitchA-GigabitEthernet1/0/3] port hybrid pvid vlan 5
[SwitchA-GigabitEthernet1/0/3] port hybrid vlan 5 1000 1200 untagged
# Enable the VLAN-VPN feature on GigabitEthernet 1/0/3.
[SwitchA-GigabitEthernet1/0/3] vlan-vpn enable
# Enable the selective QinQ feature on GigabitEthernet 1/0/3 to tag packets of VLAN
100 through VLAN 108 with the tag of VLAN 1000 as the outer VLAN tag, and tag
packets of VLAN 200 through VLAN 230 with the tag of VLAN 1200 as the outer VLAN
tag.
[SwitchA-GigabitEthernet1/0/3] vlan-vpn vid 1000
[SwitchA-GigabitEthernet1/0/3-vid-1000] raw-vlan-id inbound 100 to 108
[SwitchA-GigabitEthernet1/0/3-vid-1000] quit
[SwitchA-GigabitEthernet1/0/3] vlan-vpn vid 1200
[SwitchA-GigabitEthernet1/0/3-vid-1200] raw-vlan-id inbound 200 to 230
# Enable the inter-VLAN MAC address replicating feature to replicate the MAC address
entries of the MAC address tables of the outer VLANs to the MAC address table of the
default VLAN, and replicate the MAC address entries of the MAC address table of the
default VLAN to the MAC address tables of the outer VLANs.
[SwitchA-GigabitEthernet1/0/3-vid-1200] quit
[SwitchA-GigabitEthernet1/0/3]
destination-vlan 1000
Chapter 2 Selective QinQ Configuration
mac-address
mapping
2-7
0
source-vlan
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5600-26cS5600-26c-pwrS5600-26fS5600-50cS5600-50c-pwr

Table of Contents