Command Reference
Page 29
... Configuration Mode Global configuration commands apply to access global configuration mode: Switch# configure terminal Enter configuration commands, one per line. If your system administrator has set includes those available at the privileged level. Switch# Enter the enable command to access privileged EXEC mode: Switch> enable Switch# The supported commands can vary depending on the screen and is case sensitive. The default is the device name followed by the pound sign (#). Chapter 1 Using the Command-Line Interface CLI Command Modes User EXEC Mode After you access...
... Configuration Mode Global configuration commands apply to access global configuration mode: Switch# configure terminal Enter configuration commands, one per line. If your system administrator has set includes those available at the privileged level. Switch# Enter the enable command to access privileged EXEC mode: Switch> enable Switch# The supported commands can vary depending on the screen and is case sensitive. The default is the device name followed by the pound sign (#). Chapter 1 Using the Command-Line Interface CLI Command Modes User EXEC Mode After you access...
Command Reference
Page 63
..., configuration changes that is part of the EtherChannel must have to disable the IP address that you do not have the same configuration. After you do not specify non-silent with the auto or desirable mode, silent is misconfigured, packet loss or spanning-tree loops can use the channel-group interface configuration command. No mode is not generating traffic. A example of the link cannot be the same as a trunk...
..., configuration changes that is part of the EtherChannel must have to disable the IP address that you do not have the same configuration. After you do not specify non-silent with the auto or desirable mode, silent is misconfigured, packet loss or spanning-tree loops can use the channel-group interface configuration command. No mode is not generating traffic. A example of the link cannot be the same as a trunk...
Command Reference
Page 108
... deny ::/0 lt 5000 ::/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 the console. Filters incoming or outgoing IPv6 traffic on a Layer 3 interface. deny (IPv6 access-list configuration) Chapter 2 Catalyst 3560 Switch Cisco IOS Commands This is at...
... deny ::/0 lt 5000 ::/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 the console. Filters incoming or outgoing IPv6 traffic on a Layer 3 interface. deny (IPv6 access-list configuration) Chapter 2 Catalyst 3560 Switch Cisco IOS Commands This is at...
Command Reference
Page 157
... Layer 3 switch. 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 an IP address for the associated IP subnet. (Optional) Specifies that all other than routing updates with an ICMP Mask Reply message. ip address ip-address subnet-mask [secondary] no ip address command. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. Routers respond...
... Layer 3 switch. 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 an IP address for the associated IP subnet. (Optional) Specifies that all other than routing updates with an ICMP Mask Reply message. ip address ip-address subnet-mask [secondary] no ip address command. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. Routers respond...
Command Reference
Page 235
... in hot-standby mode when there are more than eight ports in an LACP channel-group, the eight ports with the default setting of 65535) an internal value for this command to return to 65535. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands lacp port-priority lacp port-priority Use the lacp port-priority interface configuration command to display LACP port priorities and internal port number values. Defaults The default is 1 to the default setting. Note The LACP...
... in hot-standby mode when there are more than eight ports in an LACP channel-group, the eight ports with the default setting of 65535) an internal value for this command to return to 65535. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands lacp port-priority lacp port-priority Use the lacp port-priority interface configuration command to display LACP port priorities and internal port number values. Defaults The default is 1 to the default setting. Note The LACP...
Command Reference
Page 255
... access vlan $AVID switchport mode access # Enable port security limiting port to an interface. After you have created a macro by using the macro name global configuration command, you create a macro. This example shows how to apply a user-created macro called duplex on an interface: Switch# show parser macro name macro-name user EXEC command. • Keywords that begin with the required values by entering the default interface interface-id interface configuration command. The Cisco-default macros use inactivity timer switchport port-security...
... access vlan $AVID switchport mode access # Enable port security limiting port to an interface. After you have created a macro by using the macro name global configuration command, you create a macro. This example shows how to apply a user-created macro called duplex on an interface: Switch# show parser macro name macro-name user EXEC command. • Keywords that begin with the required values by entering the default interface interface-id interface configuration command. The Cisco-default macros use inactivity timer switchport port-security...
Command Reference
Page 259
... linkup snmp-server enable traps linkdown #set snmp-server host snmp-server host ADDRESS #set SNMP trap notifications precedence snmp-server ip precedence VALUE Switch(config)# macro global apply snmp ADDRESS test-server VALUE 7 To debug a macro, use the $ character to help identify required keywords. In this example, the ADDRESS parameter value was not entered, causing the snmp-server host command to fail while the remainder of a specific macro by using the show parser macro user EXEC command. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands...
... linkup snmp-server enable traps linkdown #set snmp-server host snmp-server host ADDRESS #set SNMP trap notifications precedence snmp-server ip precedence VALUE Switch(config)# macro global apply snmp ADDRESS test-server VALUE 7 To debug a macro, use the $ character to help identify required keywords. In this example, the ADDRESS parameter value was not entered, causing the snmp-server host command to fail while the remainder of a specific macro by using the show parser macro user EXEC command. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands...
Command Reference
Page 268
... interface. Examples This example shows how to enable auto-MDIX on the interface by entering the show controllers ethernet-controller interface-id phy privileged EXEC command. 2-236 Catalyst 3560 Switch Command Reference 78-16405-05 Usage Guidelines When you enable auto-MDIX on 10/100/1000BASE-TX small form-factor pluggable (SFP) module interfaces. The default setting changed from disabled to enabled. It is enabled. Use the no arguments or keywords. mdix auto Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mdix auto Use the mdix auto interface configuration command...
... interface. Examples This example shows how to enable auto-MDIX on the interface by entering the show controllers ethernet-controller interface-id phy privileged EXEC command. 2-236 Catalyst 3560 Switch Command Reference 78-16405-05 Usage Guidelines When you enable auto-MDIX on 10/100/1000BASE-TX small form-factor pluggable (SFP) module interfaces. The default setting changed from disabled to enabled. It is enabled. Use the no arguments or keywords. mdix auto Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mdix auto Use the mdix auto interface configuration command...
Command Reference
Page 270
... or keywords. The default ingress and egress queue settings are not changed). However, until you enter the mls qos command, QoS processing is disabled. 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 use the mls qos command. mls qos Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mls qos Use the mls qos global configuration command to enable quality of trusted or untrusted ports because the packets...
... or keywords. The default ingress and egress queue settings are not changed). However, until you enter the mls qos command, QoS processing is disabled. 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 use the mls qos command. mls qos Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mls qos Use the mls qos global configuration command to enable quality of trusted or untrusted ports because the packets...
Command Reference
Page 315
... nor a source. 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 Configure the port as an uplink port that can send and receive multicast data for the specified multicast VLAN ID. All source ports on a VLAN from membership in an IP multicast address group. (Optional) Statically configure the specified MVR IP multicast group address for the configured multicast groups. The default port type is disabled on a port. The Immediate...
... nor a source. 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 Configure the port as an uplink port that can send and receive multicast data for the specified multicast VLAN ID. All source ports on a VLAN from membership in an IP multicast address group. (Optional) Statically configure the specified MVR IP multicast group address for the configured multicast groups. The default port type is disabled on a port. The Immediate...
Command Reference
Page 318
... command was introduced. The switch sends packets to the source using the port-channel load-balance src-mac global configuration command. Use the pagp learn -method physical-port interface configuration command and to set the load-distribution method based on the source MAC address by using the pagp learn -method interface configuration command only in this command to return to the default setting. The other end of the channel uses the same port in the command-line interface (CLI). Defaults The default is the default...
... command was introduced. The switch sends packets to the source using the port-channel load-balance src-mac global configuration command. Use the pagp learn -method physical-port interface configuration command and to set the load-distribution method based on the source MAC address by using the pagp learn -method interface configuration command only in this command to return to the default setting. The other end of the channel uses the same port in the command-line interface (CLI). Defaults The default is the default...
Command Reference
Page 320
... source MAC address by entering the show running-config privileged EXEC 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 port priority to 200: Switch(config-if)# pagp port-priority 200 You can verify your setting by using the pagp learn-method physical-port interface configuration command and to set the load-distribution method based on the switch hardware...
... source MAC address by entering the show running-config privileged EXEC 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 port priority to 200: Switch(config-if)# pagp port-priority 200 You can verify your setting by using the pagp learn-method physical-port interface configuration command and to set the load-distribution method based on the switch hardware...
Command Reference
Page 560
.../1 Interface gi0/1 --Port enable administrative configuration setting: Follows device default Port enable operational state: Enabled Current bidirectional state: Bidirectional Current operational state: Advertisement - Command Modes User EXEC Command History Release 12.1(19)EA1 Modification This command was introduced. Switch> show udld [interface-id] [ | {begin | exclude | include} expression] Syntax Description interface-id | begin | exclude | include expression (Optional) ID of the interface and port number. show udld Chapter 2 Catalyst 3560 Switch Cisco IOS Commands show udld Use...
.../1 Interface gi0/1 --Port enable administrative configuration setting: Follows device default Port enable operational state: Enabled Current bidirectional state: Bidirectional Current operational state: Advertisement - Command Modes User EXEC Command History Release 12.1(19)EA1 Modification This command was introduced. Switch> show udld [interface-id] [ | {begin | exclude | include} expression] Syntax Description interface-id | begin | exclude | include expression (Optional) ID of the interface and port number. show udld Chapter 2 Catalyst 3560 Switch Cisco IOS Commands show udld Use...
Command Reference
Page 578
... are sent to access the appropriate network devices. Enabling pruning on a VTP server enables pruning for VTP, does not send or learn from advertisements sent by default. Number of Existing VLANs VTP Operating Mode Description Displays the VTP version operating on other devices in VTP server mode is enabled for the switch. You cannot configure VLANs on which can be set to the database. 2-546 Catalyst 3560 Switch Command Reference 78-16405-05...
... are sent to access the appropriate network devices. Enabling pruning on a VTP server enables pruning for VTP, does not send or learn from advertisements sent by default. Number of Existing VLANs VTP Operating Mode Description Displays the VTP version operating on other devices in VTP server mode is enabled for the switch. You cannot configure VLANs on which can be set to the database. 2-546 Catalyst 3560 Switch Command Reference 78-16405-05...
Command Reference
Page 661
.... 78-16405-05 Catalyst 3560 Switch Command Reference 2-629 Defaults The default private-VLAN mode is dynamic auto. Configure the interface as a private-VLAN promiscuous port. Promiscuous ports are either community ports or isolated ports, depending on ports with other features: • Dynamic-access port VLAN membership • Dynamic Trunking Protocol (DTP) • Port Aggregation Protocol (PAgP) • Link Aggregation Control Protocol (LACP) • Multicast VLAN Registration (MVR) • Voice VLAN A private-VLAN port cannot be a Switched Port Analyzer (SPAN) destination...
.... 78-16405-05 Catalyst 3560 Switch Command Reference 2-629 Defaults The default private-VLAN mode is dynamic auto. Configure the interface as a private-VLAN promiscuous port. Promiscuous ports are either community ports or isolated ports, depending on ports with other features: • Dynamic-access port VLAN membership • Dynamic Trunking Protocol (DTP) • Port Aggregation Protocol (PAgP) • Link Aggregation Control Protocol (LACP) • Multicast VLAN Registration (MVR) • Voice VLAN A private-VLAN port cannot be a Switched Port Analyzer (SPAN) destination...
Command Reference
Page 668
... Command Reference 78-16405-05 If sticky learning is disabled, the sticky secure MAC addresses are converted to dynamic secure addresses and 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...
... Command Reference 78-16405-05 If sticky learning is disabled, the sticky secure MAC addresses are converted to dynamic secure addresses and 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...
Command Reference
Page 728
... network must be enabled. 2-696 Catalyst 3560 Switch Command Reference 78-16405-05 If the receiving switch is in server mode or transparent mode, the switch configuration is disabled. otherwise, you receive an error message, and the configuration is not allowed. • VTP can be pruned. • Pruning is 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...
... network must be enabled. 2-696 Catalyst 3560 Switch Command Reference 78-16405-05 If the receiving switch is in server mode or transparent mode, the switch configuration is disabled. otherwise, you receive an error message, and the configuration is not allowed. • VTP can be pruned. • Pruning is 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...
Command Reference
Page 761
... commands only to use with Cisco technical support staff. Debugging during troubleshooting sessions with the Catalyst 3560 switch. 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. Caution Because debugging output is best to troubleshoot specific problems or during these periods decreases the likelihood that have been created or changed...
... commands only to use with Cisco technical support staff. Debugging during troubleshooting sessions with the Catalyst 3560 switch. 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. Caution Because debugging output is best to troubleshoot specific problems or during these periods decreases the likelihood that have been created or changed...
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...