58 CHAPTER 3: VLAN CONFIGURATION
Creating and Deleting a VLAN Protocol Type
You can use the following command to create or delete a VLAN protocol type.
Perform the following configuration in VLAN view.
Creating and Deleting the Association Between a Port and a
Protocol-Based VLAN
Perform the following configuration in Ethernet port view.
Note that the port must be a hybrid port and it must belong to that
protocol-based VLAN.
Example: VLAN Configuration
Create VLAN2 and VLAN3. Add Ethernet1/0/1 and Ethernet1/0/2 to VLAN2. Add
Ethernet1/0/3 and Ethernet1/0/4 to VLAN3.
Figure 16 VLAN Configuration Example
1Create VLAN 2 and enter its view.
[SW7750]vlan 2
2Add Ethernet1/0/1 and Ethernet1/0/2 to VLAN2.
Tabl e 54 Creating and Deleting a VLAN Protocol Type
Operation Command
Create a VLAN protocol type protocol-vlan [ protocol-index ]
{ ip [ ip_address [ net_mask ] ] |
{ ethernetii | llc | raw | snap } |
at | mode { ethernetii | llc | snap }
}
Delete an existing VLAN protocol type undo protocol vlan protocol {
protocol_index [ to protocol_end ]
| all }
Tabl e 55 Creating and Deleting the Association Between a Port and a Protocol-Based
VLAN
Operation Command
Create the association between a port and a
protocol-based VLAN
port hybrid protocol-vlan
vlan-protocol_list
Delete the association between a port and a
protocol-based VLAN
undo port hybrid protocol-vlan
vlan-protocol_list
Switch
VLAN2 VLAN3
E1/0/1 E1/0/2 E1/0/3 E1/0/4