Table Of Contents
Cisco IOS LAN Switching and Multilayer Switching Commands
Cisco IOS LAN Switching and Multilayer Switching Commands
This chapter presents the Cisco IOS LAN Switching and Multilayer Switching commands.
clear mac-address-table
To remove a specified address (or set of addresses) from the MAC address table, use the clear mac-address-table command in privileged EXEC mode.
Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
clear mac-address-table [dynamic | secure | static] [address mac-address] [interface type slot/port]
Catalyst Switches
clear mac-address-table [dynamic | restricted static | permanent] [address mac-address] [interface type module/port]
Syntax Description
Defaults
Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
All MAC addresses on the router being configured are cleared.
Catalyst Switches
The dynamic addresses are cleared.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
If the clear mac-address-table command is invoked with no options, all MAC addresses are removed. If you specify an address but do not specify an interface, the address is deleted from all interfaces. If you specify an interface but do not specify an address, all addresses on the specified interface are removed.
Catalyst Switches
If the clear mac-address-table command is invoked with no options, all dynamic addresses are removed. If you specify an address but do not specify an interface, the address is deleted from all interfaces. If you specify an interface but do not specify an address, all addresses on the specified interface are removed.
If a targeted address is not present in the MAC forwarding table, the following error message appears:
MAC address not foundExamples
Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
The following example shows how to clear all dynamic addresses in the MAC forwarding table:
Router# clear mac-address-table dynamicThe following example shows how to clear the static address 0040.C80A.2F07 on Ethernet port 1:
Router# clear mac-address-table static address 0040.C80A.2F07 interface ether 0/1Catalyst Switches
The following example shows how to clear all dynamic addresses in the MAC forwarding table:
Router# clear mac-address-tableThe following example shows the permanent address 0040.C80A.2F07 being cleared on Ethernet port 1:
Router# clear mac-address-table permanent address 0040.C80A.2F07 interface ether 0/1Related Commands
Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
Catalyst Switches
clear vlan
To delete an existing virtual LAN (VLAN) from a management domain, use the clear vlan command in privileged EXEC mode.
clear vlan vlan
Syntax Description
Command Modes
Privileged EXEC
Command History
Usage Guidelines
Follow these guidelines for deleting VLANs:
•
When you delete an Ethernet VLAN in Virtual Terminal Protocol (VTP) server mode, the VLAN is removed from all switches in the same VTP domain.
•
When you delete a VLAN in VTP transparent mode, the VLAN is deleted only on the current switch.
•
To delete a Token Ring Bridge Relay Function (TRBRF) VLAN, you must either first reassign its child Token Ring Concentrator Relay Functions (TRCRFs) to another parent TRBRF or delete the child TRCRFs.
CautionWhen you clear a VLAN, all ports assigned to that VLAN become inactive. However, the VLAN port assignments are retained until you move the ports to another VLAN. If the cleared VLAN is reactivated, all ports still configured on that VLAN are also reactivated. A warning is displayed if you clear a VLAN that exists in the mapping table.
Examples
The following example shows how to clear an existing VLAN (VLAN 4) from a management domain:
Router# clear vlan 4 This command will deactivate all ports on vlan 4 in the entire management domain Do you want to continue(y/n) [n]? y VLAN 4 deletedRelated Commands
clear vlan mapping
To delete existing 802.1Q virtual LAN (VLAN) to Inter-Switch Link (ISL) VLAN-mapped pairs, use the clear vlan mapping command in privileged EXEC mode.
clear vlan mapping dot1q {1q-vlan | all}
Syntax Description
dot1q
Specifies the 802.1Q VLAN.
1q-vlan
Number of the 802.1Q VLAN for which to remove the mapping.
all
Clears the mapping table of all entries.
Command Modes
Privileged EXEC
Command History
Examples
The following example shows how to clear an existing mapped 802.1Q VLAN (VLAN 1044) from the
mapping table:Router# clear vlan mapping dot1q 1044Vlan Mapping 1044 Deleted.The following example shows how to clear all mapped 802.1Q VLANs from the mapping table:
Router# clear vlan mapping dot1q allAll Vlan Mapping Deleted.Related Commands
Command Descriptionset vlan mapping
Maps 802.1Q VLANs to ISL VLANs.
show vlan mapping
Displays VLAN mapping table information.
clear vlan statistics
To remove virtual LAN statistics from any statically or system-configured entries, use the clear vlan statistics command in privileged EXEC mode.
clear vlan statistics
Syntax Description
This command has no arguments or keywords.
Defaults
No default behavior or values
Command Modes
Privileged EXEC
Command History
Release Modification11.2
This command was introduced.
12.2(33)SRA
This command was integrated into Cisco IOS Release 12.2(33)SRA.
Examples
The following example clears VLAN statistics:
Router# clear vlan statisticsRelated Commands
encapsulation isl
To enable the Inter-Switch Link (ISL), use the encapsulation isl command in subinterface configuration mode.
encapsulation isl vlan-identifier
Syntax Description
Defaults
ISL is disabled.
Command Modes
Subinterface configuration
Command History
Usage Guidelines
ISL is a Cisco protocol for interconnecting multiple switches and routers, and for defining VLAN topologies.
ISL encapsulation is configurable on Fast Ethernet interfaces.
ISL encapsulation adds a 26-byte header to the beginning of the Ethernet frame. The header contains a 10-bit VLAN identifier that conveys VLAN membership identities between switches.
Examples
The following example shows how to enable ISL on Fast Ethernet subinterface 2/1.20:
Router(config)# interface FastEthernet 2/1.20Router(config-subif)# encapsulation isl 400Related Commands
encapsulation sde
To enable IEEE 802.10 encapsulation of traffic on a specified subinterface in virtual LANs (VLANs), use the encapsulation sde command in subinterface configuration mode.
encapsulation sde sa-id
Syntax Description
sa-id
Security association identifier. This value is used as the VLAN identifier. The valid range is from 0 to 0xFFFFFFFE.
Defaults
IEEE 802.10 encapsulation is disabled.
Command Modes
Subinterface configuration
Command History
Usage Guidelines
IEEE 802.10 is a standard protocol for interconnecting multiple switches and routers and for defining VLAN topologies.
Secure Data Exchange (SDE) encapsulation is configurable only on the following interface types:
•
IEEE 802.10 routing: FDDI
•
IEEE 802.10 transparent bridging:
–
Ethernet
–
FDDI
–
HDLC serial
–
Transparent mode
–
Token Ring
Examples
The following example shows how to enable SDE on FDDI subinterface 2/0.1 and assigns a VLAN identifier of 9999:
Router(config)# interface fddi 2/0.1Router(config-subif)# encapsulation sde 9999Related Commands

