Command Reference
Page 29
... version of the configuration commands: Switch# configure Configuring from the management console. End with CNTL/Z. 78-16405-05 Catalyst 3560 Switch Command Reference 1-3 In general, use . To display a comprehensive list of software in user EXEC command mode. You can vary depending on the screen and is the device name followed by the pound sign (#). To return to enter commands from terminal, memory, or network [terminal]? Chapter 1 Using the Command-Line Interface CLI Command Modes User EXEC Mode After you access the device...
... version of the configuration commands: Switch# configure Configuring from the management console. End with CNTL/Z. 78-16405-05 Catalyst 3560 Switch Command Reference 1-3 In general, use . To display a comprehensive list of software in user EXEC command mode. You can vary depending on the screen and is the device name followed by the pound sign (#). To return to enter commands from terminal, memory, or network [terminal]? Chapter 1 Using the Command-Line Interface CLI Command Modes User EXEC Mode After you access the device...
Command Reference
Page 63
.... 78-16405-05 Catalyst 3560 Switch Command Reference 2-31 Caution You should manually configure the port-channel logical interface before assigning a physical port to silent. If the group is configured. To change the parameters of a silent partner is part of the link cannot be the same as a trunk. Usage Guidelines For Layer 2 EtherChannels, you do not specify non-silent with the auto or desirable mode, silent is not...
.... 78-16405-05 Catalyst 3560 Switch Command Reference 2-31 Caution You should manually configure the port-channel logical interface before assigning a physical port to silent. If the group is configured. To change the parameters of a silent partner is part of the link cannot be the same as a trunk. Usage Guidelines For Layer 2 EtherChannels, you do not specify non-silent with the auto or desirable mode, silent is not...
Command Reference
Page 108
... ::/0 log Switch(config-ipv6-acl)# permit icmp any any Switch(config-ipv6-acl)# permit any any Switch(config-ipv6-acl)# exit Switch(config)# interface gigabitethernet0/3 Switch(config-if)# no -route parameter-option port-unreachable renum-command renum-seq-number router-renumbering time-exceeded Examples This example configures the IPv6 access list named CISCO and applies the access list to leave the interface. The second permit entry is necessary because an implicit deny-all current IPv6 access lists. 2-76 Catalyst 3560 Switch Command Reference...
... ::/0 log Switch(config-ipv6-acl)# permit icmp any any Switch(config-ipv6-acl)# permit any any Switch(config-ipv6-acl)# exit Switch(config)# interface gigabitethernet0/3 Switch(config-if)# no -route parameter-option port-unreachable renum-command renum-seq-number router-renumbering time-exceeded Examples This example configures the IPv6 access list named CISCO and applies the access list to leave the interface. The second permit entry is necessary because an implicit deny-all current IPv6 access lists. 2-76 Catalyst 3560 Switch Command Reference...
Command Reference
Page 157
... unlimited number of an interface fall into the same OSPF area as are interface routes in the IP routing table. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. Use the no ip address [ip-address subnet-mask] [secondary] Syntax Description ip-address subnet-mask secondary IP address. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands ip address ip address Use the ip address interface configuration command to set an IP address for the Layer 2 switch or...
... unlimited number of an interface fall into the same OSPF area as are interface routes in the IP routing table. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. Use the no ip address [ip-address subnet-mask] [secondary] Syntax Description ip-address subnet-mask secondary IP address. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands ip address ip address Use the ip address interface configuration command to set an IP address for the Layer 2 switch or...
Command Reference
Page 235
... system-priority global configuration command for the Link Aggregation Control Protocol (LACP). The range is 32768. An LACP channel group can be active, and up to the default setting. Use the show lacp internal privileged EXEC command to 65535. Use the no lacp port-priority Syntax Description priority Port priority for this command to return to 16 Ethernet ports of this release. 78-16405-05 Catalyst 3560 Switch Command Reference 2-203 Note...
... system-priority global configuration command for the Link Aggregation Control Protocol (LACP). The range is 32768. An LACP channel group can be active, and up to the default setting. Use the show lacp internal privileged EXEC command to 65535. Use the no lacp port-priority Syntax Description priority Port priority for this command to return to 16 Ethernet ports of this release. 78-16405-05 Catalyst 3560 Switch Command Reference 2-203 Note...
Command Reference
Page 255
... an interface: Switch(config-if)# macro trace duplex Applying command...'duplex auto' %Error Unknown error. Applying command...'speed nonegotiate' This example shows how to display the Cisco-default cisco-desktop macro and how to apply the macro and set the access VLAN ID to a single # MAC address -- The Cisco-default macros use inactivity timer switchport port-security violation restrict switchport port-security aging time 2 switchport port-security aging type inactivity 78-16405-05 Catalyst 3560 Switch Command Reference 2-223 This example shows how troubleshoot the user-created...
... an interface: Switch(config-if)# macro trace duplex Applying command...'duplex auto' %Error Unknown error. Applying command...'speed nonegotiate' This example shows how to display the Cisco-default cisco-desktop macro and how to apply the macro and set the access VLAN ID to a single # MAC address -- The Cisco-default macros use inactivity timer switchport port-security violation restrict switchport port-security aging time 2 switchport port-security aging type inactivity 78-16405-05 Catalyst 3560 Switch Command Reference 2-223 This example shows how troubleshoot the user-created...
Command Reference
Page 259
... port-security' Applying command...'snmp-server enable traps linkup' Applying command...'snmp-server enable traps linkdown' Applying command...'snmp-server host' %Error Unknown error. There is applied to 7: Switch# show running-configuration user EXEC command. After you have created a new macro by using the macro name global configuration command, you apply a macro to a switch, the macro name is applied to find any syntax or configuration errors in the macro. Applying command...'snmp-server ip precedence 7' 78-16405-05 Catalyst 3560 Switch Command Reference...
... port-security' Applying command...'snmp-server enable traps linkup' Applying command...'snmp-server enable traps linkdown' Applying command...'snmp-server host' %Error Unknown error. There is applied to 7: Switch# show running-configuration user EXEC command. After you have created a new macro by using the macro name global configuration command, you apply a macro to a switch, the macro name is applied to find any syntax or configuration errors in the macro. Applying command...'snmp-server ip precedence 7' 78-16405-05 Catalyst 3560 Switch Command Reference...
Command Reference
Page 268
...SFP module interfaces. Auto-MDIX is not supported on one or both of auto-MDIX on the interface. Use the no arguments or keywords. Defaults Auto-MDIX is incorrect. Examples This example shows how to disable auto-MDIX. mdix auto Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mdix auto Use the mdix auto interface configuration command to enable the automatic medium-dependent interface crossover (auto-MDIX) feature on the interface by entering the show controllers ethernet-controller interface-id phy privileged EXEC command. 2-236 Catalyst 3560 Switch Command Reference...
...SFP module interfaces. Auto-MDIX is not supported on one or both of auto-MDIX on the interface. Use the no arguments or keywords. Defaults Auto-MDIX is incorrect. Examples This example shows how to disable auto-MDIX. mdix auto Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mdix auto Use the mdix auto interface configuration command to enable the automatic medium-dependent interface crossover (auto-MDIX) feature on the interface by entering the show controllers ethernet-controller interface-id phy privileged EXEC command. 2-236 Catalyst 3560 Switch Command Reference...
Command Reference
Page 270
... resources. Examples This example shows how to enable QoS on the switch: Switch(config)# mls qos You can create a policy-map and attach it to configure QoS are not changed). No policy maps are in pass-through mode (packets are removed from the configuration by entering the show mls qos privileged EXEC command. 2-238 Catalyst 3560 Switch Command Reference 78-16405-05 The default port trust state on all ports is no mls qos command, but...
... resources. Examples This example shows how to enable QoS on the switch: Switch(config)# mls qos You can create a policy-map and attach it to configure QoS are not changed). No policy maps are in pass-through mode (packets are removed from the configuration by entering the show mls qos privileged EXEC command. 2-238 Catalyst 3560 Switch Command Reference 78-16405-05 The default port trust state on all ports is no mls qos command, but...
Command Reference
Page 315
... IP multicast VLAN and IP address. The no mvr type command resets the port as a subscriber port that can only receive multicast data. Configure the port as neither a source or a receiver port. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. 78-16405-05 Catalyst 3560 Switch Command Reference 2-283 No receiver port is the IP address of this command to return to the multicast VLAN. Receiver ports cannot belong to the default settings.
... IP multicast VLAN and IP address. The no mvr type command resets the port as a subscriber port that can only receive multicast data. Configure the port as neither a source or a receiver port. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. 78-16405-05 Catalyst 3560 Switch Command Reference 2-283 No receiver port is the IP address of this command to return to the multicast VLAN. Receiver ports cannot belong to the default settings.
Command Reference
Page 318
.... Defaults The default is the default. The other end of the channel uses the same port in the command-line interface (CLI). The switch sends packets to the source using any of the ports in this command to return to the default setting. Usage Guidelines The learn method must be configured the same at both ends of this situation. 2-286 Catalyst 3560 Switch Command Reference 78-16405-05 Note The Catalyst 3560 switch supports address...
.... Defaults The default is the default. The other end of the channel uses the same port in the command-line interface (CLI). The switch sends packets to the source using any of the ports in this command to return to the default setting. Usage Guidelines The learn method must be configured the same at both ends of this situation. 2-286 Catalyst 3560 Switch Command Reference 78-16405-05 Note The Catalyst 3560 switch supports address...
Command Reference
Page 320
... command or the show pagp channel-group-number internal privileged EXEC command. 2-288 Catalyst 3560 Switch Command Reference 78-16405-05 Examples This example shows how to set the load-distribution method based on aggregate ports even though the physical-port keyword is the one selected for PAgP transmission. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. Defaults The default is sent. If all Port Aggregation Protocol (PAgP) traffic...
... command or the show pagp channel-group-number internal privileged EXEC command. 2-288 Catalyst 3560 Switch Command Reference 78-16405-05 Examples This example shows how to set the load-distribution method based on aggregate ports even though the physical-port keyword is the one selected for PAgP transmission. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. Defaults The default is sent. If all Port Aggregation Protocol (PAgP) traffic...
Command Reference
Page 560
... the interface and port number. Command Modes User EXEC Command History Release 12.1(19)EA1 Modification This command was introduced. The VLAN range is bidirectional. Expressions are case sensitive. show udld Chapter 2 Catalyst 3560 Switch Cisco IOS Commands show udld Use the show udld user EXEC command to display UniDirectional Link Detection (UDLD) administrative and operational status for all ports or the specified port. Usage Guidelines If you enter | exclude output, the lines...
... the interface and port number. Command Modes User EXEC Command History Release 12.1(19)EA1 Modification This command was introduced. The VLAN range is bidirectional. Expressions are case sensitive. show udld Chapter 2 Catalyst 3560 Switch Cisco IOS Commands show udld Use the show udld user EXEC command to display UniDirectional Link Detection (UDLD) administrative and operational status for all ports or the specified port. Usage Guidelines If you enter | exclude output, the lines...
Command Reference
Page 578
... Chapter 2 Catalyst 3560 Switch Cisco IOS Commands Table 2-36 show vtp status Field Descriptions Field VTP Version Configuration Revision Maximum VLANs Supported Locally Number of VLANs supported locally. The switch receives VTP advertisements and forwards them on which can be set to initialize its VLAN database. By default, every switch is enabled or disabled. Displays whether VTP traps are sent to server mode until the NVRAM is disabled for the switch. Current configuration revision number on it . Number of...
... Chapter 2 Catalyst 3560 Switch Cisco IOS Commands Table 2-36 show vtp status Field Descriptions Field VTP Version Configuration Revision Maximum VLANs Supported Locally Number of VLANs supported locally. The switch receives VTP advertisements and forwards them on which can be set to initialize its VLAN database. By default, every switch is enabled or disabled. Displays whether VTP traps are sent to server mode until the NVRAM is disabled for the switch. Current configuration revision number on it . Number of...
Command Reference
Page 661
... device. Command Modes Interface configuration Command History Release 12.2(20)SE Modification This command was introduced. If you configure a SPAN destination port as a private-VLAN promiscuous port. For more information about private-VLAN interaction with these other features, see the software configuration guide for this command to reset the mode to the appropriate default for it is part of this release. 78-16405-05 Catalyst 3560 Switch Command Reference 2-629 Chapter 2 Catalyst 3560 Switch Cisco IOS Commands switchport mode private-vlan...
... device. Command Modes Interface configuration Command History Release 12.2(20)SE Modification This command was introduced. If you configure a SPAN destination port as a private-VLAN promiscuous port. For more information about private-VLAN interaction with these other features, see the software configuration guide for this command to reset the mode to the appropriate default for it is part of this release. 78-16405-05 Catalyst 3560 Switch Command Reference 2-629 Chapter 2 Catalyst 3560 Switch Cisco IOS Commands switchport mode private-vlan...
Command Reference
Page 668
... MAC addresses remain part of secure addresses to relearn these addresses are removed from the address table. switchport port-security Chapter 2 Catalyst 3560 Switch Cisco IOS Commands Examples Sticky secure MAC addresses have these characteristics: • When you enable sticky learning on an interface by using the switchport port-security mac-address sticky interface configuration command, the interface converts all the dynamic secure MAC addresses, including those that were removed can verify your settings by using the switchport port-security mac-address sticky mac-address...
... MAC addresses remain part of secure addresses to relearn these addresses are removed from the address table. switchport port-security Chapter 2 Catalyst 3560 Switch Cisco IOS Commands Examples Sticky secure MAC addresses have these characteristics: • When you enable sticky learning on an interface by using the switchport port-security mac-address sticky interface configuration command, the interface converts all the dynamic secure MAC addresses, including those that were removed can verify your settings by using the switchport port-security mac-address sticky mac-address...
Command Reference
Page 728
... supported with VTP Version 1 and Version 2. vtp (global configuration) Chapter 2 Catalyst 3560 Switch Cisco IOS Commands Follow these guidelines when setting VTP mode: • The no vtp mode command returns the switch to VTP server mode. • The vtp mode server command is the same as no vtp mode except that VLAN. • If you enable pruning on the VTP server, it does not return an error if the switch is not in client or transparent mode...
... supported with VTP Version 1 and Version 2. vtp (global configuration) Chapter 2 Catalyst 3560 Switch Cisco IOS Commands Follow these guidelines when setting VTP mode: • The no vtp mode command returns the switch to VTP server mode. • The vtp mode server command is the same as no vtp mode except that VLAN. • If you enable pruning on the VTP server, it does not return an error if the switch is not in client or transparent mode...
Command Reference
Page 761
... to troubleshoot specific problems or during troubleshooting sessions with the Catalyst 3560 switch. These commands are helpful in the CPU process, it can render the system unusable. It is assigned high priority in diagnosing and resolving internetworking problems and should be enabled only under the guidance of lower network traffic and fewer users. Debugging during periods of Cisco technical support staff. APPENDIX B Catalyst 3560 Switch Debug Commands...
... to troubleshoot specific problems or during troubleshooting sessions with the Catalyst 3560 switch. These commands are helpful in the CPU process, it can render the system unusable. It is assigned high priority in diagnosing and resolving internetworking problems and should be enabled only under the guidance of lower network traffic and fewer users. Debugging during periods of Cisco technical support staff. APPENDIX B Catalyst 3560 Switch Debug Commands...
Command Reference
Page 896
... control 2-615 IN-2 Catalyst 3560 Switch Command Reference C candidate switches See clusters cat (boot loader) command A-4 caution, description xx CDP, enabling protocol tunneling for 2-199 channel-group command 2-30 channel-protocol command 2-33 Cisco Network Assistant See Network Assistant xx Cisco SoftPhone auto-QoS configuration 2-17 trusting packets sent from 2-272 class command 2-34 class-map command 2-36 class maps creating 2-36 defining the match criteria 2-234 displaying 2-359 class of service See CoS clear ip arp inspection log command...
... control 2-615 IN-2 Catalyst 3560 Switch Command Reference C candidate switches See clusters cat (boot loader) command A-4 caution, description xx CDP, enabling protocol tunneling for 2-199 channel-group command 2-30 channel-protocol command 2-33 Cisco Network Assistant See Network Assistant xx Cisco SoftPhone auto-QoS configuration 2-17 trusting packets sent from 2-272 class command 2-34 class-map command 2-36 class maps creating 2-36 defining the match criteria 2-234 displaying 2-359 class of service See CoS clear ip arp inspection log command...
Command Reference
Page 909
... routed ports IP addresses on 2-126 number supported 2-126 RSPAN configuring 2-275 displaying 2-493 filter RSPAN traffic 2-275 remote-span command 2-325 sessions add interfaces to 2-275 displaying 2-493 start new 2-275 S sdm prefer command 2-330 SDM templates allowed resources 2-331 displaying 2-514 dual IPv4 and IPv6 2-330 secure ports, limitations 2-635 sending flow-control packets 2-114 service password-recovery command 2-333 service-policy command 2-335 set (boot loader) command A-20 set command 2-338 setup command 2-340 setup express command 2-343 show access-lists command...
... routed ports IP addresses on 2-126 number supported 2-126 RSPAN configuring 2-275 displaying 2-493 filter RSPAN traffic 2-275 remote-span command 2-325 sessions add interfaces to 2-275 displaying 2-493 start new 2-275 S sdm prefer command 2-330 SDM templates allowed resources 2-331 displaying 2-514 dual IPv4 and IPv6 2-330 secure ports, limitations 2-635 sending flow-control packets 2-114 service password-recovery command 2-333 service-policy command 2-335 set (boot loader) command A-20 set command 2-338 setup command 2-340 setup express command 2-343 show access-lists command...