CISCO交换机命令全集加说明2( 二 )


cgmp reserved
no cgmp reserved
Syntax Description
This command has no arguments or keywords.
Default
Permitted
Command Mode

Global configuration
Example
This command shows how to exclude reserved addresses from the Group Destination Address for compatibility with Catalyst 5000 series switches.
hostname# no cgmp reserved
Related Commands
cgmp
cgmp (hold-time)
cgmp (remove)
cgmp (leave-processing)
clear (cgmp)
show (cgmp)
clear (cgmp)
Use the clear cgmp privileged Exec command to remove the specified multicast group or router.
clear cgmp [vlan vlan-id] [group [address] router [address]]
Syntax Description
vlan vlan-id A VLAN ID number from 1 to 1005.
group One or more multicast groups.
router One or more routers.
address MAC address of specific multicast group or router.

Default
None
Command Mode
Privileged Exec
Usage Guidelines
If the vlan option is specified with the group or router option, only multicast groups or routers in the specified VLAN are removed. If the vlan option is specified without group or router option, all multicast groups and routers are removed from the specified VLAN.
Example
This command removes all multicast groups and routers from VLAN 1.
hostname# clear cgmp vlan 1

This command removes all multicast groups.

hostname# clear cgmp group

This command removes all multicast routers.
hostname# clear cgmp router

This command removes the multicast group with the MAC address 0100.5e00.0128.
hostname# clear cgmp group 0100.5e00.0128

This command removes the multicast router with the MAC address 00e0.1e68.7751.
hostname# clear cgmp router 00e0.1e68.7751
Related Commands
cgmp
cgmp (hold-time)
cgmp (leave-processing)
cgmp (remove)
show (cgmp)
clear (dns-cache)
Use the clear dns-cache privileged Exec command to remove all cached Domain Name System (DNS) entries from the switch.
clear dns-cache
Syntax Description
This command has no arguments or keywords.
Command Mode
Privileged Exec
Example
This example shows how to clear all DNS entries for the switch.
hostname# clear dns-cache
Related Commands
ip (domain-name)
ip (name-server)
clear (counters)
Use the clear counters privileged Exec command to reset the interface counters for a switched port interface to zero.
clear counters [type module/port]
Syntax Description
type Interface type: ethernet, fastethernet, fddi, atm, or port-channel.
module Module interface number:0 for fixed1 or A for module A2 or B for module B
port Port identification number or name:1 to 25 Ethernet (fixed)26, 27 Fast Ethernet (fixed)Port channel

Command Mode
Privileged Exec
Usage Guidelines
If you do not specify type module/port, the switch clears the counters for all interfaces.
Example
This example shows how to clear counters for the Ethernet port 1.
hostname# clear counters ethernet 0/1
Related Commands
interface
show (interfaces)
clear (mac-address-table)
Use the clear mac-address-table privileged Exec command to remove a specified address (or set of addresses) from the MAC address table.
clear mac-address-table [dynamic restricted static permanent] [address mac-address]
[interface type module/port]
Syntax Description
dynamic Clears only dynamic addresses.
restricted static Clears only restricted static addresses.
permanent Clears only permanent addresses.
address Clears only a specified address.
mac-address Target MAC address.
interface Clears all addresses for an interface.
type Interface type: ethernet, fastethernet, fddi, atm, or port channel.
module The module interface number.0 for fixed1 or A for module A2 or B for module B
port Port interface number ranging from 1 to 28:1 to 25 Ethernet (fixed)26, 27 Fast Ethernet (fixed)Port channel

Default
The dynamic addresses are cleared.

推荐阅读