Cisco 6500 Series Software Configuration Manual page 115

Hide thumbs Also See for 6500 Series:
Table of Contents

Advertisement

Chapter 7
Configuring LAN Ports for Layer 2 Switching
Command
Step 3
Router(config-if)# switchport
Step 4
Router(config-if)# no switchport
Step 5
Router(config-if)# switchport mode access
Router(config-if)# no switchport mode
Step 6
Router(config-if)# switchport access vlan vlan_ID
Router(config-if)# no switchport access vlan
Step 7
Router(config-if)# no shutdown
Step 8
Router(config-if)# end
Step 9
Router# show running-config interface
1
[type
slot/port]
Step 10
Router# show interfaces [type
switchport
1.
type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
This example shows how to configure the Fast Ethernet port 5/6 as an access port in VLAN 200:
Router# configure terminal
Enter configuration commands, one per line.
Router(config)# interface fastethernet 5/6
Router(config-if)# shutdown
Router(config-if)# switchport
Router(config-if)# switchport mode access
Router(config-if)# switchport access vlan 200
Router(config-if)# no shutdown
Router(config-if)# end
Router# exit
This example shows how to verify the configuration:
Router# show running-config interface fastethernet 5/6
Building configuration...
!
Current configuration:
interface FastEthernet5/6
no ip address
switchport access vlan 200
switchport mode access
end
78-14099-04
Purpose
Configures the LAN port for Layer 2 switching.
Note
Clears Layer 2 LAN port configuration.
Configures the LAN port as a Layer 2 access port.
Reverts to the default switchport mode (switchport mode
dynamic desirable).
Places the LAN port in a VLAN.
Reverts to the default VLAN (VLAN 1).
Activates the interface. (Required only if you shut down
the interface.)
Exits configuration mode.
Displays the running configuration of the interface.
1
Displays the switch port configuration of the interface.
slot/port]
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
Configuring LAN Interfaces for Layer 2 Switching
You must enter the switchport command once
without any keywords to configure the LAN port
as a Layer 2 port before you can enter additional
switchport commands with keywords.
With Release 12.1(13)E and later releases, the
vlan_ID value can be 1 to 4094, except for reserved
VLANs (see
Table 9-1 on page
With 12.1 E releases earlier than Release 12.1(13)E,
the vlan_ID value can be 1 to 1005.
End with CNTL/Z.
9-2).
7-15

Advertisement

Table of Contents
loading

Table of Contents