2-9
Displaying Protocol-Based VLAN Configuration
To do... Use the command... Remarks
Display the information about
the protocol-based VLAN
display vlan [ vlan-id [ to
vlan-id ] | all | dynamic | static]
Display the protocol information
and protocol indexes
configured on the specified
VLAN
display protocol-vlan vlan
{ vlan-id [ to vlan-id ] | all }
Display the protocol information
and protocol indexes
configured on the specified port
display protocol-vlan
interface { interface-type
interface-number [ to
interface-type
interface-number ] | all }
Available in any view
Protocol-Based VLAN Configuration Example
Network requirements
z As shown in Figure 2-2, Workroom connects to the LAN through port GigabitEthernet 1/0/10 on the
switch.
z IP network and AppleTalk network workstations (hosts) coexist in the Workroom.
z The switch connects to VLAN 100 (using IP network) through GigabitEthernet 1/0/11 and to VLAN
200 (using AppleTalk network) through GigabitEthernet 1/0/12.
z Configure the switch to automatically assign the IP and AppleTalk packets to proper VLANs for
transmission, so as to ensure the normal communication between the workstations and servers.
Network diagram
IP Host
GE1/0/10
GE1/0/11 GE1/0/12
Workroom
AppleTalk Host
IP Server AppleTalk Server
Figure 2-2 Network diagram for protocol-based VLAN configuration
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.
<Sysname> system-view
[Sysname] vlan 100
[Sysname-vlan100] port GigabitEthernet 1/0/11