19-8
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 19 Configuring Layer 2 Ethernet Interfaces
Configuring Ethernet Interfaces for Layer 2 Switching
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
Switch(config-if)#
switchport mode access
Switch(config-if)#
switchport access vlan 200
Switch(config-if)#
no shutdown
Switch(config-if)#
end
Switch#
exit
This example shows how to verify the running configuration:
Switch#
show running-config interface fastethernet 5/6
Building configuration...
!
Current configuration :33 bytes
interface FastEthernet 5/6
switchport access vlan 200
switchport mode access
end
This example shows how to verify the switch port configuration:
Switch#
show interface fastethernet 5/6 switchport
Name:Fa5/6
Switchport:Enabled
Administrative Mode:dynamic auto
Operational Mode:static access
Administrative Trunking Encapsulation:negotiate
Operational Trunking Encapsulation:native
Negotiation of Trunking:On
Access Mode VLAN:1 (default)
Trunking Native Mode VLAN:1 (default)
Administrative private-vlan host-association:none
Administrative private-vlan mapping:none
Operational private-vlan:none
Trunking VLANs Enabled:ALL
Pruning VLANs Enabled:2-1001
Switch#
Clearing Layer 2 Configuration
To clear the Layer 2 configuration on an interface, perform this task:
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.
Command
Purpose
Command
Purpose
Step 1
Switch(config)#
default interface
{
fastethernet
|
gigabitethernet
|
tengigabitethernet
}
slot
/
port
Specifies the interface to clear.
Step 2
Switch(config-if)#
end
Exits interface configuration mode.
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...