Configuring An Interface As A Layer 2 Access Port - Cisco 4500M Software Manual

Software guide
Table of Contents

Advertisement

Configuring Ethernet Interfaces for Layer 2 Switching
Port
Fa5/8 1-6,10,20,50,100,152,200,300,303-305,349-351,400,500,521,524,570,801-8
02,850,917,999,1002-1005
Port
Fa5/8 1-6,10,20,50,100,152,200,300,303-305,349-351,400,500,521,524,570,801-8
02,850,917,999,1002-1005
Switch#

Configuring an Interface as a Layer 2 Access Port

Note
If you assign an interface to a VLAN that does not exist, the interface is not operational until you create
the VLAN in the VLAN database (see the
on page
To configure an interface as a Layer 2 access port, perform this task:
Command
Step 1
Switch(config)# interface {fastethernet |
gigabitethernet | tengigabitethernet}
slot / port
Step 2
Switch(config-if)# shutdown
Step 3
Switch(config-if)# switchport
Step 4
Switch(config-if)# switchport mode access
Step 5
Switch(config-if)# switchport access vlan
vlan_num
Step 6
Switch(config-if)# no shutdown
Step 7
Switch(config-if)# end
Step 8
Switch# show running-config interface
{fastethernet | gigabitethernet} slot / port
Step 9
Switch# show interfaces [{fastethernet |
gigabitethernet | tengigabitethernet}
slot / port ] switchport
This example shows how to configure the Fast Ethernet interface 5/6 as an access port in VLAN 200:
Switch# configure terminal
Enter configuration commands, one per line.
Switch(config)# interface fastethernet 5/6
Switch(config-if)# shutdown
Software Configuration Guide—Release 12.2(25)EW
12-8
Vlans allowed and active in management domain
Vlans in spanning tree forwarding state and not pruned
10-5).
Chapter 12
"Configuring VLANs in Global Configuration Mode" section
Purpose
Specifies the interface to configure.
(Optional) Shuts down the interface to prevent traffic flow until
configuration is complete.
Configures the interface for Layer 2 switching:
You must enter the switchport command once without any
keywords to configure the interface as a Layer 2 port before
you can enter additional switchport commands with
keywords.
Required only if you previously entered the no switchport
command for the interface.
Configures the interface as a Layer 2 access port.
Place the interface in a VLAN.
Activates the interface. (Required only if you had shut down the
interface.)
Exits interface configuration mode.
Displays the running configuration of the interface.
Displays the switch port configuration of the interface.
End with CNTL/Z.
Configuring Layer 2 Ethernet Interfaces
OL-6696-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

4500 series

Table of Contents