Matrix V-Series V2H124-24 FAST ETHERNET SWITCH Configuration Guide P/N 9033925-02
Notice ELECTRICAL HAZARD: Only qualified personnel should perform installation procedures. NOTICE Enterasys Networks reserves the right to make changes in specifications and other information contained in this document without prior notice. The reader should in all cases consult Enterasys Networks to determine whether any such changes have been made. The hardware, firmware, or software described in this manual is subject to change without notice.
Notice
Contents Chapter 1: Switch Management Connecting to the Switch Configuration Options Required Connections Remote Connections Basic Configuration Console Connection Setting Passwords Setting an IP Address Manual Configuration Dynamic Configuration Enabling SNMP Management Access Community Strings Trap Receivers Saving Configuration Settings Managing System Files System Defaults Chapter 2: Configuring the Switch Using the Web Interface Navigating the Web Browser Interface Home Page Configuration Options Panel
Contents Setting the System Clock Configuring SNTP Setting the Time Zone Configuring SNMP Setting Community Access Strings Specifying Trap Managers Filtering Addresses for SNMP Client Access User Authentication Configuring the Logon Password Configuring RADIUS/TACACS Logon Authentication Configuring HTTPS Replacing the Default Secure-site Certificate Configuring SSH Configuring Port Security Configuring 802.1x Port Authentication Displaying 802.1x Global Settings Configuring Global 802.
Contents Displaying Global Settings Configuring Global Settings Displaying Interface Settings Configuring Interface Settings VLAN Configuration Overview Assigning Ports to VLANs Forwarding Tagged/Untagged Frames Enabling or Disabling GVRP (Global Setting) Displaying Basic VLAN Information Displaying Current VLANs Creating VLANs Adding Static Members to VLANs (VLAN Index) Adding Static Members to VLANs (Port Index) Configuring VLAN Behavior for Interfaces Class of Service Configuration Setting the Default Pr
Contents Partial Keyword Lookup Negating the Effect of Commands Using Command History Understanding Command Modes Exec Commands Configuration Commands Command Line Processing Command Groups Line Commands line login password exec-timeout password-thresh silent-time databits parity speed stopbits show line General Commands enable disable configure show history reload end exit quit System Management Commands Device Designation Commands prompt hostname User Access Commands username enable password Web Server Co
Contents show ip ssh disconnect ssh show ssh Event Logging Commands logging on logging history clear logging show logging Time Commandsl sntp client sntp server sntp poll sntp broadcast client show sntp clock timezone calendar set show calendar System Status Commands show startup-config show running-config show system show users show version Flash/File Commands copy delete dir whichboot boot system Authentication Commands Authentication Sequence authentication login RADIUS Client radius-server host radius-s
Contents port security 802.
Contents snmp-server community snmp-server contact snmp-server location snmp-server host snmp-server enable traps snmp ip filter show snmp Interface Commands interface description speed-duplex negotiation capabilities flowcontrol shutdown switchport broadcast packet-rate clear counters show interfaces status show interfaces counters show interfaces switchport Mirror Port Commands port monitor show port monitor Rate Limit Commands rate-limit Link Aggregation Commands channel-group lacp Address Table Commands
Contents spanning-tree portfast spanning-tree link-type spanning-tree protocol-migration show spanning-tree VLAN Commands Editing VLAN Groups vlan database vlan Configuring VLAN Interfaces interface vlan switchport mode switchport acceptable-frame-types switchport ingress-filtering switchport native vlan switchport allowed vlan switchport forbidden vlan Displaying VLAN Information show vlan GVRP and Bridge Extension Commands bridge-ext gvrp show bridge-ext switchport gvrp show gvrp configuration garp timer
Contents ip igmp snooping vlan static ip igmp snooping version show ip igmp snooping show mac-address-table multicast IGMP Query Commands (Layer 2) ip igmp snooping querier ip igmp snooping query-count ip igmp snooping query-interval ip igmp snooping query-max-response-time ip igmp snooping router-port-expire-time Static Multicast Routing Commands ip igmp snooping vlan mrouter show ip igmp snooping mrouter IP Interface Commands ip address ip default-gateway ip dhcp restart show ip interface show ip redirect
Contents Appendix A: Upgrading Firmware via the Serial Port A-1 Appendix B: Troubleshooting B-1 Appendix C: Software Specifications C-1 Software Features Management Features Standards Management Information Bases Glossary Index xii C-1 C-2 C-2 C-3
Tables Table 1-1 Table 2-2 Table 2-3 Table 2-4 Table 2-5 Table 2-6 Table 2-7 Table 2-8 Table 2-13 Table 2-14 Table 3-15 Table 3-16 Table 3-17 Table 3-18 Table 3-19 Table 3-20 Table 3-21 Table 3-22 Table 3-23 Table 3-24 Table 3-25 Table 3-26 Table 3-27 Table 3-28 Table 3-29 Table 3-30 Table 3-31 Table 3-32 Table 3-33 Table 3-34 Table 3-35 Table 3-36 Table 3-37 Table 3-38 Table 3-39 Table 3-40 Table 3-41 Table 3-42 Table 3-43 Table 3-44 Table 3-45 Table 3-46 System Defaults Configuration Options Switch Main
Tables Table 3-47 Table 3-48 Table 3-49 Table 3-50 Table 3-51 Table 3-52 Table 3-53 Table 3-54 Table 3-55 Table 3-56 Table 3-57 Table 3-58 Table 3-59 Table 3-60 Table 3-61 Table 3-62 Table 3-63 Table 3-64 Table B-1 xiv Rate Limit Commands Link Aggregation Commands Address Table Commands Spanning Tree Commands VLAN Commands Editing VLAN Groups Configuring VLAN Interfaces Displaying VLAN Information GVRP and Bridge Extension Commands Priority Commands Priority Commands (Layer 2) Priority Commands (Layer 3 a
Figures Figure 2-1 Figure 2-2 Figure 2-3 Figure 2-4 Figure 2-5 Figure 2-6 Figure 2-7 Figure 2-8 Figure 2-9 Figure 2-10 Figure 2-11 Figure 2-12 Figure 2-13 Figure 2-14 Figure 2-15 Figure 2-16 Figure 2-17 Figure 2-18 Figure 2-19 Figure 2-20 Figure 2-21 Figure 2-22 Figure 2-23 Figure 2-24 Figure 2-25 Figure 2-26 Figure 2-27 Figure 2-28 Figure 2-29 Figure 2-30 Figure 2-31 Figure 2-32 Figure 2-33 Figure 2-34 Figure 2-35 Figure 2-36 Figure 2-37 Figure 2-38 Figure 2-39 Figure 2-40 Figure 2-41 Figure 2-42 Homepage
Figures Figure 2-43 Figure 2-44 Figure 2-45 Figure 2-46 Figure 2-47 Figure 2-48 Figure 2-49 Figure 2-50 Figure 2-51 Figure 2-52 Figure 2-53 Figure 2-54 Figure 2-55 Figure 2-56 Figure 2-57 Figure 2-58 Figure 2-59 Figure 2-60 Figure 2-61 Figure 2-62 Figure 2-63 Figure 2-64 Figure 2-65 Figure 2-66 Figure 2-67 Figure 2-68 Figure 2-69 Figure 2-70 xvi Displaying the MAC Dynamic Address Table Setting the Aging Time Displaying the Spanning Tree Algorithm Configuring the Spanning Tree Algorithm Displaying STA - Po
Chapter 1: Switch Management Connecting to the Switch Configuration Options This Matrix V-Series V2H124-24 switch includes a built-in network management agent. The agent offers a variety of management options, including SNMP, RMON and a Web-based interface. A PC may also be connected directly to the switch for configuration and monitoring via a command line interface (CLI). Note: The IP address for this switch is assigned via DHCP by default. To change this address, see “Setting an IP Address” on page 1-4.
1 Switch Management • Time-stamp packets through SNTP • Filter packets using Access Control Lists (ACLs) • Enable port mirroring • Set broadcast storm control on any port • Display system information and statistics Required Connections The switch provides an RS-232 serial port that enables a connection to a PC or terminal for monitoring and configuring the switch. A null-modem console cable is provided with the switch.
1 Basic Configuration For a description of how to use the CLI, see “Using the Command Line Interface” on page 3-1. For a list of all the CLI commands and detailed information on using the CLI, refer to “Command Groups” on page 3-8. Remote Connections Prior to accessing the switch’s onboard agent via a network connection, you must first configure it with a valid IP address, subnet mask, and default gateway using a console connection, DHCP or BOOTP protocol.
1 4. Switch Management The session is opened and the CLI displays the “Console#” prompt indicating you have access at the Privileged Exec level. Setting Passwords Note: If this is your first time to log into the CLI program, you should define new passwords for both default user names using the “username” command, record them and put them in a safe place. Passwords can consist of up to 8 alphanumeric characters and are case sensitive.
1 Basic Configuration Manual Configuration You can manually assign an IP address to the switch. You may also need to specify a default gateway that resides between this device and management stations that exist on another network segment. Valid IP addresses consist of four decimal numbers, 0 to 255, separated by periods. Anything outside this format will not be accepted by the CLI program. Note: The IP address for this switch is assigned via DHCP by default.
1 2. Switch Management At the interface-configuration mode prompt, use one of the following commands: • To obtain IP settings through DHCP, type “ip address dhcp” and press . • To obtain IP settings through BOOTP, type “ip address bootp” and press . 3. Type “exit” to return to the global configuration mode. Press . 4. Type “ip dhcp restart” to begin broadcasting service requests. Press . 5.
1 Basic Configuration • private - Specifies read-write access. Authorized management stations are able to both retrieve and modify MIB objects. Note: If you do not intend to utilize SNMP, it is recommended that you delete both of the default community strings. If there are no community strings, then SNMP management access to the switch is disabled. To prevent unauthorized access to the switch via SNMP, it is recommended that you change the default community strings.
1 2. Switch Management Enter the name of the start-up file. Press . Console#copy running-config startup-config Startup configuration file name []: startup Console# Managing System Files The switch’s flash memory supports three types of system files that can be managed by the CLI program, Web interface, or SNMP. The switch’s file system allows files to be uploaded and downloaded, copied, deleted, and set as a start-up file.
1 System Defaults System Defaults The switch’s system defaults are provided in the configuration file “Factory_Default_Config.cfg” To reset the switch defaults, this file should be set as the startup configuration file. (See “Setting the Startup Configuration File” on page 2-17.) The following table lists some of the basic system defaults.
1 Switch Management Table 1-1 System Defaults Function Parameter Default Port Configuration Admin Status Enabled Auto-negotiation Enabled Flow Control Disabled Port Capability 100BASE-TX/FX – 10 Mbps half duplex 10 Mbps full duplex 100 Mbps half duplex 100 Mbps full duplex Full-duplex flow control disabled 1000BASE-T – 10 Mbps half duplex 10 Mbps full duplex 100 Mbps half duplex 100 Mbps full duplex 1000 Mbps full duplex Full-duplex flow control disabled Symmetric flow control disabled 1000BASE-
System Defaults 1 Table 1-1 System Defaults Function Parameter Default Traffic Prioritization Ingress Port Priority 0 Weighted Round Robin Class 0: 1 Class 1: 4 Class 2: 16 Class 3: 64 IP Precedence Priority Disabled IP DSCP Priority Disabled Management VLAN 1 IP Settings IP Address 0.0.0.0 Subnet Mask 255.0.0.0 Default Gateway 0.0.0.
1 Switch Management 1-12
Chapter 2: Configuring the Switch Using the Web Interface This switch provides an embedded HTTP Web agent. Using a Web browser you can configure the switch and view statistics to monitor network activity. The Web agent can be accessed by any computer on the network using a standard Web browser (Internet Explorer 5.0 or above, or Netscape Navigator 6.2 or above). Note: You can also use the Command Line Interface (CLI) to manage the switch over a serial connection to the console port or via Telnet.
2 Configuring the Switch Navigating the Web Browser Interface To access the Web-browser interface you must first enter a user name and password. The administrator has Read/Write access to all configuration parameters and statistics. The default user name and password for the administrator is “admin.” Home Page When your Web browser connects with the switch’s Web agent, the home page is displayed as shown below.
2 Panel Display Notes: 1. To ensure proper screen refresh, be sure that Internet Explorer 5.x is configured as follows: Under the menu “Tools / Internet Options / General / Temporary Internet Files / Settings,” the setting for item “Check for newer versions of stored pages” should be “Every visit to the page.” 2. When using Internet Explorer 5.0, you may have to manually refresh the screen after making configuration changes by pressing the browser’s refresh button.
2 Configuring the Switch Table 2-3 Switch Main Menu Menu Description Page Bridge Extension Shows the configuration for bridge extension commands; enables 2-10 GVRP multicast protocol Switch Information Shows the number of ports, hardware/firmware version numbers, 2-8 and power status Port 2-52 Port Information Displays port connection status 2-52 Trunk Information Displays trunk connection status 2-52 Port Configuration Configures port connection settings 2-54 Trunk Configuration Config
2 Main Menu Table 2-3 Switch Main Menu Menu Description Page Sets the default priority for each port 2-93 QoS Default Port Priority 2-93 Default Trunk Priority Sets the default priority for each trunk 2-93 Traffic Classes Maps IEEE 802.
2 Configuring the Switch Table 2-3 Switch Main Menu Menu Description Page Input Rate Limit Port Configuration Sets the input rate limit for each port 2-62 Input Rate Limit Trunk Configuration Sets the input rate limit for each trunk 2-62 Output Rate Limit Port Configuration Sets the output rate limit for each port 2-62 Output Rate Limit Trunk Configuration Sets the output rate limit for each trunk 2-62 Rate Limit 2-62 802.1x 802.
2 Basic Configuration Basic Configuration Displaying System Information You can easily identify the system by providing a descriptive name, location and contact information. Field Attributes • System Name – Name assigned to the switch system. • Object ID – MIB II object ID for switch’s network management subsystem. • Location – Specifies the system location. • Contact – Administrator responsible for the system. • System Up Time – Length of time the management agent has been up.
2 Configuring the Switch CLI – Specify the hostname, location and contact information. Console(config)#hostname Enterasys Matrix-V Series Console(config)#snmp-server location TPS - 3rd Floor Console(config)#snmp-server contact David Console#show system System description: Enterasys Networks, Inc. V2H124-24; SW version: V2.0.1.25 System OID string: 1.3.6.1.4.1.5624.2.1.62 System information System Up time: 0 days, 4 hours, 40 minutes, and 58.
2 Basic Configuration Expansion Slot • Expansion Slot 1/2 – Slots for extender modules. Web – Click System, Switch Information. Figure 2-4 General Switch Information CLI – Use the following command to display version information.
2 Configuring the Switch Displaying Bridge Extension Capabilities The Bridge MIB includes extensions for managed devices that support Multicast Filtering, Traffic Classes, and Virtual LANs. You can access these extensions to display default settings for the key variables, or to configure the global setting for GARP VLAN Registration Protocol (GVRP).
2 Basic Configuration Web – Click System, Bridge Extension. Figure 2-5 Bridge Extension Capabilities CLI – Enter the following command.
2 Configuring the Switch Setting the IP Address An IP address may be used for management access to the switch over your network. By default, the switch uses DHCP to assign IP settings to VLAN 1 on the switch. If you wish to manually configure IP settings, you need to change the switch’s user-specified defaults (IP address 0.0.0.0 and netmask 255.0.0.0) to values that are compatible with your network.
2 Basic Configuration Manual Configuration Web – Click System, IP. Specify the management interface, IP address and default gateway, then click Apply. Figure 2-6 VLAN IP Configuration CLI – Specify the management interface, IP address and default gateway. Console#config Console(config)#interface vlan 1 Console(config-if)#ip address 10.2.13.30 255.255.255.0 Console(config-if)#exit Console(config)#ip default-gateway 192.168.1.
2 Configuring the Switch Renewing DCHP – DHCP may lease addresses to clients indefinitely or for a specific period of time. If the address expires or the switch is moved to another network segment, you will lose management access to the switch. In this case, you can reboot the switch or submit a client request to restart DHCP service. Web – If the address assigned by DHCP is no longer functioning, you will not be able to renew the IP settings via the Web interface.
2 Basic Configuration Web – Click System, Firmware. Enter the IP address of the TFTP server, enter the file name of the software to download, select a file on the switch to overwrite or specify a new file name, then click Transfer from Server. To start the new firmware, reboot the system via the System/Reset menu.
2 Configuring the Switch Saving or Restoring Configuration Settings You can upload/download configuration settings to/from a TFTP server. The configuration file can be later downloaded to restore the switch’s settings. Command Attributes • TFTP Server IP Address — The IP address of a TFTP server. • Destination File Name —The configuration file name should not contain slashes (\ or /), the leading letter of the file name should not be a period (.
2 Basic Configuration Setting the Startup Configuration File If you download to a new file name, then select the new file from the drop-down box for Startup Configuration File, and press Apply Changes. To use the new settings, reboot the system via the System/Reset menu. Figure 2-10 Select Start-Up Configuration File CLI – Enter the IP address of the TFTP server, specify the source file on the server, set the startup file name on the switch, and then restart the switch.
2 Configuring the Switch Resetting the System Web – Select System, Reset to reboot the switch. When prompted, confirm that you want reset the switch. Figure 2-12 Reseting the Switch CLI – Use the reload command to reboot the system. Console#reload System will be restarted, continue ? y Console# 3-20 Note: When restarting the system, it will always run the Power-On Self-Test.
2 Basic Configuration • SNTP Broadcast Client – Configures the switch to operate as an SNTP broadcast client. This mode requires no other configuration settings; the switch will obtain time updates from time server broadcasts (using the multicast address 224.0.1.1). • SNTP Poll Interval – Sets the interval between sending requests for a time update from a time server when set to SNTP Client mode.
2 Configuring the Switch Web – Select SNTP, Clock Time Zone. Set the offset for your time zone relative to the UTC, and click Apply. Figure 2-14 Setting the Time Zone CLI - This example shows how to set the time zone for the system clock. Console(config)#clock timezone Dhaka hours 6 minute 0 after-UTC Console# 3-36 Configuring SNMP Simple Network Management Protocol (SNMP) is a communication protocol designed specifically for managing devices on a network.
2 Configuring SNMP • Community String – A community string that acts like a password and permits access to the SNMP protocol. Default strings: “public” (read-only access), “private” (read/write access) Range: 1-32 characters, case sensitive • Access Mode • Read-Only – Specifies read-only access. Authorized management stations are only able to retrieve MIB objects. • Read/Write – Specifies read-write access. Authorized management stations are able to both retrieve and modify MIB objects.
2 Configuring the Switch we recommend that you define this string in the SNMP Protocol table as well. (Range: 1-32 characters, case sensitive) • Trap Version – Indicates if the user is running version 1 or version 2c. • Enable Authentication Traps – Issues a trap message to specified IP trap managers whenever authentication of an SNMP request fails. (Default: Enabled) • Enable Link-up and Link-down Traps – Issues a trap message whenever a port link is established or broken.
2 Configuring SNMP • The default setting is null, which allows all IP groups SNMP access to the switch. If one or more IP addresses are configured, IP filtering is enabled and only addresses listed in this table will have SNMP access. Command Attributes • IP Filter List – Displays a list of the IP address/subnet mask entries currently configured for SNMP access. • IP address – Specifies a new IP address to add to the IP Filter List. • Subnet Mask – Specifies a single IP address or group of addresses.
2 Configuring the Switch User Authentication You can restrict management access to this switch using the following options: • • • • • • Passwords – Manually configure access rights on the switch for specified users. Authentication Settings – Use remote authentication to configure access rights. HTTPS Settings – Provide a secure web connection. SSH Settings – Provide a secure shell (for secure Telnet access). Port Security – Configure secure addresses for individual ports. dot1X – Use IEEE 802.
2 User Authentication CLI – Assign a user name to access-level 15 (i.e., administrator), then specify the password. Console(config)#username bill access-level 15 Console(config)#username bill password 0 1 Console(config)# 3-24 Configuring RADIUS/TACACS Logon Authentication Use the Authentication Settings menu to restrict management access based on specified user names and passwords.
2 Configuring the Switch - TACACS – User authentication is performed using a TACACS+ server only. - [authentication sequence] – User authentication is performed by up to three authentication methods in the indicated sequence. • • • • RADIUS Settings Global / ServerIndex – Enables RADIUS on all ports or by server index 1 - 5. Server IP Address – Address of the RADIUS server. (Default: 10.1.0.1) Server Port Number – Network (UDP) port of the RADIUS server used for authentication messages.
2 User Authentication Web – Click System, Authentication Settings. To configure local or remote authentication preferences, specify the authentication sequence (i.e., one to three methods), fill in the parameters for RADIUS or TACACS+ authentication if selected, and click Apply. Figure 2-19 Authentication Settings CLI – Specify all the required parameters to enable login authentication. Console(config)#authentication login radius Console(config)#radius-server host 192.168.1.
2 Configuring the Switch Configuring HTTPS You can configure the switch to enable the Secure Hypertext Transfer Protocol (HTTPS) over the Secure Socket Layer (SSL), providing secure access (i.e., an encrypted connection) to the switch’s web interface. Command Usage • Both the HTTP and HTTPS service can be enabled independently on the switch. However, you cannot configure both services to use the same UDP port.
2 User Authentication CLI – In configuration mode enter the secure hyper-text transfer protocol port number, and enable the secure server. 3-28 3-27 Console(config)#ip http secure-port 1 Console(config)#ip http secure-server Console(config)# Replacing the Default Secure-site Certificate When you log onto the web interface using HTTPS (for secure access), a Secure Sockets Layer (SSL) certificate appears for the switch.
2 Configuring the Switch Command Attributes • SSH Server Status – Allows you to enable/disable the SSH server feature on the switch. (Default: Disabled) • SSH Authentication Timeout – Specifies the time interval in seconds that the SSH server waits for a response from a client during an authentication attempt.
2 User Authentication Configuring Port Security Port security is a feature that allows you to configure a switch port with one or more device MAC addresses that are authorized to access the network through that port. When port security is enabled on a port, the switch stops learning new MAC addresses on the specified port. Only incoming traffic with source addresses already stored in the dynamic or static address table will be accepted as authorized to access the network through that port.
2 Configuring the Switch Web – Click Security, Port Security. Set the status to enable or disable security for a port, set the maximum number of MAC addresses allowed on a port, and click Apply. Figure 2-21 Configuring Port Security CLI – This example sets the command mode to Port 5, sets the port security action to send a trap and disable the port, and specifies a maximum address count.
2 User Authentication Configuring 802.1x Port Authentication Network switches can provide open and easy access to network resources by simply attaching a client PC. Although this automatic configuration and access is a desirable feature, it also allows unauthorized personnel to easily intrude and possibly gain access to sensitive network data. The IEEE 802.
2 Configuring the Switch Displaying 802.1x Global Settings The dot1x protocol includes global parameters that control the client authentication process that runs between the client and the switch (i.e., authenticator), as well as the client identity lookup process that runs between the switch and authentication server. These parameters are described in this section. Command Attributes • 802.1x System Authentication Control - Indicates if 802.1x has been globally set on all ports on the switch. • 802.
2 User Authentication CLI – This example shows the default protocol settings for dot1x. For a description of the additional entries displayed in the CLI, see “show dot1x” on page 3-64. Console#show dot1x Clobal 802.1X Parameters system-auth-control: enabled reauth-enabled: n/a reauth-period: 3600 quiet-period: 60 tx-period: 30 supp-timeout: 30 server-timeout: 30 reauth-max: 2 max-req: 2 3-64 802.
2 Configuring the Switch Configuring Global 802.1x Parameters The dot1x protocol includes global parameters that control the client authentication process that runs between the client and the switch (i.e., authenticator), as well as the client identity lookup process that runs between the switch and authentication server. The configuration options for parameters are described in this section. Command Attributes • 802.1x System Authentication Control - Globally enables 802.1x on all ports on the switch.
2 User Authentication CLI – This example enables re-authentication and sets all of the global parameters for dot1x.
2 Configuring the Switch CLI - In Interface mode type dot1x port-control auto, or use the no form to disable. Console(config)#interface ethernet 1/2 Console(config-if)#dot1x port-control auto 3-61 Console(config-if)# Displaying 802.1x Statistics This switch can display statistics for dot1x protocol exchanges for any port. Statistical Values Table 2-6 802.1x Statistical Values Parameter Description Rx EXPOL Start The number of EAPOL Start frames that have been received by this Authenticator.
2 User Authentication Web – Select 802.1X, 802.1X Statistics. Select the required port and then click Query. Click Refresh to update the statistics. Figure 2-25 Displaying 802.1X EAP Statistics per Port CLI – This example displays the dot1x statistics for port 2.
2 Configuring the Switch Access Control Lists Access Control Lists (ACL) provide packet filtering for IP frames (based on address, protocol, Layer 4 protocol port number or TCP control code) or any frames (based on MAC address or Ethernet type). To filter incoming packets, first create an access list, add the required rules, specify a mask to modify the precedence in which the rules are checked, and then bind the list to a specific port.
2 Access Control Lists Setting the ACL Name and Type Use the ACL Configuration page to designate the name and type of an ACL. Command Attributes • Name – Name of the ACL. (Maximum length: 16 characters) • Type – There are three filtering modes: - Standard: IP ACL mode that filters packets based on the source IP address. - Extended: IP ACL mode that filters packets based on source or destination IP address, as well as protocol type and protocol port number.
2 Configuring the Switch Configuring a Standard IP ACL Command Attributes • Action – An ACL can contain permit rules, deny rules, or a combination of both. (Default: Permit rules) • IP – Specifies the source IP address. Use “Any” to include all possible addresses, “Host” to specify a specific host address in the Address field, or “IP” to specify a range of addresses with the Address and SubMask fields. (Options: Any, Host, IP; Default: Any) • Address – Source IP address.
2 Access Control Lists Configuring an Extended IP ACL Command Attributes • Action – An ACL can contain permit rules, deny rules or a combination of both. (Default: Permit rules) • Src/Dst IP – Specifies the source or destination IP address. Use “Any” to include all possible addresses, “Host” to specify a specific host address in the Address field, or “IP” to specify a range of addresses with the Address and SubMask fields.
2 Configuring the Switch Web – Specify the action (i.e., Permit or Deny). Specify the source and/or destination addresses. Select the address type (Any, Host, or IP). If you select “Host,” enter a specific address. If you select “IP,” enter a subnet address and the mask for an address range. Set any other required criteria, such as service type, protocol type, or TCP control code. Then click Add.
2 Access Control Lists Configuring a MAC ACL Command Attributes • Action – An ACL can contain permit rules, deny rules, or a combination of both. (Default: Permit rules) • Source/Destination MAC – Use “Any” to include all possible addresses, “Host” to indicate a specific MAC address, or “MAC” to specify an address range with the Address and Bitmask fields. (Options: Any, Host, MAC; Default: Any) • Source/Destination MAC Address – Source or destination MAC address.
2 Configuring the Switch Web – Specify the action (i.e., Permit or Deny). Specify the source and/or destination addresses. Select the address type (Any, Host, or MAC). If you select “Host,” enter a specific address (e.g., 11-22-33-44-55-66). If you select “MAC,” enter a base address and a hexidecimal bitmask for an address range. Set any other required criteria, such as VID, Ethernet type, or packet format. Then click Add.
2 Access Control Lists Configuring ACL Masks You can specify optional masks that control the order in which ACL rules are checked. The switch includes two system default masks that pass/filter packets matching the permit/deny rules specified in an ingress ACL. You can also configure up to seven user-defined masks for an ingress or egress ACL. A mask must be bound exclusively to one of the basic ACL types (i.e.
2 Configuring the Switch Configuring an IP ACL Mask This mask defines the fields to check in the IP header. Command Usage • Masks that include an entry for a Layer 4 protocol source port or destination port can only be applied to packets with a header length of exactly five bytes. Command Attributes • Src/Dst IP – Specifies the source or destination IP address. Use “Any” to match any address, “Host” to specify a host address (not a subnet), or “IP” to specify a range of addresses.
2 Access Control Lists Web – Configure the mask to match the required rules in the IP ingress or egress ACLs. Set the mask to check for any source or destination address, a specific host address, or an address range. Include other criteria to search for in the rules, such as a protocol type or one of the service types. Or use a bitmask to search for specific protocol port(s) or TCP control code(s). Then click Add.
2 Configuring the Switch Configuring a MAC ACL Mask This mask defines the fields to check in the packet header. Command Usage You must configure a mask for an ACL rule before you can bind it to a port. Command Attributes • Source/Destination MAC – Use “Any” to match any address, “Host” to specify the host address for a single node, or “MAC” to specify a range of addresses. (Options: Any, Host, MAC; Default: Any) • Source/Destination MAC Bitmask – Address of rule must match this bitmask.
2 Access Control Lists CLI – This example shows how to create an Ingress MAC ACL and bind it to a port. You can then see that the order of the rules have been changed by the mask.
2 Configuring the Switch Web – Click ACL, ACL Port Binding. Mark the Enable field for the port you want to bind to an ACL for ingress or egress traffic, select the required ACL from the drop-down list, then click Apply. Figure 2-33 Mapping ACLs to Port Ingress/Egress Queues CLI – This examples assigns an IP and MAC ingress ACL to port 1, and an IP ingress ACL to port 2.
2 Port Configuration • Flow Control Status – Indicates the type of flow control currently in use. (IEEE 802.3x, Back-Pressure or None) • Autonegotiation – Shows if auto-negotiation is enabled or disabled. • Trunk Member1 – Shows if port is a trunk member. (Port Information only.) • Creation2 – Shows if a trunk is manually configured. (Trunk Information only.). 1: Port Information only. 2: Trunk Information only. Web – Click Port, Port Information or Trunk Information.
2 Configuring the Switch • Sym - Transmits and receives pause frames for flow control • FC - Supports flow control • Broadcast storm – Shows if broadcast storm control is enabled or disabled. • Broadcast storm limit – Shows the broadcast storm threshold. (500 - 262143 packets per second) • Flow control – Shows if flow control is enabled or disabled. • LACP – Shows if LACP is enabled or disabled. • Port Security – Shows if port security is enabled or disabled.
2 Port Configuration • • • • problem has been resolved. You may also disable an interface for security reasons. Speed/Duplex – Allows manual selection of port speed and duplex mode (i.e., with auto-negotiation disabled). Flow Control – Allows automatic or manual selection of flow control. Autonegotiation (Port Capabilities) – Allows auto-negotiation to be enabled/ disabled. When auto-negotiation is enabled, you need to specify the capabilities to be advertised.
2 Configuring the Switch Web – Click Port, Port Configuration or Trunk Configuration. Modify the required interface settings, and click Apply. Figure 2-35 Configuring Port Attributes CLI – Select the interface, and then enter the required settings. Console(config)#interface ethernet 1/13 Console(config-if)#description RD SW#13 Console(config-if)#shutdown . Console(config-if)#no shutdown Console(config-if)#no negotiation Console(config-if)#speed-duplex 100half Console(config-if)#flowcontrol .
2 Port Configuration more than four ports, all other ports will be placed in a standby mode. Should one link in the trunk fail, one of the standby ports will automatically be activated to replace it. Command Usage Besides balancing the load across each port in the trunk, the other ports provide redundancy by taking over the load if a port in the trunk fails. However, before making any physical connections between devices, use the Web interface or CLI to specify the trunk on the devices at both ends.
2 Configuring the Switch Web – Click Trunk, Trunk Configuration. Enter a trunk ID of 1-6 in the Trunk field, select any of the switch ports from the scroll-down port list, and click Add. After you have completed adding ports to the member list, click Apply. Figure 2-36 Statically Configuring a Trunk CLI – This example creates trunk 1 with ports 11 and 12. Just connect these ports to two static trunk ports on another switch to form a trunk.
Port Configuration 2 Dynamically Configuring a Trunk Command Usage • To avoid creating a loop in the network, be sure you enable LACP before connecting the ports, and also disconnect the ports before disabling LACP. • If the target switch has also enabled LACP on the connected ports, the trunk will be activated automatically. • A trunk formed with another switch using LACP will automatically be assigned the next available trunk ID.
2 Configuring the Switch CLI – The following example enables LACP for ports 17 and 18. Just connect these ports to two LACP-enabled trunk ports on another switch to form a trunk.
2 Port Configuration Web – Click Port, Port Broadcast Control. Set the threshold for all ports, click Apply. Figure 2-38 Configuring Broadcast Control (Rate Limiting) CLI – Specify an interface, and then enter the threshold. This threshold will then be set for all ports. The following sets broadcast suppression at 1000 packets per second.
2 Configuring the Switch Web – Click Port, Mirror. Specify the source port, the traffic type to be mirrored, and the monitor port, then click Add. Figure 2-39 Configuring a Mirror Port CLI – Use the interface command to select the monitor port, then use the port monitor command to specify the source port. Note that default mirroring under the CLI is for both received and transmitted packets.
2 Port Configuration Command Attributes • Port/Trunk– Displays the port number. • Rate Limit Status – Enables or disables the rate limit. • Rate Limit (Mbps) – Sets the rate limit in Mbps. Web - Click Rate Limit, Input/Output Rate Limit Port/Trunk Configuration. Set the Rate Limit Status, specify the rate limit for the individual interfaces, and click Apply. Figure 2-40 Setting Rate Limit Bandwidth Threshold CLI - This example sets the rate limit for input and output traffic passing through port 3 and 4.
2 Configuring the Switch Statistical Values Table 2-7 Port Statistics Parameter Description Interface Statistics Received Octets The total number of octets received on the interface, including framing characters. Received Unicast Packets The number of subnetwork-unicast packets delivered to a higher-layer protocol. Received Multicast Packets The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were addressed to a multicast address at this sub-layer.
2 Port Configuration Table 2-7 Port Statistics Parameter Description FCS Errors A count of frames received on a particular interface that are an integral number of octets in length but do not pass the FCS check. This count does not include frames received with frame-too-long or frame-too-short error. Excessive Collisions A count of frames for which transmission on a particular interface fails due to excessive collisions.
2 Configuring the Switch Table 2-7 Port Statistics Parameter Description Oversize Frames The total number of frames received that were longer than 1518 octets (excluding framing bits, but including FCS octets) and were otherwise well formed. Fragments The total number of frames received that were less than 64 octets in length (excluding framing bits, but including FCS octets) and had either an FCS or alignment error.
Port Configuration 2 Figure 2-41 Displaying Port Statistics 2-67
2 Configuring the Switch CLI – This example shows statistics for port 13.
2 Address Table Settings Web – Click Address Table, Static Addresses. Specify the interface, the MAC address and VLAN, then click Add Static Address. Figure 2-42 Mapping Ports to Static Address CLI – This example adds an address to the static address table, but sets it to be deleted when the switch is reset.
2 Configuring the Switch Web – Click Address Table, Dynamic Addresses. Specify the search type (i.e., Interface, MAC Address, or VLAN), the method of sorting the displayed addresses, then click Query. Figure 2-43 Displaying the MAC Dynamic Address Table CLI – This example also displays the address table entries for port 11.
2 Spanning Tree Algorithm Configuration Changing the Aging Time You can change the aging time for entries in the dynamic address table. Command Attributes • Aging Time – The time after which a learned entry is discarded. (Range: 10-1000000 seconds; Default: 300 seconds) Web – Click Address Table, Address Aging. Specify the new aging time, click Apply. Figure 2-44 Setting the Aging Time CLI – This example sets the aging time to 300 seconds.
2 Configuring the Switch Once a stable network topology has been established, all bridges listen for Hello BPDUs (Bridge Protocol Data Units) transmitted from the Root Bridge. If a bridge does not get a Hello BPDU after a predefined interval (Maximum Age), the bridge assumes that the link to the Root Bridge is down. This bridge will then initiate negotiations with other bridges to reconfigure the network to reestablish a valid network topology.
2 Spanning Tree Algorithm Configuration • Configuration Changes – The number of times the Spanning Tree has been reconfigured. • Last Topology Change – Time since the Spanning Tree was last reconfigured. These additional parameters are only displayed for the CLI: • Spanning tree mode – Specifies the type of spanning tree used on this switch: • • • • • • - STP: Spanning Tree Protocol (IEEE 802.1D) - RSTP: Rapid Spanning Tree (IEEE 802.
2 Configuring the Switch CLI – This command displays global STA settings, followed by settings for each port. Console#show spanning-tree Bridge-group information -------------------------------------------------------------Spanning tree protocol :IEEE Std 8021D Spanning tree enable/disable :enable Priority :32768 Hello Time (sec.) :2 Max Age (sec.) :20 Forward Delay (sec.) :15 Designated Root :32768.
Spanning Tree Algorithm Configuration 2 Command Attributes Basic Configuration of Global Settings • Spanning Tree State – Enables/disables STA on this switch. (Default: Enabled) • Spanning Tree Type – Specifies the type of spanning tree used on this switch: - STP: Spanning Tree Protocol (IEEE 802.1D; i.e., when this option is selected, the switch will use RSTP set to STP forced compatibility mode) - RSTP: Rapid Spanning Tree (IEEE 802.1w) RSTP is the default.
2 Configuring the Switch Configuration Settings for RSTP • Path Cost Method – The path cost is used to determine the best path between devices. The path cost method is used to determine the range of values that can be assigned to each interface. - Long: Specifies 32-bit based values that range from 1-200,000,000. - Short: Specifies 16-bit based values that range from 1-65535.
2 Spanning Tree Algorithm Configuration CLI – This example enables Spanning Tree Protocol, and then sets the indicated attributes.
2 Configuring the Switch • Oper Link Type – The operational point-to-point status of the LAN segment attached to this interface. This parameter is determined by manual configuration or by auto-detection, as described for Admin Link Type in STA Port Configuration on page 2-80. • Oper Edge Port – This parameter is initialized to the setting for Admin Edge Port in STA Port Configuration on page 2-80 (i.e.
2 Spanning Tree Algorithm Configuration • Admin Link Type – The link type attached to this interface. - Point-to-Point – A connection to exactly one other bridge. - Shared – A connection to two or more bridges. - Auto – The switch automatically determines if the interface is attached to a point-to-point link or to shared media. Web – Click Spanning Tree, STA Port Information or STA Trunk Information.
2 Configuring the Switch --------------------------------------------------------------Eth 1/ 1 information --------------------------------------------------------------Admin status : enable Role : disable State : discarding Path cost : 100000 Priority : 128 Designated cost : 0 Designated port : 128.1 Designated root : 32768.00A0CA445566 Designated bridge : 32768.
Spanning Tree Algorithm Configuration 2 • Path Cost – This parameter is used by the STP to determine the best path between devices. Therefore, lower values should be assigned to ports attached to faster media, and higher values assigned to ports with slower media. (Path cost takes precedence over port priority.) Note that when the Path Cost Method is set to short (page 3-123), the maximum path cost is 65,535.
2 Configuring the Switch Web – Click Spanning Tree, STA Port Configuration or STA Trunk Configuration. Modify the required attributes, then click Apply. Figure 2-48 Configuring Spanning Tree Algorithm per Port CLI – This example sets STA attributes for port 5.
2 VLAN Configuration This switch supports the following VLAN features: • Up to 255 VLANs based on the IEEE 802.
2 Configuring the Switch message to your network indicating the VLAN groups it wants to join. When this switch receives these messages, it will automatically place the receiving port in the specified VLANs, and then forward the message to all other ports. When the message arrives at another switch that supports GVRP, it will also place the receiving port in the specified VLANs, and pass the message on to all other ports. VLAN requirements are propagated in this way throughout the network.
2 VLAN Configuration Web – Click System, Bridge Extension. Enable or disable GVRP, click Apply. Figure 2-49 Displaying Bridge Extension Capabilities, Enabling GVRP CLI – This example enables GVRP for the switch. Console(config)#bridge-ext gvrp Console(config)# 3-140 Displaying Basic VLAN Information The VLAN Basic Information page displays basic information on the VLAN type supported by the switch.
2 Configuring the Switch CLI – Enter the following command.
2 VLAN Configuration Command Attributes (CLI) • VLAN – ID of configured VLAN (1-4094, no leading zeroes). • Type – Shows how this VLAN was added to the switch. - Dynamic: Automatically learned via GVRP. - Static: Added as a static entry. • Name – Name of the VLAN (1 to 32 characters). • Status – Shows if this VLAN is enabled or disabled. - Active: VLAN is operational. - Suspend: VLAN is suspended; i.e., does not pass packets. • Ports / Channel groups – Shows the VLAN interface members.
2 Configuring the Switch Web – Click VLAN, VLAN Static List. To create a new VLAN, enter the VLAN ID and VLAN name, mark the Enable checkbox to activate the VLAN, and then click Add. Figure 2-52 Creating Virtual LANs CLI – This example creates a new VLAN.
2 VLAN Configuration • Port – Port identifier. • Trunk – Trunk identifier. • Membership Type – Select VLAN membership for each interface by marking the appropriate radio button for a port or trunk: - Tagged: Interface is a member of the VLAN. All packets transmitted by the port will be tagged, that is, carry a tag and therefore carry VLAN or CoS information. - Untagged: Interface is a member of the VLAN.
2 Configuring the Switch CLI – The following example adds tagged and untagged ports to VLAN 2.
VLAN Configuration 2 Configuring VLAN Behavior for Interfaces You can configure VLAN behavior for specific interfaces, including the default VLAN identifier (PVID), accepted frame types, ingress filtering, GVRP status, and GARP timers. Command Usage • GVRP – GARP VLAN Registration Protocol defines a way for switches to exchange VLAN information in order to automatically register VLAN members on interfaces across the network.
2 Configuring the Switch • GARP Leave Timer* – The interval a port waits before leaving a VLAN group. This time should be set to more than twice the join time. This ensures that after a Leave or LeaveAll message has been issued, the applicants can rejoin before the port actually leaves the group. (Range: 60-3000 centiseconds; Default: 60) • GARP LeaveAll Timer* – The interval between sending out a LeaveAll query message for VLAN group participants and the port leaving the group.
2 Class of Service Configuration CLI – This example sets port 1 to accept only tagged frames, assigns PVID 3 as the native VLAN ID, enables GVRP, sets the GARP timers, and then sets the switchport mode to hybrid.
2 Configuring the Switch Web – Click Priority, Default Port Priority or Default Trunk Priority. Modify the default priority for any interface, then click Apply. Figure 2-56 Configuring Class of Service per Port CLI – This example assigns a default priority of 5 to port 3.
2 Class of Service Configuration The priority levels recommended in the IEEE 802.1p standard for various network applications are shown in the following table. However, you can map the priority levels to the switch’s output queues in any way that benefits application traffic for your own network.
2 Configuring the Switch CLI – The following example shows how to map CoS values 1 and 2 to CoS priority queue 0, value 0 and 3 to CoS priority queue 1, values 4 and 5 to CoS priority queue 2, and values 6 and 7 to CoS priority queue 3.
2 Class of Service Configuration CLI – The following example shows how to assign WRR weights of 1, 4, 16 and 64 to the CoS priority queues 0, 1, 2 and 3. Console(config)#queue bandwidth 1 4 16 64 Console(config)#exit Console#show queue bandwidth Queue ID Weight -------- -----0 1 1 4 2 16 3 64 Console# 3-145 3-147 Mapping Layer 3/4 Priorities to CoS Values This switch supports several common methods of prioritizing layer 3/4 traffic to meet application requirements.
2 Configuring the Switch Web – Click Priority, IP Precedence/DSCP Priority Status. Select Disabled, IP Precedence or IP DSCP from the scroll-down menu. Figure 2-59 Setting IP Precedence/DSCP Priority Status CLI – The following example enables IP Precedence service on the switch.
2 Class of Service Configuration Web – Click Priority, IP Precedence Priority. Select a port or trunk from the Interface field. Select an entry from the IP Precedence Priority Table, enter a value in the Class of Service Value field, and then click Apply. Figure 2-60 Mapping IP Precedence to Class of Service Values * Mapping specific values for IP Precedence is implemented as an interface configuration command, but any changes will apply to the all interfaces on the switch.
2 Configuring the Switch Mapping DSCP Priority The DSCP is six bits wide, allowing coding for up to 64 different forwarding behaviors. The DSCP replaces the ToS bits, and it retains backward compatibility with the three precedence bits so that non-DSCP compliant, ToS-enabled devices, will not conflict with the DSCP mapping. Based on network policies, different kinds of traffic can be marked for different kinds of forwarding. The DSCP default values are defined in the following table.
Class of Service Configuration 2 Web – Click Priority, IP DSCP Priority. Select a port or trunk from the Interface field. Select an entry from the DSCP table, enter a value in the Class of Service Value field, then click Apply. Figure 2-61 Mapping IP DSCP Priority to Class of Service Values * Mapping specific values for IP Precedence is implemented as an interface configuration command, but any changes will apply to the all interfaces on the switch.
2 Configuring the Switch Mapping IP Port Priority You can also map network applications to Class of Service values based on the IP port number (i.e., TCP/UDP port number) in the frame header. Some of the more common TCP service ports include: HTTP: 80, FTP: 21, Telnet: 23 and POP3: 110. Command Attributes • IP Port Priority Status – Enables or disables the IP port priority. • • • • Interface – Selects the port or trunk interface to which the settings apply.
Class of Service Configuration 2 CLI – The following example globally enables IP Port Priority service on the switch, maps HTTP traffic on port 5 to CoS value 0, and then displays all the IP Port Priority settings for that port. 3-148 Console(config)#map ip port Console(config)#interface ethernet 1/5 Console(config-if)#map ip port 80 cos 0 Console(config-if)#end Console#show map ip port ethernet 1/5 TCP port mapping status: disabled 3-149 3-152 Port Port no.
2 Configuring the Switch Web – Click Priority, ACL CoS Priority. Select a port, select an ACL rule, specify a CoS priority, then click Add. Figure 2-64 Mapping CoS Values to ACLs CLI – This example assigns a CoS value of zero to packets matching rules within the specified ACL on port 1.
Class of Service Configuration 2 Command Attributes • Port – Port identifier. • Name* – Name of ACL. • Type – Type of ACL (IP or MAC). • Precedence – IP Precedence value. (Range: 0-7) • DSCP – Differentiated Services Code Point value. (Range: 0-63) • 802.1p Priority – Class of Service value in the IEEE 802.1p priority tag. (Range: 0-7; 7 is the highest priority) Web – Click Priority, ACL Marker. Select a port and an ACL rule.
2 Configuring the Switch Multicast Filtering Multicasting is used to support real-time applications such as video conferencing or streaming audio. A multicast server does not have to establish a separate connection with each client. It merely broadcasts its service to the network, and any hosts that want to receive the multicast register with their local multicast switch/ router.
Multicast Filtering 2 Command Attributes • IGMP Status — When enabled, the switch will monitor network traffic to determine which hosts want to receive multicast traffic. This is also referred to as IGMP Snooping. (Default: Enabled) • Act as IGMP Querier — When enabled, the switch can serve as the Querier, which is responsible for asking hosts if they want to receive multicast traffic.
2 Configuring the Switch CLI – This example modifies the settings for multicast filtering, and then displays the current status.
Multicast Filtering 2 CLI – This example shows that Port 11 has been statically configured as a port attached to a multicast router. Console#show ip igmp snooping mrouter vlan 1 VLAN M'cast Router Port Type ---- ------------------ ------1 Eth 1/11 Static 3-163 Specifying Interfaces Attached to a Multicast Router Depending on your network connections, IGMP snooping may not always be able to locate the IGMP querier.
2 Configuring the Switch Displaying Port Members of Multicast Services You can display the port members associated with a specified VLAN and multicast IP address. Command Attribute • VLAN ID – Selects the VLAN in which to display port members. • Multicast IP Address – The IP address for a specific multicast service • Multicast Group Port List – Ports propagating a multicast service; i.e., ports that belong to the indicated VLAN group. Web – Click IGMP, IP Multicast Registration Table.
Multicast Filtering 2 Command Usage • Static multicast addresses are never aged out. • When a multicast address is assigned to specific VLAN, the corresponding traffic can only be forwarded to ports within that VLAN. Command Attributes • Interface – Activates the Port or Trunk scroll down list. • VLAN ID – Selects the VLAN to propagate all multicast traffic coming from the attached multicast router/switch. • Multicast IP – The IP address for a specific multicast service.
2 Configuring the Switch 2-112
Chapter 3: Command Line Interface This chapter describes how to use the Command Line Interface (CLI). Using the Command Line Interface Accessing the CLI When accessing the management interface for the switch over a direct connection to the server’s console port, or via a Telnet connection, the switch can be managed by entering command keywords and parameters at the prompt. Using the switch's command-line interface (CLI) is very similar to entering commands on a UNIX system.
3 Command Line Interface To access the switch through a Telnet session, you must first set the IP address for the switch, and set the default gateway if you are managing the switch from a different IP subnet. For example, Console(config)#interface vlan 1 Console(config-if)#ip address 10.1.0.1 255.255.255.0 Console(config-if)#exit Console(config)#ip default-gateway 10.1.0.
Entering Commands 3 Entering Commands This section describes how to enter CLI commands. Keywords and Arguments A CLI command is a series of keywords and arguments. Keywords identify a command, and arguments specify configuration parameters. For example, in the command “show interfaces status ethernet 1/5,” show interfaces and status are keywords, ethernet is an argument that specifies the interface type, and 1/5 specifies the unit/port.
3 Command Line Interface “show ?” displays a list of possible show commands: Console#show ? access-group Access groups access-list Access lists bridge-ext Bridge extend information calendar Date information dot1x Show 802.
Entering Commands 3 logging, specify the no logging command. This guide describes the negation effect for all applicable commands. Using Command History The CLI maintains a history of commands that have been entered. You can scroll back through the history of commands by pressing the up arrow key. Any command displayed in the history list can be executed again, or first modified and then executed. Using the show history command displays a longer list of recently executed commands.
3 Command Line Interface To enter Privileged Exec mode, enter the following commands and passwords: Username: admin Password: [system login password] CLI session with the Intelligent Switch is opened. To end the CLI session, enter [Exit]. Console# Username: guest Password: [system login password] CLI session with the Intelligent Switch is opened. To end the CLI session, enter [Exit].
Entering Commands 3 To enter the other modes, at the configuration prompt type one of the following commands. Use the exit or end command to return to the Privileged Exec mode.
3 Command Line Interface Table 3-13 Keystroke Commands Keystroke Function Esc-B Moves the cursor back one word. Esc-D Deletes from the cursor to the end of the word. Esc-F Moves the cursor forward one word. Delete key or backspace key Erases a mistake when entering a command. Command Groups The system commands can be broken down into the functional groups shown below.
Line Commands 3 Table 3-14 Command Group Index Command Group Description Page Multicast Filtering Configures IGMP multicast filtering, query parameters, and specifies 3-155 ports attached to a multicast router IP Interface Configures the IP address and gateway for management access 3-164 The access mode shown in the following tables is indicated by these abbreviations: NE (Normal Exec) PE (Privileged Exec) GC (Global Configuration) LC (Line Configuration) IC (Interface Configuration) VC (VLAN Dat
3 Command Line Interface line Use this command to identify a specific line for configuration, and to process subsequent line configuration commands. Syntax line {console | vty} • console - Console terminal line. • vty - Virtual terminal for remote console access (i.e., Telnet). Default Setting There is no default line. Command Mode Global Configuration Command Usage Telnet is considered a virtual terminal connection and will be shown as “Vty” in screen displays such as show users.
Line Commands 3 Command Usage • There are three authentication modes provided by the switch itself at login: • login selects authentication by a single global password as specified by the password line configuration command. When using this method, the management interface starts in Normal Exec (NE) mode. • login local selects authentication via the user name and password specified by the username command (i.e., default setting).
3 Command Line Interface number of times a user can enter an incorrect password before the system terminates the line connection and returns the terminal to the idle state. • The encrypted password is required for compatibility with legacy password settings (i.e., plain text or encrypted) when reading the configuration file during system bootup or when downloading the configuration file from a TFTP server. There is no need for you to manually configure encrypted passwords.
Line Commands 3 password-thresh Use this command to set the password intrusion threshold which limits the number of failed logon attempts. Use the no form to remove the threshold value. Syntax password-thresh [threshold] no password-thresh threshold - The number of allowed password attempts. (Range: 1-120; 0: no threshold) Default Setting The default value is three attempts.
3 Command Line Interface Default Setting The default value is no silent-time. Command Mode Line Configuration Example To set the silent time to 60 seconds, enter this command: Console(config-line)#silent-time 60 Console(config-line)# Related Commands password-thresh (3-13) databits Use this command to set the number of data bits per character that are interpreted and generated by the console port. Use the no form to restore the default value.
Line Commands 3 parity Use this command to define generation of a parity bit. Use the no form to restore the default setting. Syntax parity {none | even | odd} no parity • none - No parity • even - Even parity • odd - Odd parity Default Setting No parity Command Mode Line Configuration Command Usage Communication protocols provided by devices such as terminals and modems often require a specific parity bit setting.
3 Command Line Interface Command Usage Set the speed to match the baud rate of the device connected to the serial port. Some baud rates available on devices connected to the port might not be supported. The system indicates if the speed you selected is not supported. Example To specify 57600 bps, enter this command: Console(config-line)#speed 57600 Console(config-line)# stopbits Use this command to set the number of the stop bits transmitted per byte. Use the no form to restore the default setting.
General Commands 3 Example To show all lines, enter this command: Console#show line Console configuration: Password threshold: 3 times Interactive timeout: Disabled Silent time: Disabled Baudrate: 9600 Databits: 8 Parity: none Stopbits: 1 Vty configuration: Password threshold: 3 times Interactive timeout: 65535 Console# General Commands Table 3-16 General Commands Command Function Mode Page enable Activates privileged mode NE 3-17 disable Returns to normal mode from privileged mode PE 3-18 co
3 Command Line Interface Default Setting Level 15 Command Mode Normal Exec Command Usage • “super” is the default password required to change the command mode from Normal Exec to Privileged Exec. (To set this password, see the enable password command on page 3-25.) • The “#” character is appended to the end of the prompt to indicate that the system is in privileged access mode.
General Commands 3 configure Use this command to activate Global Configuration mode. You must enter this mode to modify any settings on the switch. You must also enter Global Configuration mode prior to enabling some of the other configuration modes, including Interface Configuration, Line Configuration, and VLAN Database Configuration. See “Understanding Command Modes” on page 3-5.
3 Command Line Interface The ! command repeats commands from the Execution command history buffer when you are in Normal Exec or Privileged Exec Mode, and commands from the Configuration command history buffer when you are in any of the configuration modes. In this example, the !2 command repeats the second command in the Execution history buffer (config). Console#!2 Console#config Console(config)# reload Use this command to restart the system.
General Commands 3 exit Use this command to return to the previous configuration mode or exit the configuration program. Default Setting None Command Mode Any Example This example shows how to return to the Privileged Exec mode from the Global Configuration mode, and then quit the CLI session: Console(config)#exit Console#exit Press ENTER to start session User Access Verification Username: quit Use this command to exit the configuration program.
3 Command Line Interface System Management Commands These commands are used to control system logs, passwords, user names, browser configuration options, and display or configure a variety of other system information.
System Management Commands 3 hostname Use this command to specify or modify the host name for this device. Use the no form to restore the default host name. Syntax hostname name no hostname name - The name of this host.
3 Command Line Interface User Access Commands The basic commands required for management access are listed in this section. This switch also includes other options for password checking via the console or a Telnet connection (page 3-9), user authentication via a remote authentication server (page 3-92), and host access authentication for specific ports (page 3-59).
System Management Commands 3 Command Mode Global Configuration Command Usage The encrypted password is required for compatibility with legacy password settings (i.e., plain text or encrypted) when reading the configuration file during system bootup or when downloading the configuration file from a TFTP server. There is no need for you to manually configure encrypted passwords. Example This example shows how to set the access level and password for a user.
3 Command Line Interface Example Console(config)#enable password level 15 0 admin Console(config)# Related Commands enable (3-17) Web Server Commands Table 3-21 Web Server Commands Command Function Mode Page ip http port Specifies the port to be used by the web browser interface GC 3-26 ip http server Allows the switch to be monitored or configured from a browser GC 3-27 ip http secure-server Enables HTTPS/SSL for encrypted communications GC 3-27 ip http secure-port Specifies the UDP por
System Management Commands 3 ip http server Use this command to allow this device to be monitored or configured from a browser. Use the no form to disable this function. Syntax [no] ip http server Default Setting Enabled Command Mode Global Configuration Example Console(config)#ip http server Console(config)# Related Commands ip http port (3-26) ip http secure-server This command enables the secure hypertext transfer protocol (HTTPS) over the Secure Socket Layer (SSL), providing secure access (i.e.
3 Command Line Interface A padlock icon should appear in the status bar for Internet Explorer 5.x and Netscape Navigator 4.x or later versions. • The following web browsers and operating systems currently support HTTPS: Table 3-22 Web Browser Table 3-23 Operating System Internet Explorer 5.0 or later Windows 98,Windows NT (with service pack 6a), Windows 2000, Windows XP Netscape Navigator 4.76 or later Windows 98,Windows NT (with service pack 6a), Windows 2000, Windows XP, Solaris 2.
System Management Commands 3 Related Commands ip http secure-server (3-27) Secure Shell Commands The Berkley-standard includes remote access tools originally designed for Unix systems. Some of these tools have also been implemented for Microsoft Windows and other environments. These tools, including commands such as rlogin (remote login), rsh (remote shell), and rcp (remote copy), are not secure from hostile attacks.
3 Command Line Interface Command Usage • The SSH server supports up to four client sessions. The maximum number of client sessions includes both current Telnet sessions and SSH sessions. • The SSH server uses RSA for key exchange when the client first establishes a connection with the switch, and then negotiates with the client to select either DES (56-bit) or 3DES (168-bit) for data encryption.
System Management Commands 3 ip ssh authentication-retries Use this command to configure the number of times the SSH server attempts to reauthenticate a user. Use the no form to restore the default setting. Syntax ip ssh authentication-retries count no ip ssh authentication-retries count – The number of authentication attempts permitted after which the interface is reset.
3 Command Line Interface Example Console#disconnect ssh 0 Console# Related Commands show ip ssh (3-31) show ssh Use this command to display the current Secure Shell (SSH) server connections. Command Mode Privileged Exec Example Console#show ssh Information of secure shell Session Username Version Encrypt method Negotiation state ------- -------- ------- -------------- ----------------0 admin 1.5 cipher-3des session-started Console# Field Description Session The session number.
System Management Commands 3 logging on This command controls logging of error messages, sending debug or error messages to switch memory. The no form disables the logging process. Syntax [no] logging on Default Setting None Command Mode Global Configuration Command Usage The logging process controls error messages saved to switch memory. You can use the logging history command to control the type of error messages that are stored.
3 Command Line Interface • level - One of the level arguments listed in the following table. Messages sent include the selected level down to level 0. Level Argument Level Description debugging 7 Debugging messages informational 6 Informational messages only notifications 5 Normal but significant condition, such as cold start warnings 4 Warning conditions (e.g., return false, unexpected return) errors 3 Error conditions (e.g.
System Management Commands 3 Default Setting Flash and RAM Command Mode Privileged Exec Example Console#clear logging Console# Related Commands show logging (3-35) show logging Use this command to display the logging configuration, along with any system and event messages stored in memory. Syntax show logging {flash | ram} • flash - Event history stored in flash memory (i.e., permanent memory). • ram - Event history stored in temporary RAM (i.e., memory flushed on power reset).
3 Command Line Interface Field Description Syslog logging Shows if system logging has been enabled via the logging on command. History logging in FLASH The message level(s) reported based on the logging history command. History logging in RAM The message level(s) reported based on the logging history command. Messages Any system and event messages stored in memory.
System Management Commands 3 • This command enables client time requests to time servers specified via the sntp servers command. It issues time synchronization requests based on the interval set via the sntp poll command. • The SNTP time query method is set to client mode when the first sntp client command is issued. However, if the sntp broadcast client command is issued, then the no sntp broadcast client command must be used to return the switch to SNTP client mode.
3 Command Line Interface Example Console(config)#sntp server 10.1.0.19 Console(config)# sntp poll This command sets the interval between sending time requests when the switch is set to SNTP client mode. Use the no form to restore to the default. Syntax sntp poll seconds no sntp poll seconds - Interval between time requests. (Range: 16-16384 seconds) Default Setting 16 seconds Command Mode Global Configuration Command Usage This command is only applicable when the switch is set to SNTP client mode.
System Management Commands 3 Example Console(config)#sntp broadcast client Console(config)# show sntp This command displays the current time and configuration settings for the SNTP client, and indicates whether or not the local time has been properly updated. Command Mode Normal Exec, Privileged Exec Example Console#show sntp Current time: Dec 5 00:04:52 2002 ñó Poll interval: 16 Current mode: unicast Console# clock timezone This command sets the time zone for the switch’s internal clock.
3 Command Line Interface calendar set Use this command to set the date and time of the system clock. Syntax calendar set hour min sec {month day year | day month year} • • • • hour - Hour in 24-hour format. (Range: 0 - 23) min - Minute. (Range: 0 - 59) sec - Second. (Range: 0 - 59) month - january | february | march | april | may | june | july | august | september | october | november | december • day - Day of month. (Range: 1 - 31) • year - Year (4-digit).
System Management Commands 3 System Status Commands Table 3-27 System Status Commands Command Function Mode Page show startup-config Displays the contents of the configuration file (stored in flash memory) that is used to start up the system PE 3-41 show running-config Displays the configuration data currently in use PE 3-42 show system Displays system information NE, PE 3-44 show users Shows all active console and Telnet sessions, including user name, idle time, and IP address of Telnet c
3 Command Line Interface Example Console#show startup-config building startup-config, please wait..... ! ! username admin access-level 15 username admin password 0 admin ! username guest access-level 0 username guest password 0 guest ! enable password level 15 0 super ! snmp-server community public ro snmp-server community private rw ! vlan database vlan 1 name DefaultVlan media ethernet state active ! ! interface ethernet 1/1 switchport allowed vlan add 1 untagged switchport native vlan 1 . . .
System Management Commands 3 • This command displays settings for key command modes. Each mode group is separated by “!” symbols, and includes the configuration mode command, and corresponding commands.
3 Command Line Interface show system Use this command to display system information. Default Setting None Command Mode Normal Exec, Privileged Exec Command Usage • For a description of the items shown by this command, refer to “Displaying System Information” on page 2-7. • The POST results should all display “PASS.” If any POST test indicates “FAIL,” contact your distributor for assistance. Example Console#show system System description: ES3526V-ZZ System OID string: 1.3.6.1.4.1.259.6.10.
System Management Commands 3 Command Usage The session used to execute this command is indicated by a “*” symbol next to the Line (i.e., session) index number. Example Console#show users Username accounts: Username Privilege -------- --------guest 0 admin 15 Online users: Line Username Idle time (h:m:s) Remote IP addr. ----------- -------- ----------------- --------------* 0 console admin 0:00:00 1 vty 0 admin 0:04:37 10.1.0.
3 Command Line Interface Flash/File Commands These commands are used to manage the system code or configuration files.
Flash/File Commands 3 • Due to the size limit of the flash memory, the switch supports only two operation code files. • The maximum number of user-defined configuration files depends on available memory. • You can use “Factory_Default_Config.cfg” as the source to copy from the factory default configuration file, but you cannot use it as the destination. • To replace the startup configuration, you must use startup-config as the destination.
3 Command Line Interface delete Use this command to delete a file or image. Syntax delete filename filename - Name of the configuration file or image name. Default Setting None Command Mode Privileged Exec Command Usage • If the file type is used for system startup, then this file cannot be deleted. • “Factory_Default_Config.cfg” cannot be deleted. Example This example shows how to delete the test2.cfg configuration file from flash memory. Console#delete test2.
Flash/File Commands 3 Default Setting None Command Mode Privileged Exec Command Usage • If you enter the command dir without any parameters, the system displays all files. • File information is shown below: Table 3-29 File Directory Information Column Heading Description file name The name of the file. file type File types: Boot-Rom, Operation Code, and Config file. startup Shows if this file is used when the system is started. size The length of the file in bytes.
3 Command Line Interface Example This example shows the information displayed by the whichboot command. See the table under the dir command for a description of the file information displayed by this command. Console#whichboot file name file type startup size (byte) ----------------- -------------- ------- ----------diag_0060 Boot-Rom image Y 111360 run_0200 Operation Code Y 1083008 startup Config File Y 2710 Console# boot system Use this command to specify the file or image used to start up the system.
Authentication Commands 3 Authentication Commands You can configure this switch to authenticate users logging into the system for management access using local or RADIUS authentication methods. You can also enable port-based authentication for network client access using IEEE 802.1x.
3 Command Line Interface • You can specify three authentication methods in a single command to indicate the authentication sequence. For example, if you enter “authentication login radius tacacs local,” the user name and password on the RADIUS server is verified first. If the RADIUS server is not available, then authentication is attempted on the TACACS+ server. If the TACACS+ server is not available, the local user name and password is checked.
Authentication Commands 3 Example Console(config)#radius-server host 192.168.1.25 Console(config)# radius-server port This command sets the RADIUS server network port. Use the no form to restore the default. Syntax radius-server port port_number no radius-server port port_number - RADIUS server UDP port used for authentication messages.
3 Command Line Interface radius-server retransmit This command sets the number of retries. Use the no form to restore the default. Syntax radius-server retransmit number_of_retries no radius-server retransmit number_of_retries - Number of times the switch will try to authenticate logon access via the RADIUS server.
Authentication Commands 3 Example Console#show radius-server Server IP address: 10.1.0.1 Communication key with radius server: Server port number: 1812 Retransmit times: 2 Request timeout: 5 Console# TACACS+ Client Terminal Access Controller Access Control System (TACACS+) is a logon authentication protocol that uses software running on a central server to control access to TACACS-aware devices on the network.
3 Command Line Interface tacacs-server port This command specifies the TACACS+ server network port. Use the no form to restore the default. Syntax tacacs-server port port_number no tacacs-server port port_number - TACACS+ server TCP port used for authentication messages. (Range: 1-65535) Default Setting 49 Command Mode Global Configuration Example Console(config)#tacacs-server port 181 Console(config)# tacacs-server key This command sets the TACACS+ encryption key. Use the no form to restore the default.
Authentication Commands 3 Command Mode Privileged Exec Example Console#show tacacs-server Remote TACACS server configuration: Server IP address: 10.11.12.13 Communication key with radius server: green Server port number: 49 Console# Port Security Commands These commands can be used to disable the learning function or manually specify secure addresses for a port. You may want to leave port security off for an initial training period (i.e.
3 Command Line Interface Default Setting Status: Disabled Action: None Maximum Addresses: 0 Command Mode Interface Configuration (Ethernet) Command Usage • If you enable port security, the switch will stop dynamically learning new addresses on the specified port. Only incoming traffic with source addresses already stored in the dynamic or static address table will be accepted.
Authentication Commands 3 802.1x Port Authentication The switch supports IEEE 802.1x (dot1x) port-based access control that prevents unauthorized access to the network by requiring users to first enter a user ID and password for authentication. Client authentication is controlled centrally by a RADIUS server. Table 3-35 802.1x Port Authentication Commands Command Function Mode Page dot1x system-auth-control Enables or disabled 802.
3 Command Line Interface authentication dot1x default This command sets the default authentication server type. Use the no form to restore the default. Syntax authentication dot1x default radius no authentication dot1x Default Setting RADIUS Command Mode Global Configuration Example Console(config)#authentication dot1x default radius Console(config)# dot1x default This command sets all configurable dot1x global and port settings to their default values.
Authentication Commands 3 Command Mode Global Configuration Example Console(config)#dot1x max-req 2 Console(config)# dot1x port-control This command sets the dot1x mode on a port interface. Use the no form to restore the default. Syntax dot1x port-control {auto | force-authorized | force-unauthorized} no dot1x port-control • auto – Requires a dot1x-aware connected client to be authorized by the RADIUS server. Clients that are not dot1x-aware will be denied access.
3 Command Line Interface dot1x operation-mode This command allows single or multiple hosts (clients) to connect to an 802.1X-authorized port. Use the no form with no keywords to restore the default to single host. Use the no form with the multi-host max-count keywords to restore the default maximum count. Syntax dot1x operation-mode {single-host | multi-host [max-count count]} no dot1x operation-mode [multi-host max-count] • single-host – Allows only a single host to connect to this port.
Authentication Commands 3 dot1x re-authentication This command enables periodic re-authentication globally for all ports. Use the no form to disable re-authentication. Syntax [no] dot1x re-authentication Command Mode Global Configuration Example Console(config)#dot1x re-authentication Console(config)# dot1x timeout quiet-period This command sets the time that a switch port waits after the Max Request Count has been exceeded before attempting to acquire a new client. Use the no form to reset the default.
3 Command Line Interface Command Mode Global Configuration Example Console(config)#dot1x timeout re-authperiod 300 Console(config)# dot1x timeout tx-period This command sets the time that the switch waits during an authentication session before re-transmitting an EAP packet. Use the no form to reset to the default value. Syntax dot1x timeout tx-period seconds no dot1x timeout tx-period seconds - The number of seconds.
Authentication Commands 3 • Global 802.1X Parameters – Displays the global port access control parameters that can be configured for this switch as described in the preceding pages, including reauth-enabled (page 3-63), reauth-period (page 3-63), quiet-period (page 3-63), tx-period (page 3-64), and max-req (page 3-60). It also displays the following global parameters which are set to a fixed value, including the following items: - supp-timeout – Supplicant timeout. - server-timeout – Server timeout.
3 Command Line Interface Example Console#show dot1x Global 802.1X Parameters reauth-enabled: yes reauth-period: 300 quiet-period: 350 tx-period: 300 supp-timeout: 30 server-timeout: 30 reauth-max: 2 max-req: 2 802.1X Port Summary Port Name Status 1 disabled 2 disabled . . . 11 disabled 12 enabled Mode ForceAuthorized ForceAuthorized Authorized n/a n/a ForceAuthorized Auto yes yes 802.1X Port Details 802.1X is disabled on port 1 . . . 802.
Access Control List Commands 3 Access Control Lists An ACL is a sequential list of permit or deny conditions that apply to IP addresses, MAC addresses, or other more specific criteria. This switch tests ingress or egress packets against the conditions in an ACL one by one. A packet will be accepted as soon as it matches a permit rule, or dropped as soon as it matches a deny rule.
3 Command Line Interface Masks for Access Control Lists You can specify optional masks that control the order in which ACL rules are checked. The switch includes two system default masks that pass/filter packets matching the permit/deny the rules specified in an ingress ACL. You can also configure up to seven user-defined masks for an ACL. A mask must be bound exclusively to one of the basic ACL types (i.e.
Access Control List Commands 3 access-list ip This command adds an IP access list and enters configuration mode for standard or extended IP ACLs. Use the no form to remove the specified ACL. Syntax [no] access-list ip {standard | extended} acl_name • standard – Specifies an ACL that filters packets based on the source IP address. • extended – Specifies an ACL that filters packets based on the source or destination IP address, and other more specific criteria. • acl_name – Name of the ACL.
3 Command Line Interface permit, deny (Standard ACL) This command adds a rule to a Standard IP ACL. The rule sets a filter condition for packets emanating from the specified source. Use the no form to remove a rule. Syntax [no] {permit | deny} {any | source bitmask | host source} • • • • any – Any source IP address. source – Source IP address. bitmask – Decimal number representing the address bits to match. host – Keyword followed by a specific IP address.
Access Control List Commands 3 permit, deny (Extended ACL) This command adds a rule to an Extended IP ACL. The rule sets a filter condition for packets with specific source or destination IP addresses, protocol types, source or destination protocol ports, or TCP control codes. Use the no form to remove a rule.
3 Command Line Interface “match” and 0 bits to indicate “ignore.” The bitmask is bitwise ANDed with the specified source IP address, and then compared with the address for each IP packet entering the port(s) to which this ACL has been assigned. • You can specify both Precedence and ToS in the same rule. However, if DSCP is used, then neither Precedence nor ToS can be specified. • The control-code bitmask is a decimal number (representing an equivalent bit mask) that is applied to the control code.
Access Control List Commands 3 show ip access-list This command displays the rules for configured IP ACLs. Syntax show ip access-list {standard | extended} [acl_name] • standard – Specifies a standard IP ACL. • extended – Specifies an extended IP ACL. • acl_name – Name of the ACL. (Maximum length: 16 characters) Command Mode Privileged Exec Example Console#show ip access-list standard IP standard access-list david: permit host 10.1.1.21 permit 168.92.0.0 0.0.15.
3 Command Line Interface Example Console(config)#access-list ip mask-precedence in Console(config-ip-mask-acl)# Related Commands mask (IP ACL) (3-74) ip access-group (3-78) mask (IP ACL) This command defines a mask for IP ACLs. This mask defines the fields to check in the IP header. Use the no form to remove a mask.
Access Control List Commands 3 • First create the required ACLs and ingress or egress masks before mapping an ACL to an interface. • If you enter dscp, you cannot enter tos or precedence. You can enter both tos and precedence without dscp. • Masks that include an entry for a Layer 4 protocol source port or destination port can only be applied to packets with a header length of exactly five bytes. Example This example creates an IP ingress mask with two rules.
3 Command Line Interface This shows how to create an extended ACL with an egress mask to drop packets leaving network 171.69.198.0 when the Layer 4 source port is 23. Console(config)#access-list ip extended A3 Console(config-ext-acl)#deny host 171.69.198.5 any Console(config-ext-acl)#deny 171.69.198.0 255.255.255.0 any source-port 23 Console(config-ext-acl)#end Console#show access-list IP extended access-list A3: deny host 171.69.198.5 any deny 171.69.198.0 255.255.255.
Access Control List Commands 3 This is a more comprehensive example. It denies any TCP packets in which the SYN bit is ON, and permits all other packets. It then sets the ingress mask to check the deny rule first, and finally binds port 1 to this ACL. Note that once the ACL is bound to an interface (i.e., the ACL is active), the order in which the rules are displayed is determined by the associated mask.
3 Command Line Interface Related Commands mask (IP ACL) (3-74) ip access-group This command binds a port to an IP ACL. Use the no form to remove the port. Syntax [no] ip access-group acl_name {in | out} • acl_name – Name of the ACL. (Maximum length: 16 characters) • in – Indicates that this list applies to ingress packets. • out – Indicates that this list applies to egress packets. Default Setting None Command Mode Interface Configuration (Ethernet) Command Usage • A port can only be bound to one ACL.
Access Control List Commands 3 Related Commands ip access-group (3-78) map access-list ip This command sets the output queue for packets matching an ACL rule. The specified CoS value is only used to map the matching packet to an output queue; it is not written to the packet itself. Use the no form to remove the CoS mapping. Syntax [no] map access-list ip acl_name cos cos-value • acl_name – Name of the ACL. (Maximum length: 16 characters) • cos-value – CoS value.
3 Command Line Interface show map access-list ip This command shows the CoS value mapped to an IP ACL for the current interface. (The CoS value determines the output queue for packets matching an ACL rule.) Syntax show map access-list ip [interface] interface • ethernet unit/port - unit - This is device 1. - port - Port number.
Access Control List Commands 3 Command Usage • You must configure an ACL mask before you can change frame priorities based on an ACL rule. • Traffic priorities may be included in the IEEE 802.1p priority tag. This tag is also incorporated as part of the overall IEEE 802.1Q VLAN tag. To specify this priority, use the set priority keywords. • The IP frame header also includes priority bits in the Type of Service (ToS) octet.
3 Command Line Interface MAC ACLs Table 3-38 MAC ACL Commands Command Function Mode Page access-list mac Creates a MAC ACL and enters configuration mode GC 3-82 permit, deny Filters packets matching a specified source and destination address, packet format, and Ethernet type MAC-ACL 3-83 show mac access-list Displays the rules for configured MAC ACLs PE 3-84 access-list mac mask-precedence Changes to the mode for configuring access control masks GC 3-85 mask Sets a precedence mask for
Access Control List Commands 3 • To remove a rule, use the no permit or no deny command followed by the exact text of a previously configured rule. • An ACL can contain up to 32 rules. Example Console(config)#access-list mac jerry Console(config-mac-acl)# Related Commands permit, deny 3-83 mac access-group (3-88) show mac access-list (3-84) permit, deny (MAC ACL) This command adds a rule to a MAC ACL. The rule filters packets matching a specified MAC source or destination address (i.e.
3 Command Line Interface • • • • • • • • • any – Any MAC source or destination address. host – A specific MAC address. source – Source MAC address. destination – Destination MAC address range with bitmask. address-bitmask* – Bitmask for MAC address (in hexidecimal format). vid – VLAN ID. (Range: 1-4095) vid-bitmask* – VLAN bitmask. (Range: 1-4095) protocol – A specific Ethernet protocol number. (Range: 600-fff hex.) protocol-bitmask* – Protocol bitmask. (Range: 600-fff hex.
Access Control List Commands 3 Command Mode Privileged Exec Example Console#show mac access-list MAC access-list jerry: permit any 00-e0-29-94-34-de ethertype 0800 Console# Related Commands permit, deny 3-83 mac access-group (3-88) access-list mac mask-precedence This command changes to MAC Mask mode used to configure access control masks. Use the no form to delete the mask table. Syntax [no] access-list ip mask-precedence {in | out} • in – Ingress mask for ingress ACLs.
3 Command Line Interface mask (MAC ACL) This command defines a mask for MAC ACLs. This mask defines the fields to check in the packet header. Use the no form to remove a mask. Syntax [no] mask [pktformat] {any | host | source-bitmask} {any | host | destination-bitmask} [vid [vid-bitmask]] [ethertype [ethertype-bitmask]] • pktformat – Check the packet format field. (If this keyword must be used in the mask, the packet format must be specified in ACL rule to match.) • any – Any address will be matched.
Access Control List Commands 3 Example This example shows how to create an Ingress MAC ACL and bind it to a port. You can then see that the order of the rules have been changed by the mask.
3 Command Line Interface show access-list mac mask-precedence This command shows the ingress or egress rule masks for MAC ACLs. Syntax show access-list mac mask-precedence [in | out] • in – Ingress mask precedence for ingress ACLs. • out – Egress mask precedence for egress ACLs.
Access Control List Commands 3 Related Commands show mac access-list (3-84) show mac access-group This command shows the ports assigned to MAC ACLs. Command Mode Privileged Exec Example Console#show mac access-group Interface ethernet 1/5 MAC access-list M5 out Console# Related Commands mac access-group (3-88) map access-list mac This command sets the output queue for packets matching an ACL rule.
3 Command Line Interface Example Console(config)#int eth 1/5 Console(config-if)#map access-list mac M5 cos 0 Console(config-if)# Related Commands queue cos-map (3-146) show map access-list mac (3-90) show map access-list mac This command shows the CoS value mapped to a MAC ACL for the current interface. (The CoS value determines the output queue for packets matching an ACL rule.) Syntax show map access-list mac [interface] interface • ethernet unit/port - unit - This is device 1. - port - Port number.
Access Control List Commands 3 Default Setting None Command Mode Interface Configuration (Ethernet) Command Usage You must configure an ACL mask before you can change frame priorities based on an ACL rule.
3 Command Line Interface Example Console#show access-list IP standard access-list david: permit host 10.1.1.21 permit 168.92.0.0 0.0.15.255 IP extended access-list bob: permit 10.7.1.1 0.0.0.255 any permit 192.168.1.0 0.0.0.255 any dport 80 permit 192.168.1.0 0.0.0.
SNMP Commands 3 snmp-server community Use this command to define the community access string for the Simple Network Management Protocol. Use the no form to remove the specified community string. Syntax snmp-server community string [ro|rw] no snmp-server community string • string - Community string that acts like a password and permits access to the SNMP protocol. (Maximum length: 32 characters, case sensitive; Maximum number of strings: 5) • ro - Specifies read-only access.
3 Command Line Interface Command Mode Global Configuration Example Console(config)#snmp-server contact Paul Console(config)# Related Commands snmp-server location (3-94) snmp-server location Use this command to set the system location string. Use the no form to remove the location string. Syntax snmp-server location text no snmp-server location text - String that describes the system location.
SNMP Commands 3 string using the snmp-server community command prior to using the snmp-server host command. (Maximum length: 32 characters) • version - Specifies whether to send notifications as SNMP v1 or v2c traps. Default Setting Host Address: None SNMP Version: 1 Command Mode Global Configuration Command Usage • If you do not enter an snmp-server host command, no notifications are sent. In order to configure the switch to send SNMP notifications, you must enter at least one snmp-server host command.
3 Command Line Interface Default Setting Issue authentication and link-up-down traps. Command Mode Global Configuration Command Usage • If you do not enter an snmp-server enable traps command, no notifications controlled by this command are sent. In order to configure this device to send SNMP notifications, you must enter at least one snmp-server enable traps command. If you enter the command with no keywords, both authentication and link-up-down notifications are enabled.
SNMP Commands 3 snmp ip filter This command sets the IP addresses of clients that are allowed management access to the switch via SNMP. Use the no form the remove an IP address. Syntax [no] snmp ip filter ip_address subnet_mask • ip_address - An IP address indicating a client or group of clients that are allowed SNMP access to the switch. • subnet_mask - An address bitmask of decimal numbers that represent the address bits to match.
3 Command Line Interface show snmp Use this command to check the status of SNMP communications. Default Setting None Command Mode Normal Exec, Privileged Exec Command Usage This command provides information on the community access strings, counter information for SNMP input and output protocol data units, and whether or not SNMP logging has been enabled with the snmp-server enable traps command. Example Console#show snmp SNMP traps: Authentication: enable Link-up-down: enable SNMP communities: 1.
Interface Commands 3 Interface Commands These commands are used to display or set communication parameters for an Ethernet port, aggregated link, or VLAN.
3 Command Line Interface Command Mode Global Configuration Example To specify the port 25, enter the following command: Console(config)#interface ethernet 1/25 Console(config-if)# description Use this command to add a description to an interface. Use the no form to remove the description. Syntax description string no description string - Comment or a description to help you remember what is attached to this interface.
Interface Commands 3 Default Setting • Auto-negotiation is enabled by default. • When auto-negotiation is disabled, the default speed-duplex setting is 100half for 100BASE-TX ports and 1000full for Gigabit Ethernet ports. Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage • To force operation to the speed and duplex mode specified in a speed-duplex command, use the no negotiation command to disable auto-negotiation on the selected interface.
3 Command Line Interface • If autonegotiation is disabled, auto-MDI/MDI-X pin signal configuration will also be disabled for the RJ-45 ports. Example The following example configures port 11 to use autonegotiation Console(config)#interface ethernet 1/11 Console(config-if)#negotiation Console(config-if)# negotiation (3-101) speed-duplex (3-100) capabilities Use this command to advertise the port capabilities of a given interface during autonegotiation.
Interface Commands 3 Example The following example configures Ethernet port 5 capabilities to 100half, 100full and flow control Console(config)#interface ethernet 1/5 Console(config-if)#capabilities 100half Console(config-if)#capabilities 100full Console(config-if)#capabilities flowcontrol Console(config-if)# Related Commands negotiation (3-101) speed-duplex (3-100) flowcontrol (3-103) flowcontrol Use this command to enable flow control. Use the no form to disable flow control.
3 Command Line Interface Example The following example enables flow control on port 5. Console(config)#interface ethernet 1/5 Console(config-if)#flowcontrol Console(config-if)#no negotiation Console(config-if)# Related Commands negotiation (3-101) capabilities (flowcontrol, symmetric) (3-102) shutdown Use this command to disable an interface. To restart a disabled interface, use the no form. Syntax [no] shutdown Default Setting All interfaces are enabled.
Interface Commands 3 Default Setting Enabled for all ports Packet-rate limit: 500 packets per second Command Mode Interface Configuration (Ethernet) Command Usage • When broadcast traffic exceeds the specified threshold, packets above that threshold are dropped. • This command can enable or disable broadcast storm control for the selected interface. However, the specified threshold value applies to all ports on the switch.
3 Command Line Interface Example The following example clears statistics on Ethernet port 1/1 Console#clear counters ethernet 1/1 Console# show interfaces status Use this command to display the status for an interface. Syntax show interfaces status [interface] interface • ethernet unit/port - unit - This is device 1. - port - Port number. • port-channel channel-id (Range: 1-6) • vlan vlan-id (Range: 1-4094) Default Setting Shows the status for all interfaces.
Interface Commands 3 Example Console#show interfaces status ethernet 1/5 Information of Eth 1/5 Basic information: Port type: 100TX Mac address: 00-00-AB-CD-00-01 Configuration: Name: Port admin: Up Speed-duplex: Auto Capabilities: 10half, 10full, 100half, 100full, Broadcast storm: Enabled Broadcast storm limit: 500 packets/second Flow control: Disabled Lacp: Disabled Current status: Link status: Up Port operation status: Up Operation speed-duplex: 100full Flow control type: None Console#show interfaces s
3 Command Line Interface Example Console#show interfaces counters ethernet 1/7 Ethernet 1/7 Iftable stats: Octets input: 30658, Octets output: 196550 Unicast input: 6, Unicast output: 5 Discard input: 0, Discard output: 0 Error input: 0, Error output: 0 Unknown protos input: 0, QLen output: 0 Extended iftable stats: Multi-cast input: 0, Multi-cast output: 3064 Broadcast input: 262, Broadcast output: 1 Ether-like stats: Alignment errors: 0, FCS errors: 0 Single Collision frames: 0, Multiple collision frame
Interface Commands 3 Example This example shows the configuration setting for port 25.
3 Command Line Interface Mirror Port Commands This section describes how to mirror traffic from a source port to a target port. Table 3-42 Mirror Port Commands Command Function Mode Page port monitor Configures a mirror session IC 3-110 show port monitor Shows the configuration for a mirror port PE 3-111 port monitor Use this command to configure a mirror session. Use the no form to clear a mirror session.
Mirror Port Commands 3 Example The following example configures the switch to mirror all packets from port 6 to port 11: Console(config)#interface ethernet 1/11 Console(config-if)#port monitor ethernet 1/6 both Console(config-if)# show port monitor Use this command to display mirror information. Syntax show port monitor [interface] interface - ethernet unit/port (source port) • unit - Switch (unit 1). • port - Port number. Default Setting Shows all sessions.
3 Command Line Interface Rate Limit Commands This function allows the network manager to control the maximum rate for traffic transmitted or received on an interface. Rate limiting is configured on interfaces at the edge of a network to limit traffic into or out of the network. Traffic that falls within the rate limit is transmitted, while packets that exceed the acceptable amount of traffic are dropped. Rate limiting can be applied to individual ports or trunks.
Link Aggregation Commands 3 Example Console(config)#interface ethernet 1/1 Console(config-if)#rate-limit input 10 Console(config-if)# Link Aggregation Commands Ports can be statically grouped into an aggregate link (i.e., trunk) to increase the bandwidth of a network connection or to ensure fault recovery. Or you can use the Link Aggregation Control Protocol (LACP) to automatically negotiate a trunk link between this switch and another network device.
3 Command Line Interface channel-group Use this command to add a port to a trunk. Use the no form to remove a port from a trunk. Syntax channel-group channel-id no channel-group channel-id - Trunk index (Range: 1-6) Default Setting The current port will be added to this trunk. Command Mode Interface Configuration (Ethernet) Command Usage • When configuring static trunks, the switches must comply with the Cisco EtherChannel standard. • Use no channel-group to remove a port group from a trunk.
Link Aggregation Commands 3 • A trunk formed with another switch using LACP will automatically be assigned the next available port-channel ID. • If the target switch has also enabled LACP on the connected ports, the trunk will be activated automatically. • If more than four ports attached to the same target switch have LACP enabled, the additional ports will be placed in standby mode, and will only be enabled if one of the active links fails. Example The following shows LACP enabled on ports 11 - 13.
3 Command Line Interface Address Table Commands These commands are used to configure the address table for filtering specified addresses, displaying current entries, clearing the table, or setting the aging time.
Address Table Commands 3 Command Usage The static address for a host device can be assigned to a specific port within a specific VLAN. Use this command to add static addresses to the MAC Address Table. Static addresses have the following characteristics: • Static addresses will not be removed from the address table when a given interface link is down. • Static addresses are bound to the assigned interface and will not be moved.
3 Command Line Interface Default Setting None Command Mode Privileged Exec Command Usage • The MAC Address Table contains the MAC addresses associated with each interface.
Spanning Tree Commands 3 Example Console(config)#mac-address-table aging-time 300 Console(config)# Spanning Tree Commands This section includes commands that configure the Spanning Tree Algorithm (STA) globally for the switch, and commands that configure STA for the selected interface.
3 Command Line Interface Command Usage The Spanning Tree Algorithm (STA) can be used to detect and disable network loops, and to provide backup links between switches, bridges or routers. This allows the switch to interact with other bridging devices (that is, an STA-compliant switch, bridge or router) in your network to ensure that only one route exists between any two stations on the network, and provide backup links which automatically take over when a primary link goes down.
Spanning Tree Commands 3 Example The following example configures the switch to use Rapid Spanning Tree. Console(config)#spanning-tree mode rstp Console(config)# spanning-tree forward-time Use this command to configure the spanning tree bridge forward time globally for this switch. Use the no form to restore the default. Syntax spanning-tree forward-time seconds no spanning-tree forward-time seconds - Time in seconds. (Range: 4 - 30 seconds) The minimum value is the higher of 4 or [(max-age / 2) + 1].
3 Command Line Interface Command Mode Global Configuration Command Usage This command sets the time interval (in seconds) at which the root device transmits a configuration message. Example Console(config)#spanning-tree hello-time 5 Console(config)# spanning-tree max-age Use this command to configure the spanning tree bridge maximum age globally for this switch. Use the no form to restore the default. Syntax spanning-tree max-age seconds no spanning-tree max-age seconds - Time in seconds.
Spanning Tree Commands 3 spanning-tree priority Use this command to configure the spanning tree priority globally for this switch. Use the no form to restore the default. Syntax spanning-tree priority priority no spanning-tree priority priority - Priority of the bridge.
3 Command Line Interface Command Usage The path cost method is used to determine the best path between devices. Therefore, lower values should be assigned to ports attached to faster media, and higher values assigned to ports with slower media. Note that path cost (page 3-123) takes precedence over port priority (page 3-125).
Spanning Tree Commands 3 Default Setting • Ethernet – half duplex: 2,000,000; full duplex: 1,000,000; trunk: 500,000 • Fast Ethernet – half duplex: 200,000; full duplex: 100,000; trunk: 50,000 • Gigabit Ethernet – full duplex: 10,000; trunk: 5,000 Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage • This command is used by the Spanning Tree Algorithm to determine the best path between devices.
3 Command Line Interface Example Console(config)#interface ethernet 1/5 Console(config-if)#spanning-tree port-priority 0 Console(config-if)# Related Commands spanning-tree cost (3-124) spanning-tree edge-port Use this command to specify an interface as an edge port. Use the no form to restore the default.
Spanning Tree Commands 3 spanning-tree portfast Use this command to set an interface to fast forwarding. Use the no form to disable fast forwarding. Syntax [no] spanning-tree portfast Default Setting Disabled Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage • This command is used to enable/disable the fast spanning-tree mode for the selected port. In this mode, ports skip the Discarding and Learning states, and proceed straight to Forwarding.
3 Command Line Interface spanning-tree link-type Use this command to configure the link type for Rapid Spanning Tree. Use the no form to restore the default. Syntax spanning-tree link-type {auto | point-to-point | shared} no spanning-tree link-type • auto - Automatically derived from the duplex mode setting. • point-to-point - Point-to-point link. • shared - Shared medium.
Spanning Tree Commands 3 Command Mode Privileged Exec Command Usage If at any time the switch detects STP BPDUs, including Configuration or Topology Change Notification BPDUs, it will automatically set the selected interface to forced STP-compatible mode. However, you can also use the spanning-tree protocol-migration command at any time to manually re-check the appropriate BPDU format to send on the selected interfaces (i.e., RSTP or STP-compatible).
3 Command Line Interface Example Console#show spanning-tree Spanning-tree information --------------------------------------------------------------Spanning tree mode :RSTP Spanning tree enable/disable :enable Priority :32768 Bridge Hello Time (sec.) :2 Bridge Max Age (sec.) :20 Bridge Forward Delay (sec.) :15 Root Hello Time (sec.) :2 Root Max Age (sec.) :20 Root Forward Delay (sec.) :15 Designated Root :32768.
VLAN Commands 3 VLAN Commands A VLAN is a group of ports that can be located anywhere in the network, but communicate as though they belong to the same physical segment. This section describes commands used to create VLAN groups, add port members, specify how VLAN tagging is used, and enable automatic VLAN registration for the selected interface.
3 Command Line Interface Example Console(config)#vlan database Console(config-vlan)# Related Commands show vlan (3-139) vlan Use this command to configure a VLAN. Use the no form to restore the default settings or delete a VLAN. Syntax vlan vlan-id [name vlan-name] media ethernet [state {active | suspend}] no vlan vlan-id [name | state] • vlan-id - ID of configured VLAN. (Range: 1-4094, no leading zeroes) • name - Keyword to be followed by the VLAN name.
VLAN Commands 3 Configuring VLAN Interfaces Table 3-49 Configuring VLAN Interfaces Command Function Mode Page interface vlan Enters interface configuration mode for a specified VLAN IC 3-133 switchport mode Configures VLAN membership mode for an interface IC 3-134 switchport acceptable-frame-types Configures frame types to be accepted by an interface IC 3-134 switchport ingress-filtering Enables ingress filtering on an interface IC 3-135 switchport native vlan Configures the PVID (nat
3 Command Line Interface switchport mode Use this command to configure the VLAN membership mode for a port. Use the no form to restore the default. Syntax switchport mode {trunk | hybrid} no switchport mode • trunk - Specifies a port as an end-point for a VLAN trunk. A trunk is a direct link between two switches, so the port transmits tagged frames that identify the source VLAN. However, note that frames belonging to the port’s default VLAN (i.e., associated with the PVID) are sent untagged.
VLAN Commands 3 Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage When set to receive all frame types, any received frames that are untagged are assigned to the default VLAN.
3 Command Line Interface Example The following example shows how to set the interface to port 1 and then enable ingress filtering: Console(config)#interface ethernet 1/1 Console(config-if)#switchport ingress-filtering Console(config-if)# switchport native vlan Use this command to configure the PVID (i.e., default VLAN ID) for a port. Use the no form to restore the default. Syntax switchport native vlan vlan-id no switchport native vlan vlan-id - Default VLAN ID for a port.
VLAN Commands 3 switchport allowed vlan Use this command to configure VLAN groups on the selected interface. Use the no form to restore the default. Syntax switchport allowed vlan {add vlan-list [tagged | untagged] | remove vlan-list} no switchport allowed vlan • add vlan-list - List of VLAN identifiers to add. • remove vlan-list - List of VLAN identifiers to remove. • vlan-list - Separate nonconsecutive VLAN identifiers with a comma and no spaces; use a hyphen to designate a range of IDs.
3 Command Line Interface switchport forbidden vlan Use this command to configure forbidden VLANs. Use the no form to remove the list of forbidden VLANs. Syntax switchport forbidden vlan {add vlan-list | remove vlan-list} no switchport forbidden vlan • add vlan-list - List of VLAN identifiers to add. • remove vlan-list - List of VLAN identifiers to remove. • vlan-list - Separate nonconsecutive VLAN identifiers with a comma and no spaces; use a hyphen to designate a range of IDs. Do not enter leading zeros.
VLAN Commands 3 show vlan Use this command to show VLAN information. Syntax show vlan [id vlan-id | name vlan-name] • id - Keyword to be followed by the VLAN ID. - vlan-id - ID of the configured VLAN. (Range: 1-4094, no leading zeroes) • name - Keyword to be followed by the VLAN name. - vlan-name - ASCII string from 1 to 32 characters. Default Setting Shows all VLANs.
3 Command Line Interface GVRP and Bridge Extension Commands GARP VLAN Registration Protocol defines a way for switches to exchange VLAN information in order to automatically register VLAN members on interfaces across the network. This section describes how to enable GVRP for individual interfaces and globally for the switch, as well as how to display default configuration settings for the Bridge Extension MIB.
GVRP and Bridge Extension Commands 3 show bridge-ext Use this command to show the configuration for bridge extension commands. Default Setting None Command Mode Privileged Exec Command Usage See “Displaying Basic VLAN Information” on page 2-85 and “Displaying Bridge Extension Capabilities” on page 2-10 for a description of the displayed items.
3 Command Line Interface show gvrp configuration Use this command to show if GVRP is enabled. Syntax show gvrp configuration [interface] interface • ethernet unit/port - unit - This is device 1. - port - Port number. • port-channel channel-id (Range: 1-6) Default Setting Shows both global and interface-specific configuration.
GVRP and Bridge Extension Commands 3 Command Usage • Group Address Registration Protocol is used by GVRP and GMRP to register or deregister client attributes for client services within a bridged LAN. The default values for the GARP timers are independent of the media access method or data rate. These values should not be changed unless you are experiencing difficulties with GMRP or GVRP registration/deregistration. • Timer values are applied to GVRP for all the ports on all VLANs.
3 Command Line Interface Related Commands garp timer (3-142) Priority Commands The commands described in this section allow you to specify which data packets have greater precedence when traffic is buffered in the switch due to congestion. This switch supports CoS with four priority queues for each port. Data packets in a port’s high-priority queue will be transmitted before those in the lower-priority queues.
Priority Commands 3 Default Setting The priority is not set, and the default value for untagged frames received on the interface is zero. Command Mode Interface Configuration (Ethernet, Port Channel) Command Usage • The precedence for priority mapping is IP Port, IP Precedence or IP DSCP, and default switchport priority. • The default priority applies for an untagged frame received on a port set to accept all frame types (i.e, receives both untagged and tagged frames).
3 Command Line Interface Command Usage WRR controls bandwidth sharing at the egress port by defining scheduling weights. Example The following example shows how to assign WRR weights of 1, 3, 5 and 7 to the CoS priority queues 0, 1, 2 and 3: Console(config)#queue bandwidth 1 3 5 7 Console(config)# Related Commands show queue bandwidth (3-147) queue cos-map Use this command to assign class of service (CoS) values to the priority queues (i.e., hardware output queues 0 - 3).
Priority Commands 3 Example The following example shows how to map CoS values 0, 1 and 2 to priority queue 0, value 3 to queue 1, values 4 and 5 to queue 2, and values 6 and 7 to queue 3: Console(config)#interface ethernet 1/1 Console(config-if)#queue cos-map 0 1 2 Console(config-if)#queue cos-map 1 0 3 Console(config-if)#queue cos-map 2 4 5 Console(config-if)#queue cos-map 3 6 7 Console(config-if)#exit Console#show queue cos-map ethernet 1/1 Information of Eth 1/1 Traffic Class : 0 1 2 3 4 5 6 7 Priority
3 Command Line Interface Default Setting None Command Mode Privileged Exec Example Console#show queue Information of Eth Traffic Class : 0 Priority Queue: 1 Console# cos-map ethernet 1/1 1/1 1 2 3 4 5 6 7 0 0 1 2 2 3 3 Priority Commands (Layer 3 and 4) Table 3-54 Priority Commands (Layer 3 and 4) Command Function Mode Page map ip port Enables TCP class of service mapping GC 3-148 map ip port Maps TCP socket to a class of service IC 3-149 map ip precedence Enables IP precedence class of serv
Priority Commands 3 Example The following example shows how to enable TCP/UDP port mapping globally: Console(config)#map ip port Console(config)# map ip port (Interface Configuration) Use this command to set IP port priority (i.e., TCP/UDP port priority). Use the no form to remove a specific setting. Syntax map ip port port-number cos cos-value no map ip port port-number • port-number - 16-bit TCP/UDP port number.
3 Command Line Interface Command Usage • The precedence for priority mapping is IP Port, IP Precedence or IP DSCP, and default switchport priority. • IP Precedence and IP DSCP cannot both be enabled. Enabling one of these priority types will automatically disable the other type. Example The following example shows how to enable IP precedence mapping globally: Console(config)#map ip precedence Console(config)# map ip precedence (Interface Configuration) Use this command to set IP precedence priority (i.e.
Priority Commands 3 map ip dscp (Global Configuration) Use this command to enable IP DSCP mapping (i.e., Differentiated Services Code Point mapping). Use the no form to disable IP DSCP mapping. Syntax [no] map ip dscp Default Setting Disabled Command Mode Global Configuration Command Usage • The precedence for priority mapping is IP Port, IP Precedence or IP DSCP, and default switchport priority. • IP Precedence and IP DSCP cannot both be enabled.
3 Command Line Interface Default Setting The DSCP default values are defined in the following table. Note that all the DSCP values that are not specified are mapped to CoS value 0.
Priority Commands 3 Default Setting None Command Mode Privileged Exec Example The following shows that HTTP traffic has been mapped to CoS value 0: Console#show map ip port TCP port mapping status: disabled Port Port no. COS --------- -------- --Eth 1/ 5 80 0 Console# Related Commands map ip port (Global Configuration) (3-148) map ip port (Interface Configuration) (3-149) show map ip precedence Use this command to show the IP precedence priority map.
3 Command Line Interface Example Console#show map ip precedence ethernet 1/5 Precedence mapping status: disabled Port Precedence COS --------- ---------- --Eth 1/ 5 0 0 Eth 1/ 5 1 1 Eth 1/ 5 2 2 Eth 1/ 5 3 3 Eth 1/ 5 4 4 Eth 1/ 5 5 5 Eth 1/ 5 6 6 Eth 1/ 5 7 7 Console# Related Commands map ip precedence (Global Configuration) (3-149) map ip precedence (Interface Configuration) (3-150) show map ip dscp Use this command to show the IP DSCP priority map.
Multicast Filtering Commands 3 Example Console#show map ip dscp ethernet 1/1 DSCP mapping status: disabled Port DSCP COS --------- ---- --Eth 1/ 1 0 0 Eth 1/ 1 1 0 Eth 1/ 1 2 0 Eth 1/ 1 3 0 . . .
3 Command Line Interface IGMP Snooping Commands Table 3-57 IGMP Snooping Commands Command Function Mode Page ip igmp snooping Enables IGMP snooping GC 3-156 ip igmp snooping vlan static Adds an interface as a member of a multicast group GC 3-156 ip igmp snooping version Configures the IGMP version for snooping GC 3-157 show ip igmp snooping Shows the IGMP snooping and query configuration PE 3-157 show mac-address-table multicast Shows the IGMP snooping MAC multicast list PE 3-158 ip
Multicast Filtering Commands 3 Default Setting None Command Mode Global Configuration Example The following shows how to statically configure a multicast group on a port: Console(config)#ip igmp snooping vlan 1 static 224.0.0.12 ethernet 1/5 Console(config)# ip igmp snooping version Use this command to configure the IGMP snooping version. Use the no form to restore the default.
3 Command Line Interface Command Mode Privileged Exec Command Usage See “Configuring IGMP Snooping Parameters” on page 2-74 for a description of the displayed items.
Multicast Filtering Commands 3 IGMP Query Commands (Layer 2) Table 3-58 IGMP Query Commands (Layer 2) Command Function ip igmp snooping querier Allows this device to act as the querier for IGMP snooping GC Mode 3-159 Page ip igmp snooping query-count Configures the query count GC 3-159 ip igmp snooping query-interval Configures the query interval GC 3-160 ip igmp snooping query-max-response-time Configures the report delay GC 3-161 ip igmp snooping router-port-expire-time Configures th
3 Command Line Interface Default Setting 2 times Command Mode Global Configuration Command Usage The query count defines how long the querier waits for a response from a multicast client before taking action. If a querier has sent a number of queries defined by this command, but a client has not responded, a countdown timer is started using the time defined by ip igmp snooping query-maxresponse-time.
Multicast Filtering Commands 3 ip igmp snooping query-max-response-time Use this command to configure the snooping report delay. Use the no form of this command to restore the default. Syntax ip igmp snooping query-max-response-time seconds no ip igmp snooping query-max-response-time seconds - The report delay advertised in IGMP queries. (Range: 5-30) Default Setting 10 seconds Command Mode Global Configuration Command Usage • The switch must be using IGMPv2 for this command to take effect.
3 Command Line Interface Default Setting 300 seconds Command Mode Global Configuration Command Usage The switch must use IGMPv2 for this command to take effect.
Multicast Filtering Commands 3 Command Usage Depending on your network connections, IGMP snooping may not always be able to locate the IGMP querier. Therefore, if the IGMP querier is a known multicast router/switch connected over the network to an interface (port or trunk) on your switch, you can manually configure that interface to join all the current multicast groups.
3 Command Line Interface IP Interface Commands There are no IP addresses assigned to this switch by default. You must manually configure a new address to manage the switch over your network or to connect the switch to existing IP subnets. You may also need to a establish a default gateway between this device and management stations or other devices that exist on another network segment.
IP Interface Commands 3 • If you select the bootp or dhcp option, IP is enabled but will not function until a BOOTP or DHCP reply has been received. Requests will be broadcast periodically by this device in an effort to learn its IP address. (BOOTP and DHCP values can include the IP address, default gateway, and subnet mask). • You can start broadcasting BOOTP or DHCP requests by entering an ip dhcp restart command, or by rebooting the switch.
3 Command Line Interface Related Commands show ip redirects (3-167) ip dhcp restart Use this command to submit a BOOTP or DCHP client request. Default Setting None Command Mode Privileged Exec Command Usage • This command issues a BOOTP or DHCP client request for any IP interface that has been set to BOOTP or DHCP mode via the ip address command. • DHCP requires the server to reassign the client’s last address if available.
IP Interface Commands 3 Default Setting All interfaces Command Mode Privileged Exec Example Console#show ip interface IP address and netmask: 10.1.0.254 255.255.255.0 on VLAN 1, and address mode: User specified. Console# Related Commands show ip redirects (3-167) show ip redirects Use this command to show the default gateway configured for this device. Default Setting None Command Mode Privileged Exec Example Console#show ip redirects ip default gateway 10.1.0.
3 Command Line Interface Default Setting This command has no default for the host. Command Mode Normal Exec, Privileged Exec Command Usage • Use the ping command to see if another site on the network can be reached. • Following are some results of the ping command: • Normal response -The normal response occurs in one to ten seconds, depending on network traffic. • Destination does not respond - If the host does not respond, a “timeout” appears in ten seconds.
Appendix A: Upgrading Firmware via the Serial Port The switch contains three firmware components that can be upgraded; the diagnostics (or Boot-ROM) code, runtime operation code and the loader code. The runtime code can be upgraded via the switch’s RS-232 serial console port, via a network connection to a TFTP server, or using SNMP management software. The diagnostics and the loader code can be upgraded only via the switch’s RS-232 serial console port.
A Upgrading Firmware via the Serial Port 7. There are two baud rate settings available, 9600 and 115200. Using the higher baud rate minimizes the time required to download firmware code files. 8. Set your PC’s terminal emulation software to match the 115200 baud rate. Press Press to reset communications with the switch. Select> Change baudrate [A]9600 [B]115200 Baudrate set to 115200 9.
A 15. For example, the following screen text shows the download procedure for a runtime code file: Select>x Xmodem Receiving Start :: [R]untime [D]iagnostic [L]oader Update Image File:r Runtime Image Filename : run_1013 Updating file system. File system updated. [Press any key to continue] 16. To set the new downloaded file as the startup file, use the [S]et Startup File menu option. 17.
A A-4 Upgrading Firmware via the Serial Port
Appendix B: Troubleshooting Table B-1 Troubleshooting Chart Symptom Action Cannot connect using Telnet, • Be sure you have configured the agent with a valid IP address, subnet Web browser, or SNMP mask and default gateway. software • If you are trying to connect to the agent via the IP address for a tagged VLAN group, your management station must include the appropriate tag in its transmitted frames.
B B-2 Troubleshooting
Appendix C: Software Specifications Software Features Authentication Local, RADIUS, TACACS, Port (802.1x), HTTPS, SSH, Port Security Access Control Lists IP, MAC (up to 32 lists) DHCP Client Port Configuration 100BASE-TX: 10/100 Mbps, half/full duplex 1000BASE-T: 10/100/1000 Mbps, half/full duplex 1000BASE-LX: 1000 Mbps, full duplex Flow Control Full Duplex: IEEE 802.
C Software Specifications Multicast Filtering IGMP Snooping (Layer 2) Additional Features BOOTP client CIDR (Classless Inter-Domain Routing) SNTP (Simple Network Time Protocol) SNMP (Simple Network Management Protocol) RMON (Remote Monitoring, groups 1,2,3,9) Management Features In-Band Management Telnet, Web-based HTTP or HTTPS, SNMP manager, or Secure Shell Out-of-Band Management RS-232 DB-9 console port Software Loading TFTP in-band or XModem out-of-band SNMP Management access via MIB database Trap man
Software Specifications C RADIUS (RFC 2618) RMON (RFC 1757 groups 1,2,3,9) SNTP (RFC 2030) SNMP (RFC 1157) HTTPS SSH (Version 1.
C C-4 Software Specifications
Glossary Access Control List (ACL) ACLs can limit network traffic and restrict access to certain users or devices by checking each packet for certain IP or MAC (i.e., Layer 2) information. Boot Protocol (BOOTP) BOOTP is used to provide bootup information for network devices, including IP address information, the address of the TFTP server that contains the devices system files, and the name of the boot file.
Glossary Generic Attribute Registration Protocol (GARP) GARP is a protocol that can be used by endstations and switches to register and propagate multicast group membership information in a switched environment so that multicast data frames are propagated only to those parts of a switched LAN containing registered endstations. Formerly called Group Address Registration Protocol. Generic Multicast Registration Protocol (GMRP) GMRP allows network devices to register end stations with multicast groups.
Glossary IGMP Query On each subnetwork, one IGMP-capable device will act as the querier — that is, the device that asks all hosts to report on the IP multicast groups they wish to join or to which they already belong. The elected querier will be the device with the lowest IP address in the subnetwork. Internet Group Management Protocol (IGMP) A protocol through which hosts can register with their local router for multicast services.
Glossary Multicast Switching A process whereby the switch filters incoming multicast frames for services for which no attached host has registered, or forwards them to all ports contained within the designated multicast VLAN group. Network Time Protocol (NTP) NTP provides the mechanisms to synchronize time across the network. The time servers operate in a hierarchical-master-slave configuration in order to synchronize local clocks within the subnet and to national time standards via wire or radio.
Glossary Simple Network Management Protocol (SNMP) The application protocol in the Internet suite of protocols which offers network management services. Simple Network Time Protocol (SNTP) SNTP allows a device to set its internal clock based on periodic updates from a Network Time Protocol (NTP) server. Updates can be requested from a specific NTP server, or can be received via broadcasts sent by NTP servers. Spanning Tree Protocol (STP) A technology that checks your network for any loops.
Glossary XModem A protocol used to transfer files between devices. Data is grouped in 128-byte blocks and error-corrected.
Index Numerics E 802.
Index TACACS server 2-25, 3-55 TACACS+ client 2-25, 3-55 TACACS+ server 2-25, 3-55 logon authentication, sequence 2-25, 3-51 M main menu 2-3 Management Information Bases (MIBs) C-3 managing STA interface settings 2-77, 2-80 mirror port, configuring 2-61, 3-110 multicast configuring 2-106, 3-155 router 2-108, 2-109, 3-162 P passwords administrator setting 2-24, 3-24 path cost 2-78, 3-124 method 2-76, 3-123 STA 2-76, 3-123 port authentication 2-36, 3-59 port priority configuring 2-93, 3-144 default ingress
Index home page 2-2 menu list 2-3 panel display 2-3 egress mode 2-92, 3-134 W Web interface access requirements 2-1 configuration buttons 2-2 X XModem downloads A-1, B-1 Index-3
Index Index-4
ES3526V-60 150200035300A E072003-R01 ES3526G E072000-R04