Résumé du contenu de la page N° 1
ProSafe Managed Switch
Command Line Interface (CLI)
User Manual
10.0.1
M7100-24X
M4100-24G-POE+
M4100-26G
M4100-26-POE
M4100-26G-POE
M4100-50G
M4100-50-POE
M4100-50G-POE+
M4100-12GF
M4100-12G-POE+
M4100-D12G
M4100-D10-POE
M4100-D12G-POE+
350 East Plumeria Drive
San Jose, CA 95134
USA
February 2013
202-11166-02
1.0
Résumé du contenu de la page N° 2
ProSafe M4100 and M7100 Managed Switches Support Thank you for selecting NETGEAR products. After installing your device, locate the serial number on the label of your product and use it to register your product at https://my.netgear.com. You must register your product before you can use NETGEAR telephone support. NETGEAR recommends registering your product through the NETGEAR website. For product updates and web support, visit http://support.netgear.com. Phone (US & Canada only): 1-888-NETG
Résumé du contenu de la page N° 3
Contents Chapter 1 Using the Command-Line Interface Licensing and Command Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 Command Syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Command Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Common Parameter Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 Slot/Port Naming Convention . . . . . . . . . . .
Résumé du contenu de la page N° 4
ProSafe M4100 and M7100 Managed Switches IGMP Snooping Configuration Commands . . . . . . . . . . . . . . . . . . . . . . . 148 IGMP Snooping Querier Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 MLD Snooping Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 MLD Snooping Querier Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 set mld querier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Résumé du contenu de la page N° 5
ProSafe M4100 and M7100 Managed Switches Chapter 6 IPv6 Commands Tunnel Interface Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .356 IPv6 Routing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .357 OSPFv3 Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .380 OSPFv3 Graceful Restart Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .411 DHCPv6 Commands . . . . . . . . . . . . . . . . .
Résumé du contenu de la page N° 6
ProSafe M4100 and M7100 Managed Switches Software License Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609 IP Address Conflict Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610 Link Local Protocol Filtering Commands . . . . . . . . . . . . . . . . . . . . . . . . . 611 RMON Stats and History Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . 612 UDLD Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Résumé du contenu de la page N° 7
1. Using the Command-Line Interface 1 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: • Licensing and Command Support • Command Syntax • Command Conventions • Common Parameter Values • Slot/Port Naming Convention
Résumé du contenu de la page N° 8
ProSafe M4100 and M7100 Managed Switches Licensing and Command Support As shown in the following table, some command groups, or commands, require a license and some are supported on particular switch models. For those requiring a license, license keys are available from your VAR or NETGEAR authorized e-commerce portal. License activation is described in the Software Setup Manual. Command Group or Command M4100 M7100 Router Discovery Protocol Commands Not supported Not supported Virtual Rou
Résumé du contenu de la page N° 9
ProSafe M4100 and M7100 Managed Switches Command Group or Command M4100 M7100 random-detect queue-parms Supported Supported no random-detect queue-parms Supported Supported 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 ty
Résumé du contenu de la page N° 10
ProSafe M4100 and M7100 Managed Switches 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 Indicates that you must enter a value in place of the brackets and text inside them. [value] [] square brackets Indicates an optional parameter that you can enter in place of the br
Résumé du contenu de la page N° 11
ProSafe M4100 and M7100 Managed Switches Table 2. Parameter Descriptions (Continued) Parameter Description Logical Interface Represents a logical slot and port number. This is applicable in the case of a port-channel (LAG). You can use the logical slot/port to configure the port-channel. Character strings Use double quotation marks to identify character strings, for example, “System Name with Spaces”. An empty string (“”) is not valid. Slot/Port Naming Convention Managed switch software refe
Résumé du contenu de la page N° 12
ProSafe M4100 and M7100 Managed Switches Note: In the CLI, loopback and tunnel interfaces do not use the slot/port format. To specify a loopback interface, you use the loopback ID. To specify a tunnel interface, you use the tunnel ID. Using a Command’s “No” Form 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
Résumé du contenu de la page N° 13
ProSafe M4100 and M7100 Managed Switches commands. You can execute the User EXEC mode commands in the Privileged EXEC mode. The command prompt changes in each command mode to help you identify the current mode. T able 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. T able 5.
Résumé du contenu de la page N° 14
ProSafe M4100 and M7100 Managed Switches Table 5. CLI Command Modes (Continued) Command Mode Prompt Mode Description Router OSPF Switch (Config-router)# Contains the OSPF configuration commands. Config Router OSPFv3 Switch (Config rtr)# Contains the OSPFv3 configuration commands. Config Router RIP Config Switch (Config-router)# Contains the RIP configuration commands. MAC Access-list Switch (Config-mac-access-list)# Allows you to create a MAC Access-List and to Config enter the mode contai
Résumé du contenu de la page N° 15
ProSafe M4100 and M7100 Managed Switches Table 6. CLI Mode Access and Exit (Continued) Command Mode Access Method Exit or Access Previous Mode Policy-Map From the Global Config mode, To exit to the Global Config mode, enter exit. To Config enter return to the Privileged EXEC mode, enter policy-map in. Ctrl-Z. Policy-Class-Map From the Policy Map mode enter To exit to the Policy Map mode, enter exit. To Config class. return to the Privileged EXEC mode, enter Ctrl-Z. Class-Map From
Résumé du contenu de la page N° 16
ProSafe M4100 and M7100 Managed Switches Table 6. CLI Mode Access and Exit (Continued) Command Mode Access Method Exit or Access Previous Mode Stack Global From the Global Config mode, To exit to the Global Config mode, enter the exit Config Mode enter the stack command. command. To return to the Privileged EXEC mode, enter Ctrl-Z. ARP Access-List From the Global Config mode, To exit to the Global Config mode, enter the Config Mode enter the arp access-list exit command. To return to the Pr
Résumé du contenu de la page N° 17
ProSafe M4100 and M7100 Managed Switches 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
Résumé du contenu de la page N° 18
ProSafe M4100 and M7100 Managed Switches 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. En
Résumé du contenu de la page N° 19
2. Switching Commands 2 This chapter describes the switching commands available in the managed switch CLI. This chapter contains the following sections: • Port Configuration Commands • Loopback Interface Commands • Spanning Tree Protocol (STP) Commands • VLAN Commands • Double VLAN Commands • Voice VLAN Commands • Provisioning (IEEE 802.1p) Commands • Protected Ports Commands • Private VLAN • GARP Commands • GVRP Commands • GMRP Comm
Résumé du contenu de la page N° 20
ProSafe M4100 and M7100 Managed Switches • Port Security Commands • LLDP (802.1AB) Commands • LLDP-MED Commands • Denial of Service Commands • MAC Database Commands • ISDP Commands • Priority-Based Flow Control Commands The commands in this chapter are in three functional groups: • Show commands display switch settings, statistics, and other information. • Configuration commands configure features and options of the switch. Every switch command has a