Cisco Systems WSC4500X16SFP Manual De Usuario

Descargar
Página de 680
11-8
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter 11      Configuring Layer 2 Ethernet Interfaces
Configuring Ethernet Interfaces for Layer 2 Switching
Port      Vlans allowed and active in management domain
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      Vlans in spanning tree forwarding state and not pruned
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 th
To configure an interface as a Layer 2 access port, perform this task:
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.  End with CNTL/Z.
Switch(config)# interface fastethernet 5/6 
Switch(config-if)# shutdown 
Command
Purpose
Step 1
Switch(config)# interface {fastethernet | 
gigabitethernet 
tengigabitethernet
slot/port 
Specifies the interface to configure.
Step 2
Switch(config-if)# shutdown 
(Optional) Shuts down the interface to prevent traffic flow until 
configuration is complete.
Step 3
Switch(config-if)# switchport 
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.
Step 4
Switch(config-if)# switchport mode access 
Configures the interface as a Layer 2 access port.
Step 5
Switch(config-if)# switchport access vlan 
vlan_num 
Place the interface in a VLAN.
Step 6
Switch(config-if)# no shutdown 
Activates the interface. (Required only if you had shut down the 
interface.)
Step 7
Switch(config-if)# end 
Exits interface configuration mode.
Step 8
Switch# show running-config interface 
{fastethernet | gigabitethernet
slot/port 
Displays the running configuration of the interface.
Step 9
Switch# show interfaces [{fastethernet | 
gigabitethernet 
tengigabitethernet
slot/port] switchport 
Displays the switch port configuration of the interface.