H3C Technologies H3C S3600 Series Switches User Manual
Page 1044
2-7
[SwitchB] interface Ethernet 1/0/11
[SwitchB-Ethernet1/0/11] port link-type hybrid
[SwitchB-Ethernet1/0/11] port hybrid vlan 12 13 1000 1200 tagged
# Configure Ethernet1/0/12 as a hybrid port and configure VLAN 12 as its default VLAN . Configure
Ethernet 1/0/12 to remove VLAN tags when forwarding packets of VLAN 12 and VLAN 1000.
[SwitchB] interface Ethernet 1/0/12
[SwitchB-Ethernet1/0/12] port link-type hybrid
[SwitchB-Ethernet1/0/12] port hybrid pvid vlan 12
[SwitchB-Ethernet1/0/12] port hybrid vlan 12 1000 untagged
[SwitchB-Ethernet1/0/12] quit
# Configure Ethernet 1/0/13 as a hybrid port and configure VLAN 13 as its default VLAN . Configure
Ethernet 1/0/13 to remove VLAN tags when forwarding packets of VLAN 13 and VLAN 1200.
[SwitchB] interface Ethernet 1/0/13
[SwitchB-Ethernet1/0/13] port link-type hybrid
[SwitchB-Ethernet1/0/13] port hybrid pvid vlan 13
[SwitchB-Ethernet1/0/13] port hybrid vlan 13 1200 untagged
After the above configuration, Switch B can forward packets of VLAN 1000 and VLAN 1200 to the
corresponding servers through Ethernet 1/0/12 and Ethernet 1/0/13 respectively.
To make the packets from the servers be transmitted to the clients in the same way, you need to
configure the selective QinQ feature and the inter-VLAN MAC address replicating feature on Ethernet
1/0/12 and Ethernet 1/0/13. The configuration on Switch B is similar to that on Switch A and is thus
omitted.
z
The port configuration on Switch B is only an example for a specific network requirement. The key
to this example is to enable the ports to receive and forward packets of specific VLANs. So you can
also configure the ports as trunk ports. Refer to VLAN Configuration for details.
z
A selective QinQ-enabled device tags a user packet with an outer VLAN tag regardless of the
VLAN tag of the user packet, so there is no need to configure user VLANs on the device.
z
Make sure the packets of the default VLAN of a selective QinQ-enabled port are permitted on both
the local port and the port connecting to the public network.