Table Of Contents
Cisco IOS Commands for the Catalyst 4500 Series Switches
access-group mode
action
apply
arp access-list
attach module
auto qos voip
auto-sync
channel-group
channel-protocol
class-map
clear counters
clear interface gigabitethernet
clear interface vlan
clear ip access-template
clear ip arp inspection log
clear ip arp inspection statistics
clear ip dhcp snooping database
clear ip dhcp snooping database statistics
clear ip igmp group
clear ip mfib counters
clear ip mfib fastdrop
clear lacp counters
clear mac-address-table dynamic
clear pagp
clear qos
clear vlan counters
clear vmps statistics
debug adjacency
debug backup
debug condition interface
debug condition standby
debug condition vlan
debug dot1x
debug etherchnl
debug interface
debug ipc
debug ip dhcp snooping event
debug ip dhcp snooping packet
debug ip verify source packet
debug lacp
debug monitor
debug nvram
debug pagp
debug platform packet protocol lacp
debug platform packet protocol pagp
debug pm
debug psecure
debug redundancy
debug smf updates
debug spanning-tree
debug spanning-tree backbonefast
debug spanning-tree switch
debug spanning-tree uplinkfast
debug sw-vlan
debug sw-vlan ifs
debug sw-vlan notification
debug sw-vlan vtp
debug udld
debug vqpc
define interface-range
deny
dot1x guest-vlan
dot1x initialize
dot1x max-reauth-req
dot1x max-req
dot1x multiple-hosts
dot1x port-control
dot1x re-authenticate
dot1x re-authentication
dot1x system-auth-control
dot1x timeout
duplex
errdisable detect
errdisable recovery
flowcontrol
hw-module reset
instance
interface port-channel
interface range
interface vlan
ip arp inspection filter vlan
ip arp inspection limit (interface)
ip arp inspection log-buffer
ip arp inspection trust
ip arp inspection validate
ip arp inspection vlan
ip arp inspection vlan logging
ip cef load-sharing algorithm
ip dhcp snooping
ip dhcp snooping binding
ip dhcp snooping database
ip dhcp snooping information option
ip dhcp snooping limit rate
ip dhcp snooping trust
ip dhcp snooping vlan
ip igmp filter
ip igmp max-groups
ip igmp profile
ip igmp query-interval
ip igmp snooping
ip igmp snooping report-suppression
ip igmp snooping vlan
ip igmp snooping vlan immediate-leave
ip igmp snooping vlan mrouter
ip igmp snooping vlan static
ip local-proxy-arp
ip mfib fastdrop
ip route-cache flow
ip source binding
ip sticky-arp
ip verify source vlan dhcp-snooping
lacp port-priority
lacp system-priority
mac access-list extended
mac-address-table aging-time
mac-address-table static
main-cpu
match
monitor session
mtu
name
pagp learn-method
pagp port-priority
permit
policy-map
port-channel load-balance
power
power inline
power inline allocation default
power redundancy-mode
power supplies required
private-vlan
private-vlan mapping
private-vlan synchronize
qos (global configuration mode)
qos (interface configuration mode)
qos account layer2 encapsulation
qos aggregate-policer
qos cos
qos dbl
qos dscp
qos map cos
qos map dscp
qos map dscp policed
qos trust
qos vlan-based
redundancy
redundancy force-switchover
redundancy reload
remote login module
renew ip dhcp snooping database
reset
revision
service-policy
session module
Cisco IOS Commands for the Catalyst 4500 Series Switches
This chapter contains an alphabetical listing of Cisco IOS commands for the Catalyst 4500 series switches. For information about Cisco IOS commands that are not included in this publication, refer to Cisco IOS Release 12.1 Configuration Guides and Command References at this URL:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_product_indices_list.html
access-group mode
To specify override modes (for example, VACL overrides PACL) and non-override modes (for example, merge or strict mode), use the access-group mode command. Use the no form of this command to return to prefer port mode.
access-group mode {prefer {port | vlan} | merge}
no access-group mode {prefer {port | vlan} | merge}
Syntax Description
prefer port
|
Specifies that PACL mode takes precedence provided there are PACLs configured. If there is no PACL features configured on the port, other features applicable to the interface are merged and applied on the interface.
|
prefer vlan
|
Specifies that VLAN-based ACL mode takes precedence. If there are no VLAN-based ACL features configured on the port's VLAN, the PACL features on the port are applied.
|
merge
|
Merges applicable ACL features before they are programmed into the hardware.
|
Defaults
PACL override mode
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
On the Layer 2 interface, three modes that are supported: prefer port, prefer VLAN, and merge. A Layer 2 interface can have one IP ACL applied in either direction (one inbound and one outbound).
Examples
This example shows how to make the PACL mode on the switch take effect:
(config-if)# access-group mode prefer port
This example shows how to merge applicable ACL features:
(config-if)# access-group mode merge
Related Commands
show access-group mode interface
show ip interface (refer to Cisco IOS documentation)
show mac access-group interface
action
To specify an action to be taken when a match occurs in a VACL, use the action command. To remove an action clause, use the no form of this command.
action {drop | forward}
no action {drop | forward}
Syntax Description
drop
|
Sets the action to drop packets.
|
forward
|
Sets the action to forward packets to their destination.
|
Defaults
This command has no default settings.
Command Modes
VLAN access-map
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
In a VLAN access map, if at least one ACL is configured for a packet type (IP or MAC), the default action for the packet type is drop (deny).
If an ACL is not configured for a packet type, the default action for the packet type is forward (permit).
If an ACL for a packet type is configured and the ACL is empty or undefined, the configured action will be applied to the packet type.
Examples
This example shows how to define a drop action:
Switch(config-access-map)# action drop
Switch(config-access-map)#
This example shows how to define a forward action:
Switch(config-access-map)# action forward
Switch(config-access-map)#
Related Commands
match
show vlan access-map
vlan access-map
apply
To implement a new VLAN database, increment the configuration number, save the configuration number in NVRAM, and propagate the configuration number throughout the administrative domain, use the apply command.
apply
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
VLAN configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The apply command implements the configuration changes you made after you entered VLAN database mode and uses them for the running configuration. This command keeps you in VLAN database mode.
You cannot use this command when the switch is in the VTP client mode.
You can verify that VLAN database changes occurred by entering the show vlan command from privileged EXEC mode.
Examples
This example shows how to implement the proposed new VLAN database and to recognize it as the current database:
Switch(config-vlan)# apply
Related Commands
abort (refer to Cisco IOS documentation)
exit (refer to Cisco IOS documentation)
reset
show vlan
shutdown vlan (refer to Cisco IOS documentation)
vtp (global configuration mode)
arp access-list
To define an ARP access list or add clauses at the end of a predefined list, use the arp access-list command.
arp access-list name
Syntax Description
name
|
Specifies the access control list name.
|
Defaults
None
Command Modes
Configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
The following example shows how to define an ARP access list named static-hosts:
Switch(config)# arp access-list static-hosts
Related Commands
deny
ip arp inspection filter vlan
permit
attach module
To remotely connect to a specific module, use the attach module configuration command.
attach module mod
Syntax Description
mod
|
Target module for the command.
|
Defaults
This command has no default settings.
Command Modes
Privileged
Command History
Release
|
Modification
|
12.1(19)EW
|
This command was first introduced.
|
Usage Guidelines
This command applies only to the Access Gateway Module on Catalyst 4500 series switches.
The valid values for mod depends on the chassis used. For example, if you have a Catalyst 4006 chassis, valid values for the module are from 2 to 6. If you have a 4507R chassis, valid values are from 3 to 7.
When you execute the attach module mod command, the prompt changes to Gateway#.
This command is identical to the session module mod and the remote login module mod commands.
Examples
This example shows how to remotely log in to an Access Gateway Module:
Attaching console to module 5
Type 'exit' at the remote prompt to end the session
Related CommandsYou can verify your settings by entering the show storm-control privileged EX
remote login module
session module
auto qos voip
To automatically configure quality of service (auto-QoS) for voice over IP (VoIP) within a QoS domain, use the auto qos voip interface configuration command. Use the no form of this command to change the auto-QoS configuration settings to the standard QoS defaults.
auto qos voip {cisco-phone | trust}
no auto qos voip {cisco-phone | trust}
Syntax Description
cisco-phone
|
Connects the interface to a Cisco IP phone and automatically configures QoS for VoIP. The CoS labels of incoming packets are trusted only when the telephone is detected.
|
trust
|
Connects the interface to a trusted switch or router and automatically configures QoS for VoIP. The CoS and DSCP labels of incoming packets are trusted.
|
Defaults
Auto-QoS is disabled on all interfaces.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Use this command to configure the QoS appropriate for VoIP traffic within the QoS domain. The QoS domain includes the switch, the interior of the network, and the edge devices that can classify incoming traffic for QoS.
Use the cisco-phone keyword on ports at the edge of the network that are connected to Cisco IP phones. The switch detects the telephone through the Cisco Discovery Protocol (CDP) and trusts the CoS labels in packets received from the telephone.
Use the trust keyword on ports connected to the interior of the network. Because it is assumed that traffic has already been classified by other edge devices, the CoS/DSCP labels in these packets are trusted.
When you enable the auto-QoS feature on the specified interface, these actions automatically occur:
•
QoS is globally enabled (qos global configuration command).
•
DBL is enabled globally (qos dbl global configuration command).
•
When you enter the auto qos voip cisco-phone interface configuration command, the trusted boundary feature is enabled. It uses the Cisco Discovery Protocol (CDP) to detect the presence or absence of a Cisco IP phone. When a Cisco IP phone is detected, the ingress classification on the specific interface is set to trust the CoS label received in the packet because some old phones do not mark DSCP. When a Cisco IP phone is absent, the ingress classification is set to not trust the CoS label in the packet.
•
When you enter the auto qos voip trust interface configuration command, the ingress classification on the specified interface is set to trust the CoS label received in the packet if the specified interface is configured as Layer 2 (and is set to trust DSCP if the interface is configured as Layer 3).
You can enable auto-QoS on static, dynamic-access, voice VLAN access, and trunk ports.
To display the QoS configuration that is automatically generated when auto-QoS is enabled, enable debugging before you enable auto-QoS. Use the debug auto qos privileged EXEC command to enable auto-QoS debugging.
To disable auto-QoS on an interface, use the no auto qos voip interface configuration command. When you enter this command, the switch enables standard QoS and changes the auto-QoS settings to the standard QoS default settings for that interface. This action will not change any global configuration performed by auto-QoS; the global configuration remains the same.
Examples
This example shows how to enable auto-QoS and to trust the CoS and DSCP labels received in incoming packets when the switch or router connected to Gigabit Ethernet interface 1/1 is a trusted device:
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# auto qos voip trust
This example shows how to enable auto-QoS and to trust the CoS labels received in incoming packets when the device connected to Fast Ethernet interface 2/1 is detected as a Cisco IP phone:
Switch(config)# interface fastethernet2/1
Switch(config-if)# auto qos voip cisco-phone
This example shows how to display the QoS configuration that is automatically generated when auto-QoS is enabled:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# auto qos voip trust
00:00:57:qos map cos 3 to dscp 26
00:00:57:qos map cos 5 to dscp 46
00:00:58:qos map dscp 32 to tx-queue 1
00:01:00:policy-map autoqos-voip-policy
00:01:00: class class-default
00:01:00:interface GigabitEthernet1/1
00:01:00: shape percent 33
00:01:00: service-policy output autoqos-voip-policy
Switchconfig-if)# interface gigabitethernet1/1
Switch(config-if)# auto qos voip cisco-phone
00:00:56:qos map cos 3 to dscp 26
00:00:57:qos map cos 5 to dscp 46
00:00:58:qos map dscp 32 to tx-queue 1
00:00:59:policy-map autoqos-voip-policy
00:00:59: class class-default
00:00:59:interface GigabitEthernet1/1
00:00:59: qos trust device cisco-phone
00:00:59: shape percent 33
00:00:59: bandwidth percent 33
00:00:59: service-policy output autoqos-voip-policy
You can verify your settings by entering the show auto qos interface command.
Related Commands
debug auto qos (refer to Cisco IOS documentation)
qos map cos
qos trust
show auto qos
show qos
show qos interface
show qos maps
auto-sync
To enable automatic synchronization of the configuration files in NVRAM, use the auto-sync command. To disable automatic synchronization, use the no form of this command.
auto-sync {startup-config | config-register | bootvar | standard}
no auto-sync {startup-config | config-register | bootvar | standard}
Syntax Description
startup-config
|
Specifies automatic synchronization of the startup configuration.
|
config-register
|
Specifies automatic synchronization of the configuration register configuration.
|
bootvar
|
Specifies automatic synchronization of the BOOTVAR configuration.
|
standard
|
Specifies automatic synchronization of the startup configuration, BOOTVAR, and configuration registers.
|
Defaults
Standard automatic synchronization of all configuration files
Command Modes
Redundancy main-cpu
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch (Catalyst 4507R only).
|
Usage Guidelines
If you enter the no auto-sync standard command, no automatic synchronizations occur.
Examples
This example shows how (from the default configuration) to enable automatic synchronization of the configuration register in the main CPU:
Switch# configure terminal
Switch (config)# redundancy
Switch (config-r)# main-cpu
Switch (config-r-mc)# no auto-sync standard
Switch (config-r-mc)# auto-sync configure-register
Related Commands
redundancy
channel-group
To assign and configure an EtherChannel interface to an EtherChannel group, use the channel-group command. To remove a channel group configuration from an interface, use the no form of this command.
channel-group number mode {active | on | auto [non-silent]} | {passive | desirable [non-silent]}
no channel-group
Syntax Description
number
|
Specifies the channel group number; valid values are from 1 to 64.
|
mode
|
Specifies the EtherChannel mode of the interface.
|
on
|
Forces the port to channel without PAgP.
|
active
|
Enables LACP unconditionally.
|
auto
|
Places a port into a passive negotiating state, in which the port responds to PAgP packets it receives but does not initiate PAgP packet negotiation.
|
non-silent
|
(Optional) Used with the auto or desirable mode when traffic is expected from the other device.
|
passive
|
Enables LACP only if an LACP device is detected.
|
desirable
|
Places a port into an active negotiating state, in which the port initiates negotiations with other ports by sending PAgP packets.
|
Defaults
No channel-groups are assigned.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(13)EW
|
Support for LACP was added.
|
Usage Guidelines
You do not have to create a port channel interface before assigning a physical interface to a channel group. If a port channel interface has not been created, it is automatically created when the first physical interface for the channel group is created.
If a specific channel number is used for the PAgP-enabled interfaces of a channel group, that same channel number cannot be used for configuring a channel that has LACP-enabled interfaces or vice versa.
You can also create port channels by entering the interface port-channel command. This will create a Layer 3 port channel. To change the Layer 3 port channel into a Layer 2 port channel, use the switchport command before you assign physical interfaces to the channel group. A port channel cannot be changed from Layer 3 to Layer 2 or vice versa when it contains member ports.
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 recommend that you do so.
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).
You can create a usable EtherChannel by connecting two port groups, in on mode, together.
Caution 
Do not enable Layer 3 addresses on the physical EtherChannel interfaces. Do not assign bridge groups on the physical EtherChannel interfaces because it creates loops.
Examples
This example shows how to add Gigabit Ethernet interface 1/1 to the EtherChannel group specified by port channel 45:
Switch(config-if)# channel-group 45 mode on
Creating a port-channel interface Port-channel45
Related Commands
interface port-channel
show interfaces port-channel (refer to Cisco IOS documentation)
channel-protocol
To enable LACP or PAgP on an interface, use the channel-protocol command. To disable the protocols, use the no form of this command.
channel-protocol {lacp | pagp}
no channel-protocol {lacp | pagp}
Syntax Description
lacp
|
Enables LACP to manage channeling.
|
pagp
|
Enables PAgP to manage channeling.
|
Defaults
PAgP
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(13)EW
|
Support for this command was introduced on the Catalyst 4500 series switches.
|
Usage Guidelines
This command is not supported on systems configured with a Supervisor Engine 1.
You can also select the protocol using the channel-group command.
If the interface belongs to a channel, the no form of this command is rejected.
All ports in an EtherChannel must use the same protocol; you cannot run two protocols on one module.
PAgP and LACP are not compatible; both ends of a channel must use the same protocol.
You can manually configure a switch with PAgP on one side and LACP on the other side in the on mode.
You can change the protocol at any time, but this change causes all existing EtherChannels to reset to the default channel mode for the new protocol. You can use the channel-protocol command to restrict anyone from selecting a mode that is not applicable to the selected protocol.
Configure all ports in an EtherChannel to operate at the same speed and duplex mode (full duplex only for LACP mode).
For a complete list of guidelines, refer to the "Configuring EtherChannel" section of the Catalyst 4500 Series Switch Cisco IOS Software Configuration Guide.
Examples
This example shows how to select LACP to manage channeling on the interface:
Switch(config-if)# channel-protocol lacp
Related Commands
channel-group
show etherchannel
class-map
To access the QoS class map configuration mode to configure QoS class maps, use the class-map command. To delete a class map, use the no form of this command.
class-map [match-all | match-any] name
no class-map [match-all | match-any] name
Syntax Description
match-all
|
(Optional) Specifies that all match criteria in the class map must be matched.
|
match-any
|
(Optional) Specifies that one or more match criteria must match.
|
name
|
Name of the class map.
|
Defaults
Match all criteria.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The variables name and acl_name are case sensitive.
Use the class-map command and its subcommands on individual interfaces to define packet classification, marking, aggregate, and flow policing as part of a globally named service policy.
These commands are available in QoS class map configuration mode:
•
exit—Exits you from QoS class map configuration mode.
•
no—Removes a match statement from a class map.
•
match—Configures classification criteria.
These optional subcommands are also available:
–
access-group {acl_index | name acl_name}
–
ip {dscp | precedence} value1 value2... value8
–
any
The following subcommands appear in the CLI help, but they are not supported on LAN interfaces:
•
input-interface {interface interface_number | null number | vlan vlan_id}
•
protocol linktype
•
destination-address mac mac_address
•
source-address mac mac_address
•
qos-group
•
mpls
•
no
After you have configured the class map name and are in class map configuration mode, you can enter the match subcommands. The syntax for these subcommands is as follows:
match {[access-group {acl_index | name acl_name}] | [ip {dscp | precedence} value1 value2...
value8]}
See Table 2-1 for a syntax description of the match subcommands.
Table 2-1 Syntax Description for the match Command
Optional Subcommand
|
Description
|
access-group acl_index | acl_name
|
Specifies the access list index or access list names; valid access list index values are from 1 to 2699.
|
access-group acl_name
|
Specifies the named access list.
|
ip dscp value1 value2 ... value8
|
Specifies IP DSCP values to match; valid values are from 0 to 63. Enter up to eight DSCP values separated by white spaces.
|
ip precedence value1 value2 ... value8
|
Specifies IP precedence values to match; valid values are from 0 to 7. Enter up to eight precedence values separated by white spaces.
|
Examples
This example shows how to access the class-map commands and subcommands and to configure a class map named ipp5 and enter a match statement for ip precedence 5:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# class-map ipp5
Switch(config-cmap)# match ip precedence 5
This example shows how to configure the class map to match an already configured access list:
Switch(config-cmap)# match access-group IPacl1
Related Commands
policy-map
service-policy
show class-map
show policy-map
show policy-map interface
clear counters
To clear interface counters, use the clear counters command.
clear counters [{FastEthernet interface_number} | {GigabitEthernet interface_number} |
{null interface_number} | {port-channel number} | {vlan vlan_id}]
Syntax Description
FastEthernet interface_number
|
(Optional) Specifies the Fast Ethernet interface; valid values are from 1 to 9.
|
GigabitEthernet interface_number
|
(Optional) Specifies the Gigabit Ethernet interface; valid values are from 1 to 9.
|
null interface_number
|
(Optional) Specifies the null interface; the valid value is 0.
|
port-channel number
|
(Optional) Specifies the channel interface; valid values are from 1 to 64.
|
vlan vlan_id
|
(Optional) Specifies the VLAN; valid values are from 1 to 4096.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended VLAN addresses was added.
|
Usage Guidelines
This command clears all the current interface counters from all interfaces unless you specify an interface.
Note
This command does not clear counters retrieved using SNMP, but only those seen when you enter the show interface counters command.
Examples
This example shows how to clear all interface counters:
Clear "show interface" counters on all interfaces [confirm] y
This example shows how to clear counters on a specific interface:
Switch# clear counters vlan 200
Clear "show interface" counters on this interface [confirm]y
Related Commands
show interface counters (refer to Cisco IOS documentation)
clear interface gigabitethernet
To clear the hardware logic from a Gigabit Ethernet IEEE 802.3z interface, use the clear interface gigabitethernet command.
clear interface gigabitethernet slot/port
Syntax Description
slot/port
|
Number of the slot and port.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to clear the hardware logic from a Gigabit Ethernet IEEE 802.3z interface:
Switch# clear interface gigabitethernet 1/1
Related Commands
show interfaces status
clear interface vlan
To clear the hardware logic from a VLAN, use the clear interface vlan command.
clear interface vlan number
Syntax Description
number
|
Number of the VLAN interface; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended VLAN addresses added.
|
Examples
This example shows how to clear the hardware logic from a specific VLAN:
Switch# clear interface vlan 5
Related Commands
show interfaces status
clear ip access-template
To clear statistical information in access lists, use the clear ip access-template command.
clear ip access-template access-list
Syntax Description
access-list
|
Number of the access list; valid values are from 100 to 199 for an IP extended access list, and from 2000 to 2699 for an expanded range IP extended access list.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to clear statistical information for an access list:
Switch# clear ip access-template 201
clear ip arp inspection log
To clear the status of the log buffer, use the clear ip arp inspection log command.
clear ip arp inspection log
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to clear the contents of the log buffer:
Switch# clear ip arp inspection log
Related Commands
arp access-list
show ip arp inspection log
clear ip arp inspection statistics
To clear the dynamic ARP inspection statistics, use the clear ip arp inspection statistics command.
clear ip arp inspection statistics [vlan vlan-range]
Syntax Description
vlan vlan-range
|
(Optional) Specifies the VLAN range.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows to clear the DAI statistics from VLAN 1:
Switch# clear ip arp inspection statistics vlan 1
Switch# show ip arp inspection statistics vlan 1
Vlan Forwarded Dropped DHCP Drops ACL Drops
---- --------- ------- ---------- ----------
Vlan DHCP Permits ACL Permits Source MAC Failures
---- ------------ ----------- -------------------
Vlan Dest MAC Failures IP Validation Failures
---- ----------------- ----------------------
Related Commands
arp access-list
clear ip arp inspection log
show ip arp inspection
clear ip dhcp snooping database
To clear the DHCP binding database, use the clear ip dhcp snooping database command.
clear ip dhcp snooping database
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to clear the DHCP binding database:
Switch# clear ip dhcp snooping database
Related Commands
ip dhcp snooping
ip dhcp snooping binding interface (refer to Cisco IOS documentation)
ip dhcp snooping information option
ip dhcp snooping trust
ip dhcp snooping vlan
show ip dhcp snooping
show ip dhcp snooping binding
clear ip dhcp snooping database statistics
To clear DHCP binding database statistics, use the clear ip dhcp snooping database statistics command.
clear ip dhcp snooping database statistics
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to clear the DHCP binding database:
Switch# clear ip dhcp snooping database statistics
Related Commands
ip dhcp snooping
ip dhcp snooping binding
ip dhcp snooping information option
ip dhcp snooping trust
ip dhcp snooping vlan
show ip dhcp snooping
show ip dhcp snooping binding
clear ip igmp group
To delete IGMP group cache entries, use the clear ip igmp group command.
clear ip igmp group [{fastethernet slot/port} | {GigabitEthernet slot/port} | {host_name |
group_address} {Loopback interface_number} | {null interface_number} |
{port-channel number} | {vlan vlan_id}]
Syntax Description
fastethernet
|
(Optional) Specifies the Fast Ethernet interface.
|
slot/port
|
(Optional) Number of the slot and port.
|
GigabitEthernet
|
(Optional) Specifies the Gigabit Ethernet interface.
|
host_name
|
(Optional) Hostname, as defined in the DNS hosts table or with the ip host command.
|
group_address
|
(Optional) Address of the multicast group in four-part, dotted notation.
|
Loopback interface_number
|
(Optional) Specifies the loopback interface; valid values are from 0 to 2,147,483,647.
|
null interface_number
|
(Optional) Specifies the null interface; the valid value is 0.
|
port-channel number
|
(Optional) Specifies the channel interface; valid values are from 1 to 64.
|
vlan vlan_id
|
(Optional) Specifies the VLAN; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The IGMP cache contains a list of the multicast groups of which hosts on the directly connected LAN are members.
To delete all entries from the IGMP cache, enter the clear ip igmp group command with no arguments.
Examples
This example shows how to clear entries for a specific group from the IGMP cache:
Switch# clear ip igmp group 224.0.255.1
This example shows how to clear IGMP group cache entries from a specific interface:
Switch# clear ip igmp group gigabitethernet 2/2
Related Commands
ip host (refer to Cisco IOS documentation)
show ip igmp groups (refer to Cisco IOS documentation)
show ip igmp interface
clear ip mfib counters
To clear global MFIB counters and counters for all active MFIB routes, use the clear ip mfib counters command.
clear ip mfib counters
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to clear all the active MFIB routes and global counters:
Switch# clear ip mfib counters
Related Commands
show ip mfib
clear ip mfib fastdrop
To clear all MFIB fast drop entries, use the clear ip mfib fastdrop command.
clear ip mfib fastdrop
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
If new fast-dropped packets arrive, new fast drop entries are created.
Examples
This example shows how to clear all fast drop entries:
Switch# clear ip mfib fastdrop
Related Commands
ip mfib fastdrop
show ip mfib fastdrop
clear lacp counters
To clear statistics for all interfaces belonging to a specific channel group, use the clear lacp counters command.
clear lacp [channel-group] counters
Syntax Description
channel-group
|
(Optional) Channel group number; valid values are from 1 to 64.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC mode
Command History
Release
|
Modification
|
12.1(13)EW
|
Support for this command was introduced on the Catalyst 4500 series switches.
|
Usage Guidelines
This command is not supported on systems configured with a Supervisor Engine 1.
If you do not specify a channel-group, all channel groups are cleared.
If you enter this command for a channel group that contains members in PAgP mode, the command is ignored.
Examples
This example shows how to clear the statistics for a specific group:
Switch# clear lacp 1 counters
Related Commands
show lacp
clear mac-address-table dynamic
To clear dynamic address entries from the Layer 2 MAC address table, use the clear mac-address-table dynamic command.
clear mac-address-table dynamic [{address mac_addr} | {interface interface}] [vlan vlan_id]
Syntax Description
address mac_addr
|
(Optional) Specifies the MAC address.
|
interface interface
|
(Optional) Specifies the interface and clear the entries associated with it; valid values are FastEthernet and GigabitEthernet.
|
vlan vlan_id
|
(Optional) Specifies the VLANs; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended VLAN addresses added.
|
Usage Guidelines
Enter the clear mac-address-table dynamic command with no arguments to remove all dynamic entries from the table.
Examples
This example shows how to clear all dynamic Layer 2 entries for a specific interface (gi1/1):
Switch# clear mac-address-table dynamic interface gi1/1
Related Commands
mac-address-table aging-time
main-cpu
show mac-address-table address
clear pagp
To clear port channel information, use the clear pagp command.
clear pagp {group-number | counters}
Syntax Description
group-number
|
Channel group number; valid values are from 1 to 64.
|
counters
|
Clears traffic filters.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to clear port channel information for a specific group:
This example shows how to all clear port channel traffic filters:
Switch# clear pagp counters
Related Commands
show pagp
clear qos
To clear global and per-interface aggregate QoS counters, use the clear qos command.
clear qos [aggregate-policer [name] | interface {{fastethernet | GigabitEthernet}
{slot/interface}} | vlan {vlan_num} | port-channel {number}]
Syntax Description
aggregate-policer name
|
(Optional) Specifies an aggregate policer.
|
interface
|
(Optional) Specifies an interface.
|
fastethernet
|
(Optional) Specifies the Fast Ethernet 802.3 interface.
|
GigabitEthernet
|
(Optional) Specifies the Gigabit Ethernet 802.3z interface.
|
slot/interface
|
(Optional) Number of the slot and interface.
|
vlan vlan_num
|
(Optional) Specifies a VLAN.
|
port-channel number
|
(Optional) Specifies the channel interface; valid values are from 1 to 64.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Note
Entering the clear qos command affects the way the counters work and could cause traffic that would normally be restricted to be forwarded for a short period of time.
The clear qos command resets the interface qos policy counters. If no interface is specified, the clear qos command resets the qos policy counters for all interfaces.
Examples
This example shows how to clear global and per-interface aggregate QoS counters for all protocols:
This example shows how to clear specific protocol aggregate QoS counters for all interfaces:
Switch# clear qos aggregate-policer
Related Commands
show qos
clear vlan counters
To clear the software-cached counter values to start from zero again for a specified VLAN or all existing VLANs, use the clear vlan counters command.
clear vlan [vlan-id] counters
Syntax Description
vlan-id
|
(Optional) VLAN number; see "Usage Guidelines" for valid values.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(13)EW
|
Support for this command was introduced on the Catalyst 4500 series switches.
|
Usage Guidelines
If you do not specify a vlan-id; the software-cached counter values for all existing VLANs are cleared.
Examples
Switch# clear vlan 10 counters
Clear "show vlan" counters on this vlan [confirm]y
Related Commands
show vlan counters
clear vmps statistics
To clear VMPS statistics, use the clear vmps statistics command.
clear vmps statistics
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(13)EW
|
Support for this command was introduced on the Catalyst 4500 series switches.
|
Examples
This example shows how to clear VMPS statistics:
Switch# clear vmps statistics
Related Commands
vmps reconfirm (privileged EXEC)
show vmps
debug adjacency
To display adjacency debugging information, use the debug adjacency command. To disable debugging output, use the no form of this command.
debug adjacency [ipc]
no debug adjacency
Syntax Description
ipc
|
(Optional) Displays IPC entries in the adjacency database.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to display information in the adjacency database:
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
<... output truncated...>
Related Commands
undebug adjacency (same as no debug adjacency)
debug backup
To debug backup events, use the debug backup command. To disable debugging output, use the no form of this command.
debug backup
no debug backup
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to debug backup events:
Backup events debugging is on
Related Commands
undebug backup (same as no debug backup)
debug condition interface
To limit debugging output of interface-related activities, use the debug condition interface command. To disable debugging output, use the no form of this command.
debug condition interface {fastethernet slot/port | GigabitEthernet slot/port |
null interface_num | port-channel interface-num | vlan vlan_id}
no debug condition interface {fastethernet slot/port | GigabitEthernet slot/port | null
interface_num | port-channel interface-num | vlan vlan_id}
Syntax Description
fastethernet
|
Limits debugging to Fast Ethernet interfaces.
|
slot/port
|
Number of the slot and port.
|
GigabitEthernet
|
Limits debugging to Gigabit Ethernet interfaces.
|
null interface-num
|
Limits debugging to null interfaces; the valid value is 0.
|
port-channel interface-num
|
Limits debugging to port-channel interfaces; valid values are from 1 to 64.
|
vlan vlan_id
|
Specifies the VLAN interface number; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended VLAN addresses added.
|
Examples
This example shows how to limit debugging output to VLAN interface 1:
Switch# debug condition interface vlan 1
Related Commands
debug interface
undebug condition interface (same as no debug condition interface)
debug condition standby
To limit debugging output for standby state changes, use the debug condition standby command. To disable debugging output, use the no form of this command.
debug condition standby {fastethernet slot/port | GigabitEthernet slot/port |
port-channel interface-num | vlan vlan_id group-number}
no debug condition standby {fastethernet slot/port | GigabitEthernet slot/port |
port-channel interface-num | vlan vlan_id group-number}
Syntax Description
fastethernet
|
Limits debugging to Fast Ethernet interfaces.
|
slot/port
|
Number of the slot and port.
|
GigabitEthernet
|
Limits debugging to Gigabit Ethernet interfaces.
|
port-channel interface_num
|
Limits debugging output to port-channel interfaces; valid values are from 1 to 64.
|
vlan vlan_id
|
Limits debugging of a condition on a VLAN interface; valid values are from 1 to 4094.
|
group-number
|
VLAN group number; valid values are from 0 to 255.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended VLAN addresses added.
|
Usage Guidelines
If you attempt to remove the only condition set, you will be prompted with a message asking if you want to abort the removal operation. You can enter n to abort the removal or y to proceed with the removal. If you remove the only condition set, it could cause an excessive number of debugging messages.
Examples
This example shows how to limit the debugging output to group 0 in VLAN 1:
Switch# debug condition standby vlan 1 0
This example shows the display if you try to turn off the last standby debug condition:
Switch# no debug condition standby vlan 1 0
This condition is the last standby condition set.
Removing all conditions may cause a flood of debugging
messages to result, unless specific debugging flags
Proceed with removal? [yes/no]: n
Related Commands
undebug condition standby (same as no debug condition standby)
debug condition vlan
To limit VLAN debugging output for a specific VLAN, use the debug condition vlan command. To disable debugging output, use the no form of this command.
debug condition vlan {vlan_id}
no debug condition vlan {vlan_id}
Syntax Description
vlan_id
|
Number of the VLAN; valid values are from 1 to 4096.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended VLAN addresses added.
|
Usage Guidelines
If you attempt to remove the only VLAN condition set, you will be prompted with a message asking if you want to abort the removal operation. You can enter n to abort the removal or y to proceed with the removal. If you remove the only condition set, it could result in the display of an excessive number of messages.
Examples
This example shows how to limit debugging output to VLAN 1:
Switch# debug condition vlan 1
This example shows the message that is displayed when you attempt to disable the last VLAN debug condition:
Switch# no debug condition vlan 1
This condition is the last vlan condition set.
Removing all conditions may cause a flood of debugging
messages to result, unless specific debugging flags
Proceed with removal? [yes/no]: n
Related Commands
undebug condition vlan (same as no debug condition vlan)
debug dot1x
To enable debugging for the 802.1x feature, use the debug dot1x command. Use the no form of this command to disable debugging output.
debug dot1x {all | errors | events | packets | registry | state-machine}
no debug dot1x {all | errors | events | packets | registry | state-machine}
Syntax Description
all
|
Enables debugging of all conditions.
|
errors
|
Enables debugging of print statements guarded by the dot1x error flag.
|
events
|
Enables debugging of print statements guarded by the dot1x events flag.
|
packets
|
All incoming dot1x packets are printed with packet and interface information.
|
registry
|
Enables debugging of print statements guarded by the dot1x registry flag.
|
state-machine
|
Enables debugging of print statements guarded by the dot1x registry flag.
|
Defaults
Debugging is disabled.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
show dot1x
undebug dot1x (same as no debug dot1x)
debug etherchnl
To debug EtherChannel, use the debug etherchnl command. To disable debugging output, use the no form of this command.
debug etherchnl [all | detail | error | event | idb | linecard]
no debug etherchnl
Syntax Description
all
|
(Optional) Displays all EtherChannel debug messages.
|
detail
|
(Optional) Displays detailed EtherChannel debug messages.
|
error
|
(Optional) Displays EtherChannel error messages.
|
event
|
(Optional) Debugs major EtherChannel event messages.
|
idb
|
(Optional) Debugs PAgP IDB messages.
|
linecard
|
(Optional) Debugs SCP messages to the module.
|
Defaults
The default settings are as follows:
•
Debug disabled
•
All messages
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
If you do not specify a keyword, all debug messages are displayed.
Examples
This example shows how to display all EtherChannel debug messages:
PAgP Shim/FEC debugging is on
22:46:30:FEC:returning agport Po15 for port (Fa2/1)
22:46:31:FEC:returning agport Po15 for port (Fa4/14)
22:46:33:FEC:comparing GC values of Fa2/25 Fa2/15 flag = 1 1
22:46:33:FEC:port_attrib:Fa2/25 Fa2/15 same
22:46:33:FEC:EC - attrib incompatable for Fa2/25; duplex of Fa2/25 is half, Fa2/15 is full
22:46:33:FEC:pagp_switch_choose_unique:Fa2/25, port Fa2/15 in agport Po3 is incompatable
This example shows how to display EtherChannel IDB debug messages:
Switch# debug etherchnl idb
Agport idb related debugging is on
This example shows how to disable debugging:
Switch# no debug etherchnl
Related Commands
undebug etherchnl (same as no debug etherchnl)
debug interface
To abbreviate entry of the debug condition interface command, use the debug interface command. To disable debugging output, use the no form of this command.
debug interface {FastEthernet slot/port | GigabitEthernet slot/port | null |
port-channel interface-num | vlan vlan_id}
no debug interface {FastEthernet slot/port | GigabitEthernet slot/port | null |
port-channel interface-num | vlan vlan_id}
Syntax Description
FastEthernet
|
Limits debugging to Fast Ethernet interfaces.
|
slot/port
|
Number of the slot and port.
|
GigabitEthernet
|
Limits debugging to Gigabit Ethernet interfaces.
|
null
|
Limits debugging to null interfaces; the only valid value is 0.
|
port-channel interface-num
|
Limits debugging to port-channel interfaces; valid values are from 1 to 64.
|
vlan vlan_id
|
Specifies the VLAN interface number; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended VLAN addresses added.
|
Examples
This example shows how to limit debugging to interface VLAN 1:
Switch# debug interface vlan 1
Related Commands
debug condition interface
undebug interface (same as no debug interface)
debug ipc
To debug IPC activity, use the debug ipc command. To disable debugging output, use the no form of this command.
debug ipc {all | errors | events | headers | packets | ports | seats}
no debug ipc {all | errors | events | headers | packets | ports | seats}
Syntax Description
all
|
Enables all IPC debugging.
|
errors
|
Enables IPC error debugging.
|
events
|
Enables IPC event debugging.
|
headers
|
Enables IPC header debugging.
|
packets
|
Enables IPC packet debugging.
|
ports
|
Enables debugging of the creation and deletion of ports.
|
seats
|
Enables debugging of the creation and deletion of nodes.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable debugging of IPC events:
Special Events debugging is on
Related Commands
undebug ipc (same as no debug ipc)
debug ip dhcp snooping event
To debug DHCP snooping events, use the debug ip dhcp snooping event command. To disable debugging output, use the no form of this command.
debug ip dhcp snooping event
no debug ip dhcp snooping event
Syntax Description
This command has no arguments or keywords.
Defaults
Debugging of snooping event is disabled.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable debugging for DHCP snooping events:
Switch# debug ip dhcp snooping event
This example shows how to disable debugging for DHCP snooping events:
Switch# no debug ip dhcp snooping event
Related Commands
debug ip dhcp snooping packet
debug ip dhcp snooping packet
To debug DHCP snooping messages, use the debug ip dhcp snooping packet command. To disable debugging output, use the no form of this command.
debug ip dhcp snooping packet
no debug ip dhcp snooping packet
Syntax Description
This command has no arguments or keywords.
Defaults
Debugging of snooping packet is disabled.
Privileged EXEC
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable debugging for DHCP snooping packets:
Switch# debug ip dhcp snooping packet
This example shows how to disable debugging for DHCP snooping packets:
Switch# no debug ip dhcp snooping packet
Related Commands
debug ip dhcp snooping event
debug ip verify source packet
To debug IP source guard messages, use the debug ip verify source packet command. To disable debugging output, use the no form of this command.
debug ip verify source packet
no debug ip verify source packet
Syntax Description
This command has no arguments or keywords.
Defaults
Debugging of snooping security packets is disabled.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable debugging for IP source guard:
Switch# debug ip verify source packet
This example shows how to disable debugging for IP source guard:
Switch# no debug ip verify source packet
Related Commands
ip dhcp snooping
ip dhcp snooping information option
ip dhcp snooping limit rate
ip dhcp snooping trust
ip verify source vlan dhcp-snooping (refer to Cisco IOS documentation)
show ip dhcp snooping
show ip dhcp snooping binding
show ip verify source (refer to Cisco IOS documentation)
debug lacp
To debug LACP activity, use the debug lacp command. To disable debugging output, use the no form of this command.
debug lacp [all | event | fsm | misc | packet]
no debug lacp
Syntax Description
all
|
(Optional) Enables all LACP debugging.
|
event
|
(Optional) Enables debugging of LACP events.
|
fsm
|
(Optional) Enables debugging of the LACP finite state machine.
|
misc
|
(Optional) Enables miscellaneous LACP debugging.
|
packet
|
(Optional) Enables LACP packet debugging.
|
Defaults
Debugging of LACP activity is disabled.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(13)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
This command is supported by the supervisor engine only and can be entered only from the switch console.
Examples
This example shows how to enable LACP miscellaneous debugging:
Port Aggregation Protocol Miscellaneous debugging is on
Related Commands
undebug pagp (same as no debug pagp)
debug monitor
To display monitoring activity, use the debug monitor command. To disable debugging output, use the no form of this command.
debug monitor {all | errors | idb-update | list | notifications | platform | requests}
no debug monitor {all | errors | idb-update | list | notifications | platform | requests}
Syntax Description
all
|
Displays all SPAN debugging messages.
|
errors
|
Displays SPAN error details.
|
idb-update
|
Displays SPAN IDB update traces.
|
list
|
Displays SPAN and VLAN list tracing.
|
notifications
|
Displays SPAN notifications.
|
platform
|
Displays SPAN platform tracing.
|
requests
|
Displays SPAN requests.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to debug monitoring errors:
Switch# debug monitor errors
SPAN error detail debugging is on
Related Commands
undebug monitor (same as no debug monitor)
debug nvram
To debug NVRAM activity, use the debug nvram command. To disable debugging output, use the no form of this command.
debug nvram
no debug nvram
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to debug NVRAM:
NVRAM behavior debugging is on
Related Commands
undebug nvram (same as no debug nvram)
debug pagp
To debug PAgP activity, use the debug pagp command. To disable debugging output, use the no form of this command.
debug pagp [all | event | fsm | misc | packet]
no debug pagp
Syntax Description
all
|
(Optional) Enables all PAgP debugging.
|
event
|
(Optional) Enables debugging of PAgP events.
|
fsm
|
(Optional) Enables debugging of the PAgP finite state machine.
|
misc
|
(Optional) Enables miscellaneous PAgP debugging.
|
packet
|
(Optional) Enables PAgP packet debugging.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
This command is supported by the supervisor engine only and can be entered only from the switch console.
Examples
This example shows how to enable PAgP miscellaneous debugging:
Port Aggregation Protocol Miscellaneous debugging is on
*Sep 30 10:13:03: SP: PAgP: pagp_h(Fa5/6) expired
*Sep 30 10:13:03: SP: PAgP: 135 bytes out Fa5/6
*Sep 30 10:13:03: SP: PAgP: Fa5/6 Transmitting information packet
*Sep 30 10:13:03: SP: PAgP: timer pagp_h(Fa5/6) started with interval 30000
<... output truncated...>
Related Commands
undebug pagp (same as no debug pagp)
debug platform packet protocol lacp
To debug LACP protocol packets, use the debug platform packet protocol lacp command. To disable debugging output, use the no form of this command.
debug platform packet protocol lacp [receive | transmit | vlan]
no debug platform packet protocol lacp [receive | transmit | vlan]
Syntax Description
receive
|
Enables platform packet reception debugging functions.
|
transmit
|
Enables platform packet transmission debugging functions.
|
vlan
|
Enables platform packet VLAN debugging functions.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable all PM debugging:
Switch# debug platform packet protocol lacp
Related Commands
undebug platform packet protocol lacp (same as no debug platform packet protocol lacp)
debug platform packet protocol pagp
To debug PAgP protocol packets, use the debug platform packet protocol lacp command. To disable debugging output, use the no form of this command.
debug platform packet protocol pagp [receive | transmit | vlan]
no debug platform packet protocol pagp [receive | transmit | vlan]
Syntax Description
receive
|
Enables platform packet reception debugging functions.
|
transmit
|
Enables platform packet transmission debugging functions.
|
vlan
|
Enables platform packet VLAN debugging functions.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(13)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable all PM debugging:
Switch# debug platform packet protocol pagp
Related Commands
undebug platform packet protocol pagp (same as no debug platform packet protocol pagp)
debug pm
To debug port manager (PM) activity, use the debug pm command. To disable debugging output, use the no form of this command.
debug pm {all | card | cookies | etherchnl | messages | port | registry | scp | sm | span | split |
vlan | vp}
no debug pm {all | card | cookies | etherchnl | messages | port | registry | scp | sm | span | split |
vlan | vp}
Syntax Description
all
|
Displays all PM debugging messages.
|
card
|
Debugs module-related events.
|
cookies
|
Enables internal PM cookie validation.
|
etherchnl
|
Debugs EtherChannel-related events.
|
messages
|
Debugs PM messages.
|
port
|
Debugs port-related events.
|
registry
|
Debugs PM registry invocations.
|
scp
|
Debugs SCP module messaging.
|
sm
|
Debugs state machine-related events.
|
span
|
Debugs spanning tree-related events.
|
split
|
Debugs split-processor.
|
vlan
|
Debugs VLAN-related events.
|
vp
|
Debugs virtual port-related events.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable all PM debugging:
Related Commands
undebug pm (same as no debug pm)
debug psecure
To debug port security, use the debug psecure command. To disable debugging output, use the no form of this command.
debug psecure
no debug psecure
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(13)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable all PM debugging:
Related Commands
switchport port-security
debug redundancy
To debug supervisor redundancy, use the debug redundancy command. To disable debugging output, use the no form of this command.
debug redundancy {errors | fsm | kpa | msg | progression | status | timer}
no debug redundancy
Syntax Description
errors
|
Enables redundancy facility for error debugging.
|
fsm
|
Enables redundancy facility for FSM event debugging.
|
kpa
|
Enables redundancy facility for keep alive debugging.
|
msg
|
Enables redundancy facility for messaging event debugging.
|
progression
|
Enables redundancy facility for progression event debugging.
|
status
|
Enables redundancy facility for status event debugging.
|
timer
|
Enables redundancy facility for timer event debugging.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch (Catalyst 4507R only).
|
Examples
This example shows how to debug redundancy facility timer event debugging:
Switch# debug redundancy timer
Redundancy timer debugging is on
debug smf updates
To debug software MAC filter (SMF) address insertions and deletions, use the debug smf updates command. To disable debugging output, use the no form of this command.
debug smf updates
no debug smf updates
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to debug SMF updates:
Switch# debug smf updates
Software MAC filter address insertions and deletions debugging is on
Related Commands
undebug smf (same as no debug smf)
debug spanning-tree
To debug spanning tree activities, use the debug spanning-tree command. To disable debugging output, use the no form of this command.
debug spanning-tree {all | bpdu | bpdu-opt | etherchannel | config | events | exceptions |
general | mst | pvst+ | root | snmp}
no debug spanning-tree {all | bpdu | bpdu-opt | etherchannel | config | events | exceptions |
general | mst | pvst+ | root | snmp}
Syntax Description
all
|
Displays all spanning tree debugging messages.
|
bpdu
|
Debugs spanning tree BPDU.
|
bpdu-opt
|
Debugs optimized BPDU handling.
|
etherchannel
|
Debugs spanning tree EtherChannel support.
|
config
|
Debugs spanning tree configuration changes.
|
events
|
Debugs TCAM events.
|
exceptions
|
Debugs spanning tree exceptions.
|
general
|
Debugs general spanning tree activity.
|
mst
|
Debugs multiple spanning tree events.
|
pvst+
|
Debugs PVST+ events.
|
root
|
Debugs spanning tree root events.
|
snmp
|
Debugs spanning tree SNMP events.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to debug spanning tree PVST+:
Switch# debug spanning-tree pvst+
Spanning Tree PVST+ debugging is on
Related Commands
undebug spanning-tree (same as no debug spanning-tree)
debug spanning-tree backbonefast
To enable debugging of spanning tree BackboneFast events, use the debug spanning-tree backbonefast command. To disable debugging output, use the no form of this command.
debug spanning-tree backbonefast [detail | exceptions]
no debug spanning-tree backbonefast
Syntax Description
detail
|
(Optional) Displays detailed BackboneFast debugging messages.
|
exceptions
|
(Optional) Enables debugging of spanning tree BackboneFast exceptions.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
This command is supported by the supervisor engine only and can be entered only from the switch console.
Examples
This example shows how to enable debugging and to display detailed spanning tree BackboneFast debugging information:
Switch# debug spanning-tree backbonefast detail
Spanning Tree backbonefast detail debugging is on
Related Commands
undebug spanning-tree backbonefast (same as no debug spanning-tree backbonefast)
debug spanning-tree switch
To enable switch shim debugging, use the debug spanning-tree switch command. To disable debugging output, use the no form of this command.
debug spanning-tree switch {all | errors | general | pm | rx {decode | errors | interrupt |
process} | state | tx [decode]}
no debug spanning-tree switch {all | errors | general | pm | rx {decode | errors | interrupt |
process} | state | tx [decode]}
Syntax Description
all
|
Displays all spanning tree switch shim debugging messages.
|
errors
|
Enables debugging of switch shim errors or exceptions.
|
general
|
Enables debugging of general events.
|
pm
|
Enables debugging of port manager events.
|
rx
|
Displays received BPDU-handling debugging messages.
|
decode
|
Enables debugging of the decode received packets of the spanning tree switch shim.
|
errors
|
Enables debugging of the receive errors of the spanning tree switch shim.
|
interrupt
|
Enables shim ISR receive BPDU debugging on the spanning tree switch.
|
process
|
Enables process receive BPDU debugging on the spanning tree switch.
|
state
|
Enables debugging of the state changes on the spanning tree port.
|
tx
|
Enables transmit BPDU debugging on the spanning tree switch shim.
|
decode
|
(Optional) Enables decode transmitted packets debugging on the spanning tree switch shim.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
This command is supported only by the supervisor engine and can be entered only from the switch console.
Examples
This example shows how to enable transmit BPDU debugging on the spanning tree switch shim:
Switch# debug spanning-tree switch tx
Spanning Tree Switch Shim transmit bpdu debugging is on
*Sep 30 08:47:33: SP: STP SW: TX: bpdu of type ieee-st size 92 on FastEthernet5/9 303
*Sep 30 08:47:33: SP: STP SW: TX: bpdu of type ieee-st size 92 on FastEthernet5/9 304
*Sep 30 08:47:33: SP: STP SW: TX: bpdu of type ieee-st size 92 on FastEthernet5/9 305
*Sep 30 08:47:33: SP: STP SW: TX: bpdu of type ieee-st size 92 on FastEthernet5/9 349
*Sep 30 08:47:33: SP: STP SW: TX: bpdu of type ieee-st size 92 on FastEthernet5/9 350
*Sep 30 08:47:33: SP: STP SW: TX: bpdu of type ieee-st size 92 on FastEthernet5/9 351
*Sep 30 08:47:33: SP: STP SW: TX: bpdu of type ieee-st size 92 on FastEthernet5/9 801
<... output truncated...>
Related Commands
undebug spanning-tree switch (same as no debug spanning-tree switch)
debug spanning-tree uplinkfast
To enable debugging of spanning tree UplinkFast events, use the debug spanning-tree uplinkfast command. To disable debugging output, use the no form of this command.
debug spanning-tree uplinkfast [exceptions]
no debug spanning-tree uplinkfast
Syntax Description
exceptions
|
(Optional) Enables debugging of spanning tree UplinkFast exceptions.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
This command is supported only by the supervisor engine and can be entered only from the switch console.
Examples
This example shows how to debug spanning tree UplinkFast exceptions:
Switch# debug spanning-tree uplinkfast exceptions
Spanning Tree uplinkfast exceptions debugging is on
Related Commands
undebug spanning-tree uplinkfast (same as no debug spanning-tree uplinkfast)
debug sw-vlan
To debug VLAN manager activities, use the debug sw-vlan command. To disable debugging output, use the no form of this command.
debug sw-vlan {badpmcookies | events | management | packets | registries}
no debug sw-vlan {badpmcookies | events | management | packets | registries}
Syntax Description
badpmcookies
|
Displays VLAN manager incidents of bad port-manager cookies.
|
events
|
Debugs VLAN manager events.
|
management
|
Debugs VLAN manager management of internal VLANs.
|
packets
|
Debugs packet handling and encapsulation processes.
|
registries
|
Debugs VLAN manager registries.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to debug software VLAN events:
Switch# debug sw-vlan events
vlan manager events debugging is on
Related Commands
undebug sw-vlan (same as no debug sw-vlan)
debug sw-vlan ifs
To enable VLAN manager IOS file system (IFS) error tests, use the debug sw-vlan ifs command. To disable debugging output, use the no form of this command.
debug sw-vlan ifs {open {read | write} | read {1 | 2 | 3 | 4} | write}
no debug sw-vlan ifs {open {read | write} | read {1 | 2 | 3 | 4} | write}
Syntax Description
open
|
Enables VLAN manager IFS debugging of errors in an IFS file-open operation.
|
read
|
Debugs errors that occurred when the IFS VLAN configuration file was open for reading.
|
write
|
Debugs errors that occurred when the IFS VLAN configuration file was open for writing.
|
{1 | 2 | 3 | 4}
|
Determines the file-read operation. See "Usage Guidelines" for information about operation levels.
|
write
|
Debugs errors that occurred during an IFS file-write operation.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The following are four types of file read operations:
•
Operation 1—Reads the file header, which contains the header verification word and the file version number.
•
Operation 2—Reads the main body of the file, which contains most of the domain and VLAN information.
•
Operation 3—Reads TLV descriptor structures.
•
Operation 4—Reads TLV data.
Examples
This example shows how to debug of TLV data errors during a file-read operation:
Switch# debug sw-vlan ifs read 4
vlan manager ifs read # 4 errors debugging is on
Related Commands
undebug sw-vlan ifs (same as no debug sw-vlan ifs)
debug sw-vlan notification
To enable debugging messages that trace the activation and deactivation of ISL VLAN IDs, use the debug sw-vlan notification command. To disable debugging output, use the no form of this command.
debug sw-vlan notification {accfwdchange | allowedvlancfgchange | fwdchange | linkchange |
modechange | pruningcfgchange | statechange}
no debug sw-vlan notification {accfwdchange | allowedvlancfgchange | fwdchange | linkchange
| modechange | pruningcfgchange | statechange}
Syntax Description
accfwdchange
|
Enables VLAN manager notification of aggregated access interface STP forward changes.
|
allowedvlancfgchange
|
Enables VLAN manager notification of changes to allowed VLAN configuration.
|
fwdchange
|
Enables VLAN manager notification of STP forwarding changes.
|
linkchange
|
Enables VLAN manager notification of interface link state changes.
|
modechange
|
Enables VLAN manager notification of interface mode changes.
|
pruningcfgchange
|
Enables VLAN manager notification of changes to pruning configuration.
|
statechange
|
Enables VLAN manager notification of interface state changes.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to debug the software VLAN interface mode change notifications:
Switch# debug sw-vlan notification modechange
vlan manager port mode change notification debugging is on
Related Commands
undebug sw-vlan notification (same as no debug sw-vlan notification)
debug sw-vlan vtp
To enable debugging messages to be generated by the VTP protocol code, use the debug sw-vlan vtp command. To disable debugging output, use the no form of this command.
debug sw-vlan vtp {events | packets | pruning [packets | xmit] | xmit}
no debug sw-vlan vtp {events | packets | pruning [packets | xmit] | xmit}
Syntax Description
events
|
Displays general-purpose logic flow and detailed VTP debugging messages generated by the VTP_LOG_RUNTIME macro in the VTP code.
|
packets
|
Displays the contents of all incoming VTP packets that have been passed into the VTP code from the IOS VTP platform-dependent layer, except for pruning packets.
|
pruning
|
Enables debugging message to be generated by the pruning segment of the VTP protocol code.
|
packets
|
(Optional) Displays the contents of all incoming VTP pruning packets that have been passed into the VTP code from the IOS VTP platform-dependent layer.
|
xmit
|
(Optional) Displays the contents of all outgoing VTP packets that the VTP code will request the IOS VTP platform-dependent layer to send.
|
xmit
|
Displays the contents of all outgoing VTP packets that the VTP code will request the IOS VTP platform-dependent layer to send; does not include pruning packets.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
If you do not enter any more parameters after entering pruning, the VTP pruning debugging messages are displayed.
Examples
This example shows how to debug software VLAN outgoing VTP packets:
Switch# debug sw-vlan vtp xmit
Related Commands
undebug sw-vlan vtp (same as no debug sw-vlan vtp)
debug udld
To enable debugging of UDLD activity, use the debug udld command. To disable debugging output, use the no form of this command.
debug udld {events | packets | registries}
no debug udld {events | packets | registries}
Syntax Description
events
|
Enables debugging of UDLD process events as they occur.
|
packets
|
Enables debugging of the UDLD process as it receives packets from the packet queue and attempts to transmit packets at the request of the UDLD protocol code.
|
registries
|
Enables debugging of the UDLD process as it processes registry upcalls from the UDLD process-dependent module and other feature modules.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
This command is supported by the supervisor engine only and can be entered only from the Catalyst 4500 series switch console.
Examples
This example shows how to enable debugging of UDLD events:
Switch# debug udld events
UDLD events debugging is on
This example shows how to enable debugging of UDLD packets:
Switch# debug udld packets
UDLD packets debugging is on
This example shows how to enable debugging of UDLD registry events:
Switch# debug udld registries
UDLD registries debugging is on
Related Commands
undebug udld (same as no debug udld)
debug vqpc
To debug VLAN Query Protocol (VQP), use the debug vqpc command. To disable debugging output, use the no form of this command.
debug vqpc [all | cli | events | learn | packet]
no debug vqpc [all | cli | events | learn | packet]
Syntax Description
all
|
(Optional) Debugs all VQP events.
|
cli
|
(Optional) Debugs VQP command line interface.
|
events
|
Debugs VQP events.
|
learn
|
Debugs VQP address learning.
|
packet
|
Debugs VQP packets.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(13)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to enable all PM debugging:
Related Commands
vmps reconfirm (privileged EXEC)
define interface-range
To create a macro of interfaces, use the define interface-range command.
define interface-range macro-name interface-range
Syntax Description
macro-name
|
Name of the interface range macro; up to 32 characters.
|
interface-range
|
List of valid ranges when specifying interfaces; see "Usage Guidelines."
|
Defaults
This command has no default settings.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The macro name is a character string of up to 32 characters.
A macro can contain up to five ranges. An interface range cannot span modules.
When entering the interface-range, use these formats:
•
interface-type {mod}/{first-interface} - {last-interface}
•
interface-type {mod}/{first-interface} - {last-interface}
Valid values for interface-type are as follows:
•
FastEthernet
•
GigabitEthernet
•
Vlan vlan_id
Examples
This example shows how to create a multiple-interface macro:
Switch(config)# define interface-range macro1 gigabitethernet 4/1-6, fastethernet 2/1-5
Related Commands
interface range
deny
To deny an ARP packet based on matches against the DHCP bindings, use the deny command. Use the no form of the command to remove specified ACEs from the access list.
deny {[request] ip {any | host sender-ip | sender-ip sender-ip-mask} mac {any | host sender-mac
| sender-mac sender-mac-mask} | response ip {any | host sender-ip | sender-ip
sender-ip-mask} [{any | host target-ip | target-ip target-ip-mask}] mac {any | host sender-mac
| sender-mac sender-mac-mask} [{any | host target-mac | target-mac target-mac-mask}]} [log]
no deny {[request] ip {any | host sender-ip | sender-ip sender-ip-mask} mac {any | host
sender-mac | sender-mac sender-mac-mask} | response ip {any | host sender-ip | sender-ip
sender-ip-mask} [{any | host target-ip | target-ip target-ip-mask}] mac {any | host sender-mac
| sender-mac sender-mac-mask} [{any | host target-mac | target-mac target-mac-mask}]} [log]
Syntax Description
request
|
(Optional) Requests a match for the ARP request. When request is not specified, matching is performed against all ARP packets.
|
ip
|
Specifies the sender IP address.
|
any
|
Specifies that any IP or MAC address will be accepted.
|
host sender-ip
|
Specifies that only a specific sender IP address will be accepted.
|
sender-ip sender-ip-mask
|
Specifies that a specific range of sender IP addresses will be accepted.
|
mac
|
Specifies the sender MAC address.
|
host sender-mac
|
Specifies that only a specific sender MAC address will be accepted.
|
sender-mac sender-mac-mask
|
Specifies that a specific range of sender MAC addresses will be accepted.
|
response
|
Specifies a match for the ARP responses.
|
ip
|
Specifies the IP address values for the ARP responses.
|
host target-ip
|
Specifies that only a specific target IP address will be accepted.
|
target-ip target-ip-mask
|
Specifies that a specific range of target IP addresses will be accepted.
|
mac
|
Specifies the MAC address values for the ARP responses.
|
host target-mac
|
Specifies that only a specific target MAC address will be accepted.
|
target-mac target-mac-mask
|
Specifies that a specific range of target MAC addresses will be accepted.
|
log
|
(Optional) Logs a packet when it matches the access control entry (ACE).
|
Defaults
At the end of the ARP access list, there is an implicit deny ip any mac any command.
Command Modes
arp-nacl configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Deny clauses can be added to forward or drop ARP packets based on some matching criteria.
Examples
A host with a MAC address of 0000.0000.abcd has an IP address of 1.1.1.1. To deny both requests and responses from this host, define an access list as follows:
Switch(config)# arp access-list static-hosts
Switch(config-arp-nacl)# deny ip host 1.1.1.1 mac host 0000.0000.abcd
Switch(config-arp-nacl)# end
Switch# show arp access-list
ARP access list static-hosts
deny ip host 1.1.1.1 mac host 0000.0000.abcd
Related Commands
arp access-list
ip arp inspection filter vlan
permit
dot1x guest-vlan
To enable guest VLAN on a per-port basis use the dot1x guest-vlan command. To return to the default setting, use the no form of this command.
dot1x guest-vlan vlan-id
no dot1x guest-vlan vlan-id
Syntax Description
vlan-id
|
Specifies a VLAN in the range of 1 to 4094.
|
Defaults
The default value for the guest VLAN is 0.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Guest VLAN can be configured only on switch ports that are statically configured as an access port. Guest VLAN has the same restrictions as a dot1x port that has no trunk port, dynamic port, EtherChannel port, or SPAN destination port.
Examples
This example shows how to enable guest VLAN on Fast Ethernet interface 4/3:
Switch# configure terminal
Switch(config)# interface fastethernet4/3
Switch(config-if)# dot1x port-control auto
Switch(config-if)# dot1x guest-vlan 26
Related Commands
dot1x max-reauth-req
show dot1x
dot1x initialize
To unauthorize an interface before reinitializing 802.1x, use the dot1x initialize command.
dot1x initialize interface
Syntax Description
interface
|
The number of the interface.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Use this command to initialize state machines and to set up the environment for fresh authentication.
Examples
This example shows how to initialize the 802.1x state machines on an interface:
Related Commands
dot1x initialize
show dot1x
dot1x max-reauth-req
To set the maximum number of times the switch will retransmit an EAP-Request/Identity frame to the client before restarting the authentication process, use the dot1x max-reauth-req command. To return to the default setting, use the no form of this command.
dot1x max-reauth-req count
no dot1x max-reauth-req
Syntax Description
count
|
Number of times that the switch retransmits EAP-Request/Identity frames before restarting the authentication process; valid values are from 1 to 10.
|
Defaults
The switch sends a maximum of 2 retransmissions.
Command Modes
Interface configuration.
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
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 and authentication servers. This setting impacts the wait before a non-dot1x-capable client is admitted to the guest VLAN, if one is configured.
You can verify your settings by entering the show dot1x privileged EXEC command.
Examples
This example shows how to set 5 as the number of times that the switch retransmits an EAP-Request/Identity frame before restarting the authentication process:
Switch(config-if)# dot1x max-reauth-req 5
Related Commands
dot1x guest-vlan
dot1x initialize
show dot1x
dot1x max-req
To set the maximum number of times the switch retransmits an Extensible Authentication Protocol (EAP)-Request frame of types other than EAP-Request/Identity to the client before restarting the authentication process, use the dot1x max-req command. To return to the default setting, use the no form of this command.
dot1x max-req count
no dot1x max-req
Syntax Description
count
|
Number of times that the switch retransmits EAP-Request frames of types other than EAP-Request/Identity before restarting the authentication process; valid values are from 1 to 10.
|
Defaults
The switch sends a maximum of two retransmissions.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(19)EW
|
This command was modified to control on EAP-Request/Identity retransmission limits.
|
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 and authentication servers.
You can verify your settings by entering the show dot1x privileged EXEC command.
Examples
This example shows how to set 5 as the number of times that the switch retransmits an EAP-Request frame before restarting the authentication process:
Switch(config-if)# dot1x max-req 5
Related Commands
dot1x initialize
dot1x max-reauth-req
show dot1x
dot1x multiple-hosts
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 dot1x multiple-hosts command. To return to the default setting, use the no form of this command.
dot1x multiple-hosts
no dot1x multiple-hosts
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
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 Gigabit Ethernet 1/1 and to allow multiple hosts:
Switch(config)# interface gigabitethernet1/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
show dot1x
dot1x port-control
To enable manual control of the authorization state on a port, use the dot1x port-control command. To return to the default setting, use the no form of this command.
dot1x port-control {auto | force-authorized | force-unauthorized}
no dot1x port-control {auto | force-authorized | force-unauthorized}
Syntax Description
auto
|
Enables 802.1x authentication on the interface and causes 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
|
Disables 802.1x authentication on the interface and causes 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
|
Denies all access through the specified 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 port 802.1x authorization is disabled.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The 802.1x protocol is supported on both Layer 2 static-access ports and Layer 3-routed 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 ports—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 message 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.
•
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 message appears, and 802.1x is not enabled. If you enable 802.1x on an inactive port of an EtherChannel, the port does not join the EtherChannel.
•
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 Gigabit Ethernet 1/1:
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# dot1x port-control auto
You can verify your settings by using show dot1x all or show dot1x interface commands to show the port-control status. An enabled status indicates that the port-control value is set either to auto or to force-unauthorized.
Related Commands
show dot1x
dot1x re-authenticate
To manually initiate a reauthentication of all 802.1x-enabled ports or the specified 802.1x-enabled port, use the dot1x re-authenticate command.
dot1x re-authenticate [interface interface-id]
Syntax Description
interface interface-id
|
(Optional) Slot and port number of the interface.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
You can use this command to reauthenticate a client without waiting for the configured number of seconds between reauthentication attempts (re-authperiod) and automatic reauthentication.
Examples
This example shows how to manually reauthenticate the device connected to Gigabit Ethernet interface 0/1:
Switch# dot1x re-authenticate interface gigabitethernet1/1
Starting reauthentication on gigabitethernet1/1
dot1x re-authentication
To enable periodic reauthentication of the client, use the dot1x re-authentication command. To return to the default setting, use the no form of this command.
dot1x re-authentication
no dot1x re-authentication
Syntax Description
This command has no arguments or keywords.
Defaults
The periodic reauthentication is disabled.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
You configure the amount of time between periodic reauthentication attempts by using the dot1x timeout re-authperiod global configuration command.
Examples
This example shows how to disable periodic reauthentication of the client:
Switch(config-if)# no dot1x re-authentication
This example shows how to enable periodic reauthentication and set the number of seconds between reauthentication attempts to 4000 seconds:
Switch(config-if)# dot1x re-authentication
Switch(config-if)# dot1x timeout re-authperiod 4000
You can verify your settings by entering the show dot1x privileged EXEC command.
Related Commands
dot1x timeout
show dot1x
dot1x system-auth-control
To enable 802.1x authentication on the switch, use the dot1x system-auth-control command. To disable 802.1x authentication on the system, use the no form of this command.
dot1x system-auth-control
no dot1x system-auth-control
Syntax Description
This command has no arguments or keywords.
Defaults
The 802.1x authentication is disabled.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
As the port-control value defaults to force-authorized, you can easily enable 802.1x on a port by setting the port-control value to auto.
When enabled, each port authorization status is controlled according to the value of the port-control parameter on the port.
When disabled, all ports function as though the port-control parameter is set to force-authorized.
Examples
This example shows how to enable 802.1x authentication:
Switch(config)# dot1x system-auth-control
Related Commands
dot1x initialize
show dot1x
dot1x timeout
To set the reauthentication timer, use the dot1x timeout command. To return to the default setting, use the no form of this command.
dot1x timeout {reauth-period seconds | quiet-period seconds | tx-period seconds |
supp-timeout seconds | server-timeout seconds}
no dot1x timeout {reauth-period | quiet-period | tx-period | supp-timeout | server-timeout}
Syntax Description
reauth-period seconds
|
Number of seconds between reauthentication attempts; valid values are from 1 to 65535. See "Usage Guidelines" for more information.
|
quiet-period seconds
|
Number of seconds the switch remains in the quiet state following a failed authentication exchange with the client; valid values are from 0 to 65535 seconds.
|
tx-period seconds
|
Number of seconds the switch waits for a response to an EAP-request/identity frame from the client before retransmitting the request; valid values are from 0 to 65535 seconds.
|
supp-timeout seconds
|
Number of seconds the switch waits for the retransmission of EAP-Request packets; valid values are from 0 to 65535 seconds.
|
server-timeout seconds
|
Number of seconds the switch waits for the retransmission of packets by the backend authenticator to the authentication server; valid values are from 1 to 65535 seconds.
|
Defaults
The default settings are as follows:
•
Reauthentication period is 3600 seconds.
•
Quiet period is 60 seconds.
•
Transmission period is 30 seconds.
•
Supplicant timeout is 30 seconds.
•
Server timeout is 30 seconds.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(12)EW
|
Support for this command was introduced on the Catalyst 4500 series switches.
|
Usage Guidelines
Periodic reauthentication must be enabled before entering the dot1x timeout re-authperiod command. Enter the dot1x re-authentication command to enable periodic reauthentication.
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-if)# dot1x timeout tx-period 60
You can verify your settings by entering the show dot1x privileged EXEC command.
Related Commands
dot1x initialize
show dot1x
duplex
To configure the duplex operation on an interface, use the duplex command. To return to the default setting, use the no form of this command.
duplex {auto | full | half}
no duplex
Syntax Description
auto
|
Specifies autonegotiation operation.
|
full
|
Specifies full-duplex operation.
|
half
|
Specifies half-duplex operation.
|
Defaults
Half duplex operation
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Table 2-2 lists the supported command options by interface.
Table 2-2 Supported duplex Command Options
Interface Type
|
Supported Syntax
|
Default Setting
|
Guidelines
|
10/100-Mbps module
|
duplex [half | full]
|
half
|
If the speed is set to auto, you will not be able to set the duplex mode.
If the speed is set to 10 or 100, and you do not configure the duplex setting, the duplex mode is set to half duplex.
|
100-Mbps fiber modules
|
duplex [half | full]
|
half
|
|
Gigabit Ethernet Interface
|
Not supported.
|
Not supported.
|
Gigabit Ethernet interfaces are set to full duplex.
|
10/100/1000
|
duplex [half | full]
|
|
If the speed is set to auto or 1000, you will not be able to set duplex.
If the speed is set to 10 or 100, and you do not configure the duplex setting, the duplex mode is set to half duplex.
|
If the transmission speed on a 16-port RJ-45 Gigabit Ethernet port is set to 1000, duplex mode is set to full. If the transmission speed is changed to 10 or 100, the duplex mode stays at full. You must configure the correct duplex mode on the switch when the transmission speed changes to 10 or 100 from 1000 Mbps.
Note
Catalyst 4006 switches cannot automatically negotiate interface speed and duplex mode if either connecting interface is configured to a value other than auto.
Caution 
Changing the interface speed and duplex mode configuration might shut down and reenable the interface during the reconfiguration.
Table 2-3 describes the system performance for different combinations of the duplex and speed modes. The specified duplex command configured with the specified speed command produces the resulting action shown in the table.
Table 2-3 Relationship Between duplex and speed Commands
duplex Command
|
speed Command
|
Resulting System Action
|
duplex half or duplex full
|
speed auto
|
Autonegotiates both speed and duplex modes
|
duplex half
|
speed 10
|
Forces 10 Mbps and half duplex
|
duplex full
|
speed 10
|
Forces 10 Mbps and full duplex
|
duplex half
|
speed 100
|
Forces 100 Mbps and half duplex
|
duplex full
|
speed 100
|
Forces 100 Mbps and full duplex
|
duplex full
|
speed 1000
|
Forces 1000 Mbps and full duplex
|
Examples
This example shows how to configure the interface for full-duplex operation:
Switch(config-if)# duplex full
Related Commands
speed
interface (refer to Cisco IOS documentation)
show controllers (refer to Cisco IOS documentation)
show interfaces (refer to Cisco IOS documentation)
errdisable detect
To enable error disable detection, use the errdisable detect command. To disable the error disable detection feature, use the no form of this command.
errdisable detect cause {all | arp-inspection | dhcp-rate-limit | dtp-flap | gbic-invalid |
l2ptguard | link-flap | pagp-flap}
no errdisable detect cause {all | arp-inspection | dhcp-rate-limit | dtp-flap | gbic-invalid |
l2ptguard | link-flap | pagp-flap}
Syntax Description
cause
|
Specifies error disable detection to detect from a specific cause.
|
all
|
Specifies error disable detection for all error-disable causes.
|
arp-inspection
|
Specifies detection for the ARP inspection error-disable cause.
|
dhcp-rate-limit
|
Specifies detection for the DHCP rate limit error-disable cause.
|
dtp-flap
|
Specifies detection for the DTP flap error-disable cause.
|
gbic-invalid
|
Specifies detection for the GBIC invalid error-disable cause.
|
l2ptguard
|
Specifies detection for the Layer 2 protocol-tunnel error-disable cause.
|
link-flap
|
Specifies detection for the link flap error-disable cause.
|
pagp-flap
|
Specifies detection for the PAgP flap error-disable cause.
|
Defaults
All error disable causes are detected.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
A cause (dtp-flap, link-flap, pagp-flap) is defined as the reason 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).
You must enter the shutdown command and then the no shutdown command to recover an interface manually from error disable.
Examples
This example shows how to enable error disable detection for the link-flap error disable cause:
Switch(config)# errdisable detect cause link-flap
To disable errdisable detection for DAI, perform the following:
Switch(config)# no errdisable detect cause arp-inspection
Switch# show errdisable detect
ErrDisable Reason Detection status
----------------- ----------------
security-violatio Enabled
channel-misconfig Disabled
psecure-violation Enabled
Related Commands
show errdisable detect
show interfaces status
errdisable recovery
To configure the recovery mechanism variables, use the errdisable recovery command. To return to the default setting, use the no form of this command.
errdisable recovery [cause {all | arp-inspection | bpduguard | channel-misconfig |
dhcp-rate-limit | dtp-flap | gbic-invalid | l2ptguard | link-flap | pagp-flap |
pesecure-violation | security-violation | storm-control | udld | unicastflood | vmps}
[arp-inspection] [interval {interval}]
no errdisable recovery [cause {all | arp-inspection | bpduguard | channel-misconfig |
dhcp-rate-limit | dtp-flap | gbic-invalid | l2ptguard | link-flap | pagp-flap |
pesecure-violation | security-violation | storm-control | udld | unicastflood | vmps}
[arp-inspection] [interval {interval}]
Syntax Description
cause
|
(Optional) Enables error disable recovery to recover from a specific cause.
|
all
|
(Optional) Enables the recovery timers for all error disable causes.
|
arp-inspection
|
(Optional) Enables the recovery timer for the ARP inspection cause.
|
bpduguard
|
(Optional) Enables the recovery timer for the BPDU guard error-disable cause.
|
channel-misconfig
|
(Optional) Enables the recovery timer for the channel-misconfig error-disable cause.
|
dhcp-rate-limit
|
(Optional) Enables the recovery timer for the DHCP rate limit error-disable cause.
|
dtp-flap
|
(Optional) Enables the recovery timer for the DTP flap error-disable cause.
|
gbic-invalid
|
(Optional) Enables the recovery timer for the GBIC invalid error-disable cause.
|
l2ptguard
|
(Optional) Enables the recovery timer for the Layer 2 protocol-tunnel error-disable cause.
|
link-flap
|
(Optional) Enables the recovery timer for the link flap error-disable cause.
|
pagp-flap
|
(Optional) Enables the recovery timer for the PAgP flap error-disable cause.
|
pesecure-violation
|
(Optional) Enables the recovery timer for the pesecure violation error-disable cause.
|
security-violation
|
(Optional) Enables automatic recovery of ports disabled due to 802.1x security violations.
|
storm-control
|
(Optional) Enable timer to recover from storm-control error-disable state.
|
udld
|
(Optional) Enables the recovery timer for the UDLD error-disable cause.
|
unicastflood
|
(Optional) Enables the recovery timer for the Unicast flood error-disable cause.
|
vmps
|
(Optional) Enables the recovery timer for the VMPS error-disable cause.
|
arp-inspection
|
(Optional) Enables ARP inspection cause and recovery timeout.
|
interval interval
|
(Optional) Specifies the time to recover from specified error-disable cause; valid values are from 30 to 86400 seconds.
|
Defaults
Error disable recovery is disabled.
The recovery interval is set to 300 seconds.
Command Modes
Configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(19)EW
|
Support for the storm-control feature.
|
Usage Guidelines
A cause (bpduguard, dtp-flap, link-flap, pagp-flap, udld) is defined as the reason 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 error-disable recovery for the cause, the interface stays in error-disabled state until a shutdown and no shutdown occurs. If you enable recovery for a cause, the interface is brought out of error-disabled state and allowed to retry operation again once all the causes have timed out.
You must enter the shutdown command and then the no shutdown command to recover an interface manually from error disable.
Examples
This example shows how to enable the recovery timer for the BPDU guard error disable cause:
Switch(config)# errdisable recovery cause bpduguard
This example shows how to set the timer to 300 seconds:
Switch(config)# errdisable recovery interval 300
To enable errdisable recovery for arp-inspection, do the following:
Switch(config)# errdisable recovery cause arp-inspection
Switch# show errdisable recovery
ErrDisable Reason Timer Status
----------------- --------------
security-violatio Disabled
channel-misconfig Disabled
psecure-violation Disabled
Timer interval: 300 seconds
Interfaces that will be enabled at the next timeout:
Related Commands
show errdisable recovery
show interfaces status
flowcontrol
To configure a gigabit interface to send or receive pause frames, use the flowcontrol command. To disable the flow control setting, use the no form of this command.
flowcontrol {receive | send} {off | on | desired}
no flowcontrol {receive | send} {off | on | desired}
Syntax Description
receive
|
Specifies that the interface processes pause frames.
|
send
|
Specifies that the interface sends pause frames.
|
off
|
Prevents a local port from receiving and processing pause frames from remote ports or from sending pause frames to remote ports.
|
on
|
Enables a local port to receive and process pause frames from remote ports or send pause frames to remote ports.
|
desired
|
Obtains predictable results whether a remote port is set to on, off, or desired.
|
Defaults
The default settings for GigabitEthernet interfaces are as follows:
•
Sending pause frames is desired—Gigabit Ethernet interfaces.
•
Receiving pause frames is off—Gigabit Ethernet interfaces.
•
Sending pause frames is on—oversubscribed Gigabit Ethernet interfaces.
•
Receiving pause frames is desired—oversubscribed Gigabit Ethernet interfaces
Table 2-4 shows the default settings for modules:
Table 2-4 Default Module Settings
Module
|
Ports
|
Send
|
All modules except WS-X4418-GB, WS-X4412-2GB-TX, and WS-X4416-2GB-TX
|
All ports except for the oversubscribed ports (1-18)
|
No
|
WS-X4418-GB
|
Uplink ports (1-2)
|
No
|
WS-X4418-GB
|
Oversubscribed ports (3-18)
|
Yes
|
WS-X4412-2GB-TX
|
Uplink ports (13-14)
|
No
|
WS-X4412-2GB-TX
|
Oversubscribed ports (1-12)
|
Yes
|
WS-X4416-2GB-TX
|
Uplink ports (17-18)
|
No
|
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Pause frames are special packets that signal a source to stop sending frames for a specific period of time because the buffers are full.
Table 2-5 describes guidelines for using different configurations of the send and receive keywords with the flowcontrol command.
Table 2-5 Keyword Configurations for send and receive
Configuration
|
Description
|
send on
|
Enables a local port to send pause frames to remote ports. To obtain predictable results, use send on only when remote ports are set to receive on or receive desired.
|
send off
|
Prevents a local port from sending pause frames to remote ports. To obtain predictable results, use send off only when remote ports are set to receive off or receive desired.
|
send desired
|
Obtains predictable results whether a remote port is set to receive on, receive off, or receive desired.
|
receive on
|
Enables a local port to process pause frames that a remote port sends. To obtain predictable results, use receive on only when remote ports are set to send on or send desired.
|
receive off
|
Prevents remote ports from sending pause frames to local port. To obtain predictable results, use send off only when remote ports are set to receive off or receive desired.
|
receive desired
|
Obtains predictable results whether a remote port is set to send on, send off, or send desired.
|
Table 2-6 identifies how flow control will be forced or negotiated on gigabit interfaces based on their speed settings.
Note
Catalyst 4006 switches support flow control only on gigabit interfaces.
Table 2-6 Send Capability by Switch Type, Module, and Port
Interface Type
|
Configured Speed
|
Advertised Flow Control
|
10/100/1000BASE-TX
|
Speed 1000
|
Configured flow control always
|
1000BASE-T
|
Negotiation always enabled
|
Configured flow control always negotiated
|
1000BASE-X
|
No speed nonegotiation
|
Configured flow control negotiated
|
1000BASE-X
|
Speed nonegotiation
|
Configured flow control forced
|
Examples
This example shows how to enable send flow control:
Switch(config-if)# flowcontrol receive on
This example shows how to disable send flow control:
Switch(config-if)# flowcontrol send off
This example shows how to set receive flow control to desired:
Switch(config-if)# flowcontrol receive desired
Related Commands
interface port-channel
interface range
interface vlan
show flowcontrol
show running-config (refer to Cisco IOS Documentation)
speed
hw-module reset
To reset a module by turning the power off and then on, use the hw-module reset command.
hw-module {module num} reset
Syntax Description
module num
|
Applies the command to a specific module; valid values are from 2 to 6.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to reload a specific module:
Switch# hw-module module 3 reset
instance
To map a VLAN or a set of VLANs to an MST instance, use the instance command. To return the VLANs to the common instance default, use the no form of this command.
instance instance-id {vlans vlan-range}
no instance instance-id
Syntax Description
instance-id
|
MST instance to which the specified VLANs are mapped; valid values are from 0 to 15.
|
vlans vlan-range
|
Specifies the number of the VLANs to be mapped to the specified instance. The number is entered as a single value or a range; valid values are from 1 to 4094.
|
Defaults
Mapping is disabled.
Command Modes
MST configuration
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The mapping is incremental, not absolute. This means that when you enter a range of VLANs, this range is added or removed to the existing ones.
Any unmapped VLAN is mapped to the CIST instance.
Examples
This example shows how to map a range of VLANs to instance 2:
Switch(config-mst)# instance 2 vlans 1-100
This example shows how to map a VLAN to instance 5:
Switch(config-mst)# instance 5 vlans 1100
This example shows how to move a range of VLANs from instance 2 to the CIST instance:
Switch(config-mst)# no instance 2 vlans 40-60
This example shows how to move all the VLANs mapped to instance 2 back to the CIST instance:
Switch(config-mst)# no instance 2
Related Commands
name
revision
show spanning-tree mst
spanning-tree mst configuration
interface port-channel
To access or create a port channel interface, use the interface port-channel command.
interface port-channel channel-group
Syntax Description
channel-group
|
Port channel group number; valid values are from 1 to 64.
|
Defaults
This command has no default settings.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
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, if it is not already created.
You can also create port channels by entering the interface port-channel command. This will create a Layer 3 port channel. To change the Layer 3 port channel into a Layer 2 port channel, use the switchport command before you assign physical interfaces to the channel group. A port channel cannot be changed from Layer 3 to Layer 2 or vice versa when it contains member ports.
Only one port channel in a channel group is allowed.
Caution 
The Layer 3 port channel interface is the routed interface. Do not enable Layer 3 addresses on the physical Fast Ethernet interfaces.
If you want to use CDP, you must configure it only on the physical Fast Ethernet interface and not on the port-channel interface.
Examples
This example creates a port channel interface with a channel group number of 64:
Switch(config)# interface port-channel 64
Related Commands
channel-group
show etherchannel
interface range
To run a command on multiple ports at the same time, use the interface range command.
interface range {vlan vlan_id - vlan_id} {port-range | macro name}
Syntax Description
vlan vlan_id - vlan_id
|
Specifies a VLAN range; valid values are from 1 to 4094.
|
port-range
|
Port range; for a list of valid values for port-range, see "Usage Guidelines."
|
macro name
|
Specifies the name of a macro.
|
Defaults
This command has no default settings.
Command Modes
Global configuration
Interface configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended VLAN addresses added.
|
Usage Guidelines
You can use the interface range command on existing VLAN SVIs only. To display VLAN SVIs, enter the show running config command. VLANs not displayed cannot be used in the interface range command.
The values entered with the interface range command are applied to all existing VLAN SVIs.
Before you can use a macro, you must define a range using the define interface-range command.
All configuration changes made to a port range are saved to NVRAM, but port ranges created with the interface range command do not get saved to NVRAM.
You can enter the port range in two ways:
•
Specifying up to five port ranges
•
Specifying a previously defined macro
You can either specify the ports or the name of a port-range macro. A port range must consist of the same port type, and the ports within a range cannot span modules.
You can define up to five port ranges on a single command; separate each range with a comma.
When you define a range, you must enter a space between the first port and the hyphen (-):
interface range gigabitethernet 5/1 -20, gigabitethernet4/5 -20.
Use these formats when entering the port-range:
•
interface-type {mod}/{first-port} - {last-port}
•
interface-type {mod}/{first-port} - {last-port}
Valid values for interface-type are as follows:
•
FastEthernet
•
GigabitEthernet
•
Vlan vlan_id
You cannot specify both a macro and an interface range in the same command. After creating a macro, you can enter additional ranges. Likewise, if you have already entered an interface range, the CLI does not allow you to enter a macro.
You can specify a single interface in the port-range value. This makes the command similar to the interface interface-number command.
Examples
This example shows how to use the interface range command to interface to FE 5/18 - 20:
Switch(config)# interface range fastethernet 5/18 - 20
This command shows how to run a port-range macro:
Switch(config)# interface range macro macro1
Related Commands
define interface-range
show running config (refer to Cisco IOS documentation)
interface vlan
To create or access a Layer 3 switch virtual interface (SVI), use the interface vlan command. To delete an SVI, use the no form of this command.
interface vlan vlan_id
no interface vlan vlan_id
Syntax Description
vlan_id
|
Number of the VLAN; valid values are from 1 to 4094.
|
Defaults
Fast EtherChannel is not specified.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.1(8a)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
12.1(12c)EW
|
Support for extended addressing was added.
|
Usage Guidelines
SVIs are created the first time you enter the interface vlan vlan_id command for a particular VLAN. The vlan_id value corresponds to the VLAN tag associated with data frames on an ISL or 802.1Q encapsulated trunk, or the VLAN ID configured for an access port. A message is displayed whenever a VLAN interface is newly created, so you can check that you entered the correct VLAN number.
If you delete an SVI by entering the no interface vlan vlan_id command, the associated interface is forced into an administrative down state and marked as deleted. The deleted interface will no longer be visible in a show interface command.
You can reinstate a deleted SVI by entering the interface vlan vlan_id command for the deleted interface. The interface comes back up, but much of the previous configuration will be gone.
Examples
This example shows the output when you enter the interface vlan vlan_id command for a new VLAN number:
Switch(config)# interface vlan 23
% Creating new VLAN interface.
ip arp inspection filter vlan
To permit ARPs from hosts configured for static IP when DAI is enabled and to define an ARP access list and apply it to a VLAN, use the ip arp inspection filter vlan command. Use the no form of this command to disable this application.
ip arp inspection filter arp-acl-name vlan vlan-range [static]
no ip arp inspection filter arp-acl-name vlan vlan-range [static]
Syntax Description
arp-acl-name
|
Access control list name.
|
vlan-range
|
VLAN number or range; valid values are from 1 to 4094.
|
static
|
(Optional) Specifies that the access control list should be applied statically.
|
Defaults
No defined ARP ACLs are applied to any VLAN.
Command Modes
Configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
When an ARP access control list is applied to a VLAN for dynamic ARP inspection, ARP packets containing only IP-to-Ethernet MAC bindings are compared against the ACLs. All other packet types are bridged in the incoming VLAN without validation.
This command specifies that incoming ARP packets are compared against the ARP access control list, and packets are permitted only if the access control list permits them.
If access control lists deny packets because of explicit denies, the packets are dropped. If packets are denied because of an implicit deny, they are then matched against the list of DHCP bindings if the ACL is not applied statically.
Examples
This example shows how to apply the ARP ACL "static-hosts" to VLAN 1 for DAI:
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# ip arp inspection filter static-hosts vlan 1
Switch# show ip arp inspection vlan 1
Source Mac Validation : Enabled
Destination Mac Validation : Disabled
IP Address Validation : Disabled
Vlan Configuration Operation ACL Match Static ACL
---- ------------- --------- --------- ----------
1 Enabled Active static-hosts No
Vlan ACL Logging DHCP Logging
---- ----------- ------------
Related Commands
arp access-list
show ip arp inspection
ip arp inspection limit (interface)
To limit the rate of incoming ARP requests and responses on an interface and prevent DAI from consuming all of the system's resources in event of a DOS attack, use the ip arp inspection limit command. Use the no form of this command to release the limit.
ip arp inspection limit {rate pps | none}
no ip arp inspection limit
Syntax Description
rate pps
|
Specifies an upper limit on the number of incoming packets processed per second. The rate can range from 1 to 10000.
|
none
|
Specifies no upper limit on the rate of incoming ARP packets that can be processed.
|
Defaults
Rate is set to 15 packets per second on untrusted interfaces, assuming a switched network with a host connecting to as many as 15 new hosts per second.
The rate is unlimited on all trusted interfaces.
Command Modes
Interface
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Trunk ports should be configured with higher rates to reflect their aggregation. Once the rate of incoming packets exceeds the user-configured rate, the interface is placed into an error-disabled state. The error-disable timeout feature can be used to remove the port from the error-disabled state. The rate applies to both trusted and non-trusted interfaces. Configure appropriate rates on trunks to handle packets across multiple DAI-enabled VLANs or use the none keyword to make the rate unlimited.
The rate of incoming ARP packets on channel ports is equal to the sum of the incoming rate of packets from all the channel members. Configure the rate limit for channel ports only after examining the rate of incoming ARP packets on the channel members.
Examples
This example shows how to limit the rate of incoming ARP requests to 25 packets per second:
Switch# configure terminal
Switch(config)# interface fa6/3
Switch(config-if)# ip arp inspection limit rate 25
Switch# show ip arp inspection interfaces fastEthernet 6/3
Interface Trust State Rate (pps)
--------------- ----------- ----------
Related Commands
show ip arp inspection
ip arp inspection log-buffer
To configure parameters that are associated with the logging buffer, use the ip arp inspection log-buffer command. Use the no form of this command to disable the parameters.
ip arp inspection log-buffer {entries number | logs number interval seconds}
no ip arp inspection log-buffer {entries | logs}
Syntax Description
entries number
|
The number of entries from the logging buffer. The range is 0 to 1024.
|
logs number
|
The number of entries to be logged in an interval. The range is 0 to 1024. A 0 value indicates that entries should not be logged out of this buffer.
|
interval seconds
|
The logging rate. The range is 0 to 86400 (1 day). A 0 value represents an immediate log.
|
Defaults
When dynamic ARP inspection is enabled, denied, or dropped, ARP packets are logged.
The number of entries is set to 32.
The number of logging entries is limited to 5 per second.
The interval is set to 1.
Command Modes
Configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The first dropped packet of a given flow is logged immediately. Subsequent packets for the same flow are registered but not logged immediately. Registering these packets is done in a log buffer that is shared by all VLANs. Entries from this buffer are logged on a rate-controlled basis.
Examples
This example shows how to configure the logging buffer to hold up to 45 entries:
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# ip arp inspection log-buffer entries 45
Switch# show ip arp inspection log
Total Log Buffer Size : 45
Syslog rate : 5 entries per 1 seconds.
No entries in log buffer.
This example shows how to configure the logging rate to 10 logs per 3 seconds:
Switch(config)# ip arp inspection log-buffer logs 10 interval 3
Switch# show ip arp inspection log
Total Log Buffer Size : 45
Syslog rate : 10 entries per 3 seconds.
No entries in log buffer.
Related Commands
arp access-list
show ip arp inspection
ip arp inspection trust
To set a per-port configurable trust state that determines the set of interfaces where incoming ARP packets are inspected, use the ip arp inspection trust command. Use the no form of this command to make interfaces untrusted.
ip arp inspection trust
no ip arp inspection trust
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Interface
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Examples
This example shows how to configure an interface to be trusted:
Switch(config)# interface fastEthernet 6/3
Switch(config-if)# ip arp inspection trust
To verify the configuration, use the show form of the command:
Switch# show ip arp inspection interfaces fastEthernet 6/3
Interface Trust State Rate (pps)
--------------- ----------- ----------
Related Commands
show ip arp inspection
ip arp inspection validate
To perform specific checks for ARP inspection, use the ip arp inspection validate command. Use the no form of this command to disable the checks.
ip arp inspection validate [src-mac] [dst-mac] [ip]
no ip arp inspection validate [src-mac] [dst-mac] [ip]
Syntax Description
src-mac
|
(Optional) Checks the source MAC address in the Ethernet header against the sender's MAC address in the ARP body. This checking is done against both ARP requests and responses.
Note When enabled, packets with different MAC addresses are classified as invalid and are dropped.
|
dst-mac
|
(Optional) Checks the destination MAC address in the Ethernet header against the target MAC address in ARP body. This checking is done for ARP responses.
Note When enabled, packets with different MAC addresses are classified as invalid and are dropped.
|
ip
|
(Optional) Checks the ARP body for invalid and unexpected IP addresses. Addresses include 0.0.0.0, 255.255.255.255, and all IP multicast addresses.
Sender IP addresses are checked in all ARP requests and responses and target IP addresses are checked only in ARP responses.
|
Defaults
Checks are disabled.
Command Modes
Configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
When enabling the checks, specify at least one of the keywords (src-mac, dst-mac, and ip) on the command line. Each command overrides the configuration of the previous command; that is, if a command enables src and dst mac validations, and a second command enables IP validation only, the src and dst mac validations are disabled as a result of the second command.
The no form of the command disables only the specified checks. If none of the check options are enabled, all checks are disabled.
Examples
This example show how to enable source mac validation:
Switch(config)# ip arp inspection validate src-mac
Switch# show ip arp inspection vlan 1
Source Mac Validation : Enabled
Destination Mac Validation : Disabled
IP Address Validation : Disabled
Vlan Configuration Operation ACL Match Static ACL
---- ------------- --------- --------- ----------
Vlan ACL Logging DHCP Logging
---- ----------- ------------
Related Commands
arp access-list
show arp access-list
ip arp inspection vlan
To enable dynamic ARP inspection (DAI) on a per-VLAN basis, use the ip arp inspection vlan command. Use the no form of this command to disable DAI.
ip arp inspection vlan vlan-range
no ip arp inspection vlan vlan-range
Syntax Description
vlan-range
|
Specifies a VLAN number or range; valid values are from 1 to 4094.
|
Defaults
ARP inspection is disabled on all VLANs.
Command Modes
Configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
You must specify on which VLANs to enable DAI. DAI may not function on the configured VLANs if they have not been created or if they are private.
Examples
This example shows how to enable DAI on VLAN 1:
Switch(config)# ip arp inspection vlan 1
Switch# show ip arp inspection vlan 1
Source Mac Validation : Disabled
Destination Mac Validation : Disabled
IP Address Validation : Disabled
Vlan Configuration Operation ACL Match Static ACL
---- ------------- --------- --------- ----------
Vlan ACL Logging DHCP Logging
---- ----------- ------------
Related Commands
arp access-list
show ip arp inspection
ip arp inspection vlan logging
To control the type of packets that are logged, use the ip arp inspection vlan logging command. Use the no form of this command to disable this logging control.
ip arp inspection vlan vlan-range logging {acl-match {matchlog | none} | dhcp-bindings
{permit | all | none}}
no ip arp inspection vlan vlan-range logging {acl-match | dhcp-bindings}
Syntax Description
vlan-range
|
The number of the VLANs to be mapped to the specified instance. The number is entered as a single value or a range; valid values are from 1 to 4094.
|
acl-match
|
Specifies the logging criteria for packets that are dropped or permitted based on ACL matches.
|
matchlog
|
Specifies that logging of packets matched against ACLs is controlled by the matchlog keyword in the permit and deny access control entries of the ACL.
Note By default, the matchlog keyword is not available on the ACEs. When the keyword is used, denied packets are not logged. Packets are logged only when they match against an ACE that has the matchlog keyword.
|
none
|
Specifies that ACL-matched packets are not logged.
|
dhcp-bindings
|
Specifies the logging criteria for packets dropped or permitted based on matches against the DHCP bindings.
|
permit
|
Specifies logging when permitted by DHCP bindings.
|
all
|
Specifies logging when permitted or denied by DHCP bindings.
|
none
|
Prevents all logging of packets permitted or denied by DHCP bindings.
|
Defaults
All denied or dropped packets are logged.
Command Modes
Configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The acl-match and dhcp-bindings keywords merge with each other; that is, when you set an ACL match configuration, the DHCP bindings configuration is not disabled. The no form of the command can be used to reset some of the logging criteria to their defaults. If neither option is specified, all types of logging are reset to log on when ARP packets are denied. The two options available to you are:
•
acl-match—Logging on ACL matches is reset to log on deny
•
dhcp-bindings—Logging on DHCP binding compared is reset to log on deny
Examples
This example shows how to configure ARP inspection on VLAN 1 to log packets on matching against ACLs with the logging keyword:
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# ip arp inspection vlan 1 logging acl-match matchlog
Switch# show ip arp inspection vlan 1
Source Mac Validation : Enabled
Destination Mac Validation : Disabled
IP Address Validation : Disabled
Vlan Configuration Operation ACL Match Static ACL
---- ------------- --------- --------- ----------
Vlan ACL Logging DHCP Logging
---- ----------- ------------
Related Commands
arp access-list
show ip arp inspection
ip cef load-sharing algorithm
To configure the load-sharing hash function so that the source TCP/UDP port, the destination TCP/UDP port, or both can be included in the hash in addition to the source and destination IP addresses, use the ip cef load-sharing algorithm command. To revert back to the default, which does not include the ports, use the no form of this command.
ip cef load-sharing algorithm {include-ports {source source | destination dest} | original |
tunnel | universal}
no ip cef load-sharing algorithm {include-ports {source source | destination dest} | original |
tunnel | universal}
Syntax Description
include-ports
|
Specifies algorithm that includes Layer 4 ports.
|
source source
|
Specifies source port in the load-balancing hash functions.
|
destination dest
|
Specifies destination port in the load-balancing hash. Uses source and destination in hash functions.
|
original
|
Original algorithm; not recommended.
|
tunnel
|
Specifies algorithm for use in tunnel-only environments.
|
universal
|
Specifies the default IOS load-sharing algorithm.
|
Defaults
Default load-sharing algorithm is disabled.
Note
This option does not include the source or destination port in the load-balancing hash.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
The original algorithm, tunnel algorithm, and universal algorithm are routed through hardware. For software-routed packets, they are treated differently. The include-ports option does not apply to software-switched traffic.
Examples
This example shows how to configure the IP CEF load-sharing algorithm that includes Layer 4 ports:
Switch(config)# ip cef load-sharing algorithm include-ports
Related Commands
show ip cef vlan
ip dhcp snooping
To enable DHCP snooping globally, use the ip dhcp snooping command. To disable DHCP snooping, use the no form of this command.
ip dhcp snooping
no ip dhcp snooping
Syntax Description
This command has no arguments or keywords.
Defaults
DHCP snooping is disabled.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.1(12c)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
You must enable DHCP snooping globally before you can use DHCP snooping on a VLAN.
Examples
This example shows how to enable DHCP snooping:
Switch(config)# ip dhcp snooping
This example shows how to disable DHCP snooping:
Switch(config)# no ip dhcp snooping
Related Commands
ip dhcp snooping information option
ip dhcp snooping limit rate
ip dhcp snooping trust
ip dhcp snooping vlan
show ip dhcp snooping
show ip dhcp snooping binding
ip dhcp snooping binding
To set up and generate a DHCP binding configuration to restore bindings across reboots, use the ip dhcp snooping binding command. To disable the binding configuration, use the no form of this command.
ip dhcp snooping binding mac-address vlan vlan-# ip-address interface interface expiry seconds
no ip dhcp snooping binding mac-address vlan vlan-# ip-address interface interface
Syntax Description
mac-address
|
Specifies a MAC address.
|
vlan vlan-#
|
Specifies a valid VLAN number.
|
ip-address
|
Specifies an IP address.
|
interface interface
|
Specifies an interface type and number.
|
expiry seconds
|
Specifies the interval (in seconds) after which binding is no longer valid.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Whenever a binding is added or removed using this command, the binding database is marked as changed and a write is initiated.
Examples
This example shows how to generate DHCP binding configuration on interface gi1/1 in VLAN 1 with an expiration time of 1000 seconds:
Switch# ip dhcp snooping binding 0001.1234.1234 vlan 1 172.20.50.5 interface gi1/1 expiry
1000
Related Commands
ip dhcp snooping
ip dhcp snooping information option
ip dhcp snooping trust
ip dhcp snooping vlan
show ip dhcp snooping
show ip dhcp snooping binding
ip dhcp snooping database
To store the bindings generated by DHCP snooping, use the ip dhcp snooping database command. Use the no form of this command to either reset the timeout, reset the write-delay, or delete the agent specified by the URL.
ip dhcp snooping database {url | timeout seconds | write-delay seconds}
no ip dhcp snooping database {timeout | write-delay}
Syntax Description
url
|
Specifies the URL in one of the following forms:
• tftp://<host>/<filename>
• ftp://<user>:<password>@<host>/<filename>
• rcp://<user>@<host>/<filename>
• nvram:/<filename>
• bootflash:/<filename>
|
timeout seconds
|
Specifies when to abort the database transfer process after a change to the binding database.
The minimum value of the delay is 15 seconds. 0 is defined as infinite duration.
|
write-delay seconds
|
Specifies the duration for which the transfer should be delayed after a change to the binding database.
|
Defaults
The timeout value is set to 300 seconds (5 minutes).
The write-delay value is set to 300 seconds.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.1(19)EW
|
Support for this command was introduced on the Catalyst 4500 series switch.
|
Usage Guidelines
Because both NVRAM and bootflash have limited storage capacity, we recommend that you store a file on an TFTP server. When a file is stored in a remote location that is accessible through TFTP, an RPR redundant supervisor engine can take over the binding list when a switchover occurs.
You need to create an empty file at the configured URL on network-based URLs (such as TFTP and FTP) before the switch can write the set of bindings for the first time at the URL.
Examples
This example shows how to store a database file with the IP address 10.1.1.1 within a directory called directory. A file named file must be present on the TFTP server.
Switch(config)# ip dhcp snooping database tftp://10.1.1.1/directory/file
Switch# show ip dhcp snooping database
Agent URL : tftp://10.1.1.1/directory/file
Write delay Timer : 300 seconds
Abort Timer : 300 seconds
Delay Timer Expiry : Not Running
Abort Timer Expiry : Not Running
Last Succeded Time : None
Last Failed Reason : No failure recorded.
Total Attempts : 1 Startup Failures : 0
Successful Transfers : 0 Failed Transfers : 0
Successful Reads : 0 Failed Reads : 0
Successful Writes : 0 Failed Writes : 0
Related Commands
ip dhcp snooping
ip dhcp snooping binding
ip dhcp snooping information option
ip dhcp snooping trust
ip dhcp snooping vlan
show ip dhcp snooping
show ip dhcp snooping binding
ip dhcp snooping information option
To enable DHCP option 82 data insertion, use the ip dhcp snooping information option command. To disable DHCP option 82 data insertion, use the no form of this command.
ip dhcp snooping information option
no ip dhcp snooping information option
Syntax Description
This command has no arguments or keywords.
Defaults
DHCP option 82 data insertion is enabled.
Command Modes
Global configuration
Command History