Cisco Systems 78-15328-01 Switch User Manual


  Open as PDF
of 1209
 
2-31
Catalyst 6500 Series Switch Command Reference—Release 7.6
78-15328-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
clear ip permit
clear ip permit
To remove a specified IP address and mask or all IP addresses and masks from the permit list, use the
clear ip permit command.
clear ip permit all
clear ip permit {ip_addr} [mask] [telnet | ssh | snmp | all]
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines 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.
If the telnet, ssh, snmp, or all keyword is not specified, the IP address is removed from both the SNMP
and Telnet permit lists.
Examples These examples show how to remove 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 172.160.161.0 255.255.192.0 snmp
172.160.128.0 with mask 255.255.192.0 cleared from snmp permit list.
Console> (enable)
Console> (enable) clear ip permit 172.100.101.102 telnet
172.100.101.102 cleared from telnet permit list.
Console> (enable)
ip_addr IP address to be cleared. An IP alias or a host name that can be resolved
through DNS can also be used.
mask (Optional) Subnet mask of the specified IP address.
telnet (Optional) Clears the entries in the Telnet permit list.
ssh (Optional) Clears the entries in the SSH permit list.
snmp (Optional) Clears the entries in the SNMP permit list.
all (Optional) Clears all permit lists.