3.
Move untagged interfaces. Access 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.
INTERFACE mode
untagged <interface type> interface
<interface type> — Enter the following keywords and slot/port or
number information:
•
For a 1-Gigabit Ethernet interface, enter the keyword
GigabitEthernet then the slot/port information.
•
For a Port Channel interface, enter the keywords port-channel then
a number. The range is from 1 to 128.
•
For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet then the slot/port information.
This command is available only in VLAN interfaces.
5.
To exit Configuration mode, use the exit command.
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.
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 for a VLAN does not affect
Layer 2 traffic on the VLAN.
NOTE: You cannot assign an IP address to the Default VLAN, which, by
default, is VLAN 1. To assign another VLAN ID to the Default VLAN, use
the default vlan-id vlan-id command from the configuration
mode.
•
Access INTERFACE VLAN mode of the VLAN to which you want to assign
the IP address then configure an IP addresses and mask on the interface.
INTERFACE mode
28