Catalyst 2950 Desktop Switch Command Reference, 12.1(6)EA2
Cisco IOS Commands
Downloads: This chapterpdf (PDF - 2.19MB) The complete bookPDF (PDF - 2.8MB) | Feedback

Cisco IOS Commands

Table Of Contents

Cisco IOS Commands

aaa authentication dot1x

abort

access-list (IP extended)

access-list (IP standard)

apply

channel-group

class

class-map

clear interface

clear mac-address-table dynamic

clear pagp

clear vmps statistics

clear vtp counters

cluster commander-address

cluster discovery hop-count

cluster enable

cluster holdtime

cluster management-vlan

cluster member

cluster run

cluster setup

cluster standby-group

cluster timer

delete

deny (access-list configuration)

deny (MAC access-list configuration)

dot1x default

dot1x max-req

dot1x multiple-hosts

dot1x port-control

dot1x re-authenticate

dot1x re-authentication

dot1x timeout quiet-period

dot1x timeout re-authperiod

dot1x timeout tx-period

duplex

errdisable detect

errdisable recovery

exit

flowcontrol

interface

interface port-channel

ip access-group

ip access-list

ip address

ip igmp snooping

ip igmp snooping vlan

ip igmp snooping vlan immediate-leave

ip igmp snooping vlan mrouter

ip igmp snooping vlan static

mac access-group

mac access-list extended

mac-address-table aging-time

mac-address-table notification

mac-address-table static

match (class-map configuration)

mls qos cos

mls qos map

mls qos trust

monitor session

mvr

mvr immediate

mvr type

mvr vlan group

pagp learn-method

pagp port-priority

permit (access-list configuration)

permit (MAC access-list configuration)

police

policy-map

port-channel load-balance

rcommand

reset

rmon collection stats

service-policy

set

show access-lists

show changes

show class-map

show cluster

show cluster candidates

show cluster members

show current

show dot1x

show env

show errdisable recovery

show etherchannel

show file

show interface

show interfaces counters

show interfaces status

show interfaces switchport

show interfaces trunk

show ip access-lists

show ip igmp snooping

show ip igmp snooping mrouter

show mac access-group

show mac-address-table

show mac-address-table multicast

show mac-address-table notification

show mls masks

show mls qos interface

show mls qos maps

show monitor

show mvr

show mvr interface

show mvr members

show pagp

show policy-map

show port-security

show proposed

show rps

show spanning-tree

show storm-control

show system mtu

show udld

show version

show vlan

show vmps

show vtp

show wrr-queue bandwidth

show wrr-queue cos-map

shutdown

shutdown vlan

snmp-server enable traps mac-notification

snmp-server enable traps vlan-membership

snmp-server enable traps vtp

snmp-server host

snmp trap mac-notification

spanning-tree backbonefast

spanning-tree cost

spanning-tree guard

spanning-tree port-priority

spanning-tree portfast

spanning-tree portfast bpduguard

spanning-tree stack-port

spanning-tree uplinkfast

spanning-tree vlan

speed

storm-control

switchport access

switchport mode

switchport port-security

switchport protected

switchport trunk

system mtu

udld (interface configuration)

udld (global configuration)

udld reset

vlan

vlan database

vmps reconfirm (global configuration)

vmps reconfirm (privileged EXEC)

vmps retry

vmps server

vtp (global configuration)

vtp (VLAN configuration)

vtp domain

vtp password

vtp pruning

vtp v2-mode

wrr-queue bandwidth

wrr-queue cos-map


Cisco IOS Commands


aaa authentication dot1x

Use the aaa authentication dot1x global configuration command to specify one or more authentication, authorization, and accounting (AAA) methods for use on interfaces running IEEE 802.1X. Use the no form of this command to disable authentication.

aaa authentication dot1x {default} method1 [method2...]

no aaa authentication dot1x {default} method1 [method2...]

Syntax Description

default

Use the listed authentication methods that follow this argument as the default list of methods when a user logs in.

method1 [method2...]

At least one of these keywords:

enable—Use the enable password for authentication.

group radius—Use the list of all Remote Authentication Dial-In User Service (RADIUS) servers for authentication.

line—Use the line password for authentication.

local—Use the local username database for authentication.

local-case—Use the case-sensitive local username database for authentication.

none—Use no authentication. The client is automatically authenticated by the switch without using the information supplied by the client.


Defaults

No authentication is performed.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The method argument identifies the list of methods that the authentication algorithm tries in the given sequence to validate the password provided by the client. The only method that is truly 802.1X-compliant is the group radius method, in which the client data is validated against a RADIUS authentication server. The remaining methods enable AAA to authenticate the client by using locally configured data. For example, the local and local-case methods use the username and password that are saved in the IOS configuration file. The enable and line methods use the enable and line passwords for authentication.

If you specify group radius, you must configure the RADIUS server by entering the radius-server host global configuration command.

If you are not using a RADIUS server, you can use the local or local-case methods, which access the local username database to perform authentication. By specifying the enable or line methods, you can supply the clients with a password to provide access to the switch.

Use the show running-config privileged EXEC command to display the configured lists of authentication methods.

Examples

This example shows how to enable AAA and how to create an authentication list for 802.1X. This authentication first tries to contact a RADIUS server. If this action returns an error, the user is allowed access with no authentication.

Switch(config)# aaa new model
Switch(config)# aaa authentication dot1x default group radius none

You can verify your settings by entering the show running-config privileged EXEC command.

Related Commands

Command
Description

aaa new-model

Enables the AAA access control model. For syntax information, refer to Cisco IOS Security Command Reference for Release 12.1 > Authentication, Authorization, and Accounting > Authentication Commands.

show running-config

Displays the running configuration on the switch.


abort

Use the abort VLAN configuration command to abandon the proposed VLAN configuration, exit VLAN configuration mode, and return to privileged EXEC mode.

abort

Syntax Description

This command has no arguments or keywords.

Defaults

No default is defined.

Command Modes

VLAN configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The command mode was changed from VLAN database to VLAN configuration.


Usage Guidelines

If you have added, deleted, or modified VLAN parameters in VLAN configuration mode but you do not want to keep the changes, the abort command causes all the changes to be abandoned. The VLAN configuration that was running before you entered VLAN configuration mode continues to be used.

Examples

This example shows how to abandon the proposed VLAN configuration and exit to the privileged EXEC mode:

Switch(vlan)# abort
Switch#

You can verify that no VLAN configuration changes occurred by entering the show vlan brief privileged EXEC command.

Related Commands

Command
Description

apply

Implements the proposed VLAN configuration, increments the database configuration revision number, propagates it throughout the administrative domain, and remains in VLAN configuration mode.

exit

Implements the proposed VLAN configuration, increments the database configuration number, propagates it throughout the administrative domain, and returns to privileged EXEC mode.

reset

Abandons the proposed VLAN configuration and remains in VLAN configuration mode. Resets the proposed configuration to the current VLAN configuration on the switch.

show vlan

Displays the parameters for all configured VLANs in the administrative domain.

shutdown vlan

Shuts down (suspends) local traffic on the specified VLAN.

vlan database

Enters VLAN configuration mode from the command-line interface (CLI).


access-list (IP extended)

Use the extended version of the access-list global configuration command to configure an extended IP access control list (ACL). Use the no form of the command to remove an extended IP ACL.

access-list access-list-number {deny | permit | remark} protocol {source source-wildcard | host source | any} [operator port] {destination destination-wildcard | host destination | any} [operator port]

no access-list access-list-number

Syntax Description

access-list-number

Number of an ACL, from 100 to 199 or from 2000 to 2699.

protocol

Name of an IP protocol.

protocol can be ip, tcp, or udp.

deny

Deny access if conditions are matched.

permit

Permit access if conditions are matched.

remark

ACL entry comment up to 100 characters.

source source-wildcard | host source | any

Define a source IP address and wildcard.

The source is the source address of the network or host from which the packet is being sent, specified in one of these ways:

The 32-bit quantity in dotted-decimal format. The source-wildcard applies wildcard bits to the source.

The keyword host, followed by the 32-bit quantity in dotted-decimal format, as an abbreviation for source and source-wildcard of source 0.0.0.0.

The keyword any as an abbreviation for source and source-wildcard of 0.0.0.0 255.255.255.255. You do not need to enter a source-wildcard.

destination destination-wildcard | host destination | any

Define a destination IP address and wildcard.

The destination is the destination address of the network or host to which the packet is being sent, specified in one of these ways:

The 32-bit quantity in dotted-decimal format. The destination-wildcard applies wildcard bits to the destination.

The keyword host, followed by the 32-bit quantity in dotted-decimal format, as an abbreviation for destination and destination-wildcard of destination 0.0.0.0.

The keyword any as an abbreviation for destination and destination-wildcard of 0.0.0.0 255.255.255.255. You do not need to enter a destination-wildcard.

operator port

(Optional) Define a source or destination port.

The operator can be only eq (equal).

If operator is after the source IP address and wildcard, conditions match when the source port matches the defined port.

If operator is after the destination IP address and wildcard, conditions match when the destination port matches the defined port.

The port is a decimal number or name of a Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) port. The number can be from 0 to 65535.

Use TCP port names only for TCP traffic.

Use UDP port names only for UDP traffic.


Defaults

The default extended ACL is always terminated by an implicit deny statement for all packets.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Plan your access conditions carefully. The ACL is always terminated by an implicit deny statement for all packets.

You can use ACLs to control virtual terminal line access by controlling the transmission of packets on an interface.

Extended ACLs support only the TCP and UDP protocols.

Use the show ip access-lists command to display the contents of IP ACLs.

Use the show access-lists command to display the contents of all ACLs.


Note For more information about configuring IP ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to configure an extended IP ACL that allows only TCP traffic to the destination IP address 128.88.1.2 with a TCP port number of 25 and how to apply it to an interface:

Switch(config)# access-list 102 permit tcp any host 128.88.1.2 eq 25
Switch(config)# interface fastethernet0/8
Switch(config-if)# ip access-group 102 in

This is an example of an extended ACL that allows TCP traffic only from two specified networks. The wildcard bits apply to the host portions of the network addresses. Any host with a source address that does not match the ACL statements is denied.

access-list 104 permit tcp 192.5.0.0 0.0.255.255 any
access-list 104 permit tcp 128.88.0.0 0.0.255.255 any

Note In these examples, all other IP access is implicitly denied.


You can verify your settings by entering the show ip access-lists or show access-lists privileged EXEC command.

Related Commands

Command
Description

access-list (IP standard)

Configures a standard IP ACL.

ip access-group

Controls access to an interface.

show ip access-lists

Displays IP ACLs configured on the switch.

show access-lists

Displays ACLs configured on the switch.


access-list (IP standard)

Use the standard version of the access-list global configuration command to configure a standard IP access control list (ACL). Use the no form of the command to remove a standard IP ACL.

access-list access-list-number {deny | permit | remark} {source source-wildcard | host source | any}

no access-list access-list-number

Syntax Description

access-list-number

Number of an ACL, from 1 to 99 or from 1300 to 1999.

deny

Deny access if conditions are matched.

permit

Permit access if conditions are matched.

remark

ACL entry comment up to 100 characters.

source source-wildcard | host source | any

Define a source IP address and wildcard.

The source is the source address of the network or host from which the packet is being sent, specified in one of these ways:

The 32-bit quantity in dotted-decimal format. The source-wildcard applies wildcard bits to the source.

The keyword host, followed by the 32-bit quantity in dotted-decimal format, as an abbreviation for source and source-wildcard of source 0.0.0.0.

The keyword any as an abbreviation for source and source-wildcard of 0.0.0.0 255.255.255.255. You do not need to enter a source-wildcard.


Defaults

The default standard ACL is always terminated by an implicit deny statement for all packets.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Plan your access conditions carefully. The ACL is always terminated by an implicit deny statement for all packets.

You can use ACLs to control virtual terminal line access by controlling the transmission of packets on an interface.

Use the show ip access-lists to display the contents of IP ACLs.

Use the show access-lists command to display the contents of all ACLs.


Note For more information about configuring IP ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to configure a standard IP ACL that allows only traffic from the host network 128.88.1.10 and how to apply it to an interface:

Switch(config)# access-list 12 permit host 128.88.1.10
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# ip access-group 12 in

This is an example of an standard ACL that allows traffic only from three specified networks. The wildcard bits apply to the host portions of the network addresses. Any host with a source address that does not match the ACL statements is denied.

access-list 14 permit 192.5.34.0  0.0.0.255
access-list 14 permit 128.88.0.0  0.0.0.255
access-list 14 permit 36.1.1.0  0.0.0.255


Note In these examples, all other IP access is implicitly denied.


You can verify your settings by entering the show ip access-lists or show access-lists privileged EXEC command.

Related Commands

Command
Description

access-list (IP extended)

Configures an extended IP ACL.

ip access-group

Controls access to an interface.

show ip access-lists

Displays IP ACLs configured on the switch.

show access-lists

Displays ACLs configured on the switch.


apply

Use the apply VLAN configuration command to implement the proposed VLAN configuration, increment the database configuration revision number, propagate it throughout the administrative domain, and remain in VLAN configuration mode.

apply

Syntax Description

This command has no arguments or keywords.

Defaults

No default is defined.

Command Modes

VLAN configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The command mode was changed from VLAN database to VLAN configuration.


Usage Guidelines

The apply command implements the configuration changes that you made after you entered VLAN configuration mode and uses them for the running configuration. The switch remains in VLAN configuration mode.

You cannot use this command when the switch is in the VLAN Trunking Protocol (VTP) client mode.

Examples

This example shows how to implement the proposed VLAN configuration as the current configuration:

Switch(vlan)# apply

You can verify your settings by entering the show vlan privileged EXEC command.

Related Commands

Command
Description

abort

Abandons the proposed VLAN configuration, exits VLAN configuration mode, and returns to privileged EXEC mode.

exit

Implements the proposed VLAN configuration, increments the database configuration number, propagates it throughout the administrative domain, and returns to privileged EXEC mode.

reset

Abandons the proposed VLAN configuration and remains in VLAN configuration mode. Resets the proposed configuration to the current VLAN configuration on the switch.

show vlan

Displays the parameters for all configured VLANs in the administrative domain.

shutdown vlan

Shuts down (suspends) local traffic on the specified VLAN.

vlan database

Enters VLAN configuration mode from the command-line interface (CLI).


channel-group

Use the channel-group interface configuration command to assign an Ethernet interface to an EtherChannel group. Use the no form of this command to remove an Ethernet interface from an EtherChannel group.

channel-group channel-group-number mode {auto [non-silent] | desirable [non-silent] | on}

no channel-group

Syntax Description

channel-group-number

Specify the channel group number. The range is 1 to 6.

mode

Specify the EtherChannel Port Aggregation Protocol (PAgP) mode of the interface.

auto

Enable PAgP only if a PAgP device is detected.

Auto mode places an interface into a passive negotiating state, in which the interface responds to PAgP packets it receives but does not initiate PAgP packet negotiation. A channel is formed only with another port group in desirable mode. This setting is the default.

desirable

Unconditionally enable PAgP.

Desirable mode places an interface into an active negotiating state, in which the interface initiates negotiations with other interfaces by sending PAgP packets. A channel is formed with another port group in either the desirable or auto mode.

non-silent

(Optional) Used with the auto or desirable keyword when traffic is expected from the other device.

on

Force the interface to channel without PAgP.

With the on mode, a usable EtherChannel exists only when an interface group in the on mode is connected to another interface group in the on mode.


Defaults

No channel groups are assigned.

There is no default mode.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced. It replaced the port group command.


Usage Guidelines

You must specify the mode when entering this command. If the mode is not entered, an Ethernet interface is not assigned to an EtherChannel group, and an error message appears.

You do not have to create a port-channel interface before assigning a physical interface to a channel group. A port-channel interface is created automatically when the channel group gets its first physical interface.

You do not have to disable the IP address that is assigned to a physical interface that is part of a channel group, but we highly recommend that you do so.

You can create port channels by entering the interface port-channel global configuration command or when the channel group gets its first physical interface assignment. The port channels are not created at runtime or dynamically.

Any configuration or attribute changes you make to the port-channel interface are propagated to all interfaces within the same channel group as the port channel (for example, configuration changes are also propagated to the physical interfaces that are not part of the port channel, but are part of the channel group).

With the on mode, a usable EtherChannel exists only when a port group in on mode is connected to another port group in on mode.

If you do not specify non-silent with the auto or desirable mode, silent is assumed. The silent mode is used when the switch is connected to a device that is not PAgP-capable and seldom, if ever, transmits packets. A example of a silent partner is a file server or a packet analyzer that is not generating traffic. In this case, running PAgP on a physical port prevents that port from ever becoming operational; however, it allows PAgP to operate, to attach the interface to a channel group, and to use the interface for transmission. Both ends of the link cannot be set to silent.


Caution You should exercise care when setting the mode to on (manual configuration). All ports configured in the on mode are bundled in the same group and are forced to have similar characteristics. If the group is misconfigured, packet loss or Spanning Tree Protocol (STP) loops might occur.

Examples

This example shows how to add an interface to the EtherChannel group specified as channel group 1:

Switch(config)# interface gigabitethernet0/1
Switch(config-if)# channel-group 1 mode on

You can verify your settings by entering the show etherchannel or show running-config privileged EXEC command.

Related Commands

Command
Description

interface port-channel

Accesses or creates the port channel.

port-channel load-balance

Sets the load distribution method among the ports in the EtherChannel.

show etherchannel

Displays EtherChannel information for a channel.

show running-config

Displays the running configuration on the switch.


class

Use the class policy-map configuration command to define a traffic classification for the policy to act on using the class-map name or access group. Use the no form of this command to delete an existing class map.

class class-map-name [access-group acl-index-or-name]

no class class-map-name

Syntax Description

class-map-name

Name of the class map.

access-group acl-index-or-name

(Optional) Number or name of an IP standard or extended access control list (ACL) or name of an extended MAC ACL. For an IP standard ACL, the index range is 1 to 99 and 1300 to 1999; for an IP extended ACL, the index range is 100 to 199 and 2000 to 2699.


Defaults

No policy-map class maps are defined.

Command Modes

Policy-map configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Before you use the class command, use the policy-map global configuration command to identify the policy map and to enter policy-map configuration mode. After you specify a policy map, you can configure a policy for new classes or modify a policy for any existing classes in that policy map. You attach the policy map to an interface by using the service-policy interface configuration command; however, you cannot attach one that uses an ACL classification to the egress direction.

The class name that you specify in the policy map ties the characteristics for that class to the class map and its match criteria as configured by using the class-map global configuration command.

The class command performs the same function as the class-map global configuration command. Use the class command when a new classification, which is not shared with any other ports, is needed. Use the class-map command when the map is shared among many ports.


Note In a policy map, the class named class-default is not supported. The switch does not filter traffic based on the policy map defined by the class class-default policy-map configuration command.


After entering the class command, you enter policy-map class configuration mode. When you are in this mode, these configuration commands are available:

default: sets a command to its default.

exit: exits policy-map class configuration mode and returns to policy-map configuration mode.

no: returns a command to its default setting.

set: specifies a Differentiated Services Code Point (DSCP) value to be assigned to the classified traffic. For more information, see the set command.

police: defines a policer for the classified traffic. The policer specifies the bandwidth limitations and the action to take when the limits are exceeded. For more information, see the police command.

To return to policy-map configuration mode, use the exit command. To return to privileged EXEC mode, use the end command.


Note For more information about configuring ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to create a policy map named policy1. When attached to the ingress port, it matches all the incoming traffic defined in class1 and polices the traffic at an average rate of 1 Mbps and bursts at 131072 bytes. Traffic exceeding the profile is dropped.

Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# police 1000000 131072 exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)#

You can verify your settings by entering the show policy-map privileged EXEC command.

Related Commands

Command
Description

class-map

Creates a class map to be used for matching packets to the class whose name you specify.

policy-map

Creates or modifies a policy map that can be attached to multiple interfaces to specify a service policy.

match (class-map configuration)

Defines the match criteria to classify traffic.

show policy-map

Displays quality of service (QoS) policy maps.


class-map

Use the class-map global configuration command to create a class map to be used for matching packets to the class whose name you specify and to enter class-map configuration mode. Use the no form of this command to delete an existing class map and to return to global configuration mode.

class-map class-map-name

no class-map class-map-name

Syntax Description

class-map-name

Name of the class map.


Defaults

No class maps are defined.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use this command to specify the name of the class for which you want to create or modify class-map match criteria and to enter class-map configuration mode. In this mode, you can enter one match command to configure the match criteria for this class.

The class-map command and its subcommands are used to define packet classification and marking as part of a globally named service policy applied on a per-interface basis.

In quality of service (QoS) class-map configuration mode, these configuration commands are available:

exit: exits from QoS class-map configuration mode.

no: removes a match statement from a class map.

match: configures classification criteria. For more information, see the match class-map configuration command.

Only one match criteria per class map is supported. For example, when defining a class map, only one match command can be entered.

Only one access control list (ACL) can be configured in a class map. The ACL can have multiple access control entries (ACEs).


Note The switch does does not support any deny conditions in an ACL configured in a class map.



Note For more information about configuring ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to configure the class map named class1. class1 has one match criteria, which is a numbered ACL.

Switch(config)# access-list 103 permit tcp any any eq 80
Switch(config)# class-map class1
Switch(config-cmap)# match access-group 103
Switch(config-cmap)# exit

You can verify your settings by entering the show class-map privileged EXEC command.

Related Commands

Command
Description

class

Defines a traffic classification for the policy to act on by using the class-map name or access group.

match (class-map configuration)

Defines the match criteria to classify traffic.

policy-map

Creates or modifies a policy map that can be attached to multiple interfaces to specify a service policy.

show class-map

Displays QoS class maps.


clear interface

Use the clear interface privileged EXEC command to clear the hardware logic on an interface or a VLAN.

clear interface {interface-id | vlan vlan-id}

Syntax Description

interface-id

ID of the interface.

vlan-id

VLAN ID value. Valid VLAN IDs are from 1 to 1001; do not enter leading zeroes.


Defaults

No default is defined.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Examples

This example shows how to clear the hardware logic on a Gigabit Ethernet interface:

Switch# clear interface gigabitethernet0/1

This example shows how to clear the hardware logic on a specific VLAN:

Switch# clear interface vlan 5

You can verify that the interface-reset counter for an interface is incremented by entering the show interface privileged EXEC command.

clear mac-address-table dynamic

Use the clear mac-address-table dynamic privileged EXEC command to delete from the MAC address table a specific dynamic address, all dynamic addresses on a particular interface, or all dynamic addresses on a particular VLAN.

clear mac-address-table dynamic [address mac-addr | interface interface-id | vlan vlan-id]

Syntax Description

address mac-addr

(Optional) Delete the specified MAC address.

interface interface-id

(Optional) Delete all dynamic MAC addresses on the specified physical port or port channel.

vlan vlan-id

(Optional) Delete all dynamic MAC addresses for the specified VLAN. Valid IDs are from 1 to 1005; do not enter leading zeroes.


Defaults

No default is defined.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Examples

This example shows how to remove a specific dynamic address from the MAC address table:

Switch# clear mac-address-table dynamic address 0008.0070.0007

You can verify that the information was deleted by entering the show mac-address-table privileged EXEC command.

Related Commands

Command
Description

show mac-address-table

Displays the MAC address table.


clear pagp

Use the clear pagp privileged EXEC command to clear Port Aggregation Protocol (PAgP) channel-group information.

clear pagp {channel-group-number | counters}

Syntax Description

channel-group-number

Channel group number. The range is 1 to 6.

counters

Clear traffic counters.


Defaults

This command has no default setting.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Examples

This example shows how to clear channel-group information for a specific group:

Switch# clear pagp 4

This example shows how to clear channel-group traffic counters:

Switch# clear pagp counters

You can verify that the information was deleted by entering the show pagp privileged EXEC command.

Related Commands

Command
Description

show pagp

Displays PAgP channel-group information.


clear vmps statistics

Use the clear vmps statistics privileged EXEC command to clear the statistics maintained by the VLAN Query Protocol (VQP) client.

clear vmps statistics

Syntax Description

This command has no arguments or keywords.

Defaults

No default is defined.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Examples

This example shows how to clear VLAN Membership Policy Server (VMPS) statistics:

Switch# clear vmps statistics

You can verify that the information was deleted by entering the show vmps statistics privileged EXEC command.

Related Commands

Command
Description

show vmps statistics

Displays the VQP version, reconfirmation interval, retry count, VMPS IP addresses, and the current and primary servers.


clear vtp counters

Use the clear vtp counters privileged EXEC command to clear the VLAN Trunking Protocol (VTP) and pruning counters.

clear vtp counters

Syntax Description

This command has no arguments or keywords.

Defaults

No default is defined.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Examples

This example shows how to clear the VTP counters:

Switch# clear vtp counters

You can verify that the information was deleted by entering the show vtp counters privileged EXEC command.

Related Commands

Command
Description

show vtp counters

Displays general information about the VTP management domain, status, and counters.


cluster commander-address

You do not need to enter this command. The command switch automatically provides its MAC address to member switches when these switches join the cluster. The member switch adds this information and other cluster information to its running configuration file. Enter the no form of this global configuration command from the member switch console port to remove it from a cluster only during debugging or recovery procedures.

cluster commander-address mac-address [member number name name]

no cluster commander-address

Syntax Description

mac-address

MAC address of the cluster command switch.

member number

(Optional) Number of a configured member switch. The range is from 0 to 15.

name name

(Optional) Name of the configured cluster up to 31 characters.


Defaults

The switch is not a member of any cluster.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

A cluster member can have only one command switch.

The member switch retains the identity of the command switch during a system reload by using the mac-address parameter.

You can enter the no form on a member switch to remove it from the cluster during debugging or recovery procedures. You would normally use this command from the member switch console port only when the member has lost communication with the command switch. With normal switch configuration, we recommend that you remove member switches only by entering the no cluster member n global configuration command on the command switch.

When a standby command-switch becomes active (becomes the command switch), it removes the cluster commander-address line from its configuration.

Examples

This is an example of text from the running configuration of a cluster member:

Switch(config)# show running-config

<output truncated>

cluster commander-address 00e0.9bc0.a500 member 4 name my_cluster

<output truncated>

This example shows how to remove a member from the cluster by using the cluster member console:

Switch# configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)# no cluster commander-address

You can verify your settings by entering the show cluster user EXEC command.

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.

show running-config

Displays the running configuration on the switch.


cluster discovery hop-count

Use the cluster discovery hop-count global configuration command on the command switch to set the hop-count limit for extended discovery of candidate switches. Use the no form of this command to set the hop count to the default value.

cluster discovery hop-count number

no cluster discovery hop-count

Syntax Description

number

Number of hops from the cluster edge that the command switch limits the discovery of candidates. The range is from 1 to 7.


Defaults

The hop count is set to 3.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Enter this command only on the command switch. This command does not operate on member switches.

If the hop count is set to 1, it disables extended discovery. The command switch discovers only candidates that are one hop from the edge of the cluster. The edge of the cluster is the point between the last discovered member switch and the first discovered candidate switch.

Examples

This example shows how to set hop count limit to 4. This command is entered on the command switch.

Switch(config)# cluster discovery hop-count 4

You can verify your settings by entering the show cluster user EXEC command on the command switch.

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.

show cluster candidates

Displays a list of candidate switches.


cluster enable

Use the cluster enable global configuration command on a command-capable switch to enable it as the cluster command switch, assign a cluster name, and optionally assign a member number to it. Use the no form of the command to remove all members and make the command switch a candidate switch.

cluster enable name [command-switch-member-number]

no cluster enable

Syntax Description

name

Name of the cluster up to 31 characters. Valid characters include only alphanumerics, dashes, and underscores.

command-switch-member-number

(Optional) Assign a member number to the command switch of the cluster. The range is from 0 to 15.


Defaults

The switch is not a command switch.

No cluster name is defined.

The member number is 0 when this is the command switch.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

This command runs on any command-capable switch that is not part of any cluster. This command fails if a device is already configured as a member of the cluster.

You must name the cluster when you enable the command switch. If the switch is already configured as the command switch, this command changes the cluster name if it is different from the previous name.

Examples

This example shows how to enable the command switch, name the cluster, and set the command switch member number to 4:

Switch(config)# cluster enable Engineering-IDF4 4

You can verify your settings by entering the show cluster user EXEC command on the command switch.

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.


cluster holdtime

Use the cluster holdtime global configuration command on the command switch to set the duration in seconds before a switch (either the command or member switch) declares the other switch down after not receiving heartbeat messages. Use the no form of this command to set the duration to the default value.

cluster holdtime holdtime-in-secs

no cluster holdtime

Syntax Description

holdtime-in-secs

Duration in seconds before a switch (either a command or member switch) declares the other switch down. The range is from 1 to 300 seconds.


Defaults

The holdtime is 80 seconds.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Use this command with the cluster timer global configuration command only on the command switch. The command switch propagates the values to all of the cluster members.

The holdtime is typically set as a multiple of the interval timer (cluster timer). For example, it takes (holdtime-in-secs divided by interval-in-secs) number of heartbeat messages to be missed in a row to declare a switch down.

Examples

This example shows how to change the interval timer and the duration on the command switch:

Switch(config)# cluster timer 3
Switch(config)# cluster holdtime 30

You can verify your settings by entering the show cluster user EXEC command.

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.


cluster management-vlan

Use the cluster management-vlan global configuration command on the command switch to change the management VLAN for the entire cluster. Use the no form of this command to change the management VLAN to VLAN 1.

cluster management-vlan n

no cluster management-vlan

Syntax Description

n

VLAN ID of the new management VLAN. Valid VLAN IDs are from 1 to 1001. Do not enter leading zeroes.


Defaults

The default management VLAN is VLAN 1.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Enter this command only on the command switch.

This command is not written to the configuration file.

Examples

This example shows how to change the management VLAN to VLAN 5 on the entire cluster:

Switch(config)# cluster management-vlan 5

You can verify your settings by entering the show interface vlan number privileged EXEC command.

Related Commands

show interface

Displays the administrative and operational status of a switching (nonrouting) port.


cluster member

Use the cluster member global configuration command on the command switch to add members to a cluster. Use the no form of the command to remove members from the cluster.

cluster member [n] mac-address H.H.H [password enable-password]

no cluster member n

Syntax Description

n

(Optional) The number that identifies a cluster member. The range is from 0 to 15.

mac-address H.H.H

MAC address of the member switch in hexadecimal format.

password enable-password

(Optional) Enable password of the candidate switch. The password is not required if there is no password on the candidate switch.


Defaults

A newly enabled command switch has no associated cluster members.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Enter this command only on the command switch to add a member to or remove a member from the cluster. If a switch is not commanding a cluster, an error message appears.

You do not need to enter a member number. The command switch selects the next available member number and assigns it to the switch joining the cluster.

You must enter the enable password of the candidate switch for authentication when it joins the cluster. The password is not saved in the running or startup configuration. After a candidate switch becomes a member of the cluster, its password becomes the same as the command-switch password.

If a switch does not have a configured host name, the command switch appends a member number to the command-switch host name and assigns it to the member switch.

Examples

This example shows how to add a switch as member 2 with MAC address 00E0.1E00.2222 and the password grandkey to a cluster:

Switch(config)# cluster member 2 mac-address 00E0.1E00.2222 password grandkey

This example shows how to add a switch with MAC address 00E0.1E00.3333 to the cluster. The command switch selects the next available member number and assigns it to the switch joining the cluster:

Switch(config)# cluster member mac-address 00E0.1E00.3333

You can verify your settings by entering the show cluster members user EXEC command on the command switch.

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.

show cluster candidates

Displays a list of candidate switches.

show cluster members

Displays information about the cluster members.


cluster run

Use the cluster run global configuration command to enable clustering on a switch. Use the no form of this command to disable clustering on a switch.

cluster run

no cluster run

Defaults

Clustering is enabled on all switches.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

When you enter the no cluster run command on a command switch, the command switch is disabled. Clustering is disabled, and the switch cannot become a candidate switch.

When you enter the no cluster run command on a member switch, it is removed from the cluster. Clustering is disabled, and the switch cannot become a candidate switch.

When you enter the no cluster run command on a switch that is not part of a cluster, clustering is disabled on this switch. This switch cannot then become a candidate switch.

Examples

This example shows how to disable clustering on the command switch:

Switch(config)# no cluster run

You can verify that clustering is disabled by entering the show cluster user EXEC command.

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.


cluster setup

Use the cluster setup privileged EXEC command on the command switch to automatically build a cluster.

cluster setup

Syntax Description

This command has no arguments or keywords.

Defaults

No default is defined.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

You can use the cluster setup command to add new switches to an existing cluster. The cluster setup command provides a high-level view of the configuration and guides you through the configuration change process. You can only see candidate switches that are one hop away from the command switch and have no IP address. To see devices farther away, use the show cluster members or show cluster candidates privileged EXEC command.

If a candidate switch has a password, this information is not passed to the cluster.

Examples

This is an example of the cluster setup command output:

Switch# cluster setup

         --- Cluster Configuration Dialog ---
 
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.

This switch is already configured as cluster command switch:
Command Switch Name:clus1, contains 1 members

Continue with cluster configuration dialog? [yes/no]:yes
The suggested Cluster configuration is as follows:

                                                |---Upstream---|
SN MAC Address    Name         PortIf FEC Hops   SN PortIf  FEC  State
0  0030.0002.0240 c2950-1                0                    Up   (Cmdr)
1* 0001.96e4.e580 c2950-2    Fa0/1       1     0  Fa0/9       Up  
2* 0001.96e4.e580 c2950-2    Fa0/3       1     0  Fa0/3       Up  
3* 0001.96e4.e580 c2950-2    Fa0/5       1     0  Fa0/5       Up  
4* 0050.2ae6.2e00 2900-1     Fa0/1       1     0  Fa0/1       Up  


The following configuration command script was created:
cluster member 1 mac-address 0001.96e4.e580
cluster member 2 mac-address 0001.96e4.e580
cluster member 3 mac-address 0001.96e4.e580
cluster member 4 mac-address 0050.2ae6.2e00
!
end

Use this configuration? [yes/no]:yes
 
Building configuration...
[OK]
Use the enabled mode 'configure' command to modify this configuration.
 
Switch#

You can verify your settings by entering the show cluster user EXEC command.

Related Commands

Command
Description

cluster enable

Enables a switch as the cluster command switch, assigns a cluster name and optionally assigns a member number to it.

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.

show cluster candidates

Displays a list of candidate switches.

show cluster members

Displays information about the cluster members.


cluster standby-group

Use the cluster standby-group global configuration command to enable command switch redundancy by binding the Hot Standby Router Protocol (HSRP) standby group to the cluster. Use the no form of this command to unbind the cluster from the HSRP standby group.

cluster standby-group HSRP-group-name

no cluster standby-group

Syntax Description

HSRP-group-name

Name of the HSRP group that is bound to the cluster. The group name is limited to 32 characters.


Defaults

The cluster is not bound to any HSRP group.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

You must enter this command only on the command switch. If you enter it on a member switch, an error message appears.

The command switch propagates the cluster-HSRP binding information to all members. Each member switch stores the binding information in its nonvolatile RAM (NVRAM).

The HSRP group name must be a valid standby group; otherwise, the command entry produces an error.

Use the same group name on all members of the HSRP standby group that is to be bound to the cluster. Use the same HSRP group name on all cluster-HSRP capable members for the HSRP group that is to be bound. (When not binding a cluster to an HSRP group, you can use different names on the cluster command and the member switches.)

Examples

This example shows how to bind the HSRP group named my_hsrp to the cluster. This command is entered on the command switch.

Switch(config)# cluster standby-group my_hsrp

This example shows the error message when this command is entered on a command switch and the specified HSRP standby group does not exist:

Switch(config)# cluster standby-group my_hsrp
%ERROR: Standby group `my_hsrp' doesn't exist

This example shows the error message when this command is entered on a member switch:

Switch(config)# cluster standby-group my_hsrp
%ERROR: This command runs only on the command switch

You can verify your settings by entering the show cluster user EXEC command.

Related Commands

Command
Description

standby ip

Enables HSRP on the interface.

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.

show standby

Displays standby group information.


cluster timer

Use the cluster timer global configuration command on the command switch to set the interval in seconds between heartbeat messages. Use the no form of this command to set the interval to the default value.

cluster timer interval-in-secs

no cluster timer

Syntax Description

interval-in-secs

Interval in seconds between heartbeat messages. The range is from
1 to 300 seconds.


Defaults

The interval is 8 seconds.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Use this command with the cluster holdtime global configuration command only on the command switch. The command switch propagates the values to all its cluster members.

The holdtime is typically set as a multiple of the heartbeat interval timer (cluster timer). For example, it takes (holdtime-in-secs divided by the interval-in-secs) number of heartbeat messages to be missed in a row to declare a switch down.

Examples

This example shows how to change the heartbeat interval timer and the duration on the command switch.

Switch(config)# cluster timer 3
Switch(config)# cluster holdtime 30

You can verify your settings by entering the show cluster user EXEC command.

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.


delete

Use the delete privileged EXEC command to delete a file from the file system.

delete {device:}filename

Syntax Description

device:

Device containing the file to be deleted. Valid devices include the switch Flash memory.

filename

Name of file.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

A colon (:) follows the device variable. Do not enter spaces after the colon.

Examples

This example shows how to delete a file from the switch Flash memory:

Switch# delete flash:filename

You can verify that the directory was removed by entering the dir filesystem: privileged EXEC command.

Related Commands

Command
Description

copy

Downloads a file from a source, such as a TFTP server, to a destination, such as the Flash memory.

rename

Renames a file.

dir filesystem:

Displays a list of files on a file system.


deny (access-list configuration)

Use the deny access-list configuration command to configure conditions for a named or numbered IP access control list (ACL). Use the no form of the command to remove a deny condition from the IP ACL.

Use these commands with standard IP ACLs:

deny {source source-wildcard | host source | any}

no deny {source source-wildcard | host source | any}

Use these commands with extended IP ACLs:

deny protocol {source source-wildcard | host source | any} [operator port] {destination destination-wildcard | host source | any} [operator port]

no deny protocol {source source-wildcard | host source | any} [operator port] {destination destination-wildcard | host source | any} [operator port]

Syntax Description

source source-wildcard | host source | any

Define a source IP address and wildcard.

The source is the source address of the network or host from which the packet is being sent, specified in one of these ways:

The 32-bit quantity in dotted-decimal format. The source-wildcard applies wildcard bits to the source.

The keyword host, followed by the 32-bit quantity in dotted-decimal format, as an abbreviation for source and source-wildcard of source 0.0.0.0.

The keyword any as an abbreviation for source and source-wildcard of 0.0.0.0 255.255.255.255. You do not need to enter a source-wildcard.

protocol

Name of an IP protocol.

protocol can be ip, tcp, or udp.

destination destination-wildcard | host source | any

Define a destination IP address and wildcard.

The destination is the destination address of the network or host to which the packet is being sent, specified in one of these ways:

The 32-bit quantity in dotted-decimal format. The destination-wildcard applies wildcard bits to the destination.

The keyword host, followed by the 32-bit quantity in dotted-decimal format, as an abbreviation for source and source-wildcard of source 0.0.0.0.

The keyword any as an abbreviation for destination and destination-wildcard of 0.0.0.0 255.255.255.255. You do not need to enter a destination-wildcard.

operator port

(Optional) Define a source or destination port.

The operator can be only eq (equal).

If operator is after the source IP address and wildcard, conditions match when the source port matches the defined port.

If operator is after the destination IP address and wildcard, conditions match when the destination port matches the defined port.

The port is a decimal number or name of a Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) port. The number can be from 0 to 65535.

Use TCP port names only for TCP traffic.

Use UDP port names only for UDP traffic.


Defaults

There are no specific conditions that deny packets in the named or numbered IP ACL.

The default ACL is always terminated by an implicit deny statement for all packets.

Command Modes

Access-list configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use this command after the ip access-list global configuration command to specify deny conditions for an IP ACL. You can specify a source IP address, destination IP address, IP protocol, TCP port, or UDP port. Specify the TCP and UDP port numbers only if protocol is tcp or udp and operator is eq.


Note For more information about configuring IP ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to create an extended IP ACL and to configure deny conditions for it:

Switch(config)# ip access-list extended Internetfilter
Switch(config-ext-nacl)# deny tcp host 190.5.88.10 any
Switch(config-ext-nacl)# deny tcp host 192.1.10.10 any

This is an example of a standard ACL that sets a deny conditions:

ip access-list standard Acclist1
 deny 192.5.34.0  0.0.0.255
 deny 128.88.10.0  0.0.0.255
 deny 36.1.1.0  0.0.0.255

Note In these examples, all other IP access is implicitly denied.


You can verify your settings by entering the show ip access-lists or show access-lists privileged EXEC command.

Related Commands

Command
Description

ip access-list

Defines an IP ACL.

permit (access-list configuration)

Sets conditions for an IP ACL.

ip access-group

Controls access to an interface.

show ip access-lists

Displays IP ACLs configured on the switch.

show access-lists

Displays ACLs configured on a switch.


deny (MAC access-list configuration)

Use the deny MAC access-list configuration command to prevent Layer 2 traffic from being forwarded if the conditions are matched. Use the no form of the command to remove a deny condition from the MAC named access control list (ACL).

{permit | deny} {any | host src-MAC-addr} {any | host dst-MAC-addr} [aarp | amber | dec-spanning | decnet-iv | diagnostic | dsm | etype-6000 | etype-8042 | lat | lavc-sca | mop-console | mop-dump | msdos | mumps | netbios | vines-echo |vines-ip | xns-idp]

no {permit | deny} {any | host src-MAC-addr} {any | host dst-MAC-addr} [aarp | amber | dec-spanning | decnet-iv | diagnostic | dsm | etype-6000 | etype-8042 | lat | lavc-sca | mop-console | mop-dump | msdos | mumps | netbios | vines-echo |vines-ip | xns-idp]

Syntax Description

any

Keyword to deny any source or destination MAC address.

host src MAC-addr

Define a host MAC address. If the source address for a packet matches the defined address, traffic from that address is denied. MAC address-based subnets are not allowed.

host dst-MAC-addr

Define a destination MAC address. If the destination address for a packet matches the defined address, traffic to that address is denied. MAC address-based subnets are not allowed.

aarp

Select Ethertype AppleTalk Address Resolution Protocol that maps a data-link address to a network address.

amber

Select EtherType DEC-Amber.

dec-spanning

Select EtherType Digital Equipment Corporation (DEC) spanning tree.

decnet-iv

Select EtherType DECnet Phase IV protocol.

diagnostic

Select EtherType DEC-Diagnostic.

dsm

Select EtherType DEC-DSM.

etype-6000

Select EtherType 0x6000.

etype-8042

Select EtherType 0x8042.

lat

Select EtherType DEC-LAT.

lavc-sca

Select EtherType DEC-LAVC-SCA.

mop-console

Select EtherType DEC-MOP Remote Console.

mop-dump

Select EtherType DEC-MOP Dump.

msdos

Select EtherType DEC-MSDOS.

mumps

Select EtherType DEC-MUMPS.

netbios

Select EtherType DEC-Network Basic Input/Output System (NETBIOS).

vines-echo

Select EtherType Virtual Integrated Network Service (VINES) Echo from Banyan Systems.

vines-ip

Select EtherType VINES IP.

xns-idp

Select EtherType Xerox Network Systems (XNS) protocol suite (from 0 to 65535), an arbitrary Ethertype in decimal, hexadecimal, or octal.


Defaults

This command has no defaults. However, the default action for a MAC named ACL is to deny.

Command Modes

MAC access-list configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

When an access control entry (ACE) is added to an ACL, an implied deny-any-any condition exists at the end of the list. That is, if there are no matches, the packets are denied. However, before the first ACE is added, the list permits all packets.

These options are not allowed:

Class of service (CoS)

Ethertype number of a packet with Ethernet II or Subnetwork Access Protocol (SNAP) encapsulation

Link Service Access Point (LSAP) number of a packet with 802.2 encapsulation


Note For more information about configuring MAC extended ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to define the MAC named extended ACL to deny NETBIOS traffic from any source to MAC address 00c0.00a0.03fa. Traffic matching this list is denied.

Switch(config-ext-macl)# deny any host 00c0.00a0.03fa netbios

This example shows how to remove the deny condition from the named MAC extended ACL:

Switch(config-ext-macl)# no deny any host 00c0.00a0.03fa netbios

You can verify your settings by entering the show access-lists privileged EXEC command.

Related Commands

Command
Description

mac access-list extended

Creates an ACL based on MAC addresses for non-IP traffic.

permit (MAC access-list configuration)

Permits Layer 2 traffic to be forwarded if conditions are matched.

show access-lists

Displays ACLs configured on a switch.


dot1x default

Use the dot1x default global configuration command to reset the global 802.1X parameters to their default values.

dot1x default

Syntax Description

This command has no arguments or keywords.

Defaults

This command has no default setting.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Examples

This example shows how to reset the global 802.1X parameters:

Switch(config)# dot1x default

You can verify your settings by entering the show dot1x privileged EXEC command.

Related Commands

Command
Description

dot1x max-req

Sets the maximum number of times that the switch sends an Extensible Authentication Protocol (EAP)-request/identity frame before restarting the authentication process.

dot1x re-authentication

Enables periodic re-authentication of the client.

dot1x timeout quiet-period

Sets the number of seconds that the switch remains in the quiet state following a failed authentication exchange.

dot1x timeout re-authperiod

Sets the number of seconds between re-authentication attempts.

dot1x timeout tx-period

Sets the number of seconds that the switch waits for a response to an EAP-request/identity frame from the client before retransmitting the request.

show dot1x

Displays the 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.


dot1x max-req

Use the dot1x max-req global configuration command to set the maximum number of times that the switch sends an Extensible Authentication Protocol (EAP)-request/identity frame (assuming that no response is received) before restarting the authentication process. Use the no form of this command to return to the default setting.

dot1x max-req count

no dot1x max-req

Syntax Description

count

Number of times that the switch sends an EAP-request/identify frame before restarting the authentication process. The range is 1 to 10.


Defaults

The default is 2 times.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

You should change the default value of this command only to adjust for unusual circumstances such as unreliable links or specific behavorial problems with certain clients and authentication servers.

Examples

This example shows how to set the number of times that the switch sends an EAP-request/identity frame to 5 before restarting the authentication process:

Switch(config)# dot1x max-req 5

You can verify your settings by entering the show dot1x privileged EXEC command.

Related Commands

Command
Description

dot1x timeout tx-period

Sets the number of seconds that the switch waits for a response to an EAP-request/identity frame from the client before retransmitting the request.

show dot1x

Displays the 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.


dot1x multiple-hosts

Use the dot1x multiple-hosts interface configuration command to allow multiple hosts (clients) on an 802.1X-authorized port that has the dot1x port-control interface configuration command set to auto. Use the no form of this command to return to the default setting.

dot1x multiple-hosts

no dot1x multiple-hosts

Syntax Description

This command has no arguments or keywords.

Defaults

Multiple hosts are disabled.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

This command enables you to attach multiple clients to a single 802.1X-enabled port. In this mode, only one of the attached hosts must be successfully authorized for all hosts to be granted network access. If the port becomes unauthorized (re-authentication fails, or an Extensible Authentication Protocol over LAN [EAPOL]-logoff message is received), all attached clients are denied access to the network.

Examples

This example shows how to enable 802.1X on Fast Ethernet interface 0/1 and to allow multiple hosts:

Switch(config)# interface fastethernet0/1
Switch(config-if)# dot1x port-control auto
Switch(config-if)# dot1x multiple-hosts

You can verify your settings by entering the show dot1x [interface interface-id] privileged EXEC command.

Related Commands

Command
Description

dot1x port-control

Enables manual control of the authorization state of the port.

show dot1x

Displays 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.


dot1x port-control

Use the dot1x port-control interface configuration command to enable manual control of the authorization state of the port. Use the no form of this command to return to the default setting.

dot1x port-control {auto | force-authorized | force-unauthorized}

no dot1x port-control

Syntax Descriptionn

auto

Enable 802.1X on the interface and cause the port to transition to the authorized or unauthorized state based on the 802.1X authentication exchange between the switch and the client.

force-authorized

Disable 802.1X on the interface and cause the port to transition to the authorized state without any authentication exchange required. The port transmits and receives normal traffic without 802.1X-based authentication of the client.

force-unauthorized

Deny all access through this interface by forcing the port to transition to the unauthorized state, ignoring all attempts by the client to authenticate. The switch cannot provide authentication services to the client through the interface.


Defaults

The authorization state is force-authorized.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The 802.1X protocol is supported on Layer 2 static-access ports.

You can use the auto keyword only if the port is not configured as one of these:

Trunk port—If you try to enable 802.1X on a trunk port, an error message appears, and 802.1X is not enabled. If you try to change the mode of an 802.1X-enabled port to trunk, the port mode is not changed.

Dynamic port—A port in dynamic mode can negotiate with its neighbor to become a trunk port. If you try to enable 802.1X on a dynamic port, an error appears, and 802.1X is not enabled. If you try to change the mode of an 802.1X-enabled port to dynamic, the port mode is not changed.

Dynamic-access port—If you try to enable 802.1X on a dynamic-access (VLAN Query Protocol [VQP]) port, an error appears, and 802.1X is not enabled. If you try to change an 802.1X-enabled port to dynamic VLAN assignment, an error appears, and the VLAN configuration is not changed.

EtherChannel port—Before enabling 802.1X on the port, you must first remove it from the EtherChannel. If you try to enable 802.1X on an EtherChannel or on an active port in an EtherChannel, an error appears, and 802.1X is not enabled. If you enable 802.1X on a not-yet active port of an EtherChannel, the port does not join the EtherChannel.

Secure port—You cannot configure a secure port as an 802.1X port. If you try to enable 802.1X on a secure port, an error appears, and 802.1X is not enabled. If you try to change an 802.1X-enabled port to a secure port, an error appears, and the security settings are not changed.

Switch Port Analyzer (SPAN) destination port—You can enable 802.1X on a port that is a SPAN destination port; however, 802.1X is disabled until the port is removed as a SPAN destination. You can enable 802.1X on a SPAN source port.

To globally disable 802.1X on the switch, you must disable it on each port. There is no global configuration command for this task.

Examples

This example shows how to enable 802.1X on Fast Ethernet interface 0/1:

Switch(config)# interface fastethernet0/1
Switch(config-if)# dot1x port-control auto

You can verify your settings by entering the show dot1x privileged EXEC command and checking the Status column in the 802.1X Port Summary section of the display. An enabled status means the port-control value is set either to auto or to force-unauthorized.

Related Commands

Command
Description

show dot1x

Displays 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.


dot1x re-authenticate

Use the dot1x re-authenticate privileged EXEC command to manually initiate a re-authentication of all 802.1X-enabled ports or the specified 802.1X-enabled port.

dot1x re-authenticate [interface interface-id]

Syntax Description

interface interface-id

(Optional) Slot and port number of the interface to re-authenticate.


Defaults

There is no default setting.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

You can use this command to re-authenticate a client without waiting for the configured number of seconds between re-authentication attempts (re-authperiod) and automatic re-authentication.

Examples

This example shows how to manually re-authenticate the device connected to Fast Ethernet interface 0/1:

Switch# dot1x re-authenticate interface fastethernet0/1
Starting reauthentication on FastEthernet0/1.

You can verify your settings by entering the show dot1x privileged EXEC command.

dot1x re-authentication

Use the dot1x re-authentication global configuration command to enable periodic re-authentication of the client. Use the no form of this command to return to the default setting.

dot1x re-authentication

no dot1x re-authentication

Syntax Description

This command has no arguments or keywords.

Defaults

Periodic re-authentication is disabled.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

You configure the amount of time between periodic re-authentication attempts by using the dot1x timeout re-authperiod global configuration command.

Examples

This example shows how to disable periodic re-authentication of the client:

Switch(config)# no dot1x re-authentication

This example shows how to enable periodic re-authentication and set the number of seconds between re-authentication attempts to 4000 seconds:

Switch(config)# dot1x re-authentication
Switch(config)# dot1x timeout re-authperiod 4000

You can verify your settings by entering the show dot1x privileged EXEC command.

Related Commands

Command
Description

dot1x timeout re-authperiod

Sets the number of seconds between re-authentication attempts.

show dot1x

Displays 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.


dot1x timeout quiet-period

Use the dot1x quiet-period global configuration command to set the number of seconds that the switch remains in the quiet state following a failed authentication exchange (for example, the client provided an invalid password). Use the no form of this command to return to the default setting.

dot1x timeout quiet-period seconds

no dot1x timeout quiet-period

Syntax Description

seconds

Time in seconds that the switch remains in the quiet state following a failed authentication exchange with the client. The range is 0 to 65535 seconds.


Defaults

The default time is 60 seconds.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

During the quiet period, the switch does not accept or initiate any authentication requests.

You should change the default value of this command only to adjust for unusual circumstances such as unreliable links or specific behavioral problems with certain clients and authentication servers.

If you want to provide a faster response time to the user, enter a smaller number than the default.

Examples

This example shows how to set the quiet time on the switch to 30 seconds:

Switch(config)# dot1x timeout quiet-period 30

You can verify your settings by entering the show dot1x privileged EXEC command.

Related Commands

Command
Description

show dot1x

Displays 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.


dot1x timeout re-authperiod

Use the dot1x timeout re-authperiod global configuration command to set the number of seconds between re-authentication attempts. Use the no form of this command to return to the default setting.

dot1x timeout re-authperiod seconds

no dot1x timeout re-authperiod

Syntax Description

seconds

Number of seconds between re-authentication attempts. The range is 1 to 4294967295.


Defaults

The default is 3600 seconds.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The dot1x timeout re-authperiod global configuration command affects the behavior of the switch only if you have enabled periodic re-authentication by using the dot1x re-authentication global configuration command.

You should change the default value of this command only to adjust for unusual circumstances such as unreliable links or specific behavioral problems with certain clients or authentication servers.

Examples

This example shows how to enable periodic re-authentication and set the number of seconds between re-authentication attempts to 4000 seconds:

Switch(config)# dot1x re-authentication
Switch(config)# dot1x timeout re-authperiod 4000

You can verify your settings by entering the show dot1x privileged EXEC command.

Related Commands

Command
Description

dot1x re-authentication

Enables periodic re-authentication of the client.

show dot1x

Displays 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.


dot1x timeout tx-period

Use the dot1x timeout tx-period global configuration command to set the number of seconds that the switch waits for a response to an Extensible Authentication Protocol (EAP)-request /identity frame from the client before retransmitting the request. Use the no form of this command to return to the default setting.

dot1x timeout tx-period seconds

no dot1x timeout tx-period

Syntax Description

seconds

Time in seconds that the switch should wait for a response to an EAP-request/identity frame from the client before retransmitting the request. The range is 1 to 65535 seconds.


Defaults

The default is 30 seconds.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

You should change the default value of this command only to adjust for unusual circumstances such as unreliable links or specific behavioral problems with certain clients or authentication servers.

Examples

This example shows how to set 60 as the number of seconds that the switch waits for a response to an EAP-request/identity frame from the client before retransmitting the request:

Switch(config)# dot1x timeout tx-period 60

You can verify your settings by entering the show dot1x privileged EXEC command.

Related Commands

Command
Description

dot1x max-req

Sets the maximum number of times that the switch sends an EAP-request/identity frame before restarting the authentication process.

show dot1x

Displays 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.


duplex

Use the duplex interface configuration command to specify the duplex mode of operation for switch ports. Use the no form of this command to return the port to its default value.

duplex {full | half | auto}

no duplex

Syntax Description

full

Port is in full-duplex mode.

half

Port is in half-duplex mode.

auto

Port automatically detects whether it should run in full- or half-duplex mode.


Defaults

For Fast Ethernet and 10/100/1000 ports, the default is auto.

For 100BASE-FX ports, the default is full.

For the default duplex mode of the Gigabit Interface Converter (GBIC)-module ports, refer to the documentation that came with your GBIC module.

Command Modes

Interface configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The usage guidelines for the Catalyst 2950C-24 switch were modified.


Usage Guidelines

Certain ports, such as GBIC-module ports, can be configured to be either full duplex or half duplex. The applicability of this command depends on the device to which the switch is attached.

The 100BASE-FX ports on Catalyst 2950C-24 switches do not support the duplex command. These ports only operate in full-duplex and 100-Mbps mode.

For Fast Ethernet ports, setting the port to auto has the same effect as specifying half if the attached device does not autonegotiate the duplex parameter.

If the speed is set to auto, the switch negotiates with the device at the other end of the link for the speed setting and then forces the speed setting to the negotiated value. The duplex setting remains as configured on each end of the link, which could result in a duplex setting mismatch.


Note When set to 10 or 100 Mbps, the 10/100/1000 ports can operate in either half- or full-duplex mode, but when set to 1000 Mbps, they can operate only in the full-duplex mode.


If both the speed and duplex are set to specific values, autonegotiation is disabled.


Note For guidelines on setting the switch speed and duplex parameters, refer to the Catalyst 2950 Desktop Switch Hardware Installation Guide.


Examples

This example shows how to set a Fast Ethernet port to half duplex:

Switch(config)# interface fastethernet0/11
Switch(config-if)# duplex half

This example shows how to set a Gigabit Ethernet port to full duplex:

Switch(config)# interface gigabitethernet0/1
Switch(config-if)# duplex full

You can verify your settings by entering the show running-config privileged EXEC command.

Related Commands

Command
Description

show running-config

Displays the running configuration on the switch.

speed

Specifies the port speed.


errdisable detect

Use the errdisable detect global configuration command to enable error disable detection. Use the no form of this command to disable this feature.

errdisable detect cause {all | bpduguard | dtp-flap | link-flap | pagp-flap | rootguard | udld}

no errdisable detect cause {all | bpduguard | dtp-flap | link-flap | pagp-flap | rootguard | udld}

Syntax Description

all

Enable detection for all error disable causes.

bpduguard

Enable detection for the Bridge Protocol Data Unit (BPDU)-guard cause.

dtp-flap

Enable detection for the Dynamic Trunking Protocol (DTP)- flap cause.

link-flap

Enable detection for the link flap cause.

pagp-flap

Enable detection for the Port Aggregation Protocol (PAgP)-flap cause.

rootguard

Enable detection for the root guard cause.

udld

Enable detection for the UniDirectional Link Detection (UDLD) cause.


Defaults

The default is all, enabled for all causes.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

A cause (bpduguard, dtp-flap, link-flap, pagp-flap, root-guard, udld) is the reason why the error-disabled state occurred. When a cause is detected on an interface, the interface is placed in error-disabled state, an operational state similar to link-down state. If you do not enable errdisable recovery for the cause, the interface stays in the error-disabled state until you enter the shutdown and no shutdown interface configuration commands. If you enable the recovery for a cause, the interface is brought out of the error-disabled state and allowed to retry the operation again when all the causes have timed out.

You must enter the shutdown and then the no shutdown commands to manually recover an interface from the error-disabled state.

Examples

This example shows how to enable error disable detection for the BPDU guard cause:

Switch(config)# errdisable detect cause bpduguard

You can verify your settings by entering the show errdisable detect user EXEC command.

Related Commands

Command
Description

errdisable recovery

Configures the recovery mechanism variables.

show errdisable detect

Displays errdisable detection status.

show interfaces status

Displays interface status or a list of interfaces in error-disabled state.


errdisable recovery

Use the errdisable recovery global configuration command to configure the recover mechanism variables. Use the no form of this command to return to the default setting.

errdisable recovery {cause {all | bpduguard | dtp-flap | link-flap | pagp-flap | rootguard | udld}} | {interval {interval}

no errdisable recovery {cause {all | bpduguard | dtp-flap | link-flap | pagp-flap | rootguard | udld}} | {interval}

Syntax Description

cause

Enable error disable to recover from a specific cause.

all

Enable the timer to recover from all error-disable causes.

bpduguard

Enable the timer to recover from the Bridge Protocol Data Unit (BPDU)-guard error-disable state.

dtp-flap

Enable the timer to recover from the Dynamic Trunking Protocol (DTP)-flap error-disable state.

link-flap

Enable the timer to recover from the link-flap error-disable state.

pagp-flap

Enable the timer to recover from the Port Aggregation Protocol (PAgP)-flap error-disable state.

rootguard

Enable the timer to recover from the root-guard error-disable state.

udld

Enable the timer to recover from the UniDirectional Link Detection (UDLD) error-disable state.

interval interval

Specify the time to recover from the specified error-disable state. The range is 30 to 86400 seconds.


Defaults

Recovery is disabled for all causes.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

A cause (bpduguard, dtp-flap, link-flap, pagp-flap, root-guard, udld) is the reason why the error-disabled state occurred. When a cause is detected on an interface, the interface is placed in error-disabled state, an operational state similar to link-down state. If you do not enable errdisable recovery for the cause, the interface stays in the error-disabled state until you enter the shutdown and no shutdown interface configuration commands. If you enable the recovery for a cause, the interface is brought out of the error-disabled state and allowed to retry the operation again when all the causes have timed out.

You must enter the shutdown and then the no shutdown commands to manually recover an interface from the error-disabled state.

Examples

This example shows how to enable the timer to recover from the BPDU-guard cause:

Switch(config)# errdisable recovery cause bpduguard

This example shows how to set the timer to 300 seconds:

Switch(config)# errdisable recovery interval 300

You can verify your settings by entering the show errdisable recovery user EXEC command.

Related Commands

Command
Description

errdisable detect

Enables the error disable detection feature.

show errdisable recovery

Displays errdisable recovery timer information.

show interfaces status

Displays interface status or a list of interfaces in error-disabled state.


exit

Use the exit VLAN configuration command to implement the proposed VLAN configuration, increment the database configuration number, propagate it throughout the administrative domain, and return to privileged EXEC mode.

exit

Syntax Description

This command has no arguments or keywords.

Defaults

No default is defined.

Command Modes

VLAN configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The command mode was changed from VLAN database to VLAN configuration.


Usage Guidelines

The exit command implements all the configuration changes you made since you entered VLAN configuration mode and uses them for the running configuration. This command returns you to privileged EXEC mode.

Examples

This example shows how to implement the proposed VLAN configuration and return to privileged EXEC mode:

Switch(vlan)# exit
Switch#

You can verify your settings changes by entering the show vlan brief privileged EXEC command.

Related Commands

Command
Description

abort

Abandons the proposed VLAN configuration, exits VLAN configuration mode, and returns to privileged EXEC mode.

apply

Implements the proposed VLAN configuration, increments the database configuration revision number, propagates it throughout the administrative domain, and remains in VLAN configuration mode.

reset

Abandons the proposed VLAN configuration and remains in VLAN configuration mode. Resets the proposed configuration to the current VLAN configuration.

show vlan

Displays the parameters for all configured VLANs in the administrative domain.

shutdown vlan

Shuts down (suspends) local traffic on the specified VLAN.

vlan database

Enters VLAN configuration mode from the command-line interface (CLI).


flowcontrol

Use the flowcontrol interface configuration command to set the receive or send flow-control value for an interface. When flow control send is on for a device and it detects any congestion at its end, it notifies the link partner or the remote device of the congestion by sending a pause frame. When flow control receive is on for the remote device and it receives a pause frame, it stops sending any data packets. This prevents any loss of data packets during the congestion period.

Use the receive off and send off keywords to disable flow control.

flowcontrol {receive | send} {off | on | desired}


Note Ths flowcontrol command applies only to 10/100/1000 ports and Gigabit Interface Converter (GBIC)-module ports on Catalyst 2950 switches.


Syntax Description

receive

Sets whether the interface can receive flow-control packets from a remote device.

send

Sets whether the interface can send flow-control packets to a remote device.

off

When used with receive, turns off an attached device's ability to send flow-control packets to an interface. When used with send, turns off the local port's ability to send flow-control packets to a remote device.

on

When used with receive, allows an interface to operate with an attached device that is required to send flow-control packets or with an attached device that is not required to but can send flow-control packets.
When used with send, the interface sends flow-control packets to a remote device if the remote device supports it.

desired

When used with receive, allows an interface to operate with an attached device that is required to send flow-control packets or with an attached device that is not required to but can send flow-control packets.
When used with send, the interface sends flow-control packets to a remote device if the remote device supports it.


Defaults

The defaults for 10/100/1000 and GBIC-module ports are flowcontrol receive off and flowcontrol send desired.

Command Modes

Interface configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The asymmetric and symmetric keywords were replaced with the receive, send, off, on, and desired keywords.


Usage Guidelines

Use the flowcontrol command only on 10/100/1000 and GBIC-module ports.

We strongly recommend that you do not configure IEEE 802.3X flowcontrol when quality of service (QoS) is configured on the switch. Before configuring flowcontrol on an interface, make sure to disable QoS on the switch.

Note that when used with receive, the on and desired keywords have the same result.

When you use the flowcontrol command to set a port to control traffic rates during congestion, you are setting flow control on a port to one of these conditions:

receive on and send on: Flow control operates in both directions; pause frames can be sent by both the local device and the remote device to show link congestion.

receive on and send desired: The port can receive pause frames and is able to send pause frames if the attached device supports them.

receive on and send off: The port cannot send pause frames, but can operate with an attached device that is required to or is able to send pause frames; the port is able to receive pause frames.

receive off and send on: The port sends pause frames if the remote device supports them, but cannot receive pause frames from the remote device.

receive off and send desired: The port cannot receive pause frames, but can send pause frames if the attached device supports them.

receive off and send off: Flow control does not operate in either direction. In case of congestion, no indication is given to the link partner, and no pause frames are sent or received by either device.

Table 2-1 shows the flow control resolution achieved on local and remote ports by a combination of settings. The table assumes that for receive, using the desired keyword has the same results as using the on keyword.

Table 2-1 Flow Control Settings and Local and Remote Port Flow Control Resolution 

Flow Control Settings
Flow Control Resolution
Local Device
Remote Device
Local Device
Remote Device

send on/receive on

send on/receive on

send on/receive off

send desired/receive on

send desired/receive off

send off/receive on

send off/receive off

Sends and receives

Does not send or receive

Sends and receives

Does not send or receive

Sends and receives

Does not send or receive

Sends and receives

Does not send or receive

Sends and receives

Does not send or receive

Receives only

Does not send or receive

send on/receive off

send on/receive on

send on/receive off

send desired/receive on

send desired/receive off

send off/receive on

send off/receive off

Does not send or receive

Does not send or receive

Sends only

Does not send or receive

Sends only

Does not send or receive

Does not send or receive

Does not send or receive

Receives only

Does not send or receive

Receives only

Does not send or receive

send desired/receive on

send on/receive on

send on/receive off

send desired/receive on

send desired/receive off

send off/receive on

send off/receive off

Sends and receives

Receives only

Sends and receives

Receives only

Sends and receives

Does not send or receive

Sends and receives

Sends only

Sends and receives

Sends only

Receives only

Does not send or receive

send desired/receive off

send on/receive on

send on/receive off

send desired/receive on

send desired/receive off

send off/receive on

send off/receive off

Does not send or receive

Does not send or receive

Sends only

Does not send or receive

Sends only

Does not send or receive

Does not send or receive

Does not send or receive

Receives only

Does not send or receive

Receives only

Does not send or receive

send off/receive on

send on/receive on

send on/receive off

send desired/receive on

send desired/receive off

send off/receive on

send off/receive off

Receives only

Receives only

Receives only

Receives only

Receives only

Does not send or receive

Sends and receives

Sends only

Sends and receives

Sends only

Receives only

Does not send or receive

send off/receive off

send on/receive on

send on/receive off

send desired/receive on

send desired/receive off

send off/receive on

send off/receive off

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive

Does not send or receive


Examples

This example shows how to configure the local port to not support any level of flow control by the remote port:

Switch(config-if)# flowcontrol receive off
Switch(config-if)# flowcontrol send off

You can verify your settings by entering the show interfaces counters privileged EXEC command.

Related Commands

Command
Description

show interfaces counters

Displays the interface settings on a switch, including input and output flow control.


interface

Use the interface global configuration command to configure an interface type, create a switch virtual interface to be used as the management VLAN interface, and to enter interface configuration mode.

interface {type port | vlan number}

no interface {type port | vlan number}

Syntax Description

type

Type of interface to be configured. Can be Fast Ethernet or Gigabit Ethernet.

port

Port ID.

vlan number

VLAN number from 1 to 1001 to be used as the management VLAN. Do not enter leading zeroes.


Defaults

The default management VLAN interface is VLAN 1.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The usage guidelines were modified.


Usage Guidelines

When creating a management VLAN interface, a space between vlan and number is accepted.

Only one management VLAN interface can be active.

You cannot delete the management VLAN 1 interface.

You can use the no shutdown interface configuration command to shut down the active management VLAN interface and to enable a new one.

You can configure the management VLAN interface on static-access and trunk ports.

Examples

This example shows how to enable the switch to configure interface 2:

Switch(config)# interface fastethernet0/2
Switch(config-if)#

This example shows how to change the management VLAN from the default management VLAN to VLAN 3. This series of commands should only be entered from the console. If these commands are entered through a Telnet session, the shutdown command disconnects the session, and there is no way to use IP to access the system.

Switch# configure terminal
Switch(config)# interface vlan 3
Switch(config-if)# ip address 172.20.128.176 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# exit

You can verify your settings by entering the show interface and show interface vlan number privileged EXEC commands.

Related Commands

Command
Description

show interface

Displays the administrative and operational status of a switching (nonrouting) port.

shutdown

Disables a port and shuts down the management VLAN.


interface port-channel

Use the interface port-channel global configuration command to access or create the port-channel logical interface for Layer 2 interfaces. Use the no form of this command to remove the port-channel.

interface port-channel port-channel-number

no interface port-channel port-channel-number

Syntax Description

port-channel-number

Port-channel number. The range is 1 to 6.


Defaults

No port-channel logical interfaces are defined.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Only one port channel in a channel group is allowed.

Follow these guidelines when you use the interface port-channel command:

If you want to use the Cisco Discovery Protocol (CDP), you must configure it only on the physical interface and not on the port-channel interface.

On the port-channel interface, if you do not assign a static MAC address or if you assign a static MAC address and then later remove it, the switch automatically assigns a MAC address to the interface.

Examples

This example shows how to create a port-channel interface with a port-channel number of 5:

Switch(config)# interface port-channel 5

You can verify your settings by entering the show running-config or show etherchannel channel-group-number detail privileged EXEC command.

Related Commands

Command
Description

channel-group

Assigns an Ethernet interface to an EtherChannel group.

show etherchannel

Displays EtherChannel information for a channel.

show running-config

Displays the running configuration on the switch.


ip access-group

Use the ip access-group interface configuration command to control access to an interface. Use the no form of this command to remove an access group from an interface.

ip access-group {access-list-number | name} in

no ip access-group {access-list-number | name} in

Syntax Description

access-list-number

Number of the IP access control list (ACL), from 1 to 199 or from 1300 to 2699.

name

Name of an IP ACL, specified in the ip access-list command.


Defaults

No ACL is applied to the interface.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

You can apply IP ACLs only to ingress interfaces. If a MAC access group is already defined for an interface, you cannot apply this command to the interface.

The ACLs can be standard or extended.

For standard ACLs, after receiving a packet, the switch checks the packet source address. If the source address matches a defined address in the ACL and the list permits the address, the switch forwards the packet.

For extended ACLs, after receiving the packet, the switch checks the match conditions in the ACL. If the conditions are matched, the switch forwards the packet.

If the specified ACL does not exist, the switch forwards all packets.

IP access groups can be separated on Layer 2 and Layer 3 interfaces.


Note For more information about configuring IP ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to apply a numbered ACL to an interface:

Switch(config)# interface fastethernet0/1
Switch(config-if)# ip access-group 101 in

You can verify your settings by entering the show access-lists or show ip access-lists privileged EXEC command.

Related Commands

Command
Description

access-list (IP standard)

Defines a standard IP ACL.

access-list (IP extended)

Defines an extended IP ACL.

ip access-list

Defines an IP ACL.

deny (access-list configuration)

Configures conditions for an IP ACL.

permit (access-list configuration)

Configures conditions for an IP ACL.

show ip access-lists

Displays IP ACLs configured on the switch.

show access-lists

Displays ACLs configured on the switch.


ip access-list

Use the ip access-list global configuration command to create an IP access control list (ACL) to be used for matching packets to an ACL whose name or number you specify and to enter access-list configuration mode. Use the no form of this command to delete an existing IP ACL and return to global configuration mode.

ip access-list {standard | extended} {name | access-list-number}

no ip access-list {standard | extended} {name | access-list-number}

Syntax Description

name

Name of an ACL.

Note The ACL name must begin with an alphabetic character to prevent ambiguity with numbered ACLs. A name also cannot contain a space or quotation mark.

access-list-number

Number of an ACL.

For standard IP ACLs, the range is from 1 to 99 and 1300 to 1999.

For extended IP ACLs, the range from 100 to 199 and from 2000 to 2699.


Defaults

No named or numbered IP ACLs are defined.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use this command to specify the name or number of the IP ACL for which you want to create or modify ACL match criteria and to enter access-list configuration mode. In this mode, you must enter the permit and deny commands to configure the permit and deny access conditions for this list.

The ip access-list command and its subcommands are used to define packet classification and marking as part of a globally-named service policy applied on a per-interface basis or as an IP access group applied on a per-interface basis.

Specifying standard or extended with the ip access-list command determines the prompt you get when you enter access-list configuration mode.


Note For more information about configuring IP ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to configure a standard ACL named Internetfilter1:

Switch(config)# ip access-list standard Internetfilter1
Switch(config-std-nacl)# permit 192.5.34.0  0.0.0.255
Switch(config-std-nacl)# permit 192.5.32.0  0.0.0.255
Switch(config-std-nacl)# exit

This example shows how to configure an extended ACL named Internetfilter2:

Switch(config)# ip access-list extended Internetfilter2
Switch(config-ext-nacl)# permit any 128.8.10.0  0.0.0.255 eq 80
Switch(config-ext-nacl)# permit any 128.5.8.0  0.0.0.255 eq 80
Switch(config-ext-nacl)# exit


Note In these examples, all other IP access is implicitly denied.


You can verify your settings by entering the show access-lists or show ip access-lists privileged EXEC command.

Related Commands

Command
Description

deny (access-list configuration)

Configures conditions for an IP ACL.

permit (access-list configuration)

Configures conditions for an IP ACL.

ip access-group

Controls access to an interface.

service-policy

Applies a policy map to the input of an interface.

show ip access-lists

Displays IP ACLs configured on the switch.

show access-lists

Displays ACLs configured on the switch.


ip address

Use the ip address interface configuration command to set an IP address for a switch. Use the no form of this command to remove an IP address or to disable IP processing.

ip address ip-address subnet-mask

no ip address ip-address subnet-mask

Syntax Description

ip-address

IP address.

subnet-mask

Mask for the associated IP subnet.


Defaults

No IP address is defined for the switch.

Command Modes

Interface configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

A switch can have one IP address.

The IP address of the switch can be accessed only by nodes connected to ports that belong to the management VLAN. By default, the management VLAN is VLAN 1, but you can configure a different VLAN as the management VLAN.

If you remove the IP address through a Telnet session, your connection to the switch is lost.

If your switch receives its IP address from a Bootstrap Protocol (BOOTP) or a Dynamic Host Configured Protocol (DHCP) server and you remove the switch IP address by using the no ip address command, IP processing is disabled, and the BOOTP or DHCP server cannot reassign the address.

Examples

This example shows how to configure the IP address for the switch on a subnetted network:

Switch(config)# interface vlan 1
Switch(config-if)# ip address 172.20.128.2 255.255.255.0 

You can verify your settings by entering the show running-config privileged EXEC command.

Related Commands

Command
Description

show running-config

Displays the running configuration on the switch.


ip igmp snooping

Use the ip igmp snooping global configuration command to globally enable Internet Group Management Protocol (IGMP) snooping. Use the no form of this command to disable IGMP snooping.

ip igmp snooping

no ip igmp snooping

Syntax Description

This command has no arguments or keywords.

Defaults

By default, IGMP snooping is globally enabled.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

When IGMP snooping is globally enabled, it enables IGMP snooping on all the existing VLAN interfaces. When IGMP snooping is globally disabled, it disables IGMP snooping on all the existing VLAN interfaces.

The configuration is saved in nonvolatile RAM (NVRAM).

Examples

This example shows how to globally enable IGMP snooping:

Switch(config)# ip igmp snooping

This example shows how to globally disable IGMP snooping:

Switch(config)# no ip igmp snooping

You can verify your settings commands by entering the show ip igmp snooping privileged EXEC command.

Related Commands

Command
Description

ip igmp snooping vlan

Enables IGMP snooping on a VLAN interface.

ip igmp snooping vlan immediate-leave

Enables IGMP Immediate-Leave processing.

ip igmp snooping vlan mrouter

Configures a Layer 2 port as a multicast router port.

ip igmp snooping vlan static

Configures a Layer 2 port as a member of a group.

show ip igmp snooping

Displays the IGMP snooping configuration.


ip igmp snooping vlan

Use the ip igmp snooping vlan global configuration command to enable Internet Group Management Protocol (IGMP) snooping on a specific VLAN. Use the no form of this command to disable IGMP snooping on a VLAN interface.

ip igmp snooping vlan vlan-id

no ip igmp snooping vlan vlan-id

Syntax Description

vlan-id

VLAN ID value. The range is from 1 to 1001. Do not enter leading zeroes.


Defaults

By default, IGMP snooping is enabled when each VLAN is created.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

This command automatically configures the VLAN if it is not already configured. The configuration is saved in nonvolatile RAM (NVRAM).

Examples

This example shows how to enable IGMP snooping on VLAN 2:

Switch(config)# ip igmp snooping vlan 2

This example shows how to disable IGMP snooping on VLAN 2:

Switch(config)# no ip igmp snooping vlan 2

You can verify your settings by entering the show ip igmp snooping vlan privileged EXEC command.

Related Commands

Command
Description

ip igmp snooping

Globally enables IGMP snooping. IGMP snooping must be globally enabled in order to be enabled on a VLAN.

ip igmp snooping vlan immediate-leave

Enables IGMP Immediate-Leave processing.

ip igmp snooping vlan mrouter

Configures a Layer 2 port as a multicast router port.

ip igmp snooping vlan static

Configures a Layer 2 port as a member of a group.

show ip igmp snooping

Displays the IGMP snooping configuration.


ip igmp snooping vlan immediate-leave

Use the ip igmp snooping immediate-leave global configuration command to enable Internet Group Management Protocol (IGMP) Immediate-Leave processing on a VLAN interface. Use the no form of this command to disable Immediate-Leave processing on the VLAN interface.

ip igmp snooping vlan vlan-id immediate-leave

no ip igmp snooping vlan vlan-id immediate-leave

Syntax Description

vlan-id

VLAN ID value. The range is between 1 to 1001. Do not enter leading zeroes.


Defaults

By default, IGMP Immediate-Leave processing is disabled.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Use the Immediate-Leave feature only when there is only one IP multicast receiver present on every port in the VLAN. The Immediate-Leave configuration is saved in nonvolatile RAM (NVRAM).

The Immediate-Leave feature is supported only with IGMP version 2 hosts.

Examples

This example shows how to enable IGMP Immediate-Leave processing on VLAN 1:

Switch(config)# ip igmp snooping vlan 1 immediate-leave

This example shows how to disable IGMP Immediate-Leave processing on VLAN 1:

Switch(config)# no ip igmp snooping vlan 1 immediate-leave

You can verify your settings by entering the show ip igmp snooping vlan privileged EXEC command.

Related Commands

Command
Description

ip igmp snooping

Enables IGMP snooping.

ip igmp snooping vlan mrouter

Configures a Layer 2 port as a multicast router port.

ip igmp snooping vlan static

Configures a Layer 2 port as a member of a group.

show ip igmp snooping

Displays the IGMP snooping configuration.

show mac-address-table multicast

Displays the Layer 2 multicast entries for a VLAN.


ip igmp snooping vlan mrouter

Use the ip igmp snooping vlan mrouter global configuration command to add a multicast router port and to configure the multicast router learning method. Use the no form of this command to remove the configuration.

ip igmp snooping vlan vlan-id mrouter {interface interface-id | learn {cgmp | pim-dvmrp}}

no ip igmp snooping vlan vlan-id mrouter {interface interface-id | learn {cgmp | pim-dvmrp}}

Syntax Description

vlan vlan-id

Specify the VLAN ID. The range is from 1 to 1001. Do not enter leading zeroes.

interface interface-id

Specify the interface of the member port that is configured to a static router port.

learn

Specify the multicast router learning method.

cgmp

Specify the multicast router snooping Cisco Group Management Protocol (CGMP) packets.

pim-dvmrp

Specify the multicast router snooping Protocol-Independent Multicasting-Distance Vector Multicast Routing Protocol (PIM-DVMRP) packets.


Defaults

The default learning method is pim-dvmrp.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

The CGMP learning method is useful for controlling traffic in Cisco router environments.

The configured learning method is saved in nonvolatile RAM (NVRAM).

Static connections to multicast routers are supported only on switch ports.

Examples

This example shows how to configure Fast Ethernet interface 0/6 as a multicast router port:

Switch(config)# ip igmp snooping vlan 1 mrouter interface fastethernet0/6

This example shows how to specify the multicast router learning method as CGMP:

Switch(config)# no ip igmp snooping vlan 1 mrouter learn cgmp

You can verify your settings by entering the show ip igmp snooping mrouter privileged EXEC command.

Related Commands

Command
Description

ip igmp snooping

Globally enables Internet Group Management Protocol (IGMP) snooping.

ip igmp snooping vlan

Enables IGMP snooping on the VLAN interface.

ip igmp snooping vlan immediate-leave

Configures IGMP Immediate-Leave processing.

ip igmp snooping vlan static

Configures a Layer 2 port as a member of a group.

show ip igmp snooping mrouter

Displays the statically and dynamically learned multicast router ports.


ip igmp snooping vlan static

Use the ip igmp snooping vlan vlan-id static global configuration command to add a Layer 2 port as a member of a multicast group. Use the no form of this command to remove the configuration.

ip igmp snooping vlan vlan-id static mac-address interface interface-id

no ip igmp snooping vlan vlan-id static mac-address interface interface-id

Syntax Description

vlan vlan-id

Specify the VLAN ID. The range is 1 to 1001. Do not enter leading zeroes.

static mac-address

Specify the static group MAC address.

interface interface-id

Specify the interface configured to a static router port.


Defaults

None configured.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

The command is used to statically configure the IP multicast group member ports.

The static ports and groups are saved in nonvolatile RAM (NVRAM).

Static connections to multicast routers are supported only on switch ports.

Examples

This example shows how to statically configure a host on an interface:

Switch(config)# ip igmp snooping vlan 1 static 0100.5e02.0203 interface fastethernet0/6
Configuring port FastEthernet 0/6 on group 0100.5e02.0203

You can verify your settings by entering the show mac-address-table multicast privileged EXEC command.

Related Commands

Command
Description

ip igmp snooping

Enables Internet Group Management Protocol (IGMP) snooping.

ip igmp snooping vlan

Enables IGMP snooping on the VLAN interface.

ip igmp snooping vlan immediate-leave

Configures IGMP Immediate-Leave processing.

ip igmp snooping vlan mrouter

Configures a Layer 2 port as a multicast router port.

show mac-address-table multicast

Displays the Layer 2 multicast entries for a VLAN.


mac access-group

Use the mac access-group interface configuration command to apply a named extended MAC access control list (ACL) to an interface. Use the no form of this command to remove a MAC ACL from an interface.

mac access-group name in

no mac access-group name in

Syntax Description

name

Name of the MAC extended ACL.


Defaults

No MAC ACL is applied to the interface.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

You can apply MAC ACLs only to ingress interfaces. If an IP access group is already defined for an interface, you cannot apply this command to the interface.

After receiving the packet, the switch checks the match conditions in the ACL. If the conditions are matched, the switch forwards the packet.

If the specified ACL does not exist, the switch forwards all packets.


Note For more information about configuring MAC extended ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to apply a MAC extended ACL named macacl2 to an interface:

Switch(config)# interface fastethernet0/1
Switch(config-if)# mac access-group macacl2 in

You can verify your settings by entering the show mac access-group privileged EXEC command.

Related Commands

Command
Description

{deny (MAC access-list configuration) | permit (MAC access-list configuration)}

Configures a MAC ACL.

show mac access-group

Displays the MAC ACLs configured on the switch.

show access-lists

Displays the ACLs configured on the switch.


mac access-list extended

Use the mac access-list extended global configuration command to create an access control list (ACL) based on MAC addresses. Using this command changes the mode to extended MAC access-list configuration mode. Use the no form of this command to return to the default setting.

mac access-list extended name

no mac access-list extended name

Syntax Description

name

Assign a name to the MAC extended ACL.


Defaults

No MAC ACLs are created.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

MAC-named extended ACLs are used with the mac access-group interface configuration command and class maps.


Note For more information about configuring MAC extended ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to create a MAC extended ACL named mac1 and to enter extended MAC access-list configuration mode:

Switch(config)# mac access-list extended mac1
Switch(config-ext-macl)#

This example shows how to delete the MAC extended ACL named mac1:

Switch(config)# no mac access-list extended mac1

You can verify your settings by entering the show access-lists privileged EXEC command.

Related Commands

Command
Description

{deny (MAC access-list configuration) | permit (MAC access-list configuration)}

Configures a MAC ACL.

mac access-group

Applies a MAC ACL to an interface.

class-map

Creates a class map to be used for matching packets to the class whose name you specify and to enter class-map configuration mode.

show access-lists

Displays the ACLs configured on the switch.


mac-address-table aging-time

Use the mac-address-table aging-time global configuration command to set the length of time that a dynamic entry remains in the MAC address table after the entry is used or updated. Use the no form of this command to return to the default setting. The aging time applies to all VLANs.

mac-address-table aging-time [0 | 10-1000000]

no mac-address-table aging-time [0 | 10-1000000]

Syntax Description

0

This value disables aging. Static address entries are never aged or removed from the table.

10-100000

Aging time in seconds. The range is 10 to 1000000 seconds.


Defaults

The default is 300 seconds.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The aging-time values were modified.


Usage Guidelines

If hosts do not send continuously, increase the aging time to record the dynamic entries for a longer time. This reduces the possibility of flooding when the hosts send again.

Examples

This example shows how to set the aging time to 200 seconds:

Switch(config)# mac-address-table aging-time 200

This exampleshows how to disable aging in VLAN 1.

Switch(config)# mac-address-table aging-time 0

This example shows how to set aging time to 450 seconds for all VLANs for which the user did not specify aging time.

Switch(config)# mac-address-table aging-time 450

You can verify your settings by entering the show mac-address-table privileged EXEC command.

Related Commands

Command
Description

clear mac-address-table dynamic

Deletes dynamic entries from the MAC address table.

show mac-address-table

Displays the MAC address table.

show mac-address-table aging-time

Displays the MAC address table aging time for all VLANs or the specified VLAN.


mac-address-table notification

Use the mac-address-table notification global configuration command to enable the MAC notification feature and configure the notification-trap interval or history table. Use the no form of this command to disable this feature.

mac-address-table notification [interval interval | history-size size]

no mac-address-table notification [interval interval | history-size size]

Syntax Description

interval interval

(Optional) Configures the notification-trap interval in seconds; valid values are from 0 to 2147483647. The switch sends the notification traps when this amount of time has elapsed.

history-size size

(Optional) Configures the maximum number of entries in the MAC notification history table; valid values are 0 to 500.


Defaults

The MAC notification feature is disabled.

The default trap-interval value is 1 second.

The default number of entries in the history table is one.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The MAC address notification feature sends Simple Network Management Protocol (SNMP) traps to the network management system (NMS) whenever a MAC address is added or deleted from the forwarding tables. MAC notifications are generated only for dynamic and secure MAC addresses. Events are not generated for self addresses, multicast addresses, or other static addresses.

When you configure the history-size option, the existing MAC address history table is deleted, and a new table is created.

You enable the MAC address notification feature by using the mac-address-table notification command. You must also enable MAC address notification traps on an interface by using the snmp trap mac-notification interface configuration command, and configure the switch to send MAC address traps to the NMS by using the snmp-server enable traps mac-notification global configuration command.

Examples

This example shows how to enable the MAC notification feature:

Switch(config)# mac-address-table notification

This example shows how to set the notification-trap interval to 60 seconds:

Switch(config)# mac-address-table notification interval 60

This example shows how to set the number of entries in the history table to 32:

Switch(config)# mac-address-table notification history-size 32

You can verify your settings by entering the show mac-address-table notification privileged EXEC command.

Related Commands

Command
Description

snmp trap mac-notification

Enables the MAC-notification traps on a port.

snmp-server enable traps mac-notification

Enables SNMP notification for the MAC notification feature.

show mac-address-table notification

Displays MAC-notification parameters.


mac-address-table static

Use the mac-address-table static global configuration command to add static addresses to the MAC address table. Use the no form of this command to remove static entries from the MAC address table.

mac-address-table static mac-addr vlan vlan-id interface interface-id interface-id...

no mac-address-table static mac-addr vlan vlan-id interface interface-id interface-id...

Syntax Description

mac-addr

Destination MAC address (unicast or multicast) to add to the address table. Packets with this destination address received in the specified VLAN are forwarded to the specified interface.

vlan vlan-id

Specify the VLAN for which the packet with the specified MAC address is received. Valid VLAN IDs are 1 to 1005; do not enter leading zeroes.

interface interface-id interface-id ...

Interface to which the received packet is forwarded. Valid interfaces include physical ports and EtherChannel port-channels. Multiple interfaces can be specified for multicast addresses.


Defaults

None configured.

Command Modes

Global configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The interface keyword and parameters were changed.


Examples

This example shows how to add the static address 0004.5600.67ab to the MAC address table:

Switch(config)# mac-address-table static 0004.5600.67ab vlan 1 interface fastethernet0/2

This example shows how to add the static address c2f3.220a.12f4 to the MAC address table. When a packet is received in VLAN 4 with this MAC address as its destination, the packet is forwarded to the specified interfaces:

Switch(config)# mac-address-table static c2f3.220a.12f4 vlan 4 interface 
gigabitethernet0/1 gigabitethernet0/2

You can verify your settings by entering the show mac-address-table privileged EXEC command.

Related Commands

Command
Description

clear mac-address-table dynamic

Deletes entries from the MAC address table.

mac-address-table aging-time

Sets the length of time that a dynamic entry remains in the MAC address table after the entry is used or updated.

show mac-address-table

Displays the MAC address table.

show mac-address-table static

Displays static MAC address table entries only.


match (class-map configuration)

Use the match class-map configuration command to define the match criteria to classify traffic. Use the no form of this command to remove the match criteria.

match {access-group acl-index-or-name}

no match {access-group acl-index-or-name}

Syntax Description

access-group acl-index-or-name

Number or name of an IP standard or extended access control list (ACL) or name of an extended MAC ACL.

For an IP standard ACL, the ACL index range is 1 to 99 and 1300 to 1999. For an IP extended ACL, the ACL index range is 100 to 199 and 2000 to 2699.


Defaults

No match criteria are defined.

Command Modes

Class-map configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The match command is used to specify which fields in the incoming packets are examined to classify the packets. Only IP access groups and MAC access groups are supported.

Only one match command per class map is supported.


Note For more information about configuring ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to classify traffic on an interface by using the access group named acl2:

Switch(config)# class-map class2
Switch(config-cmap)# match access-group acl2
Switch(config-cmap)# exit

You can verify your settings by entering the show class-map privileged EXEC command.

Related Commands

Command
Description

class

Defines a traffic classification for a policy to act on using the class-map name or access group.

class-map

Creates a class map to be used for matching packets to the class whose name you specify.

ip access-group

Controls access to an interface.

mac access-group

Applies a named extended MAC ACL to an interface.

show class-map

Displays quality of service (QoS) class maps.

show policy-map

Displays QoS policy maps.


mls qos cos

Use the mls qos cos interface configuration command to define the default class of service (CoS) value of a port or to assign the default CoS to all incoming packets on the port. Use the no form of this command to return to the default setting.

mls qos cos {default-cos | override}

no mls qos cos {default-cos | override}

Syntax Description

default-cos

Assign a default CoS value to a port. If the port is CoS trusted and packets are untagged, the default CoS value becomes a CoS value used to select one output queue to index into the CoS-to-Differentiated Services Code Point (DSCP) map. The CoS range is 0 to 7.

override

Override the CoS of the incoming packets, and apply the default CoS value on the port to all incoming packets.


Defaults

The default CoS value for a port is 0.

CoS override is disabled.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced. It replaced the switchport priority command.


Usage Guidelines

You can use the default value to assign a CoS and DSCP value to all packets entering a port if the port has been configured by using the override keyword.

Use the override keyword when all incoming packets on certain ports deserve higher or lower priority than packets entering from other ports. Even if a port was previously set to trust DSCP or CoS, this command overrides that trust state, and all the incoming CoS values are assigned the default CoS value configured with the mls qos cos command. If an incoming packet is tagged, the CoS value of the packet is modified with the default CoS of the port at the ingress port.

Examples

This example shows how to configure the default port CoS to 4:

Switch(config)# interface gigabitethernet0/1
Switch(config-if)# mls qos trust cos
Switch(config-if)# mls qos cos 4

This example shows how to assign all the packets entering a port to the default port CoS value of 4:

Switch(config)# interface gigabitethernet0/1
Switch(config-if)# mls qos cos 4
Switch(config-if)# mls qos cos override

You can verify your settings by entering the show mls qos interface privileged EXEC command.

Related Commands

Command
Description

mls qos map

Defines the CoS-to-DSCP map or the DSCP-to-CoS map.

mls qos trust

Configures the port trust state.

show mls qos interface

Displays quality of service (QoS) information.


mls qos map

Use the mls qos map global configuration command to define the class of service (CoS)-to-Differentiated Services Code Point (DSCP) map or DSCP-to-CoS map. Use the no form of this command to return to the default map.

mls qos map {cos-dscp dscp1...dscp8 | dscp-cos dscp-list to cos}

no mls qos map {cos-dscp | dscp-cos}

Syntax Description

cos-dscp dscp1...dscp8

Define the CoS-to-DSCP map.

For dscp1...dscp8, enter eight DSCP values that correspond to CoS values 0 to 7. Separate each DSCP value with a space.

The supported DSCP values are 0, 8, 10, 16, 18, 24, 26, 32, 34, 40, 46, 48, and 56.

dscp-cos dscp-list to cos

Define the DSCP-to-CoS map.

For dscp-list, enter up to 13 DSCP values separated by spaces. Then enter the to keyword. The supported DSCP values are 0, 8, 10, 16, 18, 24, 26, 32, 34, 40, 46, 48, and 56.

For cos, enter the CoS value to which the DSCP values correspond. The CoS range is 0 to 7.


Defaults

Table 2-2 shows the default CoS-to-DSCP map:

Table 2-2 Default CoS-to-DSCP Map

CoS Value

0

1

2

3

4

5

6

7

DSCP Value

0

8

16

24

32

40

48

56


Table 2-3 shows the default DSCP-to-CoS map:

Table 2-3 Default DSCP-to-CoS Map

DSCP Values

0

8, 10

16, 18

24, 26

32, 34

40, 46

48

56

CoS Value

0

1

2

3

4

5

6

7


Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

All the maps are globally defined. You apply all maps to all ports.

If you enter the mls qos trust cos command, the default CoS-to-DSCP map is applied.

If you enter the mls qos trust dscp command, the default DSCP-to-CoS map is applied.

After a default map is applied, you can define the CoS-to-DSCP or DSCP-to-CoS map by entering consecutive mls qos map commands.

The supported DSCP values are 0, 8, 10, 16, 18, 24, 26, 32, 34, 40, 46, 48, and 56. If the mls qos trust dscp command is entered and a packet with a untrusted DSCP value is at an ingress port, the packet CoS value is set to 0.


Note Catalyst 2950 switches do not support the dscp-mutation, dscp-switch-priority, ip-prec-dscp, and policed-dscp options.


Examples

This example shows how to define the DSCP-to-CoS map. DSCP values 16, 18, 24, and 26 are mapped to CoS 1. DSCP values 0, 8, and 10 are mapped to CoS 0.

Switch# configure terminal
Switch(config)# mls qos map dscp-cos 16 18 24 26 to 1
Switch(config)# mls qos map dscp-cos 0 8 10 to 0

This example shows how to define the CoS-to-DSCP map. CoS values 0 to 7 are mapped to DSCP values 8, 8, 8, 8, 24, 32, 56, and 56.

Switch# configure terminal
Switch(config)# mls qos map cos-dscp 8 8 8 8 24 32 56 56

You can verify your settings by entering the show mls qos maps privileged EXEC command.

Related Commands

Command
Description

mls qos cos

Defines the default CoS value of a port or assigns the default CoS to all incoming packets on the port.

mls qos trust

Configures the port trust state.

show mls qos maps

Displays quality of service (QoS) mapping information.


mls qos trust

Use the mls qos trust interface configuration command to configure the port trust state. Ingress traffic can be trusted, and classification is performed by examining the class of service (CoS) or Differentiated Services Code Point (DSCP) value. Use the no form of this command to return a port to its untrusted state.

mls qos trust [cos | dscp]

no mls qos trust [cos | dscp]

Syntax Description

cos

(Optional) Classify ingress packets with packet CoS values. For untagged packets, use the port default CoS value.

dscp

(Optional) Classify ingress packets with packet DSCP values (most significant 6 bits of 8-bit service-type field). For non-IP packets, the packet CoS value is to 0.


Defaults

The port is not trusted. If no keyword is specified, the default is dscp.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Packets entering a quality of service (QoS) domain are classified at the edge of the QoS domain. Because the packets are classified at the edge, the switch port within the QoS domain can be configured to one of the trusted states; there is no need to classify the packets at every switch within the domain. Use this command to specify whether the port is trusted and which fields of the packet to use to classify traffic.

When a port is configured with trust DSCP and the incoming packet is a non-IP packet, the CoS value for the packet is set to 0, and the DSCP-to-CoS map is not applied.

If DSCP is trusted, the DSCP field of the IP packet is not modified. However, it is still possible that the CoS value of the packet is modified (according to the DSCP-to-CoS map).

If CoS is trusted, CoS of the packet is not modified, but DSCP can be modified (according to the CoS-to-DSCP map) if it is an IP packet.

Examples

This example shows how to configure a port to be a DSCP-trusted port:

Switch(config)# interface gigabitethernet0/1
Switch(config-if)# mls qos trust dscp

You can verify your settings by entering the show mls qos interface privileged EXEC command.

Related Commands

Command
Description

mls qos cos

Defines the default CoS value of a port or assigns the default CoS to all incoming packets on the port.

mls qos map

Defines the CoS-to-DSCP map or the DSCP-to-CoS map.

show mls qos interface

Displays QoS information.


monitor session

Use the monitor session global configuration command to enable Switch Port Analyzer (SPAN) monitoring on a port or multiple ports and to configure a port as a source port or a destination port. Use the no form of this command to return the port to its default value.

monitor session {session} {source {interface interface-id} [, | - | rx | tx | both]}

no monitor session {session} {source {interface interface-id} [, | - | rx | tx | both]}

monitor session {session} {destination {interface interface-id}}

no monitor session {session} {destination {interface interface-id}}

Syntax Description

session

Number of the SPAN session; only valid value is 1.

source

Specify the SPAN source interface.

destination

Specify the SPAN destination interface.

interface interface-id

Specify the interface type and number.

,

(Optional) Specify multiple ports. Enter a space after the comma.

-

(Optional) Specify a range of ports. Enter a space before and after the hyphen.

rx

(Optional) Monitor only received traffic.

tx

(Optional) Monitor only sent traffic.

both

(Optional) Monitor received and sent traffic.


Defaults

SPAN monitoring is disabled.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced. It replaced the port monitor command.


Usage Guidelines

The switch supports only one SPAN session. For this session, there is no limit on the number of SPAN source ports.

You can configure a port or multiple ports as SPAN source ports. You can configure a SPAN source port to monitor received traffic, sent traffic, or received and sent traffic.

You can configure only one port as a SPAN destination port for a SPAN session. If you attempt to add another destination interface to a session that already has a destination interface configured, an error message appears. You must first remove a SPAN destination interface before changing the SPAN destination to a different interface.

All traffic to the SPAN destination port is seen with the 802.1Q tag, but packets from the switch CPU to the destination port are without the 802.1Q tag.

Examples

This example shows how to configure a port as a SPAN source port that monitors only received traffic:

Switch(config)# monitor session 1 source fastethernet0/1 rx

This example shows how to configure a port as a SPAN destination port:

Switch(config)# monitor session 1 destination fastethernet0/2

This example shows how to return to the default SPAN settings:

Switch(config)# no monitor session 1 source fastethernet0/4

You can verify your settings by entering the show monitor privileged EXEC command.

Related Commands

Command
Description

show monitor

Displays the SPAN information.


mvr

Use the mvr global configuration command without keywords to enable the multicast VLAN registration (MVR) feature on the switch. Use the no form of this command to disable MVR and its options. Use the command with keywords to set the MVR mode for a switch, to configure the MVR IP multicast address, to set the maximum time to wait for a query reply before removing a port from group membership, and to specify the MVR multicast VLAN. Use the no form of the command to return the switch to the default settings.

mvr [mode {dynamic | compatible} | group ip-address [count] | querytime value | vlan vlan-id]

no mvr [mode {dynamic | compatible} | group ip-address | querytime value | vlan vlan-id]

Syntax Description

mode

(Optional) Specify the MVR mode of operation.

The default is compatible mode.

dynamic

Set MVR mode to allow dynamic MVR membership on source ports.

compatible

Set MVR mode to provide compatibility with Catalyst 2900 XL and 3500 XL switches. This mode does not allow dynamic membership joins on source ports.

group ip-address

(Optional) Statically configure an MVR group IP multicast address on the switch.

Use the no form of this command to remove a statically configured IP multicast address or contiguous addresses or, when no IP address is entered, to remove all statically configured MVR IP multicast addresses.

count

(Optional) Configure multiple contiguous MVR group addresses. The default is 1.

querytime value

(Optional) Set the maximum time to wait for Internet Group Management Protocol (IGMP) report memberships on a receiver port. This time applies only to receiver-port leave processing. When an IGMP query is sent from a receiver port, the switch waits for the default or configured MVR query time for an IGMP group membership report before removing the port from multicast group membership.

The value is the response time in units of tenths of a second. The default is 5 tenths or one-half second. The range is 1 to 100 tenths of a second.

Use the no form of the command to return to the default setting.

vlan vlan-id

(Optional) Specify the VLAN on which MVR multicast data is expected to be received. This is also the VLAN to which all the source ports belong. The default is VLAN 1. Valid VLAN IDs are 1 to 1001; do not enter leading zeroes.


Defaults

MVR is disabled by default.

The default MVR mode is compatible mode.

No IP multicast addresses are configured on the switch by default.

The default group IP address count is 0.

The default query response time is 5 tenths of or one-half second.

The default multicast VLAN for MVR is VLAN 1.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

A maximum of 256 MVR multicast groups can be configured on a switch.

Use the mvr group command to statically configure all the IP multicast addresses that will take part in MVR. Any multicast data sent to a configured multicast address is sent to all the source ports on the switch and to all receiver ports registered to receive data on that IP multicast address.


Note The mvr group command prevents adding IP multicast addresses that cause address aliasing between MVR multicast groups or with the reserved IP multicast addresses (in the range 224.0.0.xx). Each IP multicast address translates to a multicast 48-bit MAC address. If the IP address being configured translates (aliases) to the same 48-bit MAC address as a previously configured IP multicast address or the reserved MAC multicast addresses, the command fails.


The mvr querytime parameter applies only to receiver ports.

The mvr group and mvr vlan commands only apply to ports configured as receiver ports.

If the switch MVR is interoperating with Catalyst 2900 XL or Catalyst 3500 XL switches, set the multicast mode to compatible.

When in compatible mode, MVR does not support IGMP dynamic joins on MVR source ports.

Examples

This example shows how to enable MVR:

Switch(config)# mvr

This example shows how to disable MVR:

Switch(config)# no mvr

This example shows how to configure 228.1.23.4 as an IP multicast address:

Switch(config)# mvr group 228.1.23.4

This command fails because of address aliasing:

Switch(config)# mvr group 230.1.23.4

Cannot add this IP address - aliases with previously configured IP address 228.1.23.4. 

This example shows how to configure ten contiguous IP multicast groups with multicast addresses from 228.1.23.1 to 228.1.23.10:

Switch(config)# mvr group 228.1.23.1 10

This example shows how to delete the previously configured ten IP multicast addresses:

Switch(config)# no mvr group 228.1.23.1 10

This example shows how to delete all previously configured IP multicast addresses:

Switch(config)# no mvr group

This example shows how to set the maximum query response time as 1 second (10 tenths):

Switch(config)# mvr querytime 10

This example shows how to return the maximum query response time to the default setting of one-half second:

Switch(config)# no mvr querytime

This example shows how to set VLAN 2 as the multicast VLAN:

Switch(config)# mvr vlan 2 

Use the show mvr members privileged EXEC command to display the IP multicast group addresses configured on the switch.

You can verify your settings by entering the show mvr privileged EXEC command.

Related Commands

Command
Description

mvr immediate

Enables the Immediate-Leave feature on an interface.

mvr type

Configures a port as a receiver or source port.

mvr vlan group

Configures a receiver port as a member of an MVR group.

show mvr

Displays MVR global parameters or port parameters.

show mvr members

Displays all ports that are members of an MVR multicast group; if the group has no members, its status is shown as Inactive.

show mvr interface

Displays the configured MVR interfaces with their type, status, and Immediate-Leave configuration.

show mvr interface interface-id member

Displays all MVR groups of which the interface is a member.


mvr immediate

Use the mvr immediate interface configuration command to enable the Immediate-Leave feature on an interface. Use the no form of this command to disable the feature on the interface.

mvr immediate

no mvr immediate

Syntax Description

This command has no keywords or arguments.

Defaults

The Immediate-Leave feature is disabled.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The Immediate-Leave feature applies only to receiver ports. When the Immediate-Leave feature is enabled, a receiver port leaves a multicast group more quickly. When the switch receives an Internet Group Management Protocol (IGMP) leave message from a group on a receiver port, it sends an IGMP query on that port and waits for IGMP group membership reports. If no reports are received in a configured time period, the receiver port is removed from multicast group membership. With the Immediate-Leave feature, an IGMP query is not sent from the receiver port on which the IGMP leave was received. As soon as the leave message is received, the receiver port is removed from multicast group membership, thus speeding up leave latency.

The Immediate-Leave feature should only be enabled on receiver ports to which a single receiver device is connected.

Examples

This example shows how to enable the Immediate-Leave feature on a port:

Switch(config-if)# mvr immediate

This example shows how to disable the Immediate-Leave feature on a port:

Switch(config-if)# no mvr immediate

You can verify your settings by entering the show mvr privileged EXEC command.

Related Commands

Command
Description

mvr

Enables multicast VLAN registration (MVR).

mvr type

Configures a port as a receiver or source port.

mvr vlan group

Configures a receiver port as a member of an MVR group.

show mvr

Displays MVR global parameters or port parameters.


mvr type

Use the mvr type interface configuration command to configure a port as a multicast VLAN registration (MVR) receiver or source port. Use the no form of the command to return the port to the default settings.

mvr type {receiver | source}

no mvr type {receiver | source}

Syntax Description

receiver

Port that receives multicast data and cannot send multicast data to multicast groups.

source

Port that can send and receive multicast data to multicast groups.


Defaults

By default, a port is configured as neither receiver nor source.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Configure a port as a source port if that port should be able to both send and receive multicast data bound for the configured multicast groups. Multicast data is received on all ports configured as source ports.

Configure a port as a receiver port if that port should only be able to receive multicast data and should not be able to send multicast data to the configured multicast groups. None of the receiver ports receives multicast data unless it sends an Internet Group Management Protocol (IGMP) group join message for a multicast group.

A receiver port configured as a static member of a multicast group remains a member until statically removed from membership.


Note All receiver ports must not be trunk ports and must not belong to the MVR source VLAN.


A port that is not taking part in MVR should not be configured as an MVR receiver port or source port. This port is a normal switch port and is able to send and receive multicast data with normal switch behavior.

Examples

This example shows how to configure a port as an MVR receiver port:

Switch(config)# interface fastethernet0/1
Switch(config-if)# mvr type receiver

This example shows how to configure a port as an MVR source port:

Switch(config)# interface fastethernet0/3
Switch(config-if)# mvr type source

This example shows how to return a port to the default setting:

Switch(config)# interface fastethernet0/5
Switch(config-if)# no mvr type receiver

You can verify your settings by entering the show mvr privileged EXEC command.

Related Commands

Command
Description

mvr

Enables MVR.

mvr immediate

Enables the Immediate-Leave feature on an interface.

mvr vlan group

Configures a receiver port as a member of an MVR group.

show mvr

Displays MVR global parameters or port parameters.


mvr vlan group

Use the mvr vlan group interface configuration command to statically configure a receiver port as a member of a multicast VLAN registration (MVR) group in a particular VLAN. Use the no form of the command to remove the port from the MVR group.

mvr vlan vlan-id group ip-address

no mvr vlan vlan-id group ip-address

Syntax Description

vlan vlan-id

Specify the VLAN ID to which the receiver port belongs. Valid IDs are from 1 to 1001; do not enter leading zeroes.

group ip-address

Specify the MVR group address for which the interface is statically configured to be a member.


Defaults

By default, a port is configured as neither receiver nor source.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The receiver port belongs to a multicast VLAN.

The group address is configured as a MVR group address.

Examples

This example shows how to configure a static MVR group entry on port 0/1 in VLAN 10:

Switch(config)# interface fastethernet0/1
Switch(config-if)# mvr vlan 10 group 225.1.1.1

This example shows how to remove an entry on port 0/3 in VLAN 10:

Switch(config)# interface fastethernet0/3
Switch(config-if)# no mvr 10 group 255.1.1.2

You can verify your settings by entering the show mvr privileged EXEC command.

Related Commands

Command
Description

mvr

Enables MVR.

mvr immediate

Enables the Immediate-Leave feature on an interface.

mvr type

Configures a port as a receiver or source port.

show mvr

Displays MVR global parameters or port parameters.


pagp learn-method

Use the pagp learn-method interface configuration command to set the source-address learning method of incoming packets received from an EtherChannel port. Use the no form of this command to return to the default setting.

pagp learn-method aggregation-port

no pagp learn-method

Syntax Description

aggregation-port

Specify address learning on the logical port-channel. The switch transmits packets to the source by using any of the interfaces in the EtherChannel. This setting is the default. With aggregate-port learning, it is not important on which physical port the packet arrives.



Note Though visible in the command-line help strings, the physical-port keyword is not supported.


Defaults

The default is aggregation-port (logical port channel).

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The switch supports address learning only on aggregate ports even though the physical-port keyword is provided in the command-line interface (CLI). The pagp learn-method and the pagp port-priority interface configuration commands have no affect on the switch hardware.


Note You should not set the learn method to physical-port because the switch is an aggregate-learning device.


If the link partner to the switch is a physical learner that has the channel-group interface configuration command set to auto or desirable, the switch automatically uses the load-distribution method based on the source MAC address, regardless of the configured load-distribution method.

If the link partner to the switch is a physical learner that has the channel-group interface configuration command set to on, set the load-distribution method based on the source MAC address by using the port-channel load-balance src-mac global configuration command.

Examples

This example shows how to set the learning method to aggregation-port (the default):

Switch(config-if)# pagp learn-method aggregation-port

You can verify your settings by entering the show running-config or show pagp channel-group-number internal privileged EXEC command.

Related Commands

Command
Description

channel-group

Assigns an Ethernet interface to an EtherChannel group.

pagp port-priority

Selects an interface through which all Port Aggregation Protocol (PAgP) traffic through the EtherChannel is sent.

show pagp

Displays PAgP channel-group information.

show running-config

Displays the running configuration on the switch.


pagp port-priority

You do not need to enter this command. It is documented for informational purposes only. Though visible in the command-line help strings, the switch does not support the pagp port-priority command.

Use the pagp port-priority interface configuration command to select an interface through which all Port Aggregation Protocol (PAgP) traffic through the EtherChannel is sent. Use the no form of this command to return to the default value.

pagp port-priority priority

no pagp port-priority

Syntax Description

priority

A priority number ranging from 0 to 255.


Defaults

The default value is 128.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The pagp learn-method and the pagp port-priority interface configuration commands have no affect on the switch hardware.


Note You should not change the port priority because the switch does not support this command.


Related Commands

Command
Description

pagp learn-method

Sets the source-address learning method of incoming packets received from an EtherChannel port.

show pagp

Displays PAgP channel-group information.

show running-config

Displays the running configuration on the switch.


permit (access-list configuration)

Use the permit access-list configuration command to configure conditions for a named or numbered IP access control list (ACL). Use the no form of the command to remove a permit condition from the IP ACL.

Use these commands with standard IP ACLs:

permit {source source-wildcard | host source | any}

no permit {source source-wildcard | host source | any}

Use these commands with extended IP ACLs:

permit protocol {source source-wildcard | host source | any} [operator port] {destination destination-wildcard | host source | any} [operator port]

no permit protocol {source source-wildcard | host source | any} [operator port] {destination destination-wildcard | host source | any} [operator port]

Syntax Description

source source-wildcard | host source | any

Define a source IP address and wildcard.

The source is the source address of the network or host from which the packet is being sent, specified in one of these ways:

The 32-bit quantity in dotted-decimal format. The source-wildcard applies wildcard bits to the source.

The keyword host, followed by the 32-bit quantity in dotted-decimal format, as an abbreviation for source and source-wildcard of source 0.0.0.0.

The keyword any as an abbreviation for source and source-wildcard of 0.0.0.0 255.255.255.255. You do not need to enter a source-wildcard.

protocol

Name of an IP protocol.

protocol can be ip, tcp, or udp.

destination destination-wildcard | host source | any

Define a destination IP address and wildcard.

The destination is the destination address of the network or host to which the packet is being sent, specified in one of these ways:

The 32-bit quantity in dotted-decimal format. The destination-wildcard applies wildcard bits to the destination.

The keyword host, followed by the 32-bit quantity in dotted-decimal format, as an abbreviation for source and source-wildcard of source 0.0.0.0.

The keyword any as an abbreviation for destination and destination-wildcard of 0.0.0.0 255.255.255.255. You do not need to enter a destination-wildcard.

operator port

(Optional) Define a source or destination port.

The operator can be only eq (equal).

If operator is after the source IP address and wildcard, conditions match when the source port matches the defined port.

If operator is after the destination IP address and wildcard, conditions match when the destination port matches the defined port.

The port is a decimal number or name of a Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) port. The number can be from 0 to 65535.

Use TCP port names only for TCP traffic.

Use UDP port names only for UDP traffic.


Defaults

There are no specific conditions that permit packets in a named or numbered IP ACL.

The default ACL is always terminated by an implicit deny statement for all packets.

Command Modes

Access-list configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use this command after the ip access-list global configuration command to specify permit conditions for a named or numbered IP ACL. You can specify a source IP address, destination IP address, IP protocol, TCP port, or UDP port. Specify the TCP and UDP port numbers only if protocol is tcp or udp and operator is eq.


Note For more information about configuring IP ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to create an extended IP ACL and configure permit conditions for it:

Switch(config)# ip access-list extended Internetfilter2
Switch(config-ext-nacl)# permit host 36.10.10.5 any
Switch(config-ext-nacl)# permit host 192.1.10.8 any

This is an example of a standard ACL that sets permit conditions:

ip access-list standard Acclist1
 permit 192.5.34.0  0.0.0.255
 permit 128.88.10.0  0.0.0.255
 permit 36.1.1.0  0.0.0.255

Note In these examples, all other IP access is implicitly denied.


You can verify your settings by entering the show ip access-lists or show access-lists privileged EXEC command.

Related Commands

Command
Description

deny (access-list configuration)

Sets deny conditions for an IP ACL.

ip access-list

Defines an IP ACL.

ip access-group

Controls access to an interface.

show ip access-lists

Displays IP ACLs configured on the switch.

show access-lists

Displays ACLs configured on a switch.


permit (MAC access-list configuration)

Use the permit MAC access-list configuration command to allow Layer 2 traffic to be forwarded if the conditions are matched. Use the no form of the command to remove a permit condition from the named MAC access control list (ACL).

{permit | deny} {any | host src-MAC-addr} {any | host dst-MAC-addr} [aarp | amber | dec-spanning | decnet-iv | diagnostic | dsm | etype-6000 | etype-8042 | lat | lavc-sca | mop-console | mop-dump | msdos | mumps | netbios | vines-echo |vines-ip | xns-idp]

no {permit | deny} {any | host src-MAC-addr} {any | host dst-MAC-addr} [aarp | amber | dec-spanning | decnet-iv | diagnostic | dsm | etype-6000 | etype-8042 | lat | lavc-sca | mop-console | mop-dump | msdos | mumps | netbios | vines-echo |vines-ip | xns-idp]

Syntax Description

any

Keyword to specify to permit any source or destination MAC address.

host src MAC-addr

Define a host MAC address. If the source address for a packet matches the defined address, traffic from that address is permitted. MAC address-based subnets are not allowed.

host dst-MAC-addr

Define a destination MAC address. If the destination address for a packet matches the defined address, traffic to that address is permitted. MAC address-based subnets are not allowed.

aarp

Select Ethertype AppleTalk Address Resolution Protocol that maps a data-link address to a network address.

amber

Select EtherType DEC-Amber.

dec-spanning

Select EtherType Digital Equipment Corporation (DEC) spanning tree.

decnet-iv

Select EtherType DECnet Phase IV protocol.

diagnostic

Select EtherType DEC-Diagnostic.

dsm

Select EtherType DEC-DSM.

etype-6000

Select EtherType 0x6000.

etype-8042

Select EtherType 0x8042.

lat

Select EtherType DEC-LAT.

lavc-sca

Select EtherType DEC-LAVC-SCA.

mop-console

Select EtherType DEC-MOP Remote Console.

mop-dump

Select EtherType DEC-MOP Dump.

msdos

Select EtherType DEC-MSDOS.

mumps

Select EtherType DEC-MUMPS.

netbios

Select EtherType DEC- Network Basic Input/Output System (NETBIOS).

vines-echo

Select EtherType Virtual Integrated Network Service (VINES) Echo from Banyan Systems.

vines-ip

Select EtherType VINES IP.

xns-idp

Select EtherType Xerox Network Systems (XNS) protocol suite (from 0 to 65535), an arbitrary Ethertype in decimal, hexadecimal, or octal.


Defaults

This command has no defaults. However, the default action for a MAC-named ACL is to deny.

Command Modes

MAC access-list configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

When an access control entry (ACE) is added to an ACL, an implied deny-any-any condition exists at the end of the list. That is, if there are no matches, the packets are denied. However, before the first ACE is added, the list permits all packets.

These options are not allowed:

Class of service (CoS)

Ethertype number of a packet with Ethernet II or Subnetwork Access Protocol (SNAP) encapsulation

Link Service Access Point (LSAP) number of a packet with 802.2 encapsulation


Note For more information about configuring MAC extended ACLs, refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to define the named MAC extended ACL to deny NETBIOS traffic from any source to MAC address 00c0.00a0.03fa. Traffic matching this list is allowed.

Switch(config-ext-macl)# permit any host 00c0.00a0.03fa netbios

This example shows how to remove the permit condition from the named MAC extended ACL:

Switch(config-ext-macl)# no permit any host 00c0.00a0.03fa netbios

You can verify your settings by entering the show access-lists privileged EXEC command.

Related Commands

Command
Description

mac access-list extended

Creates an ACL based on MAC addresses.

deny (MAC access-list configuration)

Prevents Layer 2 traffic from being forwarded if conditions are matched.

show access-lists

Displays ACLs configured on a switch.


police

Use the police policy-map class configuration command to define a policer for classified traffic. Use the no form of this command to remove an existing policer.

police rate-bps burst-byte [exceed-action {drop | dscp dscp-value}]

no police rate-bps burst-byte [exceed-action {drop | dscp dscp-value}]

Syntax Description

rate-bps

Specify average traffic rate in bits per second (bps).

For 10/100 ports, the range is 1000000 to 100000000, and the granularity is 1 Mbps.

For Gigabit-capable Ethernet ports, the range is 8000000 to 1016000000, and the granularity is 8 Mbps.

burst-byte

Specify the normal burst size in bytes.

For 10/100 ports, the burst size values are 4096, 8192, 16384, 32768, and 65536.

For Gigabit-capable Ethernet ports, the burst size values are 4096, 8192, 16384, 32768, 65536, 131072, 262144, and 524288.

exceed-action drop

(Optional) When the specified rate is exceeded, specify that the switch drop the packet.

exceed-action dscp dscp-value

(Optional) When the specified rate is exceeded, specify that the switch changes the Differentiated Services Code Point (DSCP) of the packet to the specified dscp-value and then sends the packet.


Defaults

No policers are defined.

Command Modes

Policy-map class configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

You can configure up to six policers on ingress Fast Ethernet ports.

You can configure up to 60 policers on ingress Gigabit-capable Ethernet ports.

Policers cannot be configured on egress Fast Ethernet and Gigabit-capable Ethernet ports.

To return to policy-map configuration mode, use the exit command. To return to privileged EXEC mode, use the end command.


Note For more information about configuring access control lists (ACLs), refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to configure a policer that sets the DSCP value to 46 if traffic does not exceed a 1-Mbps average rate with a burst size of 65536 bytes and drops packets if traffic exceeds these conditions:

Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# set ip dscp 46
Switch(config-pmap-c)# police 1000000 65536 exceed-action drop
Switch(config-pmap-c)# exit

You can verify your settings by entering the show policy-map privileged EXEC command.

Related Commands

Command
Description

policy-map

Creates or modifies a policy map that can be attached to multiple interfaces, and enters policy-map configuration mode.

show policy-map

Displays quality of service (QoS) policy maps.


policy-map

Use the policy-map global configuration command to create or modify a policy map that can be attached to multiple interfaces and to enter policy-map configuration mode. Use the no form of this command to delete an existing policy map and return to global configuration mode.

policy-map policy-map-name

no policy-map policy-map-name

Syntax Description

policy-map-name

Name of the policy map.


Defaults

No policy maps are defined.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Entering the policy-map command enables the policy-map configuration mode. These configuration commands are available:

class: defines the classification match criteria for the specified class map. For more information, see the class command.

description: describes the policy map (up to 200 characters).

exit: exits policy-map configuration mode and returns to global configuration mode.

no: removes a previously defined policy map.

rename: renames the policy map.


Note In a policy map, the class named class-default is not supported. The switch does not filter traffic based on the policy map defined by the class class-default policy-map configuration command.


To return to global configuration mode, use the exit command. To return to privileged EXEC mode, use the end command.

Before you can configure policies for classes whose match criteria are defined in a class map, use the policy-map command to specify the name of the policy map to be created or modified. Entering this command also enables the policy-map configuration mode in which you can configure or modify the class policies for that policy map.

You can configure class policies in a policy map only if the classes have match criteria defined for them. Use the class-map and match commands to configure the match criteria for a class. Only one match command per class map is supported.

Only one policy map per interface per direction is supported. You can apply the same policy map to multiple interfaces but only in the ingress direction.


Note For more information about configuring access control lists (ACLs), refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to create a policy map called policy1. When attached to the ingress direction, it matches all the incoming traffic defined in class1 and polices the traffic at an average rate of 1 Mbps and bursts at 65536 bytes. Traffic exceeding the profile is dropped.

Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# police 1000000 65536 exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)#

This example shows how to delete policymap2:

Switch(config)# no policy-map policymap2

You can verify your settings by entering the show policy-map privileged EXEC command.

Related Commands

Command
Description

class

Defines the default CoS value of a port or assigns the default CoS to all incoming packets on the port.

class-map

Creates a class map to be used for matching packets to the class whose name you specify.

police

Defines a policer for classified traffic.

set

Classifies IP traffic by setting a DSCP value in the packet.

show policy-map

Displays quality of service (QoS) policy maps.


port-channel load-balance

Use the port-channel load-balance global configuration command to set the load distribution method among the ports in the EtherChannel. Use the no form of this command to reset the load distribution to the default.

port-channel load-balance method

no port-channel load-balance

Syntax Description

method

Load distribution method.

These are the method values:

dst-mac—Load distribution using the destination MAC address

src-mac—Load distribution using the source MAC address


Defaults

The default method is src-mac.

Command Modes

Global configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

If the link partner to the Catalyst 2950 switch is a physical learner that has the channel-group interface configuration command set to auto or desirable, the switch automatically uses the load-distribution method based on the source MAC address regardless of the configured load-distribution method.

If the link partner to the switch is a physical learner that has the channel-group interface configuration command set to on, set the load-distribution method based on the source MAC address by using the port-channel load-balance src-mac global configuration command.

Examples

This example shows how to set the load-distribution method to dst-mac:

Switch(config)# port-channel load-balance dst-mac

You can verify your settings by entering the show etherchannel privileged EXEC command.

Related Commands

Command
Description

channel-group

Assigns an Ethernet interface to an EtherChannel group.

show etherchannel

Displays EtherChannel information for a channel.

show running-config

Displays the running configuration on the switch.


rcommand

Use the rcommand user EXEC command to start a Telnet session and to enter commands from the command switch for a member switch. To end the session, enter the exit command.

rcommand {n | commander | mac-address hw-addr}

Syntax Description

n

Provide the number that identifies a cluster member. The range is from 0 to 15.

commander

Provide access to the command switch from a member switch.

mac-address hw-addr

MAC address of the member switch.


Command Modes

User EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

If the switch is the command switch but the member switch n does not exist, an error message appears. To obtain the switch number, enter the show cluster members privileged EXEC command on the command switch.

You can use this command to access a member switch from the command-switch prompt or to access a command switch from the member-switch prompt.

For Catalyst 2900 XL, 3500 XL, 2950, and 3550 switches, the Telnet session accesses the member-switch command-line interface (CLI) at the same privilege level as on the command switch. For example, if you enter this command at user level on the cluster command switch, the member switch is accessed at user level. If you use this command on the command switch at privileged level, the command accesses the remote device at privileged level. If you use an intermediate enable-level lower than privileged, access to the member switch is at user level.

For Catalyst 1900 and 2820 switches running standard edition software, the Telnet session accesses the menu console (the menu-driven interface) if the command switch is at privilege level 15. If the command switch is at privilege level 1, you are prompted for the password before being able to access the menu console. Command switch privilege levels map to the member switches running standard edition software as follows:

If the command switch privilege level is from 1 to 14, the member switch is accessed at privilege level 1.

If the command switch privilege level is 15, the member switch is accessed at privilege level 15.

The Catalyst 1900 and 2820 CLI is available only on switches running Enterprise Edition Software.

This command does not work if the vty lines of the command switch have access-class configurations.

You are not prompted for a password because the member switches inherited the password of the command switch when they joined the cluster.

Examples

This example shows how to start a session with member 3. All subsequent commands are directed to member 3 until you enter the exit command or close the session.

Switch# rcommand 3
Switch-3# show version
Cisco Internet Operating System Software ...
...
Switch-3# exit
Switch#

Related Commands

Command
Description

show cluster members

Displays information about the cluster members.


reset

Use the reset VLAN configuration command to abandon the proposed VLAN configuration and to remain in VLAN configuration mode. This command resets the proposed configuration to the current VLAN configuration on the switch.

reset

Syntax Description

This command has no arguments or keywords.

Defaults

No default is defined.

Command Modes

VLAN configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The command mode was changed from VLAN database to VLAN configuration.


Examples

This example shows how to abandon the proposed VLAN configuration and to reset the current VLAN configuration:

Switch(vlan)# reset
Switch(vlan)#

You can verify that no VLAN configuration changes occurred by entering the show changes and show proposed VLAN configuration commands.

Related Commands

Command
Description

abort

Abandons the proposed VLAN configuration, exits VLAN configuration mode, and returns to privileged EXEC mode.

apply

Implements the proposed VLAN configuration, increments the database configuration revision number, propagates it throughout the administrative domain, and remains in VLAN configuration mode.

exit

Implements the proposed VLAN configuration, increments the database configuration number, propagates it throughout the administrative domain, and returns to privileged EXEC mode.

show changes

Displays the differences between the current VLAN configuration and the proposed VLAN configuration.

show proposed

Displays the proposed VLAN configuration or a selected VLAN in it.

shutdown vlan

Shuts down (suspends) local traffic on the specified VLAN.

vlan database

Enters VLAN configuration mode from the command-line interface (CLI).


rmon collection stats

Use the rmon collection stats interface configuration command to collect Ethernet group statistics. The Ethernet group statistics include utilization statistics about broadcast and multicast packets and error statistics about Cyclic Redundancy Check (CRC) alignment errors and collisions. Use the no form of this command to return to the default setting.

rmon collection stats index [owner name]

no rmon collection stats index [owner name]

Syntax Description

index

Remote Network Monitoring (RMON) collection control index. The range is 1 to 65535.

owner name

(Optional) Owner of the RMON collection.


Defaults

The RMON statistics collection is disabled.

Command Modes

Interface configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

The RMON statistics collection command is based on hardware counters.

Examples

This example shows how to collect RMON statistics for the owner root on an interface:

Switch(config)# interface fastethernet0/1
Switch(config-if)# rmon collection stats 2 owner root

You can verify your settings by entering the show rmon statistics user EXEC command.

Related Commands

Command
Description

show rmon statistics

Displays RMON statistics.

For more information on this command, select Cisco IOS Configuration Fundamentals Command Reference for Release 12.1 > Cisco IOS System Management Commands > RMON Commands.


service-policy

Use the service-policy interface configuration command to apply a policy map defined by the policy-map command to the input of a particular interface. Use the no form of this command to remove the policy map and interface association.

service-policy input policy-map-name

no service-policy input policy-map-name

Syntax Description

input policy-map-name

Apply the specified policy-map to the input of an interface.


Defaults

No policy maps are attached to the interface.

Command Modes

Interface configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Only one policy map per ingress interface is supported.

Service policy maps cannot be defined on egress interfaces.


Note For more information about configuring access control lists (ACLs), refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to apply plcmap1 to an ingress interface:

Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input plcmap1

You can verify your settings by entering the show policy-map privileged EXEC command.

Related Commands

Command
Description

policy-map

Creates or modifies a policy map that can be attached to multiple interfaces to specify a service policy.

show policy-map

Displays quality of service (QoS) policy maps.


set

Use the set policy-map class configuration command to classify IP traffic by setting a Differentiated Services Code Point (DSCP) value. Use the no form of this command to remove traffic classification.

set ip dscp new-dscp

no set ip dscp new-dscp

Syntax Description

new-dscp

New DSCP value assigned to the classified traffic.

The supported DSCP values are 0, 8, 10, 16, 18, 24, 26, 32, 34, 40, 46, 48, and 56.


Defaults

No traffic classification is defined.

Command Modes

Policy-map class configuration

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The set command can be used in a policy with a match command.

The set command sets the DSCP value for in-profile packets.


Note This command does not support IP precedence.


To return to policy-map configuration mode, use the exit command. To return to privileged EXEC mode, use the end command.


Note For more information about configuring access control lists (ACLs), refer to the "Configuring Network Security with ACLs" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide for this release.


Examples

This example shows how to assign a DSCP value of 10 to all FTP traffic without any policers:

Switch(config)# policy-map policy_ftp
Switch(config-pmap)# class ftp_class
Switch(config-pmap-c)# set ip dscp 10
Switch(config-pmap)# exit

You can verify your settings by entering the show policy-map privileged EXEC command.

Related Commands

Command
Description

police

Defines a policer for classified traffic.

policy-map

Creates or modifies a policy map that can be attached to multiple interfaces to specify a service policy.

show policy-map

Displays quality of service (QoS) policy maps.


show access-lists

Use the show access-lists privileged EXEC command to display access control lists (ACLs) configured on the switch.

show access-lists [name | number] [ | {begin | exclude | include} expression]

Syntax Description

name

(Optional) Name of the ACL.

number

(Optional) ACL number. The range is from 1 to 2699.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show access-lists command:

Switch# show access-lists
Standard IP access list testingacl
    permit 10.10.10.2
Standard IP access list wizard_1-1-1-2
    permit 1.1.1.2
Extended IP access list 103
    permit tcp any any eq www
Extended IP access list CMP-NAT-ACL
    Dynamic Cluster-HSRP deny   ip any any
    Dynamic Cluster-NAT permit ip any any
      permit ip host 10.123.222.192 any
      permit ip host 10.228.215.0 any
      permit ip host 10.245.137.0 any
      permit ip host 10.245.155.128 any
      permit ip host 10.221.111.64 any
      permit ip host 10.216.25.128 any
      permit ip host 10.186.122.64 any
      permit ip host 10.169.110.128 any
      permit ip host 10.146.106.192 any

Related Commands

Command
Description

access-list (IP standard)

Configures a standard IP ACL on the switch.

access-list (IP extended)

Configures an extended IP ACL on the switch.

ip access-list

Configures an IP ACL on the switch.

mac access-list extended

Creates an ACL based on MAC addresses.

show ip access-lists

Displays the IP ACLs configured on a switch.


show changes

Use the show changes VLAN configuration command to display the differences between the current VLAN configuration and the proposed VLAN configuration. You can also display the differences between the two for a selected VLAN.

show changes [vlan-id]

Syntax Description

vlan-id

(Optional) ID of the VLAN in the current or proposed configuration. If this variable is omitted, all the differences between the two VLAN configurations appear, including the pruning state and Version 2 mode. Valid IDs are from 1 to 1001; do not enter leading zeroes.


Command Modes

VLAN configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The command mode was changed from VLAN database to VLAN configuration.


Examples

This is an example of output from the show changes command:

Switch(vlan)# show changes
ADDED:
    Name:VLAN0003
    Media Type:Ethernet
    VLAN 802.10 Id:100003
    State:Operational
    MTU:1500

ADDED:
    Name:VLAN0004
    Media Type:Ethernet
    VLAN 802.10 Id:100004
    State:Operational
    MTU:1500

This is an example of output from the show changes 4 command for VLAN 4:

Switch(vlan)# show changes 4

ADDED:
    Name:VLAN0004
    Media Type:Ethernet
    VLAN 802.10 Id:100004
    State:Operational
    MTU:1500

Related Commands

Command
Description

show current

Displays the VLAN configuration on the switch or a selected VLAN.

show proposed

Displays the proposed VLAN configuration for a selected VLAN.


show class-map

Use the show class-map privileged EXEC command to display quality of service (QoS) class maps, which define the match criteria to classify traffic.

show class-map [class-map-name] [ | {begin | exclude | include} expression]

Syntax Description

class-map-name

(Optional) Display the contents of the specified class map.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

If you do not specify a class-map-name, all class maps appear.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show class-map test command:

Switch# show class-map test
 Class Map match-all test (id 2)
   Match access-group name testingacl

This is an example of output from the show class-map command:

Switch# show class-map
 Class Map match-all wizard_1-1-1-2 (id 3)
   Match access-group name videowizard_1-1-1-2

 Class Map match-all test (id 2)
   Match access-group name testingacl

 Class Map match-any class-default (id 0)
   Match any

 Class Map match-all class1 (id 5)
   Match access-group  103

 Class Map match-all classtest (id 4)
  Description: This is a test.
   Match access-group name testingacl

Related Commands

Command
Description

class-map

Creates a class map to be used for matching packets to the class whose name you specify.

match (class-map configuration)

Defines the match criteria to classify traffic.


show cluster

Use the show cluster user EXEC command to display the cluster status and a summary of the cluster to which the switch belongs. This command can be entered on command and member switches.

show cluster [ | {begin | exclude | include} expression]

Syntax Descriptionshow cluster

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

User EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

On a member switch, this command displays the identity of the command switch, the switch member number, and the state of its connectivity with the command switch.

On a command switch, this command displays the cluster name and the total number of members. It also shows the cluster status and time since the status changed. If redundancy is enabled, it displays the primary and secondary command-switch information.

If you enter this command on a switch that is not a cluster member, the error message Not a management cluster member is displayed.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output when this command is entered on the active command switch:

Switch> show cluster
Command switch for cluster "Ajang"
        Total number of members:        7
        Status:                         1 members are unreachable
        Time since last status change:  0 days, 0 hours, 2 minutes
        Redundancy:                     Enabled
                Standby command switch: Member 1
                Standby Group:          Ajang_standby
                Standby Group Number:   110
        Heartbeat interval:             8
        Heartbeat hold-time:            80
        Extended discovery hop count:   3 

This is an example of output when this command is entered on a member switch:

Switch> show cluster
Member switch for cluster "commander"
        Member number:                  3
        Management IP address:          192.192.192.192
        Command switch mac address:     0000.0c07.ac14
        Heartbeat interval:             8
        Heartbeat hold-time:            80 

This is an example of output when this command is entered on a member switch that is configured as the standby command switch:

Switch> show cluster
Member switch for cluster "commander"
        Member number:                  3 (Standby command switch)
        Management IP address:          192.192.192.192
        Command switch mac address:     0000.0c07.ac14
        Heartbeat interval:             8
        Heartbeat hold-time:            80 

This is an example of output when this command is entered on the command switch that is separated from a member:

Switch> show cluster
Command switch for cluster "Ajang"
        Total number of members:        7
        Status:                         1 members are unreachable
        Time since last status change:  0 days, 0 hours, 5 minutes
        Redundancy:                     Disabled
        Heartbeat interval:             8
        Heartbeat hold-time:            80
        Extended discovery hop count:   3 

This is an example of output when this command is entered on a member switch that is separated from the command switch:

Switch> show cluster
Member switch for cluster "commander"
        Member number:                  <UNKNOWN>
        Management IP address:          192.192.192.192
        Command switch mac address:     0000.0c07.ac14
        Heartbeat interval:             8
        Heartbeat hold-time:            80 

Related Commands

Command
Description

cluster enable

Enables a command-capable switch as the cluster command switch, assigns a cluster name, and optionally assigns a member number to it.

show cluster candidates

Displays a list of candidate switches.

show cluster members

Displays information about the cluster members.


show cluster candidates

Use the show cluster candidates user EXEC command on the command switch to display a list of candidate switches.

show cluster candidates [mac-address H.H.H. | detail] [ | {begin | exclude | include} expression]

Syntax Description

mac-address H.H.H.

(Optional) Hexadecimal MAC address of the cluster candidate.

detail

(Optional) Display detailed information for all candidates.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

User EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

You should only enter this command on a command switch.

If the switch is not a command switch, the command displays an empty line at the prompt.

The SN in the output means switch member number. If E is in the SN column, it means that the switch is discovered through extended discovery. The hop count is the number of devices the candidate is from the command switch.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show cluster candidates command:

Switch> show cluster candidates
                                                      |---Upstream---|
MAC Address    Name         Device Type      PortIf  FEC Hops SN PortIf  FEC
00d0.7961.c4c0 c2950-012    WS-C2950-12      Fa0/5        1   0  Fa0/3 
00d0.bbf5.e900 ldf-dist-128 WS-C3524-XL      Fa0/7        1   0  Fa0/24      
00e0.1e7e.be80 1900_Switch  1900             3        0   1   0  Fa0/11      
00e0.1e9f.7a00 c2924XL-24   WS-C2924-XL      Fa0/5        1   0  Fa0/3       
00e0.1e9f.8c00 c2912XL-12-2 WS-C2912-XL      Fa0/4        1   0  Fa0/7       
00e0.1e9f.8c40 c2912XL-12-1 WS-C2912-XL      Fa0/1        1   0  Fa0/9       
0050.2e4a.9fb0 C3508XL-0032 	WS-C3508-XL 	E
0050.354e.7cd0 C2924XL-0034 	WS-C2924-XL 	E

This is an example of output from the show cluster candidates command that uses the MAC address of a member switch directly connected to the command switch:

Switch> show cluster candidates mac-address 00d0.7961.c4c0
Device 'c2950-12' with mac address number 00d0.7961.c4c0
        Device type:            cisco WS-C2950-12
        Upstream MAC address:   00d0.796d.2f00 (Cluster Member 0)
        Local port:             Fa0/3   FEC number: 
        Upstream port:          Fa0/13  FEC Number: 
        Hops from cluster edge: 1
        Hops from command device: 1

This is an example of output from the show cluster candidates command that uses the MAC address of a member switch three hops from the cluster edge:

Switch> show cluster candidates mac-address 0010.7bb6.1cc0
Device 'c2950-24' with mac address number 0010.7bb6.1cc0
        Device type:            cisco WS-C2950-24
        Upstream MAC address:   0010.7bb6.1cd4
        Local port:             Fa2/1   FEC number: 
        Upstream port:          Fa0/24  FEC Number: 
        Hops from cluster edge: 3
        Hops from command device: -

This is an example of output from the show cluster candidates detail command:

Switch> show cluster candidates detail
Device 'c2950-12' with mac address number 00d0.7961.c4c0
        Device type:            cisco WS-C2950-12
        Upstream MAC address:   00d0.796d.2f00 (Cluster Member 1)
        Local port:             Fa0/3   FEC number: 
        Upstream port:          Fa0/13  FEC Number: 
        Hops from cluster edge: 1
        Hops from command device: 2
	Device '1900_Switch' with mac address number 00e0.1e7e.be80
        Device type:            cisco 1900
        Upstream MAC address:   00d0.796d.2f00 (Cluster Member 2)
        Local port:             3       FEC number: 0
        Upstream port:          Fa0/11  FEC Number: 
        Hops from cluster edge: 1
        Hops from command device: 2
Device 'c2924-XL' with mac address number 00e0.1e9f.7a00
        Device type:            cisco WS-C2924-XL
        Upstream MAC address:   00d0.796d.2f00 (Cluster Member 3)
        Local port:             Fa0/5   FEC number: 
        Upstream port:          Fa0/3   FEC Number: 
        Hops from cluster edge: 1
        Hops from command device: 2

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.

show cluster members

Displays information about the cluster members.


show cluster members

Use the show cluster members user EXEC command on the command switch to display information about the cluster members.

show cluster members [n | detail] [ | {begin | exclude | include} expression]

Syntax Description

n

(Optional) Number that identifies a cluster member. The range is from 0 to 15.

detail

(Optional) Display shows detailed information for all cluster members.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

User EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

You should only enter this command on a command switch.

If the cluster has no members, this command displays an empty line at the prompt.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show cluster members command. The SN in the display means switch number.

Switch> show cluster members
                                                |---Upstream---|
SN MAC Address    Name         PortIf FEC Hops   SN PortIf  FEC  State
0  0002.4b29.2e00 StLouis1                 0                    Up   (Cmdr)
1  0030.946c.d740 tal-switch-1 Fa0/13      1     0  Gi0/1       Up
2  0002.b922.7180 nms-2820     10      0   2     1  Fa0/18      Up
3  0002.4b29.4400 SanJuan2     Gi0/1       2     1  Fa0/11      Up
4  0002.4b28.c480 GenieTest    Gi0/2       2     1  Fa0/9       Up

This is an example of output from the show cluster members 3 command for cluster member 3:

Switch> show cluster members 3
Device 'SanJuan2' with member number 3
        Device type:            cisco WS-C3550-12T
        MAC address:            0002.4b29.4400
        Upstream MAC address:   0030.946c.d740 (Cluster member 1)
        Local port:             Gi0/1   FEC number:
        Upstream port:          Fa0/11  FEC Number:
        Hops from command device: 2

This is an example of output from the show cluster members detail command:

Switch> show cluster members detail
Device 'StLouis1' with member number 0 (Command Switch)
        Device type:            cisco WS-C3550-12T
        MAC address:            0002.4b29.2e00
        Upstream MAC address:
        Local port:                     FEC number:
        Upstream port:                  FEC Number:
        Hops from command device: 0                 
Device 'tal-switch-14' with member number 1
        Device type:            cisco WS-C3548-XL
        MAC address:            0030.946c.d740
        Upstream MAC address:   0002.4b29.2e00 (Cluster member 0)
        Local port:             Fa0/13  FEC number:
        Upstream port:          Gi0/1   FEC Number:
        Hops from command device: 1                   
Device 'nms-2820' with member number 2
        Device type:            cisco 2820
        MAC address:            0002.b922.7180
        Upstream MAC address:   0030.946c.d740 (Cluster member 1)
        Local port:             10      FEC number: 0
        Upstream port:          Fa0/18  FEC Number:
        Hops from command device: 2                        
Device 'SanJuan2' with member number 3
        Device type:            cisco WS-C3550-12T
        MAC address:            0002.4b29.4400
        Upstream MAC address:   0030.946c.d740 (Cluster member 1)
        Local port:             Gi0/1   FEC number:
        Upstream port:          Fa0/11  FEC Number:
        Hops from command device: 2
Device 'Test' with member number 4
        Device type:            cisco SeaHorse
        MAC address:            0002.4b28.c480
        Upstream MAC address:   0030.946c.d740 (Cluster member 1)
        Local port:             Gi0/2   FEC number:
        Upstream port:          Fa0/9   FEC Number:
        Hops from command device: 2
Device 'Palpatine' with member number 5
        Device type:            cisco WS-C2924M-XL
        MAC address:            00b0.6404.f8c0
        Upstream MAC address:   0002.4b29.2e00 (Cluster member 0)
        Local port:             Gi2/1   FEC number:
        Upstream port:          Gi0/7   FEC Number:
        Hops from command device: 1 

Related Commands

Command
Description

show cluster

Displays the cluster status and a summary of the cluster to which the switch belongs.

show cluster candidates

Displays a list of candidate switches.


show current

Use the show current VLAN configuration command to display the VLAN configuration on the switch or a selected VLAN on it.

show current [vlan-id]

Syntax Description

vlan-id

(Optional) ID of the VLAN in the configuration. If this variable is omitted, the entire VLAN configuration appears, included the pruning state and Version 2 mode.
Valid IDs are from 1 to 1001; do not enter leading zeroes.


Command Modes

VLAN configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The command mode was changed from VLAN database to VLAN configuration.


Examples

This is an example of output from the show current command:

Switch(vlan)# show current
    Name: default
    Media Type: Ethernet
    VLAN 802.10 Id: 100001
    State: Operational
    MTU: 1500
    Translational Bridged VLAN: 1002
    Translational Bridged VLAN: 1003

    Name: fddi-default
    Media Type: FDDI
    VLAN 802.10 Id: 101002
    State: Operational
    MTU: 1500
    Bridge Type: SRB
    Translational Bridged VLAN: 1
    Translational Bridged VLAN: 1003

    Name: token-ring-default
    Media Type: Token Ring
    VLAN 802.10 Id: 101003
    State: Operational
    MTU: 1500
    Bridge Type: SRB
    Ring Number: 0 
    Bridge Number: 1
    Parent VLAN: 1005
    Maximum ARE Hop Count: 7
    Maximum STE Hop Count: 7
    Backup CRF Mode: Disabled
    Translational Bridged VLAN: 1
    Translational Bridged VLAN: 1002

    Name: fddinet-default
    Media Type: FDDI Net
    VLAN 802.10 Id: 101004
    State: Operational
    MTU: 1500
    Bridge Type: SRB
    Bridge Number: 1
    STP Type: IBM

    Name: trnet-default
    Media Type: Token Ring Net
    VLAN 802.10 Id: 101005
    State: Operational
    MTU: 1500
    Bridge Type: SRB 
    Bridge Type: SRB
    Bridge Number: 1
    STP Type: IBM 

Related Commands STP Type: IBM

Command
Description

show changes

Displays the differences between the current VLAN configuration and the proposed VLAN configuration.

show proposed

Displays the proposed VLAN configuration for a selected VLAN.


show dot1x

Use the show dot1x privileged EXEC command to display the 802.1X statistics, administrative status, and operational status for the switch or for the specified interface.

show dot1x [statistics] [interface interface-id] [ | {begin | exclude | include} expression]

Syntax Description

statistics

(Optional) Display 802.1X statistics.

interface interface-id

(Optional) Slot and port number of the interface to reauthenticate.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

If you do not specify an interface, global parameters and a summary appear. If you specify an interface, details for that interface appear.

If you specify an interface with the statistics keyword, statistics appear for all physical ports.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show dot1x command:

Switch# show dot1x

Global 802.1X Parameters
    reauth-enabled                no
    reauth-period               3600
    quiet-period                  60
    tx-period                     30
    supp-timeout                  30
    server-timeout                30
    reauth-max                     2
    max-req                        2

802.1X Port Summary
    Port Name                Status      Mode                Authorized
    Gi0/1                    disabled    n/a                 n/a
    Gi0/2                    enabled     Auto (negotiate)    no

    802.1X Port Details
    802.1X is disabled on GigabitEthernet0/1

    802.1X is enabled on GigabitEthernet0/2
      Status                Unauthorized
      Port-control          Auto
      Supplicant            0060.b0f8.fbfb
      Multiple Hosts        Disallowed
      Current Identifier    2

      Authenticator State Machine
        State               AUTHENTICATING
        Reauth Count        1

      Backend State Machine
        State               RESPONSE
        Request Count       0
        Identifier (Server) 2

      Reauthentication State Machine
        State               INITIALIZE

Note In the previous example, the supp-timeout, server-timeout, and reauth-max values in the Global 802.1X Parameters section are not configurable.When relaying a request from the Remote Authentication Dial-In User Service (RADIUS) authentication server to the client, the supp-timeout is the amount of time the switch waits for a response before it resends the request. When relaying a response from the client to the RADIUS authentication server, the server-timeout is the amount of time the switch waits for a reply before it resends the response. The reauth-max parameter is the maximum number of times that the switch tries to authenticate the client without receiving any response before the switch resets the port and restarts the authentication process.


In the 802.1X Port Summary section of the example, the Status column shows whether the port is enabled for 802.1X (the dot1x port-control interface configuration command is set to auto or force-unauthorized). The Mode column shows the operational status of the port; for example, if you configure the dot1x port-control interface configuration command to force-unauthorized, but the port has not transitioned to that state, the Mode column displays auto. If you disable 802.1X, the Mode column displays n/a.

The Authorized column shows the authorization state of the port. For information about port states, refer to the "Configuring 802.1X Port-Based Authentication" chapter in the Catalyst 2950 Desktop Switch Software Configuration Guide.

This is an example of output from the show dot1x interface gigabitethernet0/2 privileged EXEC command. Table 2-4 describes the fields in the example.

Switch# show dot1x interface gigabitethernet0/2

802.1X is enabled on GigabitEthernet0/2 
  Status                Authorized 
  Port-control          Auto 
  Supplicant            0060.b0f8.fbfb 
  Multiple Hosts        Disallowed 
  Current Identifier    3

  Authenticator State Machine 
    State               AUTHENTICATED 
    Reauth Count        0

  Backend State Machine 
    State               IDLE 
    Request Count       0 
    Identifier (Server) 2

  Reauthentication State Machine 
    State               INITIALIZE

Table 2-4 show dot1x interface Field Description

Field
Description

802.1X is enabled on GigabitEthernet0/2

 

Status

Status of the port (authorized or unauthorized). The status of a port appears as authorized if the dot1x port-control interface configuration command is set to auto, and authentication was successful.

Port-control

Setting of the dot1x port-control interface configuration command.

Supplicant

Ethernet MAC address of the client, if one exists. If the switch has not discovered the client, this field displays Not set.

Multiple Hosts

Setting of the dot1x multiple-hosts interface configuration command (allowed or disallowed).

Current Identifier1

Each exchange between the switch and the client includes an identifier, which matches requests with responses. This number is incremented with each exchange and can be reset by the authentication server.

1 This field and the remaining fields in the example show internal state information. For a detailed description of these state machines and their settings, refer to the IEEE 802.1X standard.


This is an example of output from the show dot1x statistics interface gigiabitethernet0/1 command. Table 2-5 describes the fields in the example.

Switch# show dot1x statistics interface gigabitethernet0/1

GigabitEthernet0/1

    Rx: EAPOL     EAPOL     EAPOL     EAPOL     EAP       EAP       EAP
        Start     Logoff    Invalid   Total     Resp/Id   Resp/Oth  LenError
        0         0         0         21        0         0         0

        Last      Last
        EAPOLVer  EAPOLSrc
        1         0002.4b29.2a03

    Tx: EAPOL     EAP       EAP
        Total     Req/Id    Req/Oth
        622       445       0 

Table 2-5 show dot1x statistics Field Descriptions 

Field
Description

RX EAPOL1 Start

Number of valid EAPOL-start frames that have been received

RX EAPOL Logoff

Number of EAPOL-logoff frames that have been received

RX EAPOL Invalid

Number of EAPOL frames that have been received and have an unrecognized frame type

RX EAPOL Total

Number of valid EAPOL frames of any type that have been received

RX EAP2 Resp/ID

Number of EAP-response/identity frames that have been received

RX EAP Resp/Oth

Number of valid EAP-response frames (other than response/identity frames) that have been received

RX EAP LenError

Number of EAPOL frames that have been received in which the packet body length field is invalid

Last EAPOLVer

Protocol version number carried in the most recently received EAPOL frame

LAST EAPOLSrc

Source MAC address carried in the most recently received EAPOL frame

TX EAPOL Total

Number of EAPOL frames of any type that have been sent

TX EAP Req/Id

Number of EAP-request/identity frames that have been sent

TX EAP Req/Oth

Number of EAP-request frames (other than request/identity frames) that have been sent

1 EAPOL = Extensible Authentication Protocol over LAN

2 EAP = Extensible Authentication Protocol


Related Commands

Command
Description

dot1x default

Resets the global 802.1X parameters to their default values.


show env

Use the show env privileged EXEC command to display fan information for the switch.

show env {all | fan} [ | {begin | exclude | include} expression]

Syntax Description

all

Display both fan and temperature environmental status.

fan

Display the switch fan status.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show env all command:

Switch# show env all
FAN 1 is OK

This is an example of output from the show env fan command:

Switch# show env fan
FAN 1 is FAULTY

show errdisable recovery

Use the show errdisable recovery user EXEC command to display the error-disable recovery timer information.

show errdisable recovery [ | {begin | exclude | include} expression]

Syntax Description

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

User EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show errdisable recovery command:

Switch> show errdisable recovery
ErrDisable Reason    Timer Status
-----------------    --------------
udld                 Enabled
bpduguard            Enabled
rootguard            Enabled
pagp-flap            Enabled
dtp-flap             Enabled
link-flap            Enabled

Timer interval:300 seconds

Interfaces that will be enabled at the next timeout:

Interface    Errdisable reason    Time left(sec)
---------    -----------------    --------------
Gi0/4           link-flap             279 

Related Commands

Command
Description

errdisable recovery

Configures the recover mechanism variables.

show interfaces status

Displays interface status or a list of interfaces in error-disabled state.


show etherchannel

Use the show etherchannel user EXEC command to display EtherChannel information for a channel.

show etherchannel [channel-group-number] {brief | detail | load-balance | port | port-channel | summary} [ | {begin | exclude | include} expression]

Syntax Description

channel-group-number

(Optional) Number of the channel group. Valid numbers range from 1 to 6.

brief

Display a summary of EtherChannel information.

detail

Display detailed EtherChannel information.

load-balance

Display the load-balance or frame-distribution scheme among ports in the port channel.

port

Display EtherChannel port information.

port-channel

Display port-channel information.

summary

Display a one-line summary per channel-group.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

User EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced. It replaced the show port group command.


Usage Guidelines

If you do not specify a channel-group, all channel groups appear.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show etherchannel 1 detail command:

Switch> show etherchannel 1 detail
Group state = L2
Ports: 1   Maxports = 8
Port-channels: 1 Max Port-channels = 1
                Ports in the group:
                -------------------
Port: Fa0/3
------------

Port state    = Down Not-in-Bndl
Channel group = 1           Mode = Automatic-Sl     Gcchange = 0
Port-channel  = null        GC   = 0x00000000    Pseudo port-channel = Po1
Port index    = 0           Load = 0x00

Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.
        A - Device is in Auto mode.        P - Device learns on physical port.
        d - PAgP is down.
Timers: H - Hello timer is running.        Q - Quit timer is running.
        S - Switching timer is running.    I - Interface timer is running.

Local information:
                                Hello    Partner  PAgP     Learning  Group
Port      Flags State   Timers  Interval Count   Priority   Method  Ifindex
Fa0/3     dA    U1/S1           1s       0        200        Any      0

Age of the port in the current state: 10d:23h:07m:37s
                Port-channels in the group:
                ----------------------

Port-channel: Po1
------------

Age of the Port-channel   = 03d:02h:22m:43s
Logical slot/port   = 1/0           Number of ports = 0
GC                  = 0x00000000      HotStandBy port = null
Port state          = Port-channel Ag-Not-Inuse

This is an example of output from the show etherchannel 1 summary command:

Switch> show etherchannel 1 summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        R - Layer3      S - Layer2
        U - port-channel in use
Group Port-channel  Ports
-----+------------+-----------------------------------------------------------
1     Po1(SD)     Fa0/3(D)

This is an example of output from the show etherchannel 1 brief command:

Switch> show etherchannel 1 brief
Group state = L2
Ports: 1   Maxports = 8
Port-channels: 1 Max Port-channels = 1

This is an example of output from the show etherchannel 1 port command:

Switch> show etherchannel 1 port
                Ports in the group:
                -------------------
Port: Fa0/3
------------

Port state    = Down Not-in-Bndl
Channel group = 1           Mode = Automatic-Sl     Gcchange = 0
Port-channel  = null        GC   = 0x00000000    Pseudo port-channel = Po1
Port index    = 0           Load = 0x00

Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.
        A - Device is in Auto mode.        P - Device learns on physical port.
        d - PAgP is down.
Timers: H - Hello timer is running.        Q - Quit timer is running.
        S - Switching timer is running.    I - Interface timer is running.

Local information:
                                Hello    Partner  PAgP     Learning  Group
Port      Flags State   Timers  Interval Count   Priority   Method  Ifindex
Fa0/3     dA    U1/S1           1s       0        200        Any      0

Age of the port in the current state: 10d:23h:13m:21s

Related Commands

Command
Description

channel-group

Assigns an Ethernet interface to an EtherChannel group.

interface port-channel

Accesses or creates the port channel.


show file

Use the show file privileged EXEC command to display a list of open file descriptors, file information, and file system information.

show file {descriptors | information {device:}filename | systems} [ | {begin | exclude |
include} expression]

Syntax Description

descriptors

Display a list of open file descriptors.

information

Display file information.

device:

Device containing the file. Valid devices include the switch Flash memory.

filename

Name of file.

systems

Display file system information.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The descriptors and information keywords were added.


Usage Guidelines

File descriptors are the internal representations of open files. You can use this command to see if another user has a file open.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show file descriptors command:

Switch# show file descriptors
File Descriptors:
FD  Position  Open  PID  Path
0    187392   0001    2  tftp://temp/hampton/c2950g.a
1    184320   030A    2  flash:c2950-i-m.a

Table 2-6 describes the fields in the show file descriptors command output.

Table 2-6 show file descriptors Field Descriptions 

Field
Description

FD

File descriptor. The file descriptor is a small integer used to specify the file once it has been opened.

Position

Byte offset from the start of the file.

Open

Flags supplied when opening the file.

PID

Process ID of the process that opened the file.

Path

Location of the file.


This is an example of output from the show file information nvram:startup-config command:

Switch# show file information nvram:startup-config
nvram:startup-config:
  type is ascii text

Table 2-7 lists the possible file types for the previous example.

Table 2-7 Possible File Types 

Field
Description

ascii text

Configuration file or other text file.

coff

Runnable image in coff format.

ebcdic

Text generated on an IBM mainframe.

image (a.out)

Runnable image in a.out format.

image (elf)

Runnable image in elf format.

lzw compression

Lzw compressed file.

tar

Text archive file used by the CIP.


This is an example of output from the show file systems command:

Switch# show file systems
File Systems:

     Size(b)     Free(b)      Type  Flags  Prefixes
*    7741440      433152     flash     rw   flash:
     7741440      433152   unknown     rw   zflash:
       32768       25316     nvram     rw   nvram:
           -           -   network     rw   tftp:
           -           -    opaque     rw   null:
           -           -    opaque     rw   system:
           -           -    opaque     ro   xmodem:
           -           -    opaque     ro   ymodem:
           -           -   network     rw   rcp:
           -           -   network     rw   ftp:

For this example, Table 2-8 describes the fields in the show file systems command output. Table 2-9 lists the file system types. Table 2-10 lists the file system flags.

Table 2-8 show file systems Field Descriptions 

Field
Description

Size(b)

Amount of memory in the file system, in bytes.

Free(b)

Amount of free memory in the file system, in bytes.

Type

Type of file system.

Flags

Permissions for file system.

Prefixes

Alias for file system.


Table 2-9 File System Types 

Field
Description

disk

The file system is for a rotating medium.

flash

The file system is for a Flash memory device.

network

The file system is a network file system, such as TFTP, rcp, or FTP.

nvram

The file system is for an NVRAM device.

opaque

The file system is a locally generated pseudo file system (for example, the system) or a download interface, such as brimux.

rom

The file system is for a ROM or EPROM device.

tty

The file system is for a collection of terminal devices.

unknown

The file system is of unknown type.


Table 2-10 File System Flags

Field
Description

ro

The file system is Read Only.

wo

The file system is Write Only

rw

The file system is Read/Write.


show interface

Use the show interface privileged EXEC command to display the administrative and operational status of a switching (nonrouting) port.

show interface [interface-id | vlan number] [flow-control | status | switchport [allowed-vlan | native-vlan]] [ | {begin | exclude | include} expression]

Syntax Description

interface-id

ID of the port number.

vlan number

VLAN number of the management VLAN. Valid IDs are from 1 to 1001.
Do not enter leading zeroes.

flow-control

Displays flow-control information for the specified port.

status

(Optional) Display the status of the interface.

switchport

(Optional) Display the administrative and operational status of a switching (nonrouting) port.

allowed-vlan—Display the VLAN IDs that receive and send all types of traffic on the trunk port. By default, all VLAN IDs are included.

native-vlan—Display the native VLAN ID for untagged traffic when the port is in 802.1Q trunking mode.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show interface status command:

Switch# show interface status
Port    Name               Status       Vlan     Duplex Speed   Type
------- ------------------ ------------ -------- ------ ------- ----
Fa0/1                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/2                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/3                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/4                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/5                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/6                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/7                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/8                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/9                      connected    1        A-Full   A-100 100BaseTX/FX
Fa0/10                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/11                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/12                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/13                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/14                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/15                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/16                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/17                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/18                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/19                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/20                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/21                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/22                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/23                     connected    1        A-Full   A-100 100BaseTX/FX
Fa0/24                     monitoring   1        A-Full   A-100  100BaseTX/FX
Gi0/1                      connected   1         Full    1000  1000BaseT
Gi0/2                      connected   1         Full    1000  1000BaseT

In the previous example, Fast Ethernet port 0/24 is a SPAN destination port receiving copies of traffic from SPAN source ports.

This is an example of output from the show interface fastethernet0/2 switchport command. Table 2-11 describes each field in the example.

Switch# show interface fastethernet0/2 switchport
Name: Fa0/2
Switchport: Enabled
Administrative mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Disabled
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: NONE
Pruning VLANs Enabled: NONE

Priority for untagged frames: 0
Override vlan tag priority: FALSE
Voice VLAN: none
Appliance trust: none

Table 2-11 show interface fastethernet0/2 switchport Field Descriptions 

Field
Description

Name

Displays the port name.

Switchport

Displays the administrative and operational status of the port. In this example, the port is in switchport mode.

Administrative Mode

Operational Mode

Displays the administrative and operational mode.

Administrative Trunking Encapsulation

Operation Trunking Encapsulation

Negotiation of Trunking

Displays the administrative and operational encapsulation method. Also displays whether trunking negotiation is enabled.

Access Mode VLAN

Displays the VLAN ID to which the port is configured.

Trunking Native Mode VLAN

Trunking VLANs Enabled

Trunking VLANs Active

Lists the VLAN ID of the trunk that is in native mode. Lists the allowed VLANs on the trunk. Lists the active VLANs on the trunk.

Priority for untagged frames

Displays the port priority on incoming untagged frames.


Related Commands

Command
Description

switchport access

Configures a port as static access.

switchport mode

Configures the VLAN membership mode of a port.


show interfaces counters

Use the show interfaces counters privileged EXEC command to display various counters for a specific interface or for all interfaces.

show interfaces [interface-id | vlan vlan-id] counters [broadcast | errors | multicast | trunk | unicast] [ | {begin | exclude | include} expression]

Syntax Description

interface-id

(Optional) ID of the physical interface, including type and slot and port number.

vlan vlan-id

(Optional) VLAN number of the management VLAN. Valid IDs are from 1 to 1001. Do not enter leading zeroes.

broadcast

(Optional) Display discarded broadcast traffic.

errors

(Optional) Display error counters.

multicast

(Optional) Display discarded multicast traffic.

trunk

(Optional) Display trunk counters.

unicast

(Optional) Display discarded unicast traffic.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

If you do not enter any keywords, all counters for all interfaces are included.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show interfaces counters command. It displays all the counters for the switch.

Switch# show interfaces counters
Port            InOctets   InUcastPkts   InMcastPkts   InBcastPkts
Gi0/1           23324617         10376        185709        126020
Gi0/2                  0             0             0             0

Port           OutOctets  OutUcastPkts  OutMcastPkts  OutBcastPkts
Gi0/1            4990607         28079         21122            10
Gi0/2            1621568         25337             0             0

This is an example of output from the show interfaces counters broadcast command. It displays the dropped broadcast traffic for all interfaces.

Switch# show interfaces counters broadcast
Port      BcastSuppDiscards
Gi0/1                     1
Gi0/2                     0

This is an example of output from the show interfaces gigabitethernet0/1 counters broadcast command. It displays the dropped broadcast traffic for an interface.

Switch# show interfaces gigabitethernet0/1 counters broadcast

Port      BcastSuppDiscards
Gi0/1                     0 

This is an example of output from the show interfaces counters errors command. It displays the interface error counters for all interfaces.

Switch# show interfaces counters errors

Port        Align-Err    FCS-Err   Xmit-Err    Rcv-Err UnderSize
Gi0/1               0          0          0          0         0
Gi0/2               0          0          0          0         0

Port      Single-Col Multi-Col  Late-Col Excess-Col Carri-Sen     Runts    Giants
Gi0/1         0        0       0        0       0       0       0
Gi0/2         0        0       0        0       0       0       0

This is an example of output from the show interfaces counters multicast command. It displays the dropped multicast traffic for all interfaces.

Switch# show interfaces counters multicast

Port      McastSuppDiscards
Gi0/1                     0
Gi0/2                     0

This is an example of output from the show interfaces counters trunk command. It displays the trunk counters for all interfaces.

Switch# show interfaces counters trunk

Port        TrunkFramesTx  TrunkFramesRx  WrongEncap
Gi0/1                   0              0           0
Gi0/2                   0              0           0 

This is an example of output from the show interfaces counters unicast command. It displays the dropped unicast traffic for all interfaces.

Switch# show interfaces counters unicast

Port      UcastSuppDiscards
Gi0/1                  6872
Gi0/2                     0

Related Commands

Command
Description

storm-control

Configures broadcast, multicast, and unicast storm control for an interface.

show interfaces

Displays interface characteristics.


show interfaces status

Use the show interfaces status privileged EXEC command to display the status of the interfaces or of the interfaces in error-disabled state.

show interfaces status [interface-id ] [err-disabled] [ | {begin | exclude | include} expression]

Syntax Description

interface-id

(Optional) ID of the physical interface, including type and slot and port number.

err-disabled

(Optional) Keyword to display interfaces in error-disabled state.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show interfaces status command. It displays the status of all interfaces.

Switch# show interfaces status

Port   Name     Status     Vlan     Duplex  Speed   Type
Fa0/1  zippy    disabled     1      auto    auto    10/100BaseTX
Fa0/2           disabled     1      auto    auto    10/100BaseTX
Fa0/3           disabled     1      auto    auto    10/100BaseTX
Fa0/4           monitoring   1      a-full  a-100   10/100BaseTX
Fa0/5           notconnect   0      auto    auto    10/100BaseTX
Fa0/6           disabled     1      auto    auto    10/100BaseTX
Fa0/7           notconnect   0      auto    auto    10/100BaseTX
Fa0/8           disabled     1      auto    auto    10/100BaseTX
Fa0/9           notconnect   1      auto    auto    10/100BaseTX
Fa0/10          disabled     1      auto    auto    10/100BaseTX
Fa0/11          notconnect   1      auto    auto    10/100BaseTX
Fa0/12          disabled     1      auto    auto    10/100BaseTX
Fa0/13          connected    trunk  a-half  a-10    10/100BaseTX
Fa0/14          disabled     1      auto    auto    10/100BaseTX
Fa0/15          disabled     0      auto    auto    10/100BaseTX
Fa0/16          notconnect   2      auto    auto    10/100BaseTX
Fa0/17 test1    notconnect   1      auto    auto    10/100BaseTX
Fa0/18          disabled     1      auto    auto    10/100BaseTX
...
Fa0/43          disabled     1      auto    auto    10/100BaseTX
Fa0/44          disabled     1      auto    auto    10/100BaseTX
Fa0/45          connected    trunk  a-full  a-100   10/100BaseTX
Fa0/46          disabled     1      auto    auto    10/100BaseTX
Fa0/47          notconnect   1      auto    auto    10/100BaseTX
Fa0/48          disabled     1      auto    auto    10/100BaseTX
Gi0/1           disabled     1      auto    auto    1000BaseSX
Gi0/2           disabled     1      auto    auto     unknown
Po1             notconnect   1      auto    auto

In the previous example, Fast Ethernet port 0/4 is a SPAN destination port receiving copies of traffic from SPAN source ports.

This is an example of output from the show interfaces status err-disabled command. It displays the status of interfaces in the error-disabled state.

Switch# show interfaces status err-disabled 

Port    Name               Status       Reason
Fa0/4                      notconnect   link-flap

informational error message when the timer expires on a cause
--------------------------------------------------------------

5d04h:%PM-SP-4-ERR_RECOVER:Attempting to recover from link-flap err-disable state on Fa9/4
Switch#

Related Commands

Command
Description

show errdisable recovery

Displays the error-disable recovery timer information.



show interfaces switchport

Use the show interfaces switchport privileged EXEC command to display the administrative and the perational status of a switching (nonrouting) port.

show interfaces switchport [ | {begin | exclude | include} expression]

Syntax Description

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced. It replaced the show port protected command.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show interfaces switchport command. It displays the switch-port information for module 1.

Switch# show interfaces switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Protected: false

Name: Fa0/2
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Protected: true

Name: Fa0/3
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down (suspended member of bundle Po1)
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Protected: false

...

This is an example of output from the show interfaces switchport | begin VLAN command:

Switch# show interfaces switchport | begin VLAN
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Protected: false

Name: Fa0/2
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Protected: true

Name: Fa0/3
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down (suspended member of bundle Po1)
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Protected: false

...

show interfaces trunk

Use the show interfaces trunk privileged EXEC command to display interface-trunk information.

show interfaces trunk [ | {begin | exclude | include} expression]

Syntax Description

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show interfaces trunk command:

Switch# show interfaces trunk

Port      Mode         Encapsulation  Status        Native vlan
Fa0/13    on           802.1q         trunking      1
Fa0/24    on           802.1q         trunking      1
Fa0/26    on           802.1q         trunking      1
Fa0/30    on           802.1q         trunking      1
Fa0/45    on           802.1q         trunking      1

Port      Vlans allowed on trunk
Fa0/13    1-1005
Fa0/24    1-1005
Fa0/26    1-1005
Fa0/30    1-1005
Fa0/45    1-1005

Port      Vlans allowed and active in management domain
Fa0/13    1,101,120-130
Fa0/24    1,101,120-130
Fa0/26    1,101,120-130
Fa0/30    1,101,120-130
Fa0/45    1,101,120-130

Port      Vlans in spanning tree forwarding state and not pruned
Fa0/13    1,101,120-130

Port      Vlans in spanning tree forwarding state and not pruned
Fa0/24    1,101,120-130
Fa0/26    1,101,120-130
Fa0/30    1,101,120-130
Fa0/45    1,101,120-130

This is an example of output from the show interfaces trunk | include Fa0/13 command:

Switch# show interfaces trunk | include Fa0/13
Fa0/13    on           802.1q         trunking      1
Fa0/13    1-1005
Fa0/13    1,101,120-130
Fa0/13    1,101,120-130

show ip access-lists

Use the show ip access-lists privileged EXEC command to display IP access control lists (ACLs) configured on the switch.

show ip access-lists [name | number] [ | {begin | exclude | include} expression]

Syntax Description

name

(Optional) ACL name.

number

(Optional) ACL number. The range is from 1 to 199 and from 1300 to 2699.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show ip access-lists command:

Switch# show ip access-lists
Standard IP access list testingacl
    permit 10.10.10.2
Standard IP access list wizard_1-1-1-2
    permit 1.1.1.2
Extended IP access list 103
    permit tcp any any eq www
Extended IP access list CMP-NAT-ACL
    Dynamic Cluster-HSRP deny   ip any any
    Dynamic Cluster-NAT permit ip any any
      permit ip host 10.245.155.128 any
      permit ip host 10.245.137.0 any
      permit ip host 10.146.106.192 any
      permit ip host 10.216.25.128 any
      permit ip host 10.228.215.0 any
      permit ip host 10.221.111.64 any
      permit ip host 10.123.222.192 any
      permit ip host 10.169.110.128 any
      permit ip host 10.186.122.64 any

This is an example of output from the show ip access-lists 103 command:

Switch# show ip access-lists 103
Extended IP access list 103
    permit tcp any any eq www

Related Commandscal48-139.235#show ip access-list 103

Related CommandsExtended IP access list 103

Related Commands permit tcp any any eq www

Command
Description

access-list (IP standard)

Configures a standard ACL on the switch.

access-list (IP extended)

Configures an extended ACL on the switch.

ip access-list

Configures an IP ACL on the switch.

show access-lists

Displays ACLs configured on a switch.


show ip igmp snooping

Use the show ip igmp snooping privileged EXEC command to display the Internet Group Management Protocol (IGMP) snooping configuration of the switch or the VLAN.

show ip igmp snooping [ | {begin | exclude | include} expression]

show ip igmp snooping [vlan vlan-id] [ | {begin | exclude | include} expression]

Syntax Description

vlan vlan-id

(Optional) Keyword and variable to specify a VLAN; valid values are 1 to 1001.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

Use this command to display snooping characteristics for the switch or for a specific VLAN.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show ip igmp snooping command:

Switch# show ip igmp snooping 

vlan 1
----------
  IGMP snooping is globally enabled
  IGMP snooping is enabled on this Vlan
  IGMP snooping immediate-leave is enabled on this Vlan
  IGMP snooping mrouter learn mode is pim-dvmrp on this Vlan
vlan 2
----------
  IGMP snooping is globally enabled
  IGMP snooping is enabled on this Vlan
  IGMP snooping immediate-leave is enabled on this Vlan
  IGMP snooping mrouter learn mode is cgmp on this Vlan
vlan 3
----------
  IGMP snooping is globally enabled
  IGMP snooping is enabled on this Vlan
  IGMP snooping immediate-leave is disabled on this Vlan
  IGMP snooping mrouter learn mode is cgmp on this Vlan
vlan 4
----------
  IGMP snooping is globally enabled
  IGMP snooping is enabled on this Vlan
  IGMP snooping immediate-leave is disabled on this Vlan 
IGMP snooping mrouter learn mode is cgmp on this Vlan
vlan 5
----------
  IGMP snooping is globally enabled
  IGMP snooping is enabled on this Vlan
  IGMP snooping immediate-leave is disabled on this Vlan
  IGMP snooping mrouter learn mode is pim-dvmrp on this Vlan
vlan 33
----------
  IGMP snooping is globally enabled
  IGMP snooping is enabled on this Vlan
  IGMP snooping immediate-leave is disabled on this Vlan
  IGMP snooping mrouter learn mode is pim-dvmrp on this Vlan 

This is an example of output from the show ip igmp snooping vlan 1 command:

Switch# show ip igmp snooping vlan 1

vlan 1
----------
  IGMP snooping is globally enabled
  IGMP snooping is enabled on this Vlan
  IGMP snooping immediate-leave is enabled on this Vlan
  IGMP snooping mrouter learn mode is pim-dvmrp on this Vlan 

Related Commands

Command
Description

ip igmp snooping

Enables IGMP snooping.

ip igmp snooping vlan vlan-id

Enables IGMP snooping on the VLAN interface.

ip igmp snooping vlan immediate-leave

Configures IGMP Immediate-Leave processing.

ip igmp snooping vlan mrouter

Configures a Layer 2 port as a multicast router port.

show mac-address-table multicast

Displays the Layer 2 multicast entries for a VLAN.


show ip igmp snooping mrouter

Use the show ip igmp snooping mrouter privileged EXEC command to display information on dynamically learned and manually configured multicast router ports.

show ip igmp snooping mrouter [vlan vlan-id] [ | {begin | exclude | include} expression]

Syntax Description

vlan vlan-id

(Optional) Keyword and variable to specify a VLAN; valid values are 1 to 1001.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.


Usage Guidelines

You can also use the show mac-address-table multicast command to display entries in the MAC address table for a VLAN that has Internet Group Management Protocol (IGMP) snooping enabled.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show ip igmp snooping mrouter vlan 1 command:


Note In this example, Fa0/3 is a dynamically learned router port, and Fa0/2 is a configured static router port.


Switch# show ip igmp snooping mrouter vlan 1

Vlan    ports
----    -----
   1    Fa0/2(static), Fa0/3(dynamic) 

Related Commands

Command
Description

ip igmp snooping

Enables IGMP snooping.

ip igmp snooping vlan

Enables IGMP snooping on the VLAN interface.

ip igmp snooping vlan immediate-leave

Configures IGMP Immediate-Leave processing.

ip igmp snooping vlan mrouter

Configures a Layer 2 port as a multicast router port.

show mac-address-table multicast

Displays the Layer 2 multicast entries for a VLAN.



show mac access-group

Use the show mac access-group privileged EXEC command to display the MAC access control lists (ACLs) configured for an interface or a switch.

show mac access-group [interface interface-id] [ | {begin | exclude | include} expression]

Syntax Description

interface interface-id

(Optional) Display the ACLs configured on a specific interface.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use the show mac access-group command without keywords to display MAC ACLs for all interfaces.

Use this command with the interface keyword to display ACLs for a specific interface.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mac access-group command:

Switch# show mac access-group
Interface FastEthernet0/1:
   Inbound access-list is not set
Interface FastEthernet0/2:
   Inbound access-list is not set
Interface FastEthernet0/3:
   Inbound access-list is not set
Interface FastEthernet0/4:
   Inbound access-list is not set
...
Interface FastEthernet0/47:
   Inbound access-list is not set
Interface FastEthernet0/48:
   Inbound access-list is not set
Interface GigabitEthernet0/1:
   Inbound access-list is not set
Interface GigabitEthernet0/2:
   Inbound access-list is 101

This is an example of output from the show mac access-group interface gigabitethernet 0/2 command:

Switch# show mac access-group interface gigabitethernet 0/2
Interface GigabitEthernet0/2:
   Inbound access-list is 101

Related Commands

Command
Description

mac access-group

Applies a MAC ACL to an interface.


show mac-address-table

Use the show mac-address-table privileged EXEC command to display the MAC address table.

show mac-address-table [static | dynamic | aging-time | count] [address hw-addr]
[interface interface-id] [vlan vlan-id] [ | {begin | exclude | include} expression]

Syntax Description

static

(Optional) Display only the static addresses.

dynamic

(Optional) Display only the dynamic addresses.

aging-time

(Optional) Display aging-time for dynamic addresses for all VLANs.

count

(Optional) Display a count for different kinds of MAC addresses.

address hw-addr

(Optional) Display information for a specific address.

interface interface-id

(Optional) Display addresses for a specific interface.

vlan vlan-id

(Optional) Display addresses for a specific VLAN. Valid IDs are from
1 to 1001; do not enter leading zeroes.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The show mac-address table secure command is replaced by the show port-security command. The self keyword are not supported in this release or later.


Usage Guidelines

This command displays the MAC address table for the switch. Specific views can be defined by using the optional keywords and values. If more than one optional keyword is used, all of the conditions must be true in order for that entry to appear.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mac-address-table command:

Switch# show mac-address-table

Dynamic Addresses Count:               9
Secure Addresses (User-defined) Count: 0
Static Addresses (User-defined) Count: 0
System Self Addresses Count:           41
Total MAC addresses:                   50
Non-static Address Table:
Destination Address  Address Type  VLAN  Destination Port
-------------------  ------------  ----  --------------------
0010.0de0.e289       Dynamic          1  FastEthernet0/1
0010.7b00.1540       Dynamic          2  FastEthernet0/5
0010.7b00.1545       Dynamic          2  FastEthernet0/5
0060.5cf4.0076       Dynamic          1  FastEthernet0/1
0060.5cf4.0077       Dynamic          1  FastEthernet0/1
0060.5cf4.1315       Dynamic          1  FastEthernet0/1
0060.70cb.f301       Dynamic          1  FastEthernet0/1
00e0.1e42.9978       Dynamic          1  FastEthernet0/1
00e0.1e9f.3900       Dynamic          1  FastEthernet0/1

This is an example of output from the show mac-address-table static interface fastethernet0/2 vlan 1 command:

Switch# show mac-address-table static interface fastethernet0/2 vlan 1
vlan   mac address     type     ports   
-----+---------------+--------+---------
   1  abcd.2345.0099  static    Fa0/2
   1  abcd.0070.0070  static    Fa0/2
   1  abcd.2345.0099  static    Fa0/2
   1  abcd.2345.0099  static    Fa0/2
   1  00d0.d333.7f34  static    Fa0/2
   1  abcd.2345.0099  static    Fa0/2
   1  0005.6667.0007  static    Fa0/2

This is an example of output from the show mac-address-table count vlan 1 command:

Switch# show mac-address-table count vlan 1
MAC Entries for Vlan 1 :
Dynamic Address Count: 1
Static Address (User-defined) Count: 41
Total MAC Addresses In Use:42
Remaining MAC addresses: 8150

This is an example of output from the show mac-address-table aging-time command:

Switch# show mac-address-table aging-time
Vlan Aging Time
---- ----------
1    450
2    300
3    600
300  450
301  450

This is an example of output from the show mac-address-table aging-time vlan 1 command:

Switch# show mac-address-table aging-time vlan 1
Vlan Aging Time
---- ----------
1    450

Related Commands

Command
Description

clear mac-address-table dynamic

Deletes dynamic addresses from the MAC address table.


show mac-address-table multicast

Use the show mac-address-table multicast privileged EXEC command to display the Layer 2 multicast entries for the switch or for the VLAN.

show mac-address-table multicast [vlan vlan-id] [user | igmp-snooping] [count] [ | {begin | exclude | include} expression]

Syntax Description

vlan vlan-id

(Optional) Specify a VLAN; valid values are 1 to 1005.

user

(Optional) Display only the user-configured multicast entries.

igmp-snooping

(Optional) Display only entries learned through Internet Group Management Protocol (IGMP) snooping.

count

(Optional) Display total number of entries for the specified criteria instead of the actual entries.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Defaults

This command has no default setting.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The valid VLAN values were changed.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mac-address-table multicast vlan 1 command:

Switch# show mac-address-table multicast vlan 1

Vlan    Mac Address     Type    Ports
----    -----------     ----    -----
   1    0100.5e00.0128  IGMP    Fa0/11
   1    0100.5e01.1111  USER    Fa0/5, Fa0/6, Fa0/7, Fa0/11

This is an example of output from the show mac-address-table multicast count command:

Switch# show mac-address-table multicast count
Multicast Mac Entries for all vlans: 10

This is an example of output from the show mac-address-table multicast vlan 1 count command:

Switch# show mac-address-table multicast vlan 1 count
Multicast Mac Entries for vlan 1: 2

This is an example of output from the show mac-address-table multicast vlan 1 user command:

Switch# show mac-address-table multicast vlan 1 user
vlan   mac address      type        ports
-----+----------------+-------+---------------------
1     0100.5e02.0203    user     Fa0/1,Fa0/2,Fa0/4

This is an example of output from the show mac-address-table multicast vlan 1 igmp-snooping count command:

Switch# show mac-address-table multicast vlan 1 igmp-snooping count
Number of igmp-snooping programmed entries : 1

show mac-address-table notification

Use the show mac-address-table notification privileged EXEC command to display parameters for the MAC notification feature.

show mac-address-table notification [interface interface-id] [ | {begin | exclude | include} expression]

Syntax Description

interface interface-id

(Optional) Specify an interface.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Defaults

This command has no default setting.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use the show mac-address-table notification command without keywords to display parameters for all interfaces.

Use this command with the interface keyword to display parameters for a specific interface.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mac-address-table notification command:

Switch# show mac-address-table notification
MAC Notification Feature is Disabled on the switch

Related Commands

Command
Description

mac-address-table notification

Enables the MAC notification feature.

snmp trap mac-notification

Enables MAC-notification traps on a port.


show mls masks

Use the show mls masks privileged EXEC command to display the details of the Access Control Parameters (ACPs) used for quality of service (QoS) and security access control lists (ACLs).

show mls masks [qos | security] [ | {begin | exclude | include} expression]

Syntax Description

qos

(Optional) Display ACPs used for QoS ACLs.

security

(Optional) Display ACPs used for security ACLs.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.



Note ACPs are called masks in the command-line interface (CLI) commands and output.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use the show mls mask command without keywords to display all ACPs configured on the switch.

Use this command with the qos keyword to display the ACPs used for QoS ACLs.

Use this command with the security keyword to display the ACPs used for security ACLs.


Note You can configure up to four ACPs (QoS and security) on a switch.


Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mls masks command:

Switch# show mls masks

Mask1
        Type : qos
        Fields : ip-sa(0.0.0.255), ip-da(host), dest-port
        Policymap: pmap1
            Interfaces: Fa0/9, Gi0/1
        Policymap: pmap2
            Interfaces: Fa0/1, Fa0/5, Fa0/13
Mask2
        Type : security
        Fields : mac-sa (host), ethertype
        Access-group: 3
            Interfaces: Fa0/2, Fa0/6
        Access-group: macag1
            Interfaces: Fa0/16

In this example, Mask 1 is a QoS ACP consisting an IP source address (with wildcard bits 0.0.0.255), an IP destination address, and Layer 4 destination port fields. This ACP is used by the QoS policy maps pmap1 and pmap2.

Mask 2 is a security ACP consisting of a MAC source address and ethertype fields. This ACP is used by the MAC security access groups 3 and macag1.

Related Commands

Command
Description

ip access-group

Applies an IP ACL to an interface.

mac access-group

Applies a named extended MAC ACL to an interface.

policy-map

Creates or modifies a policy map that can be attached to multiple interfaces and enters policy-map configuration mode.


show mls qos interface

Use the show mls qos interface privileged EXEC command to display quality of service (QoS) information at the interface level.

show mls qos interface [interface-id] [policers] [ | {begin | exclude | include} expression]

Syntax Description

interface-id

(Optional) Display QoS information for the specified interface.

policers

(Optional) Display all the policers configured on the interface, their settings, and the number of policers unassigned.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.



Note Though visible in the command-line help strings, the vlan vlan-id option is not supported.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use the show mls qos interface command without keywords to display parameters for all interfaces.

Use the show mls qos interface interface-id command to display the parameters for a specific interface.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mls qos interface fastethernet0/1 command:

Switch# show mls qos interface fastethernet0/1
FastEthernet0/1
trust state: trust cos
COS override: dis
default COS: 0

Related Commands

Command
Description

mls qos cos

Defines the default class of service (CoS) value of a port or assigns the default CoS to all incoming packets on the port.

mls qos map

Defines the class of service (CoS)-to-Differentiated Services Code Point (DSCP) map and DSCP-to-CoS map.

mls qos trust

Configures the port trust state. Ingress traffic can be trusted and classification is performed by examining the CoS or DSCP value.


show mls qos maps

Use the show mls qos maps privileged EXEC command to display quality of service (QoS) mapping information. Maps are used to generate an internal Differentiated Services Code Point (DSCP) value, which represents the priority of the traffic.

show mls qos maps [cos-dscp | dscp-cos] [ | {begin | exclude | include} expression]

Syntax Description

cos-dscp

(Optional) Display class of service (CoS)-to-DSCP map.

dscp-cos

(Optional) Display DSCP-to-CoS map.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use the show mls qos maps command without keywords to display all maps.

Use this command with the cos-dscp keyword to display the CoS-to-DSCP map.

Use this command with the dscp-cos keyword to display the DSCP-to-CoS map.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mls qos maps cos-dscp command:

Switch# show mls qos maps cos-dscp

Cos-dscp map:
        cos:  0  1  2  3  4  5  6  7
     --------------------------------
       dscp:  8  8  8  8 24 32 56 56

This is an example of output from the show mls qos maps dscp-cos command:

Switch# show mls qos maps dscp-cos

Dscp-cos map:
       dscp:  0  8 10 16 18 24 26 32 34 40 46 48 56
     -----------------------------------------------
        cos:  0  1  1  1  2  2  3  3  4  4  5  6  7

This is an example of output from the show mls qos maps command:

Switch# show mls qos maps

Dscp-cos map:
       dscp:  0  8 10 16 18 24 26 32 34 40 46 48 56
     -----------------------------------------------
        cos:  0  1  1  2  2  3  7  4  4  5  5  7  7

   Cos-dscp map:
        cos:  0  1  2  3  4  5  6  7
     --------------------------------
       dscp:  0  8 16 24 32 40 48 56

Related Commands

Command
Description

mls qos map

Defines the CoS-to-DSCP map and DSCP-to-CoS map.


show monitor

Use the show monitor privileged EXEC command to display Switch Port Analyzer (SPAN) session information.

show monitor [session session-number] [ | {begin | exclude | include} expression]

Syntax Description

session session-number

(Optional) Specify the number of the session; only valid value is 1.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Defaults

This command has no default setting.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced. It replaced the show port monitor command.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show monitor command:

Switch# show monitor
Session 1
---------
Source Ports:
    RX Only:       None
    TX Only:       None
    Both:          None
Destination Ports: None

Related Commands

Command
Description

monitor session

Enables SPAN monitoring on a port and configures a port as a source or destination port.


show mvr

Use the show mvr privileged EXEC command without keywords to display the Multicast VLAN Registration (MVR) global parameter values, including whether or not MVR is enabled, the MVR multicast VLAN, the maximum query response time, the number of multicast groups, and the MVR mode (dynamic or compatible).

show mvr [ | {begin | exclude | include} expression]

Syntax Description

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mvr command:

Switch# show mvr
MVR Running: TRUE
MVR multicast vlan: 1
MVR Max Multicast Groups: 256
MVR Current multicast groups: 256
MVR Global query response time: 5 (tenths of sec)
MVR Mode: compatible 

In the previous example, the maximum number of multicast groups is 256. The MVR mode is either compatible (for interoperability with Catalyst 2900 XL and Catalyst 3500 XL switches) or dynamic (where operation is consistent with Internet Group Management Protocol [IGMP] snooping operation, and dynamic MVR membership on source ports is supported).

Related Commands

Command
Description

show mvr interface

Displays the configured MVR interfaces, status of the specified interface, or all multicast groups to which the interface belongs.

show mvr members

Displays all ports that are members of an MVR multicast group.

mvr

Enables and configures multicast VLAN registration on the switch.

mvr type

Configures an MVR port as a receiver or a source port.


show mvr interface

Use the show mvr interface privileged EXEC command without keywords to display the Multicast VLAN Registration (MVR) receiver and source ports. Use the command with keywords to display MVR parameters for a specific receiver port.

show mvr interface [interface-id [members [vlan vlan-id]] [ | {begin | exclude | include} expression]

Syntax Description

interface-id

(Optional) Display MVR type, status, and Immediate-Leave setting for the interface.

members

(Optional) Display all MVR groups to which the specified interface belongs.

vlan vlan-id

(Optional) Display the VLAN to which the receiver port belongs.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

If the entered port identification is a non-MVR port or a source port, the command returns an error message. For receiver ports, it displays the port type, per port status, and Immediate-Leave setting.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mvr interface command:

Switch# show mvr interface
Port    Type            Status          Immediate Leave
----    ----            -------         ---------------
Gi0/1   SOURCE          ACTIVE/UP       DISABLED
Gi0/2   RECEIVER        ACTIVE/DOWN     DISABLED
Gi0/5   RECEIVER        ACTIVE/UP       ENABLED 

In the previous example, Status is defined as:

Active means the port is part of a VLAN.

Up/Down means that the port is forwarding/nonforwarding.

Inactive means that the port is not part of any VLAN.

This is an example of output from the show mvr interface gigabitethernet0/2 command:

Switch# show mvr interface gigabitethernet0/2
Type: RECEIVER Status: ACTIVE Immediate Leave: DISABLED 

This is an example of output from the show mvr interface gigabitethernet0/6 member command:

Switch# show mvr interface gigabitethernet0/6 member
239.255.0.0     DYNAMIC ACTIVE
239.255.0.1     DYNAMIC ACTIVE
239.255.0.2     DYNAMIC ACTIVE
239.255.0.3     DYNAMIC ACTIVE
239.255.0.4     DYNAMIC ACTIVE
239.255.0.5     DYNAMIC ACTIVE
239.255.0.6     DYNAMIC ACTIVE
239.255.0.7     DYNAMIC ACTIVE
239.255.0.8     DYNAMIC ACTIVE
239.255.0.9     DYNAMIC ACTIVE

Related Commands

Command
Description

show mvr

Displays the global MVR configuration on the switch.

show mvr members

Displays all receiver ports that are members of an MVR multicast group.

mvr

Enables and configures multicast VLAN registration on the switch.

mvr type

Configures an MVR port as a receiver or a source port.


show mvr members

Use the show mvr members privileged EXEC command to display all receiver ports that are members of an IP multicast group.

show mvr members [ip-address] [ | {begin | exclude | include} expression]

Syntax Description

ip-address

(Optional) The IP multicast address. If the address is entered, all receiver ports that are members of the multicast group appear. If no address is entered, all members of all Multicast VLAN Registration (MVR) groups are listed. If a group has no members, the group is listed as Inactive.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

The show mvr members command only applies to receiver ports. All source ports are members of all multicast groups.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show mvr members command:

Switch# show mvr members
MVR Group IP    Status          Members
------------    ------          -------
239.255.0.1     ACTIVE          Gi0/1(d), Gi0/2(s)
239.255.0.2     INACTIVE        None
239.255.0.3     INACTIVE        None
239.255.0.4     INACTIVE        None
239.255.0.5     INACTIVE        None
239.255.0.6     INACTIVE        None
239.255.0.7     INACTIVE        None
239.255.0.8     INACTIVE        None
239.255.0.9     INACTIVE        None
239.255.0.10    INACTIVE        None

<output truncated>

239.255.0.255   INACTIVE        None
239.255.1.0     INACTIVE        None 

This is an example of output from the show mvr members 239.255.0.2 command. It shows how to view the members of the IP multicast group 239.255.0.2.

Switch# show mvr member 239.255.0.2
239.255.0.2     ACTIVE          Gi0/1(d), Gi0/2(d)

Related Commands

Command
Description

show mvr

Displays the global MVR configuration on the switch.

show mvr interface

Displays the configured MVR interfaces, status of the specified interface, or all multicast groups to which the interface belongs.

mvr

Enables and configures multicast VLAN registration on the switch.

mvr type

Configures an MVR port as a receiver or a source port.


show pagp

Use the show pagp privileged EXEC command to display Port Aggregation Protocol (PAgP) channel-group information.

show pagp [channel-group-number] {counters | internal | neighbor} [ | {begin | exclude | include} expression]

Syntax Description

channel-group-number

(Optional) Number of the channel group. Valid numbers range from 1 to 6.

counters

Display traffic information.

internal

Display internal information.

neighbor

Display neighbor information.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

You can enter any show pagp command to display the active port channel information. To display the nonactive information, enter the show pagp command with a group number.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show pagp 1 counters command:

Switch# show pagp 1 counters
           Information        Flush
Port       Sent   Recv     Sent   Recv
--------------------------------------
Channel group: 1
  Gi0/1    45     42       0      0 
  Gi0/2    45     41       0      0 

This is an example of output from the show pagp 1 internal command:

Switch# show pagp 1 internal
Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.
        A - Device is in Auto mode.
Timers: H - Hello timer is running.        Q - Quit timer is running.
        S - Switching timer is running.    I - Interface timer is running.

Channel group 1
                                Hello    Partner  PAgP     Learning  Group
Port      Flags State   Timers  Interval Count   Priority   Method  Ifindex
Gi0/1     SC    U6/S7   H       30s      1        128        Any      16
Gi0/2     SC    U6/S7   H       30s      1        128        Any      16

This is an example of output from the show pagp 1 neighbor command:

Switch# show pagp 1 neighbor
Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.
        A - Device is in Auto mode.        P - Device learns on physical port.

Channel group 1 neighbors
          Partner              Partner          Partner         Partner Group
Port      Name                 Device ID        Port       Age  Flags   Cap.
Gi0/1     device-p2            0002.4b29.4600   Gi0/1        9s SC      10001 
Gi0/2     device-p2            0002.4b29.4600   Gi0/2       24s SC      10001 

Related Commands

Command
Description

pagp learn-method

Sets the source-address learning method of incoming packets received from an EtherChannel port.

clear pagp

Clears PAgP channel-group information.


show policy-map

Use the show policy-map privileged EXEC command to display quality of service (QoS) policy maps, which define classification criteria for incoming traffic. Policy maps can include policers that specify the bandwidth limitations and the action to take if the limits are exceeded.

show policy-map [policy-map-name [class class-name]] [ | {begin | exclude | include} expression]

Syntax Description

policy-map-name

(Optional) Display the specified policy-map name.

class class-name

(Optional) Display QoS policy actions for a individual class.

| begin

(Optional) Display begins with the line that matches the expression.

| exclude

(Optional) Display excludes lines that match the expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced.


Usage Guidelines

Use the show policy-map command without keywords to display all policy maps configured on the switch.


Note In a policy map, the class named class-default is not supported. The switch does not filter traffic based on the policy map defined by the class class-default policy-map configuration command.


Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show policy-map command:

Switch# show policy-map
 Policy Map bumbum
    Description: this is a description.

 Policy Map wizard_policy3
  class wizard_1-1-1-2
   set ip dscp 34

 Policy Map test

 Policy Map policytest
  class  classtest
   set ip dscp 20
   police 10000000 8192 exceed-action drop

This is an example of output from the show policy-map policytest command:

Switch# show policy-map policytest
 Policy Map policytest
  class  classtest
   set ip dscp 20
   police 10000000 8192 exceed-action drop

This is an example of output from the show policy-map policytest class classtest command:

Switch# show policy-map policytest class classtest
   set ip dscp 20
   police 10000000 8192 exceed-action drop

Related Commands

Command
Description

policy-map

Creates or modifies a policy map that can be attached to multiple interfaces to specify a service policy.


show port-security

Use the show port-security privileged EXEC command to display the port security settings defined for an interface or for the switch.

show port-security [interface interface-id] [address] [ | {begin | exclude | include} expression]

Syntax Description

interface interface-id

(Optional) Display the port security settings for the specified interface.

address

(Optional) Display all the secure addresses on all ports.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.1(6)EA2

This command was first introduced. It replaced the show port security and show mac-address-table secure commands.


Usage Guidelines

If you enter this command without keywords, the output includes the administrative and the operational status of all secure ports on the switch.

If you enter an interface-id, the show port-security command displays port security settings for the interface.

If you enter the address keyword, the show port-security address command displays the secure MAC addresses for all interfaces on which port security is enabled.

If you enter an interface-id and the address keyword, the show port-security interface interface-id address command displays all the MAC addresses for the interface. You can also use this command to display all the MAC addresses for an interface even if you have not enabled port security on it.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

Examples

This is an example of output from the show port-security command:

Switch# show port-security
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
              (Count)       (Count)        (Count)
-----------------------------------------------------------------------------------------
Fa0/8          132            0                    0              Shutdown
Fa0/9          132            5                    0              Shutdown
Fa0/10         132            0                    0              Shutdown

This is an example of output from the show port-security interface fastethernet0/2 command:

Switch# show port-security interface fastethernet0/2
Security Enabled:No, Port Status:ShutDown
Violation Mode:Shutdown
Max. Addrs:132, Current Addrs:3, Configure Addrs:3

This is an example of output from the show port-security address command:

Switch# show port-security address

Secure Mac Address Table
------------------------------------------------------------

Vlan    Mac Address      Type              Ports
----- ---------------- ------------------ -------
   1    0001.0002.0003   SecureConfigured  Fa0/9 
   1    0002.0002.0002   SecureConfigured  Fa0/9 
   1    0003.0003.0003   SecureConfigured  Fa0/9 
   1    0004.0005.0006   SecureConfigured  Fa0/9 

This is an example of output from the show port-security interface fastethernet0/5 address command:

Switch# show port-security interface fastethernet0/5 address

          Secure Mac Address Table
------------------------------------------------------------

Vlan    Mac Address       Type                Ports
----    -----------       ----                -----
   1    0005.0005.0005    Secureconfigured     Fa0/5
   1    0005.0005.0006    Secureconfigured     Fa0/5
-----------------------------------------------------
Total Addresses:2

Related Commands

Command
Description

switchport port-security

Enables port security on a port, restricts the use of the port to a user-defined group of stations and configures secure MAC addresses.


show proposed

Use the show proposed VLAN configuration command to display the proposed VLAN configuration or a selected VLAN from it.

show proposed [vlan-id]

Syntax Description

vlan-id

(Optional) ID of the VLAN in the proposed configuration. If this variable is omitted, the entire VLAN configuration appears, included the pruning state and Version 2 mode. Valid IDs are from 1 to 1005; do not enter leading zeroes.


Command Modes

VLAN configuration

Command History

Release
Modification

12.0(5.2)WC(1)

This command was first introduced.

12.1(6)EA2

The valid VLAN ID range was changed.The command mode was changed from VLAN database to VLAN configuration.


Usage Guidelines

If the variable vlan-id is omitted, the show proposed command displays the entire proposed VLAN configuration.

The proposed VLAN configuratio