Configuring A Lan Interface As A Layer 2 Access Port - Cisco 7604 Configuration Manual

Ios software configuration guide
Hide thumbs Also See for 7604:
Table of Contents

Advertisement

Configuring LAN Interfaces for Layer 2 Switching

Configuring a LAN Interface as a Layer 2 Access Port

If you assign a LAN port to a VLAN that does not exist, the port is shut down until you create the VLAN
Note
in the VLAN database (see the
To configure a LAN port as a Layer 2 access port, perform this task:
Command
Step 1
Router(config)# interface type
Step 2
Router(config-if)# shutdown
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
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
10-14
"Creating or Modifying an Ethernet VLAN" section on page
Purpose
1
Selects the LAN port to configure.
slot/port
(Optional) Shuts down the interface to prevent traffic flow
until configuration is complete.
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. The vlan_ID value can
be 1 through 4094, except reserved VLANs (see
Table 14-1 on page
Reverts to the default access 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 ]
Chapter 10
Configuring LAN Ports 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.
14-2).
End with CNTL/Z.
14-10).
OL-4266-08

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

761376067609-s7600 series

Table of Contents