H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 90

Advertising
background image

11-9

# Configure GigabitEthernet 1/0/10 as a hybrid port, which removes the VLAN tag of the packets of
VLAN 100 and VLAN 200 before forwarding the packets.

[device-vlan100] quit

[device] interface GigabitEthernet 1/0/10

[device-GigabitEthernet1/0/10] port link-type hybrid

[device-GigabitEthernet1/0/10] port hybrid vlan 100 200 untagged

# Associate GigabitEthernet 1/0/10 with protocol template 0 and 1 of VLAN 100, and protocol template
0 of VLAN 200.

[device-GigabitEthernet1/0/10] port hybrid protocol-vlan vlan 100 0 to 1

[device-GigabitEthernet1/0/10] port hybrid protocol-vlan vlan 200 0

# Display the associations between GigabitEthernet 1/0/10 and the VLAN protocol templates to verify
your configuration.

[device-GigabitEthernet1/0/10] display protocol-vlan interface GigabitEthernet 1/0/10

Interface:GigabitEthernet1/0/10

VLAN ID Protocol-Index Protocol-Type

100 0 ip

100 1 ethernetii etype 0x0806

200 0 at

The above output information indicates that GigabitEthernet 1/0/10 has already been associated with
the corresponding protocol templates of VLAN 100 and VLAN 200. Thus, packets from the IP and
AppleTalk workstations can be automatically assigned to VLAN 100 and VLAN 200 respectively for
transmission by matching the corresponding protocol templates, so as to realize the normal
communication between the workstations and the servers.

Advertising