White Papers

Table Of Contents
encryption-type: specifies how you are inputting the password, is 0 by default, and is not required.
0 is for inputting the password in clear text.
7 is for inputting a password that is already encrypted using a Type 7 hash. Obtaining the encrypted password from
the configuration of another S5000 switch.
Creating a Port-based VLAN
The default virtual local area network (VLAN) (VLAN 1) is part of the system startup configuration and does not require
configuration.
To configure a port-based VLAN, create the VLAN and then add physical interfaces or port channel (LAG) interfaces to the
VLAN.
Configure a port-based VLAN (if the vlan-id is different from the default VLAN ID) and enter INTERFACE VLAN mode.
CONFIGURATION mode
interface vlan vlan-id
After you create a VLAN, to activate the VLAN, assign interfaces in Layer 2 mode to the VLAN.
To view the configured VLANs, use the show vlan command in EXEC Privilege mode.
Assigning Interfaces to a VLAN
You can only assign interfaces in Layer 2 mode to a VLAN using the tagged and untagged commands. To place an interface
in Layer 2 mode, use the switchport command.
You can designate Layer 2 interfaces as tagged or untagged. When you place an interface in Layer 2 mode using the
switchport command, the interface is automatically designated untagged and placed in the default VLAN.
To view which interfaces are tagged or untagged and to view which VLAN the interfaces belong, use the show vlan
command. To view just the interfaces that are in Layer 2 mode, use the show interfaces switchport command in EXEC
Privilege mode or EXEC mode.
To tag frames leaving an interface in Layer 2 mode, assign that interface to a port-based VLAN to tag it with that VLAN ID.
1. Access the INTERFACE VLAN mode of the VLAN to which you want to assign the interface.
CONFIGURATION mode
interface vlan vlan-id
2. Enable an interface to include the IEEE 802.1Q tag header.
INTERFACE mode
tagged interface
3. To move untagged interfaces from the default VLAN to another VLAN, use the untagged command.
Access the INTERFACE VLAN mode of the VLAN to which you want to assign the interface.
CONFIGURATION mode
interface vlan vlan-id
4. Configure an interface as untagged. This command is available only in VLAN interfaces.
INTERFACE mode
untagged interface
Assigning an IP Address to a VLAN
VLANs are a Layer 2 feature. For two physical interfaces on different VLANs to communicate, assign an IP address to the
VLANs to route traffic between the two interfaces. The shutdown command in INTERFACE mode does not affect Layer 2
traffic on the interface.
NOTE:
You cannot assign an IP address to the default VLAN, which, by default, is VLAN1. To assign another VLAN ID to the
default VLAN, use the default vlan-id vlan-id command.
Getting Started 49