Configuration procedure

#Create VLAN 100 and VLAN 200, and add GigabitEthernet 1/0/11 and GigabitEthernet 1/0/12 to VLAN 100 and VLAN 200 respectively.

<device> system-view [device] vlan 100

[device-vlan100] port GigabitEthernet 1/0/11

[device-vlan100] quit [device] vlan 200

[device-vlan200] port GigabitEthernet 1/0/12

#Configure protocol templates for VLAN 200 and VLAN 100, matching AppleTalk protocol and IP protocol respectively.

[device-vlan200] protocol-vlan at

[device-vlan200] quit

[device] vlan 100

[device-vlan100] protocol-vlan ip

#To ensure the normal operation of IP network, you need to configure a user-defined protocol template for VLAN 100 to match the ARP protocol (assume Ethernet II encapsulation is adopted here).

[device-vlan100] protocol-vlan mode ethernetii etype 0806

# Display the created protocol-based VLANs and the protocol templates.

[device-vlan100] display protocol-vlan vlan all

VLAN ID: 100

VLAN Type: Protocol-based VLAN

Protocol Index

Protocol Type

0

ip

1

ethernetii etype 0x0806

VLAN

ID: 200

 

VLAN Type: Protocol-based VLAN

 

Protocol Index

Protocol Type

 

0

at

#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

2-8

Page 77
Image 77
3Com WX3000 operation manual Vlan