Command Reference
Page 29
.... If your system administrator has set includes those available at the user level are prompted to enter it before being granted access to access privileged EXEC mode: Switch> enable Switch# The supported commands can vary depending on the version of the configuration commands: Switch# configure Configuring from the management console. The default is to enter global configuration mode. Use the configure privileged EXEC command to enter commands from terminal, memory, or network [terminal]? You can vary...
.... If your system administrator has set includes those available at the user level are prompted to enter it before being granted access to access privileged EXEC mode: Switch> enable Switch# The supported commands can vary depending on the version of the configuration commands: Switch# configure Configuring from the management console. The default is to enter global configuration mode. Use the configure privileged EXEC command to enter commands from terminal, memory, or network [terminal]? You can vary...
Command Reference
Page 63
... to disable the IP address that is connected to the port-channel interface. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands channel-group Defaults No channel groups are assigned. You create Layer 3 port channels by the no switchport interface configuration command. Usage Guidelines For Layer 2 EtherChannels, you do not specify non-silent with the auto or desirable mode, silent is not generating traffic. It automatically creates the port-channel interface when the channel group gets its first physical port if the logical interface is configured. In...
... to disable the IP address that is connected to the port-channel interface. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands channel-group Defaults No channel groups are assigned. You create Layer 3 port channels by the no switchport interface configuration command. Usage Guidelines For Layer 2 EtherChannels, you do not specify non-silent with the auto or desirable mode, silent is not generating traffic. It automatically creates the port-channel interface when the channel group gets its first physical port if the logical interface is configured. In...
Command Reference
Page 108
... 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 other traffic to outbound traffic on an interface. Sets permit conditions for an IPv6 access list. deny (IPv6 access-list configuration) Chapter 2 Catalyst 3560 Switch Cisco IOS Commands...
... 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 other traffic to outbound traffic on an interface. Sets permit conditions for an IPv6 access list. deny (IPv6 access-list configuration) Chapter 2 Catalyst 3560 Switch Cisco IOS Commands...
Command Reference
Page 157
... 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 an IP address for the associated IP subnet. (Optional) Specifies that same segment must also use a secondary address from the same network or subnet. Routers respond to the console. When you remove the switch IP address through a Telnet session, your connection to the switch will send an error message...
... 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 an IP address for the associated IP subnet. (Optional) Specifies that same segment must also use a secondary address from the same network or subnet. Routers respond to the console. When you remove the switch IP address through a Telnet session, your connection to the switch will send an error message...
Command Reference
Page 235
... in standby mode. For information about configuring LACP on the switch that controls the LACP link. lacp port-priority priority no form of the same type. Defaults The default is 1 to display LACP port priorities and internal port number values. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands lacp port-priority lacp port-priority Use the lacp port-priority interface configuration command to configure the port priority for determining which ports are put in an LACP channel group. The range is...
... in standby mode. For information about configuring LACP on the switch that controls the LACP link. lacp port-priority priority no form of the same type. Defaults The default is 1 to display LACP port priorities and internal port number values. Chapter 2 Catalyst 3560 Switch Cisco IOS Commands lacp port-priority lacp port-priority Use the lacp port-priority interface configuration command to configure the port priority for determining which ports are put in an LACP channel group. The range is...
Command Reference
Page 255
... still applied to a single interface. The Cisco-default macros use the macro trace interface configuration command to find any syntax or configuration errors in the macro as a macro applied to the remaining interfaces. Enable data VLAN only # Recommended value for access vlan (AVID) should not be 1 switchport access vlan $AVID switchport mode access # Enable port security limiting port to 25 on an interface: Switch(config-if)# macro trace duplex Applying command...'duplex auto' %Error Unknown error. that a unique parameter...
... still applied to a single interface. The Cisco-default macros use the macro trace interface configuration command to find any syntax or configuration errors in the macro as a macro applied to the remaining interfaces. Enable data VLAN only # Recommended value for access vlan (AVID) should not be 1 switchport access vlan $AVID switchport mode access # Enable port security limiting port to 25 on an interface: Switch(config-if)# macro trace duplex Applying command...'duplex auto' %Error Unknown error. that a unique parameter...
Command Reference
Page 259
...-configuration user EXEC command. 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 name macro-name user EXEC command. • Keywords that begin with the required values by using the show parser macro name snmp Macro name : snmp Macro type : customizable #enable port security, linkup, and linkdown traps snmp-server enable traps port-security snmp-server enable...
...-configuration user EXEC command. 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 name macro-name user EXEC command. • Keywords that begin with the required values by using the show parser macro name snmp Macro name : snmp Macro type : customizable #enable port security, linkup, and linkdown traps snmp-server enable traps port-security snmp-server enable...
Command Reference
Page 268
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 1000BASE-SX or -LX SFP module interfaces. Use the no arguments or keywords. The default setting changed from disabled to auto so that the feature operates correctly. It is enabled on an interface, you enable auto-MDIX on one or both of connected interfaces, link up occurs, even if the cable type (straight-through...
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 1000BASE-SX or -LX SFP module interfaces. Use the no arguments or keywords. The default setting changed from disabled to auto so that the feature operates correctly. It is enabled on an interface, you enable auto-MDIX on one or both of connected interfaces, link up occurs, even if the cable type (straight-through...
Command Reference
Page 270
... enabled with this queue. Traffic is disabled. Use the no concept of the queues. Toggling the QoS status of service (QoS) for the entire switch. No policy maps are not deleted from the switch hardware to a port before entering the mls qos command. Defaults QoS is switched in effect. You can verify your settings by the no arguments or keywords. mls qos Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mls qos Use the mls qos global configuration command to enable...
... enabled with this queue. Traffic is disabled. Use the no concept of the queues. Toggling the QoS status of service (QoS) for the entire switch. No policy maps are not deleted from the switch hardware to a port before entering the mls qos command. Defaults QoS is switched in effect. You can verify your settings by the no arguments or keywords. mls qos Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mls qos Use the mls qos global configuration command to enable...
Command Reference
Page 315
... the default settings. All source ports on a port. Configure the port as a multicast VLAN registration (MVR) receiver or source port, to set the Immediate Leave feature, and to statically assign a port to an IP multicast VLAN and IP address. 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 Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mvr (interface configuration) mvr (interface configuration) Use the mvr interface configuration command to configure...
... the default settings. All source ports on a port. Configure the port as a multicast VLAN registration (MVR) receiver or source port, to set the Immediate Leave feature, and to statically assign a port to an IP multicast VLAN and IP address. 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 Chapter 2 Catalyst 3560 Switch Cisco IOS Commands mvr (interface configuration) mvr (interface configuration) Use the mvr interface configuration command to configure...
Command Reference
Page 318
... on the source MAC address by using the pagp learn-method physical-port interface configuration command and to the source using the same port in the EtherChannel from an EtherChannel port. This setting is aggregation-port (logical port channel). pagp learn-method Chapter 2 Catalyst 3560 Switch Cisco IOS Commands pagp learn-method Use the pagp learn-method interface configuration command to the default setting. The other end of this situation. 2-286 Catalyst 3560 Switch Command Reference 78-16405-05...
... on the source MAC address by using the pagp learn-method physical-port interface configuration command and to the source using the same port in the EtherChannel from an EtherChannel port. This setting is aggregation-port (logical port channel). pagp learn-method Chapter 2 Catalyst 3560 Switch Cisco IOS Commands pagp learn-method Use the pagp learn-method interface configuration command to the default setting. The other end of this situation. 2-286 Catalyst 3560 Switch Command Reference 78-16405-05...
Command Reference
Page 320
... the command-line interface (CLI). Usage Guidelines The physical port with the highest priority that is sent. Note The Catalyst 3560 switch supports address learning only on the source MAC address by using the pagp learn -method interface configuration command only in this command to return to the Catalyst 3560 switch is 128. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. When the link partner to the default setting. Use the...
... the command-line interface (CLI). Usage Guidelines The physical port with the highest priority that is sent. Note The Catalyst 3560 switch supports address learning only on the source MAC address by using the pagp learn -method interface configuration command only in this command to return to the Catalyst 3560 switch is 128. Command Modes Interface configuration Command History Release 12.1(19)EA1 Modification This command was introduced. When the link partner to the default setting. Use the...
Command Reference
Page 560
... VLANs. Examples This is enabled on both ends of the interface and port number. 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. Command Modes User EXEC Command History Release 12.1(19)EA1 Modification This command was introduced. For this display. Switch> show udld gigabitethernet0/1 Interface gi0/1 --Port enable administrative configuration setting: Follows device default Port enable...
... VLANs. Examples This is enabled on both ends of the interface and port number. 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. Command Modes User EXEC Command History Release 12.1(19)EA1 Modification This command was introduced. For this display. Switch> show udld gigabitethernet0/1 Interface gi0/1 --Port enable administrative configuration setting: Follows device default Port enable...
Command Reference
Page 578
... configured to access the appropriate network devices. Displays the date and time of existing VLANs. Pruning restricts flooded traffic to a network management station. All VTP Version 2 switches operate in Version 1 mode by other devices, and cannot affect VLAN configurations on other VTP devices. Displays the IP address of the switch that it can configure VLANs on the switch. show vtp 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...
... configured to access the appropriate network devices. Displays the date and time of existing VLANs. Pruning restricts flooded traffic to a network management station. All VTP Version 2 switches operate in Version 1 mode by other devices, and cannot affect VLAN configurations on other VTP devices. Displays the IP address of the switch that it can configure VLANs on the switch. show vtp 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...
Command Reference
Page 661
... 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 switchport mode private-vlan Use the switchport mode private-vlan interface configuration command to configure a port as a protected port. A private-VLAN port cannot be a secure port and should not be a Switched Port Analyzer (SPAN) destination port. Promiscuous ports are either community ports or isolated ports, depending on ports with other features: • Dynamic-access port VLAN...
... 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 switchport mode private-vlan Use the switchport mode private-vlan interface configuration command to configure a port as a protected port. A private-VLAN port cannot be a secure port and should not be a Switched Port Analyzer (SPAN) destination port. Promiscuous ports are either community ports or isolated ports, depending on ports with other features: • Dynamic-access port VLAN...
Command Reference
Page 668
... MAC addresses and adds all the dynamic secure MAC addresses, including those that were removed can verify your settings by using the show port-security privileged EXEC command. 2-636 Catalyst 3560 Switch Command Reference 78-16405-05 Switch(config)# interface gigabitethernet 0/2 Switch(config-if)# switchport mode access Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security maximum 5 This example shows how to configure a secure MAC address and a VLAN ID on a port: Switch(config)# interface gigabitethernet 0/2 Switch(config-if)# switchport mode trunk...
... MAC addresses and adds all the dynamic secure MAC addresses, including those that were removed can verify your settings by using the show port-security privileged EXEC command. 2-636 Catalyst 3560 Switch Command Reference 78-16405-05 Switch(config)# interface gigabitethernet 0/2 Switch(config-if)# switchport mode access Switch(config-if)# switchport port-security Switch(config-if)# switchport port-security maximum 5 This example shows how to configure a secure MAC address and a VLAN ID on a port: Switch(config)# interface gigabitethernet 0/2 Switch(config-if)# switchport mode trunk...
Command Reference
Page 728
... configuration file. • If extended-range VLANs are configured on the switch and you attempt to set the VTP mode to server or client, 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. otherwise, you must support 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...
... configuration file. • If extended-range VLANs are configured on the switch and you attempt to set the VTP mode to server or client, 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. otherwise, you must support 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
... use the debug commands 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. Debugging during these periods decreases the likelihood that have been created or changed for use with Cisco technical support staff. Caution Because debugging output is best to troubleshoot specific problems...
... use the debug commands 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. Debugging during these periods decreases the likelihood that have been created or changed for use with Cisco technical support staff. Caution Because debugging output is best to troubleshoot specific problems...
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...