CLI Command Reference Manual - Netgear

CLI Command Reference Manual

M4300 Intelligent Edge Series Fully Managed Stackable Switches

Software Version 12.0.15 and Earlier Versions M4300 Series Switches M4300-96X Modular Switch

April 2022 202-11997-07

NETGEAR, Inc. 350 East Plumeria Drive San Jose, CA 95134, USA

M4300 Intelligent Edge Series Fully Managed Stackable Switches

Support and Community

Visit support to get your questions answered and access the latest downloads. You can also check out our NETGEAR Community for helpful advice at .

Regulatory and Legal

Si ce produit est vendu au Canada, vous pouvez acc?der ? ce document en fran?ais canadien ? . (If this product is sold in Canada, you can access this document in Canadian French at .) For regulatory compliance information including the EU Declaration of Conformity, visit . See the regulatory compliance document before connecting the power supply. For NETGEAR's Privacy Policy, visit . By using this device, you are agreeing to NETGEAR's Terms and Conditions at . If you do not agree, return the device to your place of purchase within your return period. Do not use this device outdoors. The PoE source is intended for intra building connection only.

Trademarks

? NETGEAR, Inc., NETGEAR, and the NETGEAR Logo are trademarks of NETGEAR, Inc. Any non-NETGEAR trademarks are used for reference purposes only.

Revision History

Publication Publish Date Part Number 202-11997-07 April 2022

202-11997-06 November 2021

202-11997-05 July 2021 202-11997-04 July 2021

Comments

? We added the following commands: - passwords unlock timer - passwords unlock timer mode - snmp-server user

? We revised the following commands: - show ip http - username (Global Config, with an encrypted password entered) - username (Global Config, with a plain text password entered) - password (Line Configuration) - enable password (Privileged EXEC) - show passwords configuration

? We removed the ip http secure-protocol command

? We added the following Auto-Trunk commands: switchport mode auto on page 422 and show interfaces switchport trunk on page 422.

? We added the following Auto-LAG commands: port-channel auto on page 508, port-channel auto load-balance on page 508, and show port-channel auto on page 509.

? We changed ip ospf priority on page 752.

We changed poe power limit on page 1101.

We changed the default MTU to 9198. See mtu on page 374.

2

CLI Command Reference Manual

M4300 Intelligent Edge Series Fully Managed Stackable Switches

202-11997-03

(Continued) 202-11997-03

202-11997-02 202-11997-01 202-11814-03

May 2020

(Continued) May 2020

December 2019 September 2019 October 2018

We made the following changes: ? Changed aaa authentication login on page 96. ? Changed username (Global Config, with an encrypted password

entered) on page 104. ? Changed enable password (Privileged EXEC) on page 114. ? Added environment set fan quiet on page 226. ? Added logging buffered threshold on page 229. ? Changed show logging on page 233 and show logging buffered on

page 234.

(Continued) ? Added Port Link Flap Commands on page 384. ? Changed show authentication methods on page 475. ? Added set igmp-plus on page 577 and set igmp-plus vlan on page 578. ? Changed show igmpsnooping on page 579. ? Added set mld-plus on page 594 and set mld-plus vlan on page 595. ? Changed show mldsnooping on page 595. ? Changed errdisable recovery cause on page 646 and show errdisable

recovery on page 647. ? Added dante on page 933 and dante vlan on page 933. ? Added set ip mroute static-multicast on page 1020 and show ip mroute

static-multicast on page 1026.

We made the following changes: ? Changed show slot on page 35. ? Changed User Account Commands on page 95. ? Changed RADIUS Commands on page 143. ? Changed TACACS+ Commands on page 161. ? Added Port Configuration for the Third-Party TPM404H HDMI Port Card

on page 383.

We made the following changes: ? Added Precision Time Protocol Commands on page 449. ? Changed IGMP Snooping Configuration Commands on page 570. ? Changed MLD Snooping Commands on page 589. ? Published the manual in a new format.

We made the following changes: ? Removed the ip ssh protocol command because software version

12.0.7 and later versions support SSH-2 only. ? Changed show ip ssh on page 80. ? Changed show ip http on page 93. ? Changed ip rip send version on page 785. ? Removed references to SSH-1 Rivest-Shamir-Adelman (RSA) throughout

the manual.

3

CLI Command Reference Manual

M4300 Intelligent Edge Series Fully Managed Stackable Switches

202-11814-02 June 2018 202-11814-01 April 2018

We made the following changes and additions: ? Revised show interface on page 200. ? Added Expandable Port Configuration Commands for 40G Ports on the

APM402XL Port Card on page 381. ? Added Bonjour Commands on page 654. ? Added load-interval on page 661.

Initial publication of this manual.

4

CLI Command Reference Manual

Contents

Chapter 1 About the Managed Switch Software

Scope. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 Product Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Chapter 2 Using the Command-Line Interface

Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Command Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Common Parameter Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 unit/slot/port Naming Convention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Using the No Form of a Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Executing Show Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 CLI Output Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Chapter 3 Software Modules

Command Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Command Completion and Abbreviation . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 CLI Error Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 CLI Line-Editing Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Using CLI Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Access the CLI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Chapter 4 Stacking Commands

Dedicated Port Stacking Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Stack Port Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Stack Firmware Synchronization Commands . . . . . . . . . . . . . . . . . . . . . . . .48 Nonstop Forwarding Commands for Stack Configuration . . . . . . . . . . . . . 49

Chapter 5 Management Commands

Configure the Switch Management CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 CPU Queue Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Management Interface Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 IPv6 Management Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 Console Port Access Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Telnet Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Secure Shell Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Management Security Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Management Access Control List Commands. . . . . . . . . . . . . . . . . . . . . . . . 82

5

M4300 Intelligent Edge Series Fully Managed Stackable Switches

Hypertext Transfer Protocol Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Access Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 User Account Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

Per-Command Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Exec Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 SNMP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130 RADIUS Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 TACACS+ Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161 Configuration Scripting Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166 Prelogin Banner, System Prompt, and Host Name Commands . . . . . . . .168 OpenFlow Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .170 Cloud Managed Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181 Application Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185

Chapter 6 Utility Commands

AutoInstall Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189 CLI Output Filtering Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 Dual Image Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .195 System Information and Statistics Commands. . . . . . . . . . . . . . . . . . . . . . .196 Switch Services Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .225 Logging Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .228 Email Alerting and Mail Server Commands . . . . . . . . . . . . . . . . . . . . . . . . .236 System Utility and Clear Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .242 Simple Network Time Protocol Commands . . . . . . . . . . . . . . . . . . . . . . . . .256 Time Zone Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 DHCP Server Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266 DNS Client Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279 IP Address Conflict Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .285 Serviceability Packet Tracing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .286 Support Mode Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .322 Cable Test Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .324 Power Management Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325 USB commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .327 sFlow Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .328 Switch Database Management Template Commands . . . . . . . . . . . . . . . .336 Green Ethernet Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .339 Remote Monitoring Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .348 Statistics Application Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .363

Chapter 7 Switching Commands

Port Configuration Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373 Expandable Port Configuration Commands for 40G Ports on the APM402XL Port Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381 Port Configuration for the Third-Party TPM404H HDMI Port Card . . . 383

Port Link Flap Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .384 Spanning Tree Protocol Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .386 Loop Protection Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .419

6

CLI Command Reference Manual

M4300 Intelligent Edge Series Fully Managed Stackable Switches

VLAN Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .422 Switch Port Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .436 Double VLAN Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .440 Private VLAN Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444 Voice VLAN Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Precision Time Protocol Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449 Provisioning (IEEE 802.1p) Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . .450 Asymmetric Flow Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .451 Protected Ports Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .452 Private Group Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .454 GARP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .456 GVRP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .458 GMRP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .460 Port-Based Network Access Control Commands . . . . . . . . . . . . . . . . . . . .463 802.1X Supplicant Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .483 Storm-Control Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487 Link Dependency Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .496 Link Local Protocol Filtering Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .498 MRP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .499 MMRP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .500 MVRP Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .504 Port-Channel/LAG (802.3ad) Commands. . . . . . . . . . . . . . . . . . . . . . . . . . .507 Port Mirroring Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .529 Static MAC Filtering Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .533 DHCP L2 Relay Agent Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .537 DHCP Client Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .544 DHCP Snooping Configuration Commands . . . . . . . . . . . . . . . . . . . . . . . .545 Dynamic ARP Inspection Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .555 MVR Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .562 IGMP Snooping Configuration Commands . . . . . . . . . . . . . . . . . . . . . . . 570 IGMP Snooping Querier Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584 MLD Snooping Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .589 MLD Snooping Querier Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .599 Port Security Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .604 LLDP (802.1AB) Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .609 LLDP-MED Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .618 Denial of Service Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626 MAC Database Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .636 ISDP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639 Interface Error Disabling and Auto Recovery Commands . . . . . . . . . . . . .646 UniDirectional Link Detection Commands . . . . . . . . . . . . . . . . . . . . . . . . . .649 Link Debounce Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .653 Bonjour Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .654

Chapter 8 Routing Commands

Address Resolution Protocol Commands . . . . . . . . . . . . . . . . . . . . . . . . . 657 IP Routing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664 Routing Policy Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .690

7

CLI Command Reference Manual

M4300 Intelligent Edge Series Fully Managed Stackable Switches

Router Discovery Protocol Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . .700 Virtual LAN Routing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .704 Virtual Router Redundancy Protocol Commands . . . . . . . . . . . . . . . . . . . .707 DHCP and BootP Relay Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .717 IP Helper Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .719 Open Shortest Path First Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .727

General OSPF Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 727 OSPF Interface Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 747 IP Event Dampening Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 754 OSPF Graceful Restart Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 756 OSPFv2 Stub Router Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759 OSPF Show Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 760 Routing Information Protocol Commands . . . . . . . . . . . . . . . . . . . . . . . . . 782 ICMP Throttling Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790

Chapter 9 Captive Portal Commands

Captive Portal Global Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794 Captive Portal Configuration Commands. . . . . . . . . . . . . . . . . . . . . . . . . . .799 Captive Portal Status Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809 Captive Portal Client Connection Commands . . . . . . . . . . . . . . . . . . . . . . .811 Captive Portal Interface Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .814 Captive Portal Local User Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .815 Captive Portal User Group Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . .823

Chapter 10 IPv6 Commands

Tunnel Interface Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 826 Loopback Interface Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 828 IPv6 Routing Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .829 OSPFv3 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .865

Global OSPFv3 Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865 OSPFv3 Interface Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882 OSPFv3 Graceful Restart Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . 887 OSPFv3 Stub Router Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890 OSPFv3 Show Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892 DHCPv6 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .909 DHCPv6 Snooping Configuration Commands . . . . . . . . . . . . . . . . . . . . . .919

Chapter 11 Quality of Service Commands

Class of Service Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 932 Differentiated Services Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .940 DiffServ Class Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .942 DiffServ Policy Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .951 DiffServ Service Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .957 DiffServ Show Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .958 MAC Access Control List Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .964 IP Access Control List Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .973

8

CLI Command Reference Manual

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download