NETGEAR, Inc.
350 East Plumeria Drive
San Jose, CA 95134, USA
AV Line of Fully Managed Switches M4250 Series
Support and Community
Visit netgear.com/support to get your questions answered and access the latest downloads.
You can also check out our NETGEAR Community for helpful advice at
community.netgear.com.
Regulatory and Legal
Si ce produit est vendu au Canada, vous pouvez accéder à ce document en français canadien à
https://www.netgear.com/support/download/.
(If this product is sold in Canada, you can access this document in Canadian French at
https://www.netgear.com/support/download/.)
For regulatory compliance information including the EU Declaration of Conformity, visit
https://www.netgear.com/about/regulatory/.
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
https://www.netgear.com/about/terms-and-conditions. If you do not agree, return the device to your place of
purchase within your return period.
Do not use this device outdoors. For products that support Power over Ethernet (PoE), the PoE source is intended
for intra building connection only
This command-line interface (CLI) reference manual is for the AV Line of Fully Managed
Switches M4250 Series and covers all M4250 switch models.
You can download the following guides and manuals for the AV Line of Fully Managed Switches
M4250 Series by visiting
•Installation Guide
•Hardware Installation Guide
•Main User Manual
•Audio V
•Software Administration Manual
•CLI Command Reference Manual (this manual)
ideo User Manual
netgear.com/support/product/m4250.aspx#download.
Note: For more information about the topics covered in this manual, visit the
support website at netgear.com/support.
Note: Firmware updates with new features and bug fixes are made available
from time to time at
products can regularly check the site and download new firmware, or
you can check for and download new firmware manually
features or behavior of your product does not match what is
described in this guide, you might need to update your firmware.
netgear.com/support/download/. Some
. If the
8
2
2How to Use 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
•
•Command conventions
•Common parameter values
•The unit/port naming convention
•‘no’ form of a command
•‘show’ commands
•CLI output filtering
•Command completion and abbreviation
•CLI error messagesCLI line-editing conventions
•Use the CLI help
•Access the CLI
9
AV Line of Fully Managed Switches M4250 Series
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 and 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 ipaddrnetmask [gateway]
•network parms is the command name.
•ipaddr and netmask
after you type the command keywords.
•[gateway] is an optional keyword, so you are not required to enter a value in place of
the keyword.
are parameters and represent required values that you must enter
This command line reference manual 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
The show commands also contain a description of the information that the command shows.
, of a configurable setting on the device.
Command conventions
The parameters for a command might include mandatory values, optional values, or keyword
choices. Parameters are order-dependent. The following table describes the conventions this
document uses to distinguish between value types.
Table 1. Parameter Conventions
SymbolExampleDescription
italic fontvalue or [value]Indicates a variable value. You must replace the
italicized text, which can be placed within curly
brackets or square brackets, with an appropriate
value, which might be a name or number
.
[ ] square brackets
How to Use the Command-Line
Interface
[keyword]Indicates an optional parameter.
CLI Command Reference Manual10
AV Line of Fully Managed Switches M4250 Series
Table 1. Parameter Conventions (continued)
SymbolExampleDescription
{ } curly braces{choice1 | choice2}Indicates that you must select a parameter from the
list of choices.
| Vertical barschoice1 | choice2Separates the mutually exclusive choices.
[{ }] Braces within
square brackets
[{choice1 | choice2}] Indicates a choice within an optional element. This
format is used mainly for complicated commands
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. The following table describes common parameter values and value
formatting.
Table 2. Parameter Descriptions
ParameterDescription
ipaddrThis parameter is a valid IPv4 address. You can enter the IP address in the
following formats:
• a
(32 bits)
• a.b
• a.b.c
• a.b.c.d (8.8.8.8)
In addition to these formats, the CLI accepts decimal, hexadeci
formats through
or decimal number):
• 0xn
• 0n
• n
(8.24 bits)
(8.8.16
(CLI assumes hexadecimal format.)
(CLI assumes octal format with leading zeros.)
(CLI assumes decimal format.)
bits)
the following input formats (where n is any valid hexadecimal, octal
mal and octal
ipv6-addrThis parameter is a valid IPv6 address.
following formats:
• FE80:0000:0000:0000:020F:24FF:FEBF:DBCB
• FE80:0:0:0:20F:24FF:FEBF:DBCB
• FE80::20F24FF:FEBF:DBCB
• FE80:0:0:0:20F:24FF:128:141:49:32
For additional information, refer to RFC 3513.
Interface or
unit/port
Valid unit and port number separated by a forward slash. The unit is always 0. For
example, 0/1 represents port number 1.
How to Use the Command-Line
Interface
You can enter the IP address in the
CLI Command Reference Manual11
AV Line of Fully Managed Switches M4250 Series
Table 2. Parameter Descriptions (continued)
ParameterDescription
Logical InterfaceRepresents a logical port number. This is applicable in the case of a port-channel
(LAG). You can use the logical unit/port to configure the port-channel.
Character stringsUse double quotation marks to identify character strings, for example, “System
Name with Spaces”. An empty string (“”) is not valid.
The unit/port naming convention
The switch references physical entities such as ports by using a unit/port naming
convention. The switch also uses this convention to identify certain logical entities, such as
port channel interfaces (link aggregation groups, abbreviated as LAGs).
The port identifies the specific physical port or logical interface.
Table 3. Types of ports
Port TypeDescription
Physical interfacesThe physical ports are numbered sequentially starting from one. For
example, port 1 for a switch is 0/1, port 2 is 0/2, port 3 is 0/3, and so on.
Logical Interfaces• Port-channel
interfaces that are used only for bridging functions.
• VLAN
• Loopback interfaces
• Tunnel interfaces are logical point-to-point links that carry encapsulated
Note: In the CLI, loopback and tunnel interfaces do not use the unit/
format. To
a tunnel interface, you use the tunnel ID.
CPU portsCPU ports are handled by the driver as one or more physical entities.
routing interfaces are used only for routing functions.
packets.
specify a loopback interface, you use the loopback ID. To specify
Link Aggregation Group (LAG) interfaces are logical
or
are logical interfaces that are always up.
IMPORTANT:
Most examples in this manual show the 1/0/x interface designation,
in which x is the interface number. However, the M4250 series
switch uses the 0/x designation, in which x is the interface number.
port
How to Use the Command-Line
Interface
CLI Command Reference Manual12
AV Line of Fully Managed Switches M4250 Series
‘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 shutdown configuration command reverses the shutdown of an interface.
Use the command without the keyword no to reenable a disabled feature or to enable a
feature that is disabled by default. Only the configuration commands are available in the no
form.
‘show’ commands
All show commands can be issued from any configuration mode (Global Configuration,
Interface Configuration, VLAN Configuration, etc.). The show commands provide information
about system and feature-specific configuration, status, and statistics. Previously, show
commands could be issued only in User EXEC or Privileged EXEC modes.
CLI output filtering
Many CLI show commands include considerable content to display. This can make output
confusing and cumbersome to parse through to find the information of desired importance.
The CLI Output Filtering feature allows the user, when executing CLI show display
commands, to optionally specify arguments to filter the CLI output to display only desired
information. The result is to simplify the display and make it easier for the user to find the
information the user is interested in.
The main functions of the CLI output filtering feature are:
•Pagination Control
-Supports enabling/disabling paginated output for all show CLI commands. When
disabled, output is displayed in its entirety. When enabled, ou
page-by-page such that content does not scroll off the terminal screen until the user
presses a key to continue. --More-- or (q)uit is displayed at the end of each page.
-When
Q to stop pagination, or press any other key to advance a whole
are not configurable.
Note: Although some switch show commands already support pagination,
pagination is enabled, press the return key to advance a single line, press q or
the implementation is unique per command and not generic to all
commands.
tput is displayed
page. These keys
How to Use the Command-Line
Interface
CLI Command Reference Manual13
AV Line of Fully Managed Switches M4250 Series
•Output Filtering
-“Grep”-like control for modifying the displayed output to only show the user-desired
content.
-Filter displayed output to only include lines containing a specified string match.
-Filter displayed output to exclude lines containing a specified string match.
-Filter displayed output to only include lines including and following a specified string
match.
-Filter displayed output to only include a specified section of the content (for example,
“interface 0/1”) with a configurable end-of-section delimiter
.
-String matching should be case insensitive.
-Pagination, when enabled, also applies to filtered output.
The following shows an example of the extensions made to the CL
I show commands for
the Output Filtering feature.
(NETGEAR Switch) #show running-config ?
<cr> Press enter to execute the command.
| Output filter options.
<scriptname> Script file name for writing active configuration.
all Show all the running configuration on the switch.
interface Display the running configuration for specificed interface
on the switch.
(NETGEAR Switch) #show running-config | ?
begin Begin with the line that matches
exclude Exclude lines that matches
include Include lines that matches
section Display portion of lines
For new commands for the feature, see CLI Output Filtering Commands on page 150.
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.
How to Use the Command-Line
Interface
CLI Command Reference Manual14
AV Line of Fully Managed Switches M4250 Series
CLI error messages
If you enter a command and the system is unable to execute it, an error message appears.
The following table describes the most common CLI error messages.
Table 4. CLI Error Messages
Message TextDescription
% Invalid input detected at
'^' marker.
Command not found / Incomplete
command. Use ? to list
commands.
Ambiguous commandIndicates that you did not enter enough letters to uniquely identify the
Indicates that you entered an incorrect or unavailable command. The
carat (^) shows where the invalid text is detected.
appears if any of the parameters or values are not recognized.
Indicates that you did not enter the required keywords or values.
command.
This message also
CLI line-editing conventions
The following table 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
from the User or Privileged EXEC modes.
Table 5. CLI Editing Conventions
Key SequenceDescription
DEL or BackspaceDelete previous character.
help
Ctrl-AGo to beginning of line.
Ctrl-EGo to end of line.
Ctrl-FGo forward one character.
Ctrl-BGo backward one character.
Ctrl-DDelete current character.
Ctrl-U, XDelete to beginning of line.
Ctrl-KDelete to end of line.
Ctrl-WDelete previous word.
Ctrl-TTranspose previous character.
Ctrl-PGo to previous line in history buffer.
Ctrl-RRewrites or pastes the line.
How to Use the Command-Line
Interface
CLI Command Reference Manual15
AV Line of Fully Managed Switches M4250 Series
Table 5. CLI Editing Conventions (continued)
Key SequenceDescription
Ctrl-NGo to next line in history buffer.
Ctrl-YPrints last deleted character.
Ctrl-QEnables serial flow.
Ctrl-SDisables serial flow.
Ctrl-ZReturn to root command prompt.
Tab, <SPACE>Command-line completion.
ExitGo to next lower command prompt.
?List available commands, keywords, or parameters.
Use the CLI help
Enter a question mark (?) at the command prompt to display the commands available in the
current mode.
(NETGEAR Switch) >?
enable Enter into user privilege mode.
help Display help for various special keys.
logout Exit this session. Any unsaved changes are lost.
password Change an existing user’s password.
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.
(NETGEAR Switch) #network ?
ipv6 Configure IPv6 parameters for system network.
javamode Enable/Disable.
mac-address Configure MAC Address.
mac-type Select the locally administered or burnedin MAC
address.
mgmt_vlan Configure the Management VLAN ID of the switch.
parms Configure Network Parameters of the device.
protocol Select DHCP, BootP, or None as the network config
protocol.
How to Use the Command-Line
Interface
CLI Command Reference Manual16
AV Line of Fully Managed Switches M4250 Series
If the help output shows a parameter in angle brackets, you must replace the parameter with
a value.
(NETGEAR Switch) #network parms ?
<ipaddr> Enter the IP Address.
none Reset IP address and gateway on management interface
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:
(NETGEAR Switch) #show m?
mac mac-addr-table mac-address-table
mail-server mbuf monitor
Access 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
Management Interface Commands on page29.
How to Use the Command-Line
Interface
CLI Command Reference Manual17
3
3CLI Organization and Command
Modes
This chapter describes the CLI organization and command modes. It contains the following
sections:
•CLI command modes
•How to enter or exit a command mode
18
AV Line of Fully Managed Switches M4250 Series
CLI command modes
The CLI groups commands into modes according to the command function. Each of the
command modes supports specific 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.
The command prompt changes in each command mode to help you identify the current
mode.
The following table describes the command modes and the p
mode.
Table 6. CLI command modes
Command ModePromptMode Description
User EXECSwitch>Contains a limited set of commands to view
basic system information.
Privileged EXECSwitch#Allows you to issue any EXEC command,
enter the VLAN mode, or enter the Global
Configuration mode.
rompts visible in that
Global ConfigSwitch (Config)#Groups general setup commands and
permits you to make modifications to the
running configuration.
VLAN ConfigSwitch (Vlan)#Groups all the VLAN commands.
Interface Config Switch (Interface unit/port)#Manages the operation of an interface and
Line ConsoleSwitch (config-line)#Contains commands to configure outbound
provides access to the router interface
configuration commands.
Use this mode to set up a physical port for a
specific logical connection operation.
Use this mode to manage the operation of a
range
may display as follows:
Switch (Interface 0/1-0/4) #
Enters LAG Interface configuration mode for
the specified LAG.
mode for the specified VLAN ID.
telnet settings and console interface
settings, as well as to configure console
login/enable authentication.
interfaces. For example the prompt
of
Line SSHSwitch (config-ssh)#Contains commands to configure SSH
login/enable authentication.
CLI Organization and Command Modes CLI Command Reference Manual19
AV Line of Fully Managed Switches M4250 Series
Table 6. CLI command modes (continued)
Command ModePromptMode Description
Line TelnetSwitch (config-telnet)#Contains commands to configure telnet
login/enable authentication.
AAA IAS User
Config
Mail Server ConfigSwitch (Mail-Server)#Allows configuration of the email server.
Policy Map ConfigSwitch (Config-policy-map)#Contains the QoS Policy-Map configuration
Policy Class Config Switch(Config-policy-class-map)# Consists of class creation, deletion, and
Class Map ConfigSwitch (Config-class-map)#Contains the QoS class map configuration
Ipv6_Class-Map
Config
Router RIP ConfigSwitch (Config-router)#Contains the RIP configuration commands.
Route Map ConfigSwitch (config-route-map)#Contains the route map configuration
Address
IPv6
Family Config
MAC Access-list
Config
Switch (Config-IAS-User)#Allows password configuration for a user in
the IAS database.
commands.
matching commands.
commands specify Layer 2, Layer 3, and
general match criteria.
commands for IPv4.
Switch (Config-class-map)#Contains the QoS class map configuration
commands for IPv6.
commands.
Switch (Config-router-af)#Contains the IPv6 address family
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 class match
TACACS ConfigSwitch (Tacacs)#Contains commands to configure properties
for the
DHCP Pool
Config
DHCPv6 Pool
Config
Stack Global
Config Mode
ARP Access-List
Config Mode
Support ModeSwitch (Support)#Allows access to the support commands,
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
which should only be used by the
manufacturer's technical support personnel
as improper use could cause unexpected
system behavior and/or invalidate product
warranty
ACACS servers.
T
Access List.
ARP
.
CLI Organization and Command Modes CLI Command Reference Manual20
AV Line of Fully Managed Switches M4250 Series
How to enter or exit a command mode
The following table describes how to enter or exit each mode.
Table 7. CLI mode access and exit
Command ModeAccess MethodExit or Access Previous Mode
User EXECThis is the first level of access. To exit, enter logout.
Privileged EXECFrom the User EXEC mode, enter
enable.
Global ConfigFrom the Privileged EXEC mode, enter
configure.
VLAN ConfigFrom the Privileged EXEC mode, enter
vlan database.
Interface Config From the Global Config mode, enter:
interface unit/port
From the Global Config mode, enter:
interface loopback id
From the Global Config mode, enter:
interfacetunnel 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.
T
o return to the Privileged EXEC mode, enter
Ctrl-Z
.
Line ConsoleFrom the Global Config mode, enter
line console.
Line SSHFrom the Global Config mode, enter
line ssh.
Line TelnetFrom the Global Config mode, enter
line telnet.
AAA IAS User
Config
From the Global Config mode, enter
aaa ias-user usernamename.
CLI Organization and Command Modes CLI Command Reference Manual21
To exit to the Global Config mode, enter exit.
T
o return to the Privileged EXEC mode, enter
Ctrl-Z
To exit to the Global Config mode, enter exit.
T
Ctrl-Z
To exit to the Global Config mode, enter exit.
T
Ctrl-Z
To exit to the Global Config mode, enter exit.
To return to the Privileged EXEC mode, enter
Ctrl-Z
.
o return to the Privileged EXEC mode, enter
.
o return to the Privileged EXEC mode, enter
.
.
AV Line of Fully Managed Switches M4250 Series
Table 7. CLI mode access and exit (continued)
Command ModeAccess MethodExit or Access Previous Mode
Mail Server Config From the Global Config mode, enter
mail-server address.
Policy-Map
Config
Policy-Class-Map
Config
Class-Map
Config
VPCFrom Global Config mode, enter vpc.To exit to the Global Config mode, enter exit.
IPv6-Class-Map
Config
From the Global Config mode, enter
policy-map.
From the Policy Map mode enter class. To exit to the Policy Map mode, enter exit. To
From the Global Config mode, enter
class-map, and specify the optional
keyword ipv4 to specify the Layer 3
protocol
page795 for more information.
From the Global Config mode, enter
class-map and specify the optional
keyword ipv6 to specify the Layer 3
protocol
page795 for more information.
this class. See
for
for
this class. See
class-map on
class-map on
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.
T
o return to the Privileged EXEC mode, enter
Ctrl-Z
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 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
.
.
.
.
Router RIP
Config
Route Map Config From the Global Config mode, enter
MAC Access-list
Config
TACACS ConfigFrom the Global Config mode, enter
DHCP Pool
Config
DHCPv6 Pool
Config
From the Global Config mode, enter
router rip.
route-map map-tag.
From the Global Config mode, enter
mac access-list extended name.
tacacs-server host ip-addr,
where ip-addr is the IP address of the
T
ACACS server on your network.
From the Global Config mode, enter
ip dhcp pool pool-name.
From the Global Config mode, enter
ip dhcpv6 poolpool-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.
T
Ctrl-Z
To exit to the Global Config mode, enter exit.
T
Ctrl-Z
T
T
Ctrl-Z
To exit to the Global Config mode, enter exit.
T
Ctrl-Z
To exit to the Global Config mode, enter exit.
T
Ctrl-Z
.
o return to the Privileged EXEC mode, enter
.
o return to the Privileged EXEC mode, enter
.
o exit to the Global Config mode, enter exit.
o return to the Privileged EXEC mode, enter
.
o return to the Privileged EXEC mode, enter
.
o return to the Privileged EXEC mode, enter
.
CLI Organization and Command Modes CLI Command Reference Manual22
AV Line of Fully Managed Switches M4250 Series
Table 7. CLI mode access and exit (continued)
Command ModeAccess MethodExit or Access Previous Mode
ARP Access-List
Config Mode
Support ModeFrom the Privileged EXEC mode, enter
From the Global Config mode, enter arp
access-list.
support.
Note: The support command is
available only after you issued the
techsupport enable command.
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 Privileged EXEC mode, enter
exit, or press Ctrl-Z.
CLI Organization and Command Modes CLI Command Reference Manual23
4
4Management Commands
This chapter describes the management commands.
The chapter contains the following sections:
•
Configure the Switch Management CPU
•CPU Queue Commands
•Management Interface Commands
•IPv6 Management Commands
•Console Port Access Commands
•Telnet Commands
•Secure Shell Commands
•Management Security Commands
•Management Access Control List Commands
•Hypertext Transfer Protocol Commands
•Access Commands
•User Account Commands
•SNMP Commands
•RADIUS Commands
•TACACS+ Commands
•Configuration Scripting Commands
•Prelogin Banner, System Prompt, and Host Name Commands
•Application Commands
The commands in this chapter are in one of three functional groups:
•Show commands. Display switch settings, statistics, and other information.
•Configuration commands. Configure features and options of the switch. For every
configuration command,
•Clear commands. Clear some or all of the settings to factory defaults.
there is a show command that displays the configuration setting.
24
AV Line of Fully Managed Switches M4250 Series
Configure the Switch Management CPU
To manage the switch over the web management interface or Telnet, you must assign an IP
address to the switch management CPU. You can accomplish this task through CLI
commands or you can use the ezconfig tool, which simplifies the task. The tool lets you
configure the following settings:
•The administrator user password and administrator-enable password
•The management CPU IP address and network mask
•The system name and location information
The tool is interactive and uses questions to guide you through
configuration steps. At the
the
end of the configuration session, the tool lets you save the information. To see which
information was changed by the ezconfig tool after a configuration session, issue the show running-config command.
ezconfig
This command sets the IP address, subnet mask, and gateway of the switch. The IP address
and the gateway must be on the same subnet.
Formatezconfig
ModePrivileged EXEC
(NETGEAR Switch) #ezconfig
EZ Configuration Utility
-------------------------------Hello and Welcome!
This utility will walk you thru assigning the IP address for the switch
management CPU. It will allow you to save the changes at the end. After
the session, simply use the newly assigned IP address to access the Web
GUI using any public domain Web browser.
Admin password is not defined.
Do you want to assign the admin password (password length must be in range of 8-64
characters) (Y/N/Q)? y
Enter new password:********
Confirm new password:********
The 'enable' password required for switch configuration via the command
line interface is currently not configured.
Do you want to assign it (password length must be in range of 8-64 characters) (Y/N/Q)?
Enter new password:********
Confirm new password:********
Current IPv4 Management Interface: vlan 1
Do you want to set new Management VLAN ID (Y/N/Q)?y
VLAN ID: 1
Assigning an IPv4 address to your switch management
IPv4 address is not assigned. What do you want to do?
C - Configure IPv4 address manually.
D - Assign IPv4 address for the switch using DHCP Mode(current IPv4 address will be
lost).
N - Skip this option and go to the next question.
Q - Quit.
? - Help.
(C/D/N/Q/?)? c
IPv4 Address: 192.168.1.1
Network Mask: 255.255.255.0
Gateway: 192.168.254
Incorrect input! Gateway must be a valid IP address.
Try again (Y/N/Q)? y
Gateway: 192.168.1.254
Do you want to enable global routing (Y/N)?y
Current IPv6 Management Interface: (not configured)
Do you want to set new IPv6 Management VLAN ID (Y/N/Q)?y
VLAN ID: 1
Assigning management IPv6 address.
IPv6 address has been assigned manually. What do you want to do?
C - Add IPv6 address.
D - Assign IPv6 address for the switch using DHCP Mode.
A - Assign IPv6 address for the switch using Auto Mode.
N - Skip this option and go to the next question.
Q - Quit.
? - Help.
(C/D/A/N/Q/?)? c
IPv6 Address: 2001:1::1
IPv6 Prefix-length: 64
IPv6 EUI64 flag (Y/N): n
IPv6 Gateway: 2001:1::fffe
Current Out of Band(service port) IPv4 Address Configuration
IPv4 address will be assigned automatically by the DHCP server in your network. You
can disable DHCP mode and use static(fixed) IPv4 address. If fixed IPv4 Address Mode
is selected, DHCP Protocol Mode will be disabled, and you will be prompted to
set the values for the four fields above.
Do you want to assign IPv4 address manually? (Y/N/Q/?) y
IPv4 Address: 172.26.2.1
Network Mask: 255.255.255.0
Gateway: 172.26.2.254
Current Out of Band(Serviceport) IPv6 Address Configuration
-------------------------------Service port IPv6 Address Mode: None
IPv6 Administrative Mode: Enabled
Service port IPv6 Address Mode autoconfigure: Disabled
IPv6 Address: fe80::abd:43ff:fe71:73be/64
Service port IPv6 address gateway:
EUI Flag: False
IPv6 address has been assigned manually. What do you want to do?
A - Assign IPv6 address for the switch using Auto Mode.
D - Assign IPv6 address for the switch using DHCP Mode.
G - Assign IPv6 Gateway.
C - Add IPv6 address.
N - Skip this option and go to the next question.
Q - Quit.
? - Help.
(A/D/G/C/N/Q/?)? c
Current Management Interface Configuration
-------------------------------Management Interface: L3 Management VLAN
Current management interface is L3 Management VLAN. What do you want to do?
O - Change to Out of Band port(service port).
V - Change to L3 Management VLAN.
N - Skip this option and go to the next question.
Q - Quit.
? - Help.
(O/V/N/Q/?)?n
Assigning System Name, System Location and System Contact to your switch management
Current Configuration
-------------------------------System Name:
System Location:
System Contact:
Do you want to assign switch name and location information? (Y/N/Q)
CPU Queue Commands
You can send all packets with a specified destination address to a higher priority queue (5)
than the default queue for data packets and unicast packets to the CPU.
ip cpu-priority
This command sends all packets with a specified destination IPv4 address to a higher priority
queue (5) than the default queue for data packets and unicast packets to the CPU.
This command removes all packets with a specified destination IPv4 address
from the higher
priority queue.
Formatno ip cpu-priority ip-address
ModePrivileged EXEC
ipv6 cpu-priority
The command allows all packets with a specified destination IPv6 address into a higher
priority queue (5) than the default queue for data packets and unicast packets to the CPU.
Formatip cpu-priority ipv6-address
ModePrivileged EXEC
no ipv6 cpu-priority
This command removes all packets with a specified destination IPv6 address
priority queue.
Formatno ip cpu-priority ipv6-address
ModePrivileged EXEC
from the higher
Management Interface Commands
This section describes the commands you use to configure a logical IPv4 interface for
management access.
enable (Privileged EXEC access)
This command gives you access to the Privileged EXEC mode. From the Privileged EXEC
mode, you can configure the network interface.
Use this command to create an IPv4 management interface, enable DHCP on the IPv4
management interface, delete a previous IPv4 management interface, and set the source
interface for all applications, including RADIUS, TACACS, DNS, SNTP, SNMP, and SysLog.