NETGEAR ProSafe 7300S User Manual

ProSafe 7300S Managed Switches CLI Manual, Version 8.0
NETGEAR, Inc.
350 East Plumeria Drive San Jose, CA 95134
202-10528-01 July 2009
© 2009 by NETGEAR, Inc. All rights reserved.
Trademarks
NETGEAR and the NETGEAR logo are registered trademarks, and ProSafe is a trademark of NETGEAR, Inc. Microsoft, Windows, and Windows NT are registered trademarks of Microsoft Corporation. Other brand and product names are registered trademarks or trademarks of their respective holders. Portions of this
document are copyright Intoto, Inc.
Statement of Conditions
In the interest of improving internal design, operational function, and/or reliability, NETGEAR reserves the right to make changes to the products described in this document without notice.
NETGEAR does not assume any liability that may occur due to the use or application of the product(s) or circuit layout(s) described herein.
EN 55 022 Declaration of Conformance
This is to certify that the ProSafe 7300S Series Layer-3 Managed Stackable Switch is shielded against the generation of radio interference in accordance with the application of Council Directive 89/336/EEC, Article 4a. Conformity is declared by the application of EN 55 022 Class B (CISPR 22).
Certificate of the Manufacturer/Importer
It is hereby certified that the ProSafe 7300S Series Layer-3 Managed Stackable Switch has been suppressed in accordance with the conditions set out in the BMPT-AmtsblVfg 243/1991 and Vfg 46/1992. The operation of some equipment (for example, test transmitters) in accordance with the regulations may, however, be subject to certain restrictions. Please refer to the notes in the operating instructions.
The Federal Office for Telecommunications Approvals has been notified of the placing of this equipment on the market and has been granted the right to test the series for compliance with the regulations.
Bestätigung des Herstellers/Importeurs
Es wird hiermit bestätigt, daß dasProSafe 7300S Series Layer-3 Managed Stackable Switch gemäß der im BMPT­AmtsblVfg 243/1991 und Vfg 46/1992 aufgeführten Bestimmungen entstört ist. Das vorschriftsmäßige Betreiben einiger Geräte (z.B. Testsender) kann jedoch gewissen Beschränkungen unterliegen. Lesen Sie dazu bitte die Anmerkungen in der Betriebsanleitung.
Das Bundesamt für Zulassungen in der Telekommunikation wurde davon unterrichtet, daß dieses Gerät auf den Markt gebracht wurde und es ist berechtigt, die Serie auf die Erfüllung der Vorschriften hin zu überprüfen.
Voluntary Control Council for Interference (VCCI) Statement
This equipment is in the Class B category (information equipment to be used in a residential area or an adjacent area thereto) and conforms to the standards set by the Voluntary Control Council for Interference by Data Processing Equipment and Electronic Office Machines aimed at preventing radio interference in such residential areas. When used near a radio or TV receiver, it may become the cause of radio interference. Read instructions for correct handling.
ii
Product and Publication Details
Model Number: GSM7328S, GSM7352S, GSM7328FS, GSM7328Sv2, and
GSM7352Sv2
Publication Date: July 2009 Product Family: managed switch Product Name: ProSafe 7300S Series Layer-3 Managed Stackable Switch Home or Business Product: Business Language: English Publication Part Number: 202-10528-01 Publication Version Number 1.0
iii

About This Manual

This document describes command-line interface (CLI) commands you use to view and configure 7300S Series Stackable Switch software. You can access the CLI by using a direct connection to the serial port or by using telnet or SSH over a remote network connection.
Note: This document contains both standalone and stacking commands.

Audience

This document is for system administrators who configure and operate switches using 7300S Series Stackable Switch software. It provides an understanding of the configuration options of the software.
This document assumes that the reader has an understanding of the software base and has read the appropriate specification for the relevant networking device platform. It also assumes that the reader has a basic knowledge of Ethernet and networking concepts.

About Managed Switch Software

The Managed Switch software has two purposes:
Assist attached hardware in switching frames, based on Layer 2, 3, or 4 information contained in the frames.
Provide a complete device management portfolio to the network administrator.
ix
7300S Managed Switches CLI Manual, Version 8.0

Scope

This manual covers the layer 3 managed switches (GSM7328S, GSM7352S, GSM7328FS, GSM7328Sv2, and GSM7352Sv2). Some of the commands described in this manual can only be used on GSM7328Sv2 and GSM7352Sv2 switches. These commands are noted in text.
The following figure shows the GSM7328S and GSM7352S switches. Newer documentation refers to these two switches as GSM7328Sv1 and GSM7352Sv1. Also shown are the GSM7328Sv2 and GSM7352Sv2 switches.
Version 1 Switches
GSM7328Sv1
Version 2 Switches
GSM7352Sv1
GSM7328Sv2
GSM7352Sv2
x
7300S Managed Switches CLI Manual, Version 8.0

Conventions and Formats

The conventions, formats, and scope of this manual are described in the following paragraphs:
Typographical Conventions. This manual uses the following typographical conventions::
Italic Emphasis, books, CDs, file and server names, extensions
Bold User input, IP addresses, GUI screen text
Fixed Command prompt, CLI text, code
italic URL links
Formats. This manual uses the following formats to highlight special messages:
Note: This format is used to highlight information of importance or special interest.
Tip: This format is used to highlight a procedure that will save time or resources.
Warning: Ignoring this type of note may result in a malfunction or damage to the
equipment.
Danger: This is a safety warning. Failure to take heed of this notice may result in
personal injury or death.
For more information about network, Internet, firewall, and VPN technologies, go to: http://
kbserver.netgear.com.
xi
7300S Managed Switches CLI Manual, Version 8.0

How to Print This Manual

To print this manual, your computer must have the free Adobe Acrobat reader installed in order to view and print PDF files. The Acrobat reader is available on the Adobe Web site at
http://www.adobe.com.

Revision History

Table 1-1.
Part Number
202-10528-01 1.0 July 2009 7300S Managed Switches CLI Manual, Version 8.0
Version Number
Date Description
xii

Contents

About This Manual
Audience ...........................................................................................................................xi
About Managed Switch Software ..................................................................................... xi
Scope ............................................................................................................................... xi
Chapter 1 Using the Command-Line Interface
Command Syntax ...........................................................................................................1-1
Command Conventions ..................................................................................................1-2
Common Parameter Values ...........................................................................................1-3
Unit/Slot/Port Naming Convention ..................................................................................1-3
Using the “No” Form of a Command ..............................................................................1-4
Managed Switch Modules ..............................................................................................1-5
Command Modes ...........................................................................................................1-5
Command Completion and Abbreviation ........................................................................1-9
CLI Error Messages ........................................................................................................1-9
CLI Line-Editing Conventions .......................................................................................1-10
Using CLI Help .............................................................................................................1-11
Accessing the CLI .........................................................................................................1-12
Chapter 2 Stacking Commands
Dedicated Port Stacking .................................................................................................2-1
Front Panel Stacking Commands .................................................................................2-10
Chapter 3 Switching Commands
Port Configuration Commands .......................................................................................3-2
Spanning Tree Protocol (STP) Commands ..................................................................3-11
VLAN Commands .........................................................................................................3-31
Double VLAN Commands ............................................................................................3-46
Voice VLAN Commands ...............................................................................................3-48
viii
Managed Switch CLI Manual, Release 8.0
Provisioning (IEEE 802.1p) Commands .......................................................................3-51
Protected Ports Commands .........................................................................................3-52
Private Group Commands ............................................................................................3-54
GARP Commands ........................................................................................................3-56
GVRP Commands ........................................................................................................3-59
GMRP Commands .......................................................................................................3-61
Port-Based Network Access Control Commands .........................................................3-64
Storm-Control Commands ............................................................................................3-78
Port-Channel/LAG (802.3ad) Commands ....................................................................3-90
Port Mirroring ..............................................................................................................3-113
Static MAC Filtering ....................................................................................................3-115
DHCP Snooping Configuration Commands ...............................................................3-120
Dynamic ARP Inspection Commands ........................................................................3-131
IGMP Snooping Configuration Commands ................................................................3-139
IGMP Snooping Querier Commands ..........................................................................3-148
MLD Snooping Commands ........................................................................................3-153
MLD Snooping Querier Commands ...........................................................................3-162
Port Security Commands ............................................................................................3-166
LLDP (802.1AB) Commands ......................................................................................3-170
LLDP-MED Commands ..............................................................................................3-181
Denial of Service Commands .....................................................................................3-192
MAC Database Commands ........................................................................................3-204
ISDP Commands ........................................................................................................3-206
Chapter 4 Routing Commands
Address Resolution Protocol (ARP) Commands ............................................................4-1
IP Routing Commands ...................................................................................................4-8
Router Discovery Protocol Commands ........................................................................4-20
Virtual LAN Routing Commands................................................................................... 4-24
Virtual Router Redundancy Protocol Commands......................................................... 4-25
DHCP and BOOTP Relay Commands .........................................................................4-34
IP Helper Commands ...................................................................................................4-36
Open Shortest Path First (OSPF) Commands .............................................................4-39
Routing Information Protocol (RIP) Commands ...........................................................4-82
ICMP Throttling Commands .........................................................................................4-91
ix
Managed Switch CLI Manual, Release 8.0
Chapter 5 IP Multicast Commands
Multicast Commands ......................................................................................................5-1
DVMRP Commands .......................................................................................................5-7
PIM-DM Commands .....................................................................................................5-12
PIM-SM Commands .....................................................................................................5-16
Internet Group Message Protocol (IGMP) Commands .................................................5-26
IGMP Proxy Commands ...............................................................................................5-35
Chapter 6 IPv6 Multicast Commands
IPv6 Multicast Forwarder ................................................................................................6-2
IPv6 PIM-DM Commands ...............................................................................................6-4
IPv6 PIM-SM Commands ...............................................................................................6-8
IPv6 MLD Commands ..................................................................................................6-16
IPv6 MLD-Proxy Commands ........................................................................................6-23
Chapter 7 IPv6 Commands
IPv6 Management Commands .......................................................................................7-2
Tunnel Interface Commands ..........................................................................................7-6
Loopback Interface Commands......................................................................................7- 8
IPv6 Routing Commands ..............................................................................................7-10
OSPFv3 Commands .....................................................................................................7-33
DHCPv6 Commands ....................................................................................................7-68
Chapter 8 Quality of Service (QoS) Commands
Class of Service (CoS) Commands ................................................................................8-2
Differentiated Services (DiffServ) Commands ................................................................8-8
DiffServ Class Commands ...........................................................................................8-10
DiffServ Policy Commands ...........................................................................................8-19
DiffServ Service Commands ........................................................................................8-25
DiffServ Show Commands ...........................................................................................8-26
MAC Access Control List (ACL) Commands ................................................................8-32
IP Access Control List (ACL) Commands .....................................................................8-37
IPv6 Access Control List (ACL) Commands .................................................................8-44
Auto-Voice over IP Commands ....................................................................................8-48
x
Managed Switch CLI Manual, Release 8.0
Chapter 9 Utility Commands
Auto Install Commands ..................................................................................................9-2
Dual Image Commands ..................................................................................................9-4
System Information and Statistics Commands ...............................................................9-6
Logging Commands .....................................................................................................9-18
System Utility and Clear Commands ............................................................................9-24
Simple Network Time Protocol (SNTP) Commands .....................................................9-34
DHCP Server Commands ............................................................................................9-40
DNS Client Commands ................................................................................................9-55
Packet Capture Commands .........................................................................................9-61
Serviceability Packet Tracing Commands ....................................................................9-63
Cable Test Command................................................................................................... 9-83
sFlow Commands......................................................................................................... 9-84
Chapter 10 Management Commands
Configuring the Switch Management CPU ...................................................................11-2
Network Interface Commands ......................................................................................11-4
Console Port Access Commands .................................................................................11-8
Telnet Commands ......................................................................................................11-11
Secure Shell (SSH) Commands .................................................................................11-16
Management Security Commands .............................................................................11-19
Hypertext Transfer Protocol (HTTP) Commands .......................................................11-20
Access Commands .....................................................................................................11-28
User Account Commands ...........................................................................................11-29
SNMP Commands ......................................................................................................11-40
RADIUS Commands ...................................................................................................11-52
TACACS+ Commands ................................................................................................11-67
Configuration Scripting Commands ............................................................................11-71
Pre-login Banner and System Prompt Commands .....................................................11-73
Chapter 11 Log Messages
Core ..............................................................................................................................11-1
Utilities ..........................................................................................................................11-4
Management .................................................................................................................11-6
xi
Managed Switch CLI Manual, Release 8.0
Switching ....................................................................................................................11-10
QoS ............................................................................................................................11-16
Routing/IPv6 Routing ..................................................................................................11-17
Multicast .....................................................................................................................11-21
Stacking ......................................................................................................................11-23
Technologies ..............................................................................................................11-23
O/S Support ................................................................................................................11-26
Chapter 12 Captive Portal Commands
Capitve Portal Global Commands ................................................................................12-1
Captive Portal Configuration Commands .....................................................................12-5
Captive Portal Status Commands ..............................................................................12-14
Captive Portal Client Connection Commands ............................................................12-19
Captive Portal Interface Commands ...........................................................................12-23
Captive Portal Local User Commands .......................................................................12-24
Captive Portal User Group Commands ......................................................................12-31
Chapter 13 List of Commands
xii
Chapter 1
Using the Command-Line Interface
The command-line interface (CLI) is a text-based way to manage and monitor the system. You can access the CLI by using a direct serial connection or by using a remote logical connection with telnet or SSH.
This chapter describes the CLI syntax, conventions, and modes. It contains the following sections:
“Command Syntax” on page 1-1
“Command Conventions” on page 1-2
“Common Parameter Values” on page 1-3
“Unit/Slot/Port Naming Convention” on page 1-3
“Using the “No” Form of a Command” on page 1-4
“Managed Switch Modules” on page 1-5
“Command Modes” on page 1-5
“Command Completion and Abbreviation” on page 1-9
“CLI Error Messages” on page 1-9
“CLI Line-Editing Conventions” on page 1-10
“Using CLI Help” on page 1-11
“Accessing the CLI” on page 1-12

Command Syntax

A command is one or more words that might be followed by one or more parameters. Parameters can be required or optional values.
Some commands, such as show network or clear vlan, do not require parameters. Other commands, such as network parms, require that you supply a value after the command. You must type the parameter values in a specific order, and optional parameters follow required parameters. The following example describes the network parms command syntax:
Format network parms <ipaddr> <netmask> [gateway]
1-1
Managed Switch CLI Manual, Release 8.0
network parms is the command name.
<ipaddr> and <netmask> are parameters and represent required values that you must enter after you type the command keywords.
[gateway] is an optional parameter, so you are not required to enter a value in place of the parameter.
The CLI Command Reference lists each command by the command name and provides a brief description of the command. Each command reference also contains the following information:
Format shows the command keywords and the required and optional parameters.
Mode identifies the command mode you must be in to access the command.
Default shows the default value, if any, of a configurable setting on the device.
The show commands also contain a description of the information that the command shows.

Command Conventions

In this document, the command name is in bold font. Parameters are in italic font. You must replace the parameter name with an appropriate value, which might be a name or number. Parameters are order dependent.
The parameters for a command might include mandatory values, optional values, or keyword choices. Table 1 describes the conventions this document uses to distinguish between value types.
Table 1. Parameter Conventions
Symbol Example Description
<> angle brackets <value> Indicates that you must enter a value in place of the
brackets and text inside them.
[] square brackets [value] Indicates an optional parameter that you can enter in
place of the brackets and text inside them.
{} curly braces {choice1 |
choice2}
| Vertical bars choice1 | choice2 Separates the mutually exclusive choices. [{}] Braces within
square brackets
[{choice1 | choice2}]
Using the Command-Line Interface 1-2
Indicates that you must select a parameter from the list of choices.
Indicates a choice within an optional element.
Managed Switch CLI Manual, Release 8.0

Common Parameter Values

Parameter values might be names (strings) or numbers.To use spaces as part of a name parameter, enclose the name value in double quotes. For example, the expression “System Name with Spaces” forces the system to accept the spaces. Empty strings (““) are not valid user-defined strings. Table 2 describes common parameter values and value formatting.
Table 2. Parameter Descriptions
Parameter Description
ipaddr This parameter is a valid IP address. You can enter the IP address in the following
formats:
a (32 bits) a.b (8.24 bits) a.b.c (8.8.16 bits) a.b.c.d (8.8.8.8)
In addition to these formats, the CLI accepts decimal, hexadecimal and octal formats through the following input formats (where n is any valid hexadecimal, octal or decimal number):
0xn (CLI assumes hexadecimal format) 0n (CLI assumes octal format with leading zeros) n (CLI assumes decimal format)
ipv6-address FE80:0000:0000:0000:020F:24FF:FEBF:DBCB, or
FE80:0:0:0:20F:24FF:FEBF:DBCB, or FE80::20F24FF:FEBF:DBCB, or FE80:0:0:0:20F:24FF:128:141:49:32
For additional information, refer to RFC 3513.
Interface or unit/slot/port
Logical Interface Represents a logical slot and port number. This is applicable in the case of a port-
Character strings Use double quotation marks to identify character strings, for example, “System Name
Valid unit, slot, and port number separated by forward slashes. For example, 0/1 represents slot number 0 and port number 1.
channel (LAG). You can use the logical unit/slot/port to configure the port-channel.
with Spaces”. An empty string (“”) is not valid.

Unit/Slot/Port Naming Convention

Managed switch software references physical entities such as cards and ports by using a unit/slot/ port naming convention. The software also uses this convention to identify certain logical entities, such as Port-Channel interfaces.
Using the Command-Line Interface 1-3
Managed Switch CLI Manual, Release 8.0
The slot number has two uses. In the case of physical ports, it identifies the card containing the ports. In the case of logical and CPU ports it also identifies the type of interface or port.
Table 3. Type of Slots
Slot Type Description
Physical slot numbers Physical slot numbers begin with zero, and are allocated up to the maximum
number of physical slots.
Logical slot numbers Logical slots immediately follow physical slots and identify port-channel (LAG) or
router interfaces.
CPU slot numbers The CPU slots immediately follow the logical slots.
The port identifies the specific physical port or logical interface being managed on a given slot.
Table 4. Type of Ports
Port Type Description
Physical Ports The physical ports for each slot are numbered sequentially starting from zero. Logical Interfaces Port-channel or Link Aggregation Group (LAG) interfaces are logical interfaces
that are only used for bridging functions. VLAN routing interfaces are only used for routing functions. Loopback interfaces are logical interfaces that are always up. Tunnel interfaces are logical point-to-point links that carry encapsulated packets.
CPU ports CPU ports are handled by the driver as one or more physical entities located on
physical slots.
Note: In the CLI, loopback and tunnel interfaces do not use the unit/slot/port format. To
specify a loopback interface, you use the loopback ID. To specify a tunnel interface, you use the tunnel ID.

Using the “No” Form of a Command

The no keyword is a specific form of an existing command and does not represent a new or distinct command. Almost every configuration command has a no form. In general, use the no form to reverse the action of a command or reset a value back to the default. For example, the no
Using the Command-Line Interface 1-4
Managed Switch CLI Manual, Release 8.0
shutdown configuration command reverses the shutdown of an interface. Use the command without the keyword no to re-enable a disabled feature or to enable a feature that is disabled by default. Only the configuration commands are available in the no form.

Managed Switch Modules

Managed switch software consists of flexible modules that can be applied in various combinations to develop advanced Layer 2/3/4+ products. The commands and command modes available on your switch depend on the installed modules. Additionally, for some show commands, the output fields might change based on the modules included in the software.
The software suite includes the following modules:
Switching (Layer 2)
Routing (Layer 3)
IPv6—IPv6 routing
Multicast
Quality of Service
Management (CLI, Web UI, and SNMP)
IPv6 Management—Allows management of the device through an IPv6 through an IPv6 address without requiring the IPv6 Routing package in the system. The management address can be associated with the network port (front-panel switch ports), a routine interface (port or VLAN) and the Service port.
Stacking
Not all modules are available for all platforms or software releases.

Command Modes

The CLI groups commands into modes according to the command function. Each of the command modes supports specific software commands. The commands in one mode are not available until you switch to that particular mode, with the exception of the User EXEC mode commands. You can execute the User EXEC mode commands in the Privileged EXEC mode.
Using the Command-Line Interface 1-5
Managed Switch CLI Manual, Release 8.0
The command prompt changes in each command mode to help you identify the current mode.
Table 5 describes the command modes and the prompts visible in that mode.
Note: The command modes available on your switch depend on the software modules
that are installed. For example, a switch that does not support BGPv4 does not have the Router BGPv4 Command Mode.
Table 5. CLI Command Modes
Command Mode Prompt Mode Description
User EXEC Switch> Contains a limited set of commands to view
basic system information.
Privileged EXEC Switch# Allows you to issue any EXEC command, enter
the VLAN mode, or enter the Global Configuration mode.
Global Config Switch (Config)# Groups general setup commands and permits
you to make modifications to the running
configuration. VLAN Config Switch (Vlan)# Groups all the VLAN commands. Interface Config Switch (Interface <unit/slot/port>)#
Switch (Interface Loopback <id>)# Switch (Interface Tunnel <id>)#
Line Config Switch (line)# Contains commands to configure outbound
Policy Map Config
Policy Class Config
Class Map Config Switch (Config-class-map)# Contains the QoS class map configuration
Ipv6_Class-Map Config
Router OSPF Config
Switch (Config-policy-map)# Contains the QoS Policy-Map configuration
Switch (Config-policy-class-map)# Consists of class creation, deletion, and
Switch (Config-class-map)# Contains the QoS class map configuration
Switch (Config-router)# Contains the OSPF configuration commands.
Manages the operation of an interface and
provides access to the router interface
configuration commands.
Use this mode to set up a physical port for a
specific logical connection operation.
telnet settings and console interface settings.
commands.
matching commands. The class match
commands specify Layer 2, Layer 3, and
general match criteria.
commands for IPv4.
commands for IPv6.
Using the Command-Line Interface 1-6
Managed Switch CLI Manual, Release 8.0
Table 5. CLI Command Modes (continued)
Command Mode Prompt Mode Description
Router OSPFv3 Config
Router RIP Config Switch (Config-router)# Contains the RIP configuration commands. Router BGP
Config MAC Access-list
Config
TACACS Config Switch (Tacacs)# Contains commands to configure properties for
DHCP Pool Config
DHCPv6 Pool Config
Stack Global Config Mode
ARP Access-List Config Mode
Switch (Config rtr)# Contains the OSPFv3 configuration commands.
Switch (Config-router)# Contains the BGP4 configuration commands.
Switch (Config-mac-access-list)# Allows you to create a MAC Access-List and to
enter the mode containing MAC Access-List
configuration commands.
the TACACS servers.
Switch (Config dhcp-pool)# Contains the DHCP server IP address pool
configuration commands.
Switch (Config dhcp6-pool)# Contains the DHCPv6 server IPv6 address pool
configuration commands.
Switch (Config stack)# Allows you to access the Stack Global Config
Mode.
Switch (Config-arp-access-list)# Contains commands to add ARP ACL rules in
an ARP Access List.
Table 6 explains how to enter or exit each mode.
Table 6. CLI Mode Access and Exit
Command Mode Access Method Exit or Access Previous Mode
User EXEC This is the first level of access. To exit, enter logout. Privileged EXEC From the User EXEC mode, enter
enable.
Global Config From the Privileged EXEC mode,
enter configure.
VLAN Config From the Privileged EXEC mode,
enter vlan database.
Interface Config From the Global Config mode,
enter interface <unit/slot/port> or interface loopback <id> or interface tunnel <id>
To exit to the User EXEC mode, enter exit or press Ctrl-Z.
To exit to the Privileged EXEC mode, enter exit, or press Ctrl-Z.
To exit to the Privileged EXEC mode, enter exit, or press Ctrl-Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
Using the Command-Line Interface 1-7
Managed Switch CLI Manual, Release 8.0
Table 6. CLI Mode Access and Exit (continued)
Command Mode Access Method Exit or Access Previous Mode
Line Config From the Global Config mode,
enter lineconfig.
Policy-Map Config
Policy-Class-Map Config
Class-Map Config
Ipv6-Class-Map Config
Router OSPF Config
Router OSPFv3 Config
Router RIP Config
Router BGP Config
MAC Access-list Config
From the Global Config mode, enter policy-map <name> in.
From the Policy Map mode enter class.
From the Global Config mode, enter class-map, and specify the optional keyword ipv4 to specify the Layer 3 protocol for this class. See “class-map” on page 8-10 for more information.
From the Global Config mode, enter class-map and specify the optional keyword ipv6 to specify the Layer 3 protocol for this class. See “class-map” on page 8-10 for more information.
From the Global Config mode, enter router ospf.
From the Global Config mode, enter ipv6 router ospf.
From the Global Config mode, enter router rip.
From the Global Config mode, enter router bgp <asnumber>.
From the Global Config mode, enter
mac access-list extended
<name>.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Policy Map mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
Using the Command-Line Interface 1-8
Managed Switch CLI Manual, Release 8.0
Table 6. CLI Mode Access and Exit (continued)
Command Mode Access Method Exit or Access Previous Mode
TACACS Config From the Global Config mode,
enter tacacs-server host <ip-addr>, where <ip-addr> is the IP address of the TACACS server on your network.
DHCP Pool Config
DHCPv6 Pool Config
Stack Global Config Mode
ARP Access-List Config Mode
From the Global Config mode, enter ip dhcp pool <pool-name>.
From the Global Config mode, enter ip dhcpv6 pool <pool-name>.
From the Global Config mode, enter the stack command.
From the Global Config mode, enter the arp access-list command.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl- Z.
To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z.
To exit to the Global Config mode, enter the
exit command. To return to the Privileged
EXEC mode, enter Ctrl-Z.

Command Completion and Abbreviation

Command completion finishes spelling the command when you type enough letters of a command to uniquely identify the command keyword. Once you have entered enough letters, press the SPACEBAR or TAB key to complete the word.
Command abbreviation allows you to execute a command when you have entered there are enough letters to uniquely identify the command. You must enter all of the required keywords and parameters before you enter the command.

CLI Error Messages

If you enter a command and the system is unable to execute it, an error message appears. Table 7 describes the most common CLI error messages.
Using the Command-Line Interface 1-9
Managed Switch CLI Manual, Release 8.0
Table 7. CLI Error Messages
Message Text Description
% Invalid input detected at '^' marker. Indicates that you entered an incorrect or unavailable command.
The carat (^) shows where the invalid text is detected. This message also appears if any of the parameters or values are not recognized.
Command not found / Incomplete command. Use ? to list commands.
Ambiguous command Indicates that you did not enter enough letters to uniquely identify
Indicates that you did not enter the required keywords or values.
the command.

CLI Line-Editing Conventions

Table 8 describes the key combinations you can use to edit commands or increase the speed of
command entry. You can access this list from the CLI by entering help from the User or Privileged EXEC modes.
Table 8. CLI Editing Conventions
Key Sequence Description
DEL or Backspace Delete previous character Ctrl-A Go to beginning of line Ctrl-E Go to end of line Ctrl-F Go forward one character Ctrl-B Go backward one character Ctrl-D Delete current character Ctrl-U, X Delete to beginning of line Ctrl-K Delete to end of line Ctrl-W Delete previous word Ctrl-T Transpose previous character Ctrl-P Go to previous line in history buffer Ctrl-R Rewrites or pastes the line Ctrl-N Go to next line in history buffer Ctrl-Y Prints last deleted character
Using the Command-Line Interface 1-10
Managed Switch CLI Manual, Release 8.0
Table 8. CLI Editing Conventions (continued)
Key Sequence Description
Ctrl-Q Enables serial flow Ctrl-S Disables serial flow Ctrl-Z Return to root command prompt Tab, <SPACE> Command-line completion Exit Go to next lower command prompt ? List available commands, keywords, or parameters

Using CLI Help

Enter a question mark (?) at the command prompt to display the commands available in the current mode.
(switch) >?
enable Enter into user privilege mode. help Display help for various special keys. logout Exit this session. Any unsaved changes are lost. ping Send ICMP echo packets to a specified IP address. quit Exit this session. Any unsaved changes are lost. show Display Switch Options and Settings. telnet Telnet to a remote host.
Enter a question mark (?) after each word you enter to display available command keywords or parameters.
(switch) #network ?
javamode Enable/Disable. mgmt_vlan Configure the Management VLAN ID of the switch. parms Configure Network Parameters of the router. protocol Select DHCP, BootP, or None as the network config protocol.
If the help output shows a parameter in angle brackets, you must replace the parameter with a value.
(switch) #network parms ?
<ipaddr> Enter the IP address.
Using the Command-Line Interface 1-11
Managed Switch CLI Manual, Release 8.0
If there are no additional command keywords or parameters, or if additional parameters are optional, the following message appears in the output:
<cr> Press Enter to execute the command
You can also enter a question mark (?) after typing one or more characters of a word to list the available command or parameters that begin with the letters, as shown in the following example:
(switch) #show m?
mac-addr-table mac-address-table monitor

Accessing the CLI

You can access the CLI by using a direct console connection or by using a telnet or SSH connection from a remote management host.
For the initial connection, you must use a direct connection to the console port. You cannot access the system remotely until the system has an IP address, subnet mask, and default gateway. You can set the network configuration information manually, or you can configure the system to accept these settings from a BOOTP or DHCP server on your network. For more information, see
“Network Interface Commands” on page 10-4.
Using the Command-Line Interface 1-12
Stacking Commands
The Stacking Commands chapter includes the following sections:
“Dedicated Port Stacking” on page 2-1
“Front Panel Stacking Commands” on page 2-10
Note: The commands in this chapter are in one of two functional groups: Note: Show commands display switch settings, statistics, and other information. Note: Configuration commands configure features and options of the switch. For
every configuration command, there is a show command that displays the configuration setting.
The Primary Management Unit is the unit that controls the stack.
Chapter 2

Dedicated Port Stacking

This section describes the commands you use to configure dedicated port stacking.
stack
This command sets the mode to Stack Global Config.
Format stack Mode Global Config
2-1
Managed Switch CLI Manual, Release 8.0
member
This command configures a switch. The <unit> is the switch identifier of the switch to be added/removed from the stack. The <switchindex> is the index into the database of the supported switch types, indicating the type of the switch being preconfigured. The switch index is a 32-bit integer. This command is executed on the Primary Management Unit.
Format member <unit> <switchindex> Mode Stack Global Config
Note: Switch index can be obtained by executing the show supported switchtype
command in User EXEC mode.
no member
This command removes a switch from the stack. The <unit> is the switch identifier of the switch to be removed from the stack. This command is executed on the Primary Management Unit.
Format no member <unit> Mode Stack Global Config
switch priority
This command configures the ability of a switch to become the Primary Management Unit. The <unit> is the switch identifier. The <value> is the preference parameter that allows the user to specify, priority of one backup switch over another. The range for priority is 1 to 15. The switch with the highest priority value will be chosen to become the Primary Management Unit if the active Primary Management Unit fails. The switch priority defaults to the hardware management preference value 1. Switches that do not have the hardware capability to become the Primary Management Unit are not eligible for management.
Default enabled Format switch <unit> priority <value> Mode Global Config
Stacking Commands 2-2
Managed Switch CLI Manual, Release 8.0
switch renumber
This command changes the switch identifier for a switch in the stack. The <oldunit> is the current switch identifier on the switch whose identifier is to be changed. The <newunit> is the updated value of the switch identifier. Upon execution, the switch will be configured with the configuration information for the new switch, if any. The old switch configuration information will be retained, however the old switch will be operationally unplugged. This command is executed on the Primary Management Unit.
Note: If the management unit is renumbered, then the running configuration is no longer
applied (i.e. the stack acts as if the configuration had been cleared)
Format switch <oldunit> renumber <newunit> Mode Global Config
movemanagement
This command moves the Primary Management Unit functionality from one switch to another. The <fromunit> is the switch identifier on the current Primary Management Unit. The <tounit> is the switch identifier on the new Primary Management Unit. Upon execution, the entire stack (including all interfaces in the stack) is unconfigured and reconfigured with the configuration on the new Primary Management Unit. After the reload is complete, all stack management capability must be performed on the new Primary Management Unit. To preserve the current configuration across a stack move, execute the copy system:running-config nvram:startup-config (in Privileged EXEC) command before performing the stack move. A stack move causes all routes and layer 2 addresses to be lost. This command is executed on the Primary Management Unit. The system prompts you to confirm the management move.
Format movemanagement <fromunit> <tounit> Mode Stack Global Config
Stacking Commands 2-3
Managed Switch CLI Manual, Release 8.0
slot
This command configures a slot in the system. The <unit/slot> is the slot identifier of the slot. The <cardindex> is the index into the database of the supported card types, indicating the type of the card being preconfigured in the specified slot. The card index is a 32-bit integer. If a card is currently present in the slot that is unconfigured, the configured information will be deleted and the slot will be re-configured with default information for the card.
Format slot <unit/slot> <cardindex> Mode Global Config
Note: Card index can be obtained by executing show supported cardtype command in
User EXEC mode.
no slot
This command removes configured information from an existing slot in the system.
Format no slot <unit/slot> <cardindex> Mode Global Config
Note: Card index can be obtained by executing show supported cardtype command in
User EXEC mode.
set slot disable
This command configures the administrative mode of the slot(s). If you specify [all], the command is applied to all slots, otherwise the command is applied to the slot identified by <unit/slot>.
Stacking Commands 2-4
Managed Switch CLI Manual, Release 8.0
If a card or other module is present in the slot, this administrative mode will effectively be applied to the contents of the slot. If the slot is empty, this administrative mode will be applied to any module that is inserted into the slot. If a card is disabled, all the ports on the device are operationally disabled and shown as “unplugged” on management screens.
Format set slot disable [<unit/slot> | all] Mode Global Config
no set slot disable
This command unconfigures the administrative mode of the slot(s). If you specify [all], the command removes the configuration from all slots, otherwise the configuration is removed from the slot identified by <unit/slot>.
If a card or other module is present in the slot, this administrative mode removes the configuration from the contents of the slot. If the slot is empty, this administrative mode removes the configuration from any module inserted into the slot. If a card is disabled, all the ports on the device are operationally disabled and shown as “unplugged” on management screens.
Format no set slot disable [<unit/slot> | all] Mode Global Config
set slot power
This command configures the power mode of the slot(s) and allows power to be supplied to a card located in the slot. If you specify [all], the command is applied to all slots, otherwise the command is applied to the slot identified by <unit/slot>.
Use this command when installing or removing cards. If a card or other module is present in this slot, the power mode is applied to the contents of the slot. If the slot is empty, the power mode is applied to any card inserted into the slot.
Format set slot power [<unit/slot> | all] Mode Global Config
Stacking Commands 2-5
Managed Switch CLI Manual, Release 8.0
no set slot power
This command unconfigures the power mode of the slot(s) and prohibits power from being supplied to a card located in the slot. If you specify [all], the command prohibits power to all slots, otherwise the command prohibits power to the slot identified by <unit/slot>.
Use this command when installing or removing cards. If a card or other module is present in this slot, power is prohibited to the contents of the slot. If the slot is empty, power is prohibited to any card inserted into the slot.
Format no set slot power [<unit/slot> | all] Mode Global Config
reload (Stack)
This command resets the entire stack or the identified <unit>. The <unit> is the switch identifier. The system prompts you to confirm that you want to reset the switch.
Format reload [<unit>] Mode User EXEC
show slot
This command displays information about all the slots in the system or for a specific slot.
Format show slot [<unit/slot>] Mode User EXEC
Term Definition Slot The slot identifier in a <unit/slot> format.
Slot Status The slot is empty, full, or has encountered an error Admin State The slot administrative mode is enabled or disabled. Power State The slot power mode is enabled or disabled. Configured Card
Model Identifier
Stacking Commands 2-6
The model identifier of the card preconfigured in the slot. Model Identifier is a 32­character field used to identify a card.
Loading...
+ 757 hidden pages