Command Mode
Privileged Exec
Usage Guidelines
If clear mac-address-table 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 found
Example
This example shows how to clear all dynamic addresses in the MAC forwarding table.
hostname# clear mac-address-table
This command clears the permanent address 0040.C80A.2F07 on Ethernet port 1.
hostname# clear mac-address-table permanent address 0040.C80A.2F07 interface ether 0/1
Related Commands
mac-address-table (aging-time)
mac-address-table (permanent)
mac-address-table (restricted static)
show (mac-address-table)
show (mac-address-table security)
clear (uplink-fast statistics)
Use the clear uplink-fast statistics privileged Exec command to reset all Uplink Fast counter statistics to zero.
clear uplink-fast statistics
Syntax Description
This command has no additional arguments or keywords.
Command Mode
Privileged Exec
Usage Guidelines
This command is not functional when bridge groups are enabled.
Example
This example shows how to reset all Uplink Fast counters to zero:
hostname# clear uplink-fast statistics
Related Commands
uplink-fast
show (uplink-fast)
show (uplink-fast statistics)
clear (vtp statistics)
Use the clear vtp statistics privileged Exec command to reset all VLAN Trunk Protocol (VTP) statistics counters to zero.
clear vtp statistics
Syntax Description
This command has no additional arguments or keywords.
Command Mode
Privileged Exec
Usage Guidelines
This command is not functional when bridge groups are enabled.
Example
This example shows how to reset all VTP statistics counters to zero.
hostname# clear vtp statistics
Related Commands
delete (vtp)
show (vtp)
show (vtp statistics)
vtp
vtp trunk pruning-disable
cluster
The cluster global configuration command is used under certain conditions to add the switch back into a cluster. The no cluster command removes the switch from its cluster.
cluster commander-address
no cluster commander-address
Syntax Description
commander_address MAC address of commander switch.
Command Mode
Global configuration
Usage Guidelines
Caution We strongly recommend that you use a command switch management interface to add or remove Catalyst 1900 series or Catalyst 2820 series switches from a cluster. The cluster commander-address command is primarily for debugging and recovery purposes.If you use the no cluster command to remove a Catalyst 1900 series or Catalyst 2820 series switch, you cannot add the switch back into the cluster until you use one of the command switch management interfaces to remove, and then add the switch.
To learn more about member switches in a cluster, refer to the Catalyst 1900 Series Installation and Configuration Guide or the Catalyst 2820 Series Installation and Configuration Guide.
Example
This example shows how to remove the switch from a cluster.
hostname(config)# no cluster commander-address
This example shows how to add the switch back into the cluster managed by command switch 00D0.5868.F580 after it has been removed and added again using one of the command switch management interfaces.
hostname(config)# cluster 00D0.5868.F580
Related Commands
show cluster
configure
Use the configure privileged Exec command to enter the global configuration mode. Use the optional terminal keyword to specify a specific terminal.
config [terminal]
Syntax Description
terminal Name of target terminal.
Command Mode
Privileged Exec
Example
This example shows how to enter global configuration mode.
推荐阅读
- 交换机与路由器,网速慢
- 如何理解网络交换机的原理
- 思科Catalyst 2900系列XL 10/100交换机
- 上 交换技术攻略:网络交换机配置技巧
- 思科3500系列交换机的基本配置命令
- Cisco MDS 9000 系列交换阵列管理
- 交换机端口镜像配置
- 2 交换机VLAN的配置
- 图解分析交换机与路由器组网功能
- 通过Web浏览器修改交换机各种参数