|
|
Use the clear cam command to delete a specific entry or all entries from the CAM table.
clear cam {mac_addr | dynamic | static | permanent} [vlan_num]
mac_addr | One or more MAC addresses to clear from the CAM table. |
dynamic | Keyword that clears the dynamic CAM entries from the CAM table. |
static | Keyword that clears the static CAM entries from the CAM table. |
permanent | Keyword that clears the permanent CAM entries from the CAM table. |
vlan_num | (Optional) Number of the VLAN associated with the CAM entries. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
If you enter the clear cam command on a Catalyst 5000 family or 2926G series switch, the EARL CAM table entries are cleared. If you enter the clear cam command on a Catalyst 4000 family switch or 2948G switch, the ASE CAM table entries are cleared.
This example shows how to remove MAC address 00-40-0b-a0-03-fa from the CAM table:
Console> (enable) clear cam 00-40-0b-a0-03-fa CAM table entry cleared. Console> (enable)
This example shows how to clear dynamic entries from the CAM table:
Console> (enable) clear cam dynamic Dynamic CAM entries cleared. Console> (enable)
Use the clear cgmp statistics command to clear CGMP statistical information.
clear cgmp statisticsThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear CGMP statistical information:
Console> (enable) clear cgmp statistics CGMP statistics cleared. Console> (enable)
Use the clear config command to clear the system or module configuration information stored in NVRAM.
clear config mod_num
mod_num | Number of the module. |
rmon | Keyword that clears all RMON configurations, including the historyControlTable, the alarmTable, the eventTable, and the ringStation ControlTable. |
all | Keyword that specifies all modules and system configuration information, including the IP address. |
extendedrmon | Keyword that specifies the extended RMON configuration information for the Network Analysis module. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
When you clear the configuration using the clear config all command, the default switch configuration is restored. The information that is cleared includes manually configured IP addresses and IP addresses learned through DHCP or RARP.
When you clear the configuration on the Catalyst 5000 family and 2926G series switches, the IP address and subnet mask on the sc0 interface are set to 0.0.0.0.
When you clear the configuration on the Catalyst 4000 family and 2948G switches, the IP address and subnet mask on the me1 and sc0 interfaces are set to 0.0.0.0. The me1 interface is brought down and the sc0 interface is brought up.
When using an RSM or RSFC, the clear config command clears the portion of the RSM or RSFC configuration stored on the Catalyst 5000 family switch. The portion of the configuration stored on the RSM or RSFC must be cleared from the RSM or RSFC CLI.
The extendedrmon keyword is not supported by the Catalyst 4000 family switches and 2948G switches.
This example shows how to delete the configuration information in NVRAM on module 2:
Console> (enable) clear config 2 This command will clear module 2 configuration. Do you want to continue (y/n) [n]? y .............................. Module 2 configuration cleared. Console> (enable)
This example shows how to delete the configuration information stored in NVRAM on module 1 (the supervisor engine module):
Console> (enable) clear config 1 This command will clear module 1 configuration. Do you want to continue (y/n) [n]? y ...... Module 1 configuration cleared. host%
This example shows how to delete all the configuration information for the Catalyst5000 family, 4000 family, 2926G series, and 2948G switches:
Console> (enable) clear config allThis command will clear all configuration in NVRAM.This command will cause ifIndex to be reassigned on the next system startup.Do you want to continue (y/n) [n]?yReleasing IP address...Done............................................................................System configuration cleared.Console> (enable)
Use the clear counters command to clear MAC and port counters.
clear countersThis command has no keywords or arguments.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This command also clears ATM module counters.
This example shows how to reset MAC and port counters to zero:
Console> (enable) clear counters MAC and Port counters cleared. Console> (enable)
Use the clear drip statistics command to clear DRiP statistical information.
clear drip statisticsThis command has no keywords or arguments.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear DRiP statistical information:
Console> (enable) clear drip statistics DRIP statistics cleared. Console> (enable)
Use the clear gmrp statistics command to clear all the GMRP statistics information from a specified VLAN or all VLANs.
clear gmrp statistics {vlan | all}
vlan | Number of the VLAN. |
all | Keyword that specifies all VLANs. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear GMRP statistical information from all VLANs:
Console> (enable) clear gmrp statistics all GMRP statistics cleared. Console> (enable)
This example shows how to clear GMRP statistical information from VLAN 1:
Console> (enable) clear gmrp statistics 1 GMRP statistics cleared from VLAN 1. Console> (enable)
Use the clear gvrp statistics command to clear all the GVRP statistics information.
clear gvrp statistics {mod/port | all}
mod/port | Number of the module and port. |
all | Keyword that specifies all ports. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear GVRP statistical information:
Console> (enable) clear gvrp statistics all GVRP statistics cleared for all ports. Console> (enable)
This example shows how to clear GVRP statistical information for module 2, port 1:
Console> (enable) clear gvrp statistics 2/1 GVRP statistics cleared on port 2/1. Console> (enable)
Use the clear igmp statistics command to clear IGMP router port statistical information.
clear igmp statisticsThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 2926G series switches
Switch command.
Privileged.
This example shows how to clear IGMP statistical information:
Console> (enable) clear igmp statistics IGMP statistics cleared. Console> (enable)
Use the clear ip alias command to clear IP aliases that are set using the set ip alias command.
clear ip alias {name | all}
name | IP address alias to delete. |
all | Keyword that specifies that all previously set IP address aliases be deleted. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to delete a previously defined IP alias named babar:
Console> (enable) clear ip alias babar IP alias deleted. Console> (enable)
Use the clear ip dns domain command to clear the default DNS domain name.
clear ip dns domainThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear the default DNS domain name:
Console> (enable) clear ip dns domain Default DNS domain name cleared. Console> (enable)
Use the clear ip dns server command to remove a DNS server from the DNS server listing.
clear ip dns server {ip_addr | all}
ip_addr | IP address of the DNS server you want to remove. An IP alias or a host name that can be resolved through DNS can also be used. |
all | Keyword that specifies all the IP addresses in the DNS server listing to be removed. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to remove the DNS server at IP address 192.168.255.255 from the DNS server listing:
Console> (enable) clear ip dns server 192.168.255.255 192.168.255.255 cleared from DNS table. Console> (enable)
Use the clear ip permit command to remove a specified IP address and mask or all IP addresses and masks from the permit list.
clear ip permit {ip_addr | all} [mask]
ip_addr | IP address to be cleared. An IP alias or a host name that can be resolved through DNS can also be used. |
all | Keyword that specifies all entries in the IP permit list to be removed. |
mask | (Optional) Subnet mask of the specified IP address. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
The clear ip permit all command clears the permit list but does not change the state of the IP permit feature. A warning is displayed if all IP addresses are cleared from the permit list, and the feature is enabled. If a mask other than the default (255.255.255.255) has been configured, you must provide both the address and mask to clear a specific entry.
These examples show how to remove specified IP addresses:
Console> (enable) clear ip permit 172.100.101.102 172.100.101.102 cleared from IP permit list. Console> (enable) Console> (enable) clear ip permit all IP permit list cleared. WARNING IP permit list is still enabled. Console> (enable)
set ip permit
show ip permit
show port counters
Use the clear ip route command to delete IP routing table entries.
clear ip route all
all | Keyword to delete all IP routing table entries. |
destination | IP address of the host or network. An IP alias or a host name that can be resolved through DNS can also be used. |
gateway | IP address or alias of the gateway router. |
This command has no default settings.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to delete the route table entries using the clear ip route command:
Console> (enable) clear ip route 172.16.2.2 elvis Route deleted. Console> (enable)
Use the clear kerberos clients mandatory command to disable mandatory Kerberos authentication for services on the network.
clear kerberos clients mandatoryThis command has no arguments or keywords.
Kerberos clients are NOT set to mandatory.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
A user authenticated to a Kerberized switch has a ticket granting ticket (TGT) and can use it to authenticate to a host on the network. However, if forwarding is not enabled and a user tries to list credentials after authenticating to a host, the output will show no Kerberos credentials present.
You can optionally configure the switch to forward users' TGTs with them as they authenticate from the switch to Kerberized remote hosts on the network when using Kerberized Telnet.
As an added layer of security, you can optionally configure the switch so that after users authenticate to it, they can authenticate to other services on the network only with Kerberos clients. If you do not make Kerberos authentication mandatory and Kerberos authentication fails, the application attempts to authenticate users using the default method of authentication for that network service. For example, Telnet prompts for a password.
This example shows how to clear mandatory Kerberos authentication:
Console> (enable) clear kerberos clients mandatory Kerberos clients mandatory cleared Console> (enable)
set kerberos clients mandatory
set kerberos credentials forward
Use the clear kerberos credentials forward command to disable credentials forwarding.
clear kerberos credentials forwardThis command has no arguments or keywords.
Forwarding is disabled by default.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
A user authenticated to a Kerberized switch has a ticket granting ticket (TGT) and can use it to authenticate to a host on the network. However, if forwarding is not enabled and a user tries to list credentials after authenticating to a host, the output will show no Kerberos credentials present.
You can optionally configure the switch to forward users' TGTs with them as they authenticate from the switch to Kerberized remote hosts on the network when using Kerberized Telnet.
This example shows how to disable Kerberos credentials forwarding:
Console> (enable) clear kerberos credentials forward Kerberos credentials forwarding disabled Console> (enable)
set kerberos credentials forward
set kerberos clients mandatory
Use the clear kerberos creds command to delete all the Kerberos credentials.
clear kerberos credsThis command has no arguments or keywords.
Forwarding is disabled by default.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
A user authenticated to a Kerberized switch has a ticket granting ticket (TGT) and can use it to authenticate to a host on the network. This command deletes all Kerberos credentials.
This example shows how to delete all Kerberos credentials:
Console> (enable) clear kerberos creds Console> (enable)
set kerberos credentials forward
Use the clear kerberos realm command to clear an entry that is mapping the name of a Kerberos realm to a DNS domain name or a host name.
clear kerberos realm {dns-domain | host} kerberos-realm
dns-domain | DNS domain name to map to Kerberos realm. |
host | IP address or name to map to Kerberos realm. |
kerberos-realm | IP address or name of Kerberos realm. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
The name of the Kerberos realm can sometimes be mapped to a DNS domain name or a host name. This mapping can be done with the set kerberos realm command.
This example shows how to clear an entry mapping a kerberos-realm to a domain name:
Console> (enable) clear kerberos realm CISCO CISCO.COM Kerberos DnsDomain-Realm entry CISCO - CISCO.COM deleted Console> (enable)
set kerberos realm
set kerberos local-realm
Use the clear kerberos server command to clear a specified key distribution center (KDC) entry.
clear kerberos server kerberos-realm {hostname | ip-address} [port_num]
kerberos-realm | Keyword specifying Kerberos realm. |
hostname | Name of host running the KDC. |
ip-address | IP address of host running the KDC. |
port_num | Number of the port on the module. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
You can specify to the switch which KDC to use in a Kerberos realm. This command clears a server entry from the table.
This example shows how to clear a KDC server entered on the switch:
Console> (enable) clear kerberos server CISCO.COM 187.0.2.1 750 Kerberos Realm-Server-Port entry CISCO.COM-187.0.2.1-750 deleted Console> (enable)
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Tue Oct 5 10:57:06 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.