
76CHAPTER 4: VIRTUAL LANS (VLANS)
Configuring VLANs | This section describes the commands associated with setting up VLANs |
on the Switch | on the switch. Configuring a VLAN involves the following steps: |
1Create and name the VLAN.
2Assign an IP address and mask (if applicable) to the VLAN, if needed.
Each IP address and mask assigned to a VLAN must represent a unique IP subnet. You cannot configure the same IP subnet on different VLANs.
3Assign a VLANid, if any ports in this VLAN will use a tag.
4Assign one or more ports to the VLAN.
As you add each port to the VLAN, decide if the port will use an 802.1Q tag.
Table 19 describes the commands used to configure a VLAN.
Table 19 VLAN Configuration Commands
Command | Description | ||
|
| ||
create vlan <name> | Creates a named VLAN. | ||
create protocol <protocol_name> | Creates a | ||
enable | Enables a VLAN from using STP port information. | ||
| When enabled, all virtual ports associated with | ||
| the VLAN are in STP forwarding mode. The | ||
| default setting is disabled. | ||
config dot1p ethertype <ethertype> | Configures an IEEE 802.1Q Ethertype. Use this | ||
| command only if you have another switch that | ||
| supports 802.1Q, but uses a different Ethertype | ||
| value than 8100. | ||
config protocol <protocol_name> | Configures a protocol filter. Supported | ||
[add delete] <protocol_type> | <protocol_type> values include: | ||
<hex_value> {<protocol_type> | ■ | etype | |
<hex_value>} ... | |||
|
| ||
| ■ | llc | |
| ■ | snap | |
| The variable <hex_value> is a hexadecimal | ||
| number between 0 and FFFF that represents either | ||
| the Ethernet protocol type (for EtherType), the | ||
| DSAP/SSAP combination (for LLC), or the | ||
| |||
config vlan <name> ipaddress | Assigns an IP address and an optional mask to the | ||
<ipaddress> {<mask>} | VLAN. | ||
(continued)