16- and 36-Port Ethernet Switch Module for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series
Configuration Tasks
52
Cisco IOS Release 12.2(2)XT, 12.2(8)T, and 12.2(15)ZJ
Configuring an Ethernet Interface as a Layer 2 Access
To configure an Ethernet Interface as a Layer 2 access use the following commands beginning in global
configuration mode:
Verifying an Ethernet Interface as a Layer 2 Access
Step 1
Use the show running-config interface command to verify the running configuration of the interface:
Router#
show running-config interface
{
ethernet
|
fastethernet
}
slot
/
port
Step 1
Use the show interfaces command to verify the switch port configuration of the interface:
Router#
show interfaces
[
ethernet
|
fastethernet
]
slot
/
port
switchport
Configuring VLANs
This section describes how to configure the VLANs on the Ethernet switch network modules, and it
contains the following sections:
•
Configuring VLANs
(optional)
•
Deleting a VLAN from the Database
(optional)
Command
Purpose
Step 1
Router(config)#
interface
{
ethernet
|
fastethernet
}
slot
/
port
Selects the interface to configure.
Step 2
Router(config-if)#
shutdown
(Optional) Shuts down the interface to prevent traffic
flow until configuration is complete.
Encapsulation is always dot1q.
Step 3
Router(config-if)#
switchport mode access
Configures the interface as a Layer 2 access.
Step 4
Router(config-if)#
switchport access vlan
vlan-num
For access ports, specifies the access VLAN.
Step 5
Router(config-if)#
no shutdown
Activates the interface. (Required only if you shut down
the interface.)
Step 6
Router(config-if)#
end
Exits configuration mode.