Configuring An Interface As A Layer 2 Access Port - Cisco Catalyst 4500 Series Configuration Manual

Release ios xe 3.3.0sg and ios 15.1(1)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 17
Configuring Layer 2 Ethernet Interfaces
This example shows how to verify the trunk configuration:
Switch# show interfaces fastethernet 5/8 trunk
Port
Fa5/8
Port
Fa5/8 1-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
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

If you assign an interface to a VLAN that does not exist, the interface is not operational until you create
Note
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
OL-25340-01
Mode
Encapsulation
desirable
n-802.1q
Vlans allowed on trunk
Vlans allowed and active in management domain
Vlans in spanning tree forwarding state and not pruned
15-6).
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
Configuring Ethernet Interfaces for Layer 2 Switching
Status
Native vlan
trunking
1
"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.
Places the interface in a VLAN.
Activates the interface. (Required only if you had shut down the
interface.)
Exits interface configuration mode.
17-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents