into any language in any form or by any means without the written permission of NETGEAR, Inc.
Technical Support
Thank you for choosing NETGEAR. T o register your product, get the latest product updates, or get support online,
visit us at http://support.netgear.com.
Phone (US & Canada only): 1-888-NETGEAR
Phone (Other Countries): See Support information card.
Trademarks
NETGEAR, the NETGEAR logo and ProSafe are trademarks or registered trad emarks of NETGEAR, Inc.
Microsoft, Windows, Windows NT, and Vista are registered trademarks of Microsoft Corporation. Other brand and
product names are registered trademarks or trademarks of their respective holders.
Statement of Conditions
To improve 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.
Revision History
Publication Part
Number
202-10921-021.0December 2012Added the following new and revised
202-10921-011.0December 2011Original publication.
Version Publish DateComments
command groups: ACL, DHCP snooping,
DHCP L2 relay, DiffServ, DNS client, dual
software image, dynamic ARP inspection, IP
source control, and storm control.
The JGSM7224 performs switching between Ethernet ports at wire speed. It provides basic
bridging functionality and also offers advanced features, such as link aggregation, IGMP
Snooping, and Network Access Control.
This document describes in detail the CLI commands supported by the JGSM7224 switch. It
is a reference manual for users and system administrators who need to configure the switch
using the CLI interface.
Scope
The scope of this document is limited to JGSM7224 release 9.2.0.5. This document details
all the CLI commands provided by the JGSM7224 software. The commands that are not
applicable for a specific hardware platform are indicated wherever necessary.
1
Document Conventions
• The syntax of the CLI command is shown in Courier New 10-point bold.
• Elements in (< >) indicate the field is required as input along with a CLI command, for
example, <integer (100-1000)>.
• Elements in square brackets ([ ]) indicate optional fields for a command.
• Text in {} refers to an “either-or” group for the tokens separated by a | symbol inside the
braces.
• CLI commands, output, and messages are shown in Courier font.
• The no form of the command resets a particular configuration to its default value or
revokes the effect. This is explained in the description of the commands as needed.
• Any action that can change the switch configuration, any conditionals and requirements
for a command, and any information associated with significant details and functionality
of a command is listed using the “..” symbol.
16
Page 17
ProSafe Managed Switch
Key Conventions
Keyboard Shortcuts
Key SequenceDescription
Up Arrow/Down Arrow Displays the previously executed command
Backspace / Ctrl + H Removes a single character
TAB Completes a command without typing the full word
Left Arrow/Right Arrow Traverses the current line
Others
• ? - Lists the available commands.
• q - Exits the output display if the display is more than one page and returns to the
JGSM7224 prompt.
• show history - Displays the command history list.
Introduction
17
Page 18
2. Command-Line Interface
This chapter describes how to configure the JGSM7224 using the Command Line Interface.
Note: The Command Line Interface (CLI) can be used to configure the
Intelligent Switch Solution from a console attached to the serial port
of the switch or from a remote terminal using TELNET.
The JGSM7224 CLI uses a simple login authentication mechanism.
The authentication is based on a user name and password provided
by the user during login. The user admin is created by default and
has a blank password.
Note: When JGSM7224 is started, the user name and password must be
given at the login prompt to access the CLI shell:
The user-exec mode is now available. For a detailed description of
the various modes available for the JGSM7224, see
Modes on page 19.
2
CLI Command
CLI commands need not be fully typed. The abbreviated forms are also accepted by the
switch. For example, commands like show management vlan can be typed as show management vl.
CLI commands are case-insensitive.
CLI commands are successful only if the dependencies are satisfied for the particular
command entered. Appropriate error messages are displayed if the dependencies are not
satisfied.
18
Page 19
ProSafe Managed Switch
Note: The ethernet type of an interface is determined during System
St artup. The ethernet type needs to be specified correctly when you
configure interface-specific parameters.
A fast ethernet interface cannot be configured as a gigabit-ethernet interface and vice-versa.
CLI Command Modes
Command ModeAccess MethodPromptExit Method
User EXECThis is the initial mode to start
a session.
Privileged EXECThe User EXEC mode
command enable is used to
enter the Privileged EXEC
mode.
Global Configuration The Privileged EXEC mode
command configure terminal is used to enter the
Global Configuration mode.
Interface
Configuration
VLAN ConfigThe Privileged EXEC mode
The Global Configuration
mode command interface
<interface-type>
<interface-id> is used to
enter the Interface
configuration mode.
command vlan database is
used to enter the VLAN Config
mode.
(JGSM7224)>The logout method is used.
(JGSM7224)# To return from the Privileged
EXEC mode to the Privileged
EXEC mode, use the
disable command.
(JGSM7224)(config)#To exit to the Global
Configuration mode, use the
exit command. To exit to
the Privileged EXEC mode
use the end command.
(JGSM7224)(config-if)# To exit to the Global
Configuration mode, use the
exit command. To exit to
the Privileged EXEC mode
use the end command.
(JGSM7224)(vlan)#To exit to the Privileged
EXEC mode, use the exit
command.
User EXEC Mode
After logging in to the device, the user is automatically in the User EXEC mode. In general,
the User EXEC commands are used to temporarily change terminal settings, perform basic
tests, and list system information.
Command-Line Interface
19
Page 20
ProSafe Managed Switch
Privileged EXEC Mode
Since many of the privileged commands set operating parameters, privileged access is
password protected to prevent unauthorized use. The password is not displayed on the
screen and is case-sensitive. The Privileged EXEC mode prompt is the device name followed
by the pound sign (#).
Global Configuration Mode
Global Configuration commands apply to features that affect the system as a whole, to any
specific interface.
Interface Configuration Mode
Physical Interface Mode
The Physical Interface mode is used to perform interface-specific operations. To return to the
global configuration mode, use the exit command.
Port Channel Interface Mode
The Port Channel Interface mode is used to perform port channel-specific operations. To
return to the global configuration mode, use the exit command.
Management VLAN Interface Mode
The Management VLAN Interface mode is used to perform L3-IPVLAN-specific operations.
To return to the global configuration mode, use the exit command.
Tunnel Interface Mode
The Tunnel Interface mode is used to perform Tunnel-specific operations. To return to the
global configuration mode, use the exit command.
VLAN Config Mode
This mode is used to perform VLAN-specific operations. To return to the global configuration
mode, use the exit command.
Command-Line Interface
20
Page 21
ProSafe Managed Switch
Protocol-Specific Modes
DHCP Pool Configuration Mode
This mode is used to configure the network pool / host configurations of a subnet pool. The
Global configuration mode command ip dhcp pool <integer(1-2147483647)>
creates a DHCP server address pool and places the user in DHCP pool configuration mode.
The prompt displayed in this mode is (JGSM7224)(dhcp-config)#.
To return to the global configuration mode, use the exit command.
ACL MAC Configuration Mode
The MAC access-list global configuration command creates Layer 2 MAC ACLs and returns
the MACAccess list configuration mode to the user. The Global configuration mode
command mac access-list extended <(name(1-31))> is used to enter the ACL
MAC Configuration mode and the prompt displayed in this mode is
(JGSM7224)(config-ext-macl)#.
To return to the global configuration mode, use the exit command.
SNTP Configuration Mode
This mode is used to configure the SNTP-specific parameters for the switch. The Global
configuration mode command sntp is used to enter the SNTP Configuration mode and the
prompt displayed in this mode is (JGSM7224)(config-sntp)#.
To return to the global configuration mode, use the exit command.
Command-Line Interface
21
Page 22
3. System Commands
This chapter describes the commands used to manage access permissions, mode access,
and terminal configurations on the JGSM7224 switch.
enable
This command turns on privileged commands. When in User EXEC mode, you can use this
command to enter Privileged EXEC mode.
show users - Displays information about terminal lines.
username
This command creates a user and sets the enable password for that user. The no form of the
command deletes a user and disables the enable password for that user. At the system
default state, there is only one user, admin, with a blank password.
When you log in with the user name admin, you can add or delete a user and change the
password of other users in the system. If you log in with another user name, however, you
can change only your own password. If you add a new user with this command and do not
specify a password, the user you add has a default blank password.
Syntaxusername <user-name> [password <passwd>]
no username <user-name>
ModeGlobal Configuration
user-name - User names can be up to 20 characters in length and are case-sensitive. Only
alphanumeric characters, dashes (-), and underscores (_) are accepted.
password - Password.
Related Command
listuser - lists all valid users
System Commands
23
Page 24
ProSafe Managed Switch
logout
This command exits from Privileged EXEC or User EXEC mode to the JGSM7224 Login
Prompt if you are in a console session. If a telnet session is active, this command terminates
the session.
This command exits the current configuration mode to the next highest configuration mode in
the CLI. The login name and password must be reentered to gain access to the CLI
command shell.
This command displays information about login user sessions.
Syntaxshow users
ModePrivileged EXEC
System Commands
24
Page 25
ProSafe Managed Switch
Example
-----------------------------------------------------------------------------(JGSM7224)# show users
ID Type User Peer-Address
c1 console admin Local Peer
c2 telnet admin 192.168.0.10
w1 http admin 192.168.0.10
(JGSM7224)#
listuser - Lists all valid users, along with their permissible mode.
show history
This command displays command history. The commands are listed from the earliest to the
latest command. The buffer is unchanged when entering configuration mode and then
returning.
Syntaxshow history
ModePrivileged EXEC
Example
-----------------------------------------------------------------------------(JGSM7224)# show history
1 show debug-logging
2 show users
3 listuser
4 show users
5 show history
(JGSM7224)#
The JGSM7224 switch offers a rich set of system features, such as login services,
copying/writing facilities, duplex/negotiation support, and many others. Some features might
have special hardware requirements and others might have special design considerations.
The related command sections provide overview descriptions of the features and include
specific information to consider when using these features.
CFA (Common Forwarding Agent) is a proprietary module that acts as a common forwarder
of packets between the Network Protocol Module(s), the Data-Link Layer Protocol Layer
Module(s), and the Device Drivers. CFA provides central management of the generic
parameters of all the interfaces in the system.
login authentication
This command sets the authentication method for user logins and the no form of the
command sets the authentication method for user logins to default values. Changing login
authentication from default to another value might disconnect the telnet session.
4
TACACS is an authentication program used on UNIX and Linux systems, a few network
routers, and other network equipment that allows access to a server or a managing computer
to determine if the user attempting to log in has the proper rights or is in the user database.
Syntaxlogin authentication { local | radius | tacacs }
no login authentication
ModeGlobal Configuration
local - Local username database for authentication.
radius - List of all RADIUS servers for authentication.
tacacs - List of useful TACACS+ servers for authentication.
ip http server - Enables access to the switch through the Web interface.
show ip http - Displays the HTTP settings for the switch.
ip http server
This command enables access to the switch through the Web interface, and the no form of
the command disables it. When access is enabled, the user can log in to the switch from the
Web interface. When access is disabled, the user cannot log in to the switch’s Web server.
Disabling the Web interface takes effect immediately. All interfaces are affected.
DefaultEnabled
Syntaxip http server
no ip http server
ModeGlobal Configuration
Example
-----------------------------------------------------------------------------(JGSM7224)(config)# no ip http server
(JGSM7224)(config)#
ip http port - Sets the HTTP port.
show ip http - Displays the HTTP settings for the switch.
ip http session timeout
This command configures the timeout for unsecure HTTP sessions in minutes. Configuring
this value to zero sets an infinite timeout. When the timeout expires the user is forced to
re-authenticate. The timer begins on initiation of the Web session and is restarted with each
access to the switch. The no form of the command resets the timeout to the default value.
Default30
Syntaxip http session timeout <0-60>
no ip http session timeout
ModeGlobal Configuration
Example
-----------------------------------------------------------------------------(JGSM7224)(config)# ip http session timeout 10
(JGSM7224)(config)#
show ip http - Displays the HTTP settings for the switch.
interface
This command selects an interface to configure, which can be a physical interface, a portchannel interface, or a management vlan interface. On execution of this command, the user
enters the interface configuration mode for that interface. Eight port-channels are created by
default.
vlanMgmt - The management vlan interface.
port-channel - Port Channel Identifier.
slot/port - Physical interface ID, including type, slot, and port format.
This command sets the VLAN list for the L3 VLAN interface. The no form of the command
resets the list for the L3 VLAN interface.The VLAN list can be specified as a range of VLAN
IDs separated by a hyphen or a series of non-consecutive VLANs separated by a comma. A
single VLAN ID can also be substituted instead of a range of VLANs. This command is
configured only when the code is compiled with the WorkGroupSwitch enabled, if the L2 Vlan
Management support is required.
show management vlan - Displays the VLANs associated with the management interface.
mtu frame size
This command configures the maximum transmission unit frame size for the interface. The
MTU includes the Ethernet header, CRC, and payload. The MTU size is a valid integer
between 1518 and 9216 for untagged packets. For tagged packets, the actual MTU is the
specified MTU size plus 4. The interface must be brought down administratively prior to
changing the MTU.
show interfaces - Displays the interface status and configuration.
show interface mtu - Displays the global maximum transmission unit.
System Features
31
Page 32
ProSafe Managed Switch
snmp trap link-status
This command enables trap generation on either the physical interface or the port-channel
interface. The no form of this command disables trap generation on the respective interface.
show interfaces - Displays the interface status and configuration.
write memory
Use this command to save running configuration changes to NVRAM so that the changes
you make persist across a reboot. This command is the same as copy system:running config nvram:startup-config.
Syntaxwrite memory
ModePrivileged EXEC
Related Commands
copy - Uploads and downloads the file from the remote.
save - Saves the configuration.
erase - Erases the specified file.
copy
This command uploads and downloads files to and from the switch. Upload and download
files from a server by using TFTP.
Replace the <source> and <destination> parameters with the options in the following
table. For the <tftp_url> source or destination, use the following values:
<tftp_url> tftp://<ipaddr | hostname>/<filename>
For TFTP, the <ipaddr> parameter is the IP address of the server, and <filename> is the
name of the file you want to upload or download. Parameters for the copy command are
listed in the following table:
SourceDestinationDescription
<tftp url>nvram:sslpem-serverDownloads Secure Server PEM file to the
system
<tftp url>nvram:startup-configDownloads the startup configuration file to the
system
<tftp url>system:bootDownloads and updates the boot code
<tftp url>system:imageDownloads and updates the image
<tftp url>{image1 | image2}Download an image from the remote server to
either image.
{image1 | image2}<tftp url>Upload either image to the remote server.
image1image2Copy image1 to image2.
image2image1Copy image2 to image1.
nvram:backup-config<tftp url>Uploads the backup configuration to the server
nvram:backup-confignvram:startup-configCopies the backup config to the startup config
nvram:debug-log<tftp url>Uploads the debug log file to the server
nvram:log1<tftp url>Uploads the log file 1 to the server
nvram:log2<tftp url>Uploads the log file 2 to the server
nvram:log3<tftp url>Uploads the log file 3 to the server
nvram:startup-config<tftp url>Uploads the startup configuration to the server
nvram:startup-confignvram:backup-configCopies the startup config to the backup config
system:running-confignvram:startup-configSave the running configuration to nvram
Related Commands
write memory - Create the configuration file.
save - Save the configuration.
erase - Erase the specified file.
System Features
33
Page 34
ProSafe Managed Switch
save
This command makes the current configuration changes permanent by writing the
configuration changes to system NVRAM.
Syntaxsave
ModePrivileged EXEC
Related Commands
write memory - Create the configuration file.
copy - Uploads and downloads the file from the remote.
erase - Erases the specified file.
clock set
This command manages the system clock.The date is configured in the switch in the
following format:
• Hours:minutes:Seconds Date Month Year.
• The format for the date is dd(1-31).
• The format for the month is Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec.
• The format for the year is yyyy(1970-2035).
Syntaxclock set hh:mm:ss day month year
ModePrivileged EXEC
Example
-------------------------------------------------------------------------------------(JGSM7224)# clock set 18:04:10 18 Oct 2005
(JGSM7224)#
This command disables a physical interface/vlanMgmt interface/port-channel interface. The
no form of the command enables a physical interface/vlanMgmt interface/port-channel
interface. All functions on the specified interface are disabled by the shutdown command.
interface - Configures an interface, which can be a physical interface, a port-channel
interface, or a management vlan interface.
show interfaces - Displays the interface status and configuration.
System Features
35
Page 36
ProSafe Managed Switch
debug-logging
This command configures where debug logs are to be displayed and the no form of the
command displays debug logs on the console. Debug logs are directed to the console screen
or to a buffer file, which can later be uploaded based on the input.
Syntaxdebug-logging { console|file }
no debug-logging
ModeGlobal Configuration
console - Debug logs are displayed on the Console.
file - Debug logs are displayed in the file.
show debug-logging - Displays the debug logs stored in file.
show interfaces
This command displays the interface status and configuration.If executed without the optional
parameters, this command displays the IP interface statistics and configuration for all
available interfaces.
slot/port - Physical interface ID, including type, slot, and port format.
description - Description of the interface.
rate-limit - Rate limit of the interface.
flowcontrol - Receive or send flow control value for an interface.
capabilities - Capabilities of the interface.
status - Status of the interface.
port-channel - Port Channel Identifier.
System Features
36
Page 37
ProSafe Managed Switch
Example
-----------------------------------------------------------------------------(JGSM7224)# show interfaces 0/2
0/2 up, line protocol is up (connected)
Hardware Address is 00:01:02:03:04:22
RARP Client is enabled
MTU 1500 bytes, Full duplex, 100 Mbps, Auto-Negotiation
HOL Block Prevention enabled.
Flow-control is off
--------- ------ -------0/1 up up
0/2 up down
0/3 up up
(JGSM7224)# show interfaces 0/2 flowcontrol
Port Tx Rx Tx Pause Rx Pause HC Rx Pause
---- ----- -------- -------- -------0/2 off off 0 0 0 0
(JGSM7224)# show interfaces 0/2 capabilities
0/2
Type : 10/100/1000 Base TX
Speed : 10, 100, 1000, Auto
Duplex : Half, Full
FlowControl : Send, Receive
JGSM7224 # show interfaces 0/2 status
Port Status Duplex Speed Negotiation
System Features
37
Page 38
ProSafe Managed Switch
---- ------ ------ ----- ----------0/2 connected Full 100 Mbps Auto
JGSM7224 # show interfaces port-channel
2 po2 up, line protocol is up (connected)
(JGSM7224)#
counters - Various counters for the switch or for the specific interface.
slot/port - Physical interface ID, including type, slot, and port format.
port channel - Port channel ID.
detail - Detailed statistics.
Example
-----------------------------------------------------------------------------(JGSM7224)# show interfaces counters 0/1 detail Port
mtu frame size - Configures the maximum transmission unit frame size for the interface.
System Features
40
Page 41
ProSafe Managed Switch
show system information
This command displays system information.
Syntaxshow system information
ModePrivileged EXEC
Example
-----------------------------------------------------------------------------(JGSM7224)# show system information
System Uptime : 21 hrs, 30 mins, 29 secs
System Description : JGSM7224 - 24-Port Gigabit Layer 2 Managed Switch
Switch Name : JGSM7224
System Contact : JGSM7224
System Location : JGSM7224
System Object ID : 1.3.6.1.4.1.4526.100.2.6
write - Writes the running-config to a startup-configuration file.
erase - Clears the contents of the startup configuration or sets parameters in NVRAM to
default values.
login authentication - Sets the authentication method for user logins.
show version
This command displays system version information.
Syntaxshow version
ModePrivileged EXEC
System Features
41
Page 42
ProSafe Managed Switch
Example
-----------------------------------------------------------------------------(JGSM7224)# show version
System Description..........JGSM7224 - 24-Port Gigabit Layer 2 Managed Switch
ip http port - Sets the HTTP port.
ip http server - Enables access to the switch through the Web interface.
ip http session timeout - Configures the timeout for unsecure HTTP sessions in
minutes.
ip http secure-server - Enables the secure socket layer for secure HTTP.
ip http secure-port - Set the SSL port, where port can be 1-65535.
ip http secure-session timeout - Configures the timeout for secure HTTP sessions
in minutes.
crypto certificate generate - Generates self-signed certificate for HTTPS.
show ssl server-cert - Displays SSL server certificate.
console timeout
This command specifies the maximum connect time (in minutes) without console activity. A
value of 0 indicates that a console can be connected infinitely. The time range is 0 to 160.
The no form of the command sets the console login inactivity timeout value to the default.
show console - Displays console settings for the switch.
System Features
45
Page 46
ProSafe Managed Switch
ip telnet server enable
This command enables Telnet connections to the system and enables the Telnet Server
Admin Mode. This command opens the Telnet listening port. The no form of the command
disables Telnet access to the system and disables the Telnet Server Admin Mode. The no
form of the command also closes the Telnet listening port and disconnects all open Telnet
sessions.
DefaultEnabled
Syntaxip telnet server enable
no ip telnet server enable
ModeGlobal Configuration
Example
-----------------------------------------------------------------------------(JGSM7224)(config)# no ip telnet server enable
(JGSM7224)(config)#
show telnet - Displays the current Telnet settings.
telnetcon timeout
This command sets the Telnet connection session timeout value, in minutes. A session is
active as long as the session has not been idle for the value set. The time is a decimal value
from 1 to 160. The no form of the command sets the Telnet connection session timeout value
to the default.
show telnet - Displays the current Telnet settings.
System Features
46
Page 47
ProSafe Managed Switch
telnetcon maxsessions
This command specifies the maximum number of Telnet connection sessions that can be
established. A value of 0 indicates that no Telnet connection can be established. The range is
0-5. The no form of the command sets the maximum number of Telnet connection sessions
to the default value.
ip telnet server enable - Enables Telnet connections to the system and enables the
Telnet Server Admin Mode.
telnetcon timeout - Sets the Telnet connection session timeout value, in minutes.
telnetcon maxsessions - Specifies the maximum number of Telnet connection sessions
that can be established.
restore startup-config
This command sets the startup-config restore flag. If this flag is set, the switch will use
startup-config for the next restore.
Note: These commands also set the startup-config restore flag: save,
write memory, copy <tftp_url> nvram:startup-config, and copy nvram:backup-connfig nvram:startup-config.
System Features
48
Page 49
ProSafe Managed Switch
Related Commands
write memory - Creates the config file.
copy - Uploads and Downloads the file from the remote.
save - Saves the configuration. This command also sets the restore flag.
no restore
This command sets the no restore flag. If this flag is set, the switch will not use the
startup-config for the next restore. This flag will also be set if the startup-config does not exist.
Syntaxno restore
ModePrivileged EXEC
Example
---------------------------------------------------------------------------------(JGSM7224)# no restore
(JGSM7224)#
slot/port - Physical interface ID, including type, slot, and port format.
System Features
49
Page 50
5. Port Manager
The JGSM7224 switch offers a rich set of commands to manage ports, such as port speed,
port duplex, auto-negotiation, rate-limit, storm-control, and port-mirroring.
monitor session
This command enables port-mirroring in the switch. The no form of the command disables
port mirroring in the switch.
no monitor [session <session_number:1>] [{source interface <slot/port> |
destination interface | mode}]
ModeGlobal Configuration
5
session number - Specifies the session number identified with the session.
destination interface - Specifies the destination interface or the mirror-to port. Valid
interfaces are physical ports. There can be only one mirror-to port per switch.
source interface - Specifies the interface for the traffic that is to be mirrored. Valid
interfaces include physical ports, with a maximum of eight physical ports.
rx - Received traffic is mirrored.
tx - Transmitted traffic is mirrored.
mode - Enable or disable mirror.
show monitor session 1 - Displays port-monitoring information.
50
Page 51
ProSafe Managed Switch
negotiation
This command enables auto-negotiation on the interface. The no form of the command
disables auto- negotiation on the interface. The auto-negotiation doesn't affect flow control
status.
negotiation - Enables auto-negotiation on the interface
speed - Sets the speed of the interface
rate-limit
This command enables the rate limiting and burst size rate limiting by configuring the egress
and ingress packet rate of an interface. The no form of the command disables the rate
limiting and burst size rate limiting on an egress or ingress port.
monitor session - Enables port-mirroring in the switch
Port Manager
53
Page 54
6. DHCP
DHCP (Dynamic Host Configuration Protocol) allows dynamic configuration of a host computer.
When a DHCP client is booted, it initially does not have an IP address assigned to it. It issues a
broadcast message to any DCHP servers that are on the network. An exchange takes place
during which the DHCP server assigns an IP address to the client and sends the client certain
key network configuration parameters.
Many Internet service providers (ISPs) require that their customers use a DHCP client so the ISP
can dynamically assign IP addresses and control other network settings. Another use is for
laptop computers, which can be connected to more than one network. For example a laptop can
be connected to a network in the office and also at home. This is an ideal use for DHCP since
the laptop doesn’t need to be manually reconfigured for use in the two different networks. In this
case, there needs to be a DHCP server both on the office network and the home network and
the laptop needs a DHCP client.
dhcp client release
6
This command immediately releases the DHCP lease on the interface specified.The VLAN
interface must have an IP address assigned by the DHCP server, and it must be in binding
state.
show management vlan - Displays the IP interface statistics and configuration.
show dhcp client stats - Displays the DHCP client statistics information.
54
Page 55
ProSafe Managed Switch
dhcpclientacquire - Configures the current VLAN interface to dynamically acquire an
IP address from the DHCP server.
dhcp client renew
This command immediately renews the DHCP lease for the interface specified. The VLAN
interface must have an IP address assigned by the DHCP server.
show ip dhcp client stats - Displays the DHCP client statistics information.
show management vlan - Displays the IP interface statistics and configuration.
dhcp client release - Releases the address acquired from the dhcp server.
dhcp client renew - Renews the address lease.
DHCP
55
Page 56
ProSafe Managed Switch
debug dhcp client
This command sets the debug level for tracing the DHCP client module. The no form of the
command disables the debug level for the DHCP client.
dhcpclientacquire - Configures the current VLAN interface to dynamically acquire and
IP address from the DHCP server.
dhcp client release - Releases the DHCP lease on the interface specified.
dhcp client renew - Renews the DHCP lease for the interface specified.
service dhcp
This command enables the DHCP server. The no form of this command disables the DHCP
server. The DHCP Relay must be disabled before enabling the DHCP server.
DefaultDisabled
Syntaxservice dhcp
no service dhcp
ModeGlobal Configuration
Example
-----------------------------------------------------------------------------(JGSM7224)(config)# service dhcp
(JGSM7224)(config)#
show ip dhcp server information - Displays the DHCP server information.
DHCP
57
Page 58
ProSafe Managed Switch
ip dhcp pool
This command creates a DHCP server address pool and places the user in the DHCP pool
configuration mode. The no form of the command deletes the DHCP server address pool. On
execution of this command, the configuration mode changes to DHCP pool configuration
mode, identified by the (config-dhcp)# prompt. In this mode, the administrator can
configure pool parameters.
DefaultAddress pools are not created by default.
Syntaxip dhcp pool <index (1-2147483647)>
ip dhcp pool <index (1-2147483647)>
no
ModeGlobal Configuration
index - Pool Number.
Example
-----------------------------------------------------------------------------(JGSM7224)(config)# ip dhcp pool 1
(JGSM7224)(config)#
network - Sets the network number and mask in DHCP server configuration parameters.
excluded-address - Creates an excluded pool to prevent the DHCP from assigning
certain addresses.
domain-name - Sets the domain name in the DHCP server configuration parameters.
dns-server - Specifies the IP address of a DNS server.
netbios-name-server - Sets the NetBIOS (WINS) name servers in the DHCP server
configuration parameters.
netbios-node-type - Sets the NetBios node type in the DHCP server configuration
parameters.
default-router - Sets the default router in the DHCP server configuration parameters.
option - Sets the pool specific DHCP server option.
lease - Sets the lease period.
host hardware-type - Specifies the hardware address of a Dynamic Host Configuration
Protocol (DHCP) client.
show ip dhcp server information - Displays the DHCP server information.
show ip dhcp server pools - Displays the DHCP server pools.
DHCP
58
Page 59
ProSafe Managed Switch
ip dhcp next-server
This command sets the next boot server in the DHCP server configuration parameters. The
no form of this command deletes the next boot server from the DHCP server configuration
parameters.
Syntaxip dhcp next-server <ip address>
no ip dhcp next-server
ModeGlobal Configuration
ip address - IP address of the TFTP server.
Example
-----------------------------------------------------------------------------(JGSM7224)(config)# ip dhcp next-server 12.0.0.1
(JGSM7224)(config)#
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the DHCP server information.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server statistics - Displays the DHCP server statistics.
ip dhcp bootfile
This command sets the boot file name in the DHCP server configuration parameters. The no
form of this command deletes the boot file name from the DHCP server configuration
parameters.
Syntaxip dhcp bootfile <bootfile (63)>
no ip dhcp bootfile
ModeGlobal Configuration
boot file - Name of the file that specifies the boot image.
Example
-----------------------------------------------------------------------------(JGSM7224)(config)# ip dhcp bootfile 53
(JGSM7224)(config)#
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the DHCP server information.
ip dhcp
This command sets the DHCP server parameters such as enabling the ICMP echo
mechanism or offer-reuse timeout. The no form of this command is used to set the DHCP
server parameters, such as disabling the ICMP echo mechanism or server offer-reuse to its
default value or removing a bind entry from the server binding table.
The DHCP server pings a pool address before assigning the address to a re questing client. If
the ping is unanswered, the DHCP server assumes (with a high probability) that the address
is not in use and assigns the address to the requesting client. If the ping is answered, the
server will add this address to the excluded address pool.
Defaultserver-offer-reuse default is 5
Syntaxip dhcp{ping-packets|server-offer-reuse <timeout(1-120)>}
no ip dhcp{ping-packets|server-offer-reuse|binding <ip address>}
ModeGlobal Configuration
ping packets - Enable icmp echo’s prior to assigning a pool address. The no form of this
command option prevents the server from pinging pool addresses.
server offer reuse - The amount of time the DHCP server entity would wait for the
DHCP REQUEST from the client before reusing the offer.
binding - The binding option if specified deletes the specified address from binding.
Example
-----------------------------------------------------------------------------(JGSM7224)(config)# ip dhcp ping-packets
(JGSM7224)(config)#
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the DHCP server information.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server statistics - Displays the DHCP server statistics.
The subnet-specific options take precedence over global options and the host-specific
options take precedence over global and subnet options.
RFC 2132 provides details about option code to option name mapping and the option length
information.
Note: When in HEX format, two HEX chars are regarded as 1 byte. For example, the HEX
string ef9a’s length is 2, because the “ef” is one octet. The following is the list of supported
and configurable DHCP options with their corresponding option length values:
• Options 19, 20, 27, 29, 30, 31, 34, 36, 39, 46 must have a length of 1
• Options 12, 14, 15, 17, 18, 40, 43, 47, 64, 66, 67 must have a length >=1
• Option 16 must have minimum length 4 and the value for this option must be an IP
address and Option 25 can have a length of 2 and 2*n
• Option 68 must have length 4 and the value for this option must be an IP address
• Options 2-11, 41, 42, 44, 45, 48, 49, 65, 69, 70-76 must have a length of 4. Value for
these options must be an IP address
• Options 21, 33 must have minimum length as 8 and 8*n
• Options 0, 1, 22-24, 26, 28, 32, 35, 37, 38, 50-63, 77-255 are not configurable using this
command
• Option 1 is set when configuring the network mask
Related Commands
service dhcp - Enables the DHCP server.
DHCP
61
Page 62
ProSafe Managed Switch
show ip dhcp server pools - Displays the DHCP server pools.
option - Sets the pool specific DHCP server option.
network
This command sets the network IP address and mask in DHCP server configuration
parameters. The no form of the command deletes the network IP address and mask from
DHCP server configuration. This command is valid for DHCP sub network address pools
only.
network-IP - Network IP address of the DHCP pool.
mask - Subnet mask of the DHCP pool.
prefix-length - The number of bits that comprise the address prefix. Prefix is an
alternative way of specifying the network mask of the client. The prefix length must be
preceded by a forward slash (/).
start ip - Start IP address of the pool.
end ip - End IP address of the pool.
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server statistics - Displays the DHCP server statistics.
excluded-address
This command creates an excluded pool to prevent the DHCP Server from assigning certain
addresses. The no form of the command deletes the excluded pool. The DHCP server
assumes that all pool addresses can be assigned to clients. This command is used to
DHCP
62
Page 63
ProSafe Managed Switch
exclude a single IP address or a range of IP addresses. If a client sends a DECLINE packet
to decline an address, this address will be added to the excluded address pool.
low-address - The excluded IP address, or first IP address in an excluded address range. high-address - The last IP address in the excluded address range.
network - Sets the network IP and mask in DHCP server configuration parameters.
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server statistics - Displays the DHCP server statistics.
domain-name
This command sets the domain name in the DHCP server configuration parameters. The no
form of the command deletes the domain name from the DHCP server configuration
parameters. The configuration of this command takes effect only after configuring the
network address pool using the network command.
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server statistics - Displays the DHCP server statistics.
network - Configures the network IP address of the DHCP Address Pool.
dns-server
This command is used to specify the IP address of a DNS server available to a DHCP client.
The no form of the command deletes the DNS server from the DHCP server configuration
parameters. If DNS IP servers are not configured for a DHCP client, the client cannot
correlate host names to IP addresses. The configuration of this command takes effect only
after configuring the network address pool using network command.
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server statistics - Displays the DHCP server statistics.
network - Configures the network IP address of the DHCP Address Pool.
DHCP
64
Page 65
ProSafe Managed Switch
netbios-name-server
This command sets the NetBIOS (WINS) name servers in the DHCP server configuration
parameters. The no form of the command deletes the NetBIOS name server from the DHCP
configuration parameters. The configuration of this command takes effect only after
configuring the network address pool using network command.
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server statistics - Displays the DHCP server statistics.
network - Configures the network IP address of the DHCP Address Pool.
netbios-node-type
This command is used to set the NetBios node type in the DHCP server configuration
parameters. The no form of this command is used to delete the NetBios node type from the
DHCP server configuration parameters.
The NetBIOS node type for Microsoft DHCP clients can be one of the four settings:
broadcast, peer-to-peer, mixed, or hybrid. The recommended type is hybrid node. The
configuration of this command takes effect only after configuring the network address pool
using network command.
service dhcp-server - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server statistics - Displays the DHCP server statistics.
network - Configures the network IP address of the DHCP Address Pool.
default-router
This command sets the default router in the DHCP server configuration parameters. The no
form of the command deletes the default router from the DHCP server configuration
parameters. The configuration of this command takes effect only after configuring the
network address pool using network command.
service dhcp-server - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
show ip dhcp server pools - Displays the DHCP server pools.
DHCP
66
Page 67
ProSafe Managed Switch
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server statistics - Displays the DHCP server statistics.
network - Configures the network IP address of the DHCP Address Pool.
option
This command sets the pool-specific DHCP server option. The no form of the command
deletes the pool-specific DHCP server option.
The subnet-specific options take precedence over global options and the host specific
options take precedence over global and subnet options.
RFC 2132 provides details about option code to option name mapping and the option length
information.
The following is the list of supported and configurable DHCP options with their corresponding
option length values:
• Options 19, 20, 27, 29, 30, 31, 34, 36, 39, 46 must have length 1
• Options 12, 14, 15, 17, 18, 40, 43, 47, 64, 66, 67 must have length>=1
• Option 16 must have minimum length 4 and the value for this option must be an IP
address and Option 25 can have a length of 2 and 2*n
• Option 68 must have length 4 and the value for this option must be an IP address
• Options 2-11, 41, 42, 44, 45, 48, 49, 65, 69, 70-76 must have a length of 4. Value for
these options must be an IP address
• Options 21, 33 must have minimum length as 8 and 8*n
• Options 0, 1, 22-24, 26, 28, 32, 35, 37, 38, 50-63, 77-255 are not configurable using this
command
• Option 1 is set when configuring the network mask
The network pool must be configured prior to the execution of this command. Only then the
configured option is visible to the user in the show command output. If the network pool is
deleted, then the option configured for that network pool will also be deleted.
service dhcp - Enables the DHCP server.
ip dhcp pool - Creates a DHCP server address pool and places the user in the DHCP
pool configuration mode.
ip dhcp option - Sets the DHCP server options.
network - Sets the network IP and mask in DHCP server configuration parameters.
show ip dhcp server pools - Displays the DHCP server pools.
lease
This command configures the duration of the lease for an IP address that is assigned from
JGSM7224 Dynamic Host Configuration Protocol (DHCP) Server to a DHCP client. The no
form of this command restores the default value of 3600 seconds.
days - Duration of the lease in number of days.
hours - Number of hours in lease.
minutes - Number of minutes in lease.
infinite - Duration of the lease is unlimited.
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
DHCP
68
Page 69
ProSafe Managed Switch
show ip dhcp server pools - Displays the DHCP server pools.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server statistics - Displays the DHCP server statistics.
utilization threshold
This command sets the pool utilization threshold value in percentage. If the pool utilization
reaches this threshold level, a syslog event and an SNMP trap message will be generated.
The no form of this command sets the pool utilization threshold to its default value.
days - Duration of the lease in number of days.
hours - Number of hours in lease.
minutes - Number of minutes in lease.
infinite - Duration of the lease is unlimited.
show ip dhcp server pools - Displays the DHCP server pools.
logging - Enables Syslog server and configures the Syslog Server IP address, the log-level
and other Syslog related parameters.
host hardware-type
This command specifies the hardware address of a Dynamic Host Configuration Protocol
(DHCP) client and host specific DHCP options. The no form of the command deletes the host
DHCP
69
Page 70
ProSafe Managed Switch
option. The subnet-specific options take precedence over global options and the host specific
options take precedence over global and subnet options.
no host hardware-type <host-hardware-type (0-1)> client-identifier
<client-mac-address> option <code (1-254)>
ModeDHCP Pool Configuration
type - 0 means an identifier other than a hardware address type, 1 means the hardware
address type.
client identifier - Host MAC address or an identifier
option - The tag octet of the DHCP option.
ascii - ASCII String.
hex - Hex String.
ip - Host IP address.
service dhcp - Enables the DHCP server.
ip dhcp pool - Creates a DHCP server address pool and places the user in the DHCP
pool configuration mode.
debug ip dhcp server
This command specifies the hardware address of a Dynamic Host Configuration Protocol
(DHCP) client and host specific DHCP options. The no form of the command deletes the host
option.
DefaultDisabled
Syntaxdebug ip dhcp server {all | events | packets | errors | bind}
no debug ip dhcp server {all | events | packets |errors | bind}
ModePrivileged EXEC
DHCP
70
Page 71
ProSafe Managed Switch
all - All trace messages.
events - Trace management messages.
packets - Packet related messages.
errors - Trace error code debug messages.
bind - Trace bind messages.
Example
-----------------------------------------------------------------------------(JGSM7224)# debug ip dhcp server all
(JGSM7224)#
service dhcp - Enables the DHCP server.
show ip dhcp server information - Displays the server information.
show ip dhcp server binding - Displays the DHCP server binding information.
show ip dhcp server information
This command displays the DHCP server information.
Syntaxshow ip dhcp server information
ModePrivileged EXEC
Example
-----------------------------------------------------------------------------(JGSM7224)# show ip dhcp server information
DHCP server status : Enable
Send Ping Packets : Disable
Debug level: None
Server Address Reuse Timeout : 5 secs
Next Server Address : 0.0.0.0
Boot file name : None
(JGSM7224)#
service dhcp - Enables the DHCP server.
ip dhcp next-server - Sets the next boot server in the DHCP server configuration
parameters.
ip dhcp bootfile - Sets the boot file name in the DHCP server configuration para meters.
ip dhcp - Sets the DHCP server parameters such as enabling the ICMP echo mechanism
or offer-reuse timeout.
show ip dhcp server pools
This command displays the DHCP server pools.
Syntaxshow ip dhcp server pools
ModePrivileged EXEC
Example
-----------------------------------------------------------------------------(JGSM7224)# show ip dhcp server pools
Pool Id : 1
------------------------------------------Subnet : 12.0.0.0
Subnet Mask : 255.0.0.0
Lease time : 180 secs
Start Ip : 12.0.0.1
End Ip : 12.255.255.254
Exclude Address Start IP : 12.0.0.1
Exclude Address End IP : 12.0.0.10
Pool Id : 2
------------------------------------------Subnet : 20.0.0.0
Subnet Mask : 255.0.0.0
Lease time : 7200 secs
Start Ip : 20.0.0.1
End Ip : 20.255.255.254
(JGSM7224)#
service dhcp - Enables the DHCP server.
ip dhcp pool - Creates a DHCP server address pool and places the user in the DHCP
pool configuration mode.
DHCP
72
Page 73
ProSafe Managed Switch
lease - Configures the duration of the lease for an IP address that is assigned from
JGSM7224 Dynamic Host Configuration Protocol (DHCP) Server to a DHCP client.
network - Sets the network IP and mask in DHCP server configuration parameters.
show ip dhcp server binding
This command displays the DHCP server binding information. Binding refers to the state of
binding. This can be offered, assigned, or probing. In offe red state the of fer is sent, but no req
has been received from the client. In assigned state the address is assigned to the client. In
probing state the address is currently being probed by the DHCP server.
Syntaxshow ip dhcp server binding
ModePrivileged EXEC
Example
-----------------------------------------------------------------------------(JGSM7224)# show ip dhcp server binding
Ip Hw Hw Alloc Expire Binding
Address Type Address Method Time State
service dhcp - Enables the DHCP server.
host hardware-type - Specifies the hardware address of a Dynamic Host Configuration
Protocol (DHCP) client.
ip dhcp option - Sets the DHCP server options.
show ip dhcp server statistics
This command displays the DHCP server statistics.
Syntaxshow ip dhcp server statistics
ModePrivileged EXEC
DHCP
73
Page 74
ProSafe Managed Switch
Example
-----------------------------------------------------------------------------(JGSM7224)# show ip dhcp server statistics
Address pools : 2
Message Received
service dhcp-server - Enables the DHCP server.
ip dhcp pool - Creates a DHCP server address pool and places the user in the DHCP
pool configuration mode.
ip dhcp - Sets the DHCP server parameters such as enabling the ICMP echo mechanism
or offer-reuse timeout.
show ip dhcp server pools - Displays the DHCP server pools.
DHCP
74
Page 75
7. DHCP L2 Relay
In some networks, DHCP servers rely on Relay Agent Information option appended by Relay
Agents for IP address and other parameter assignment policies. This works fine when end
hosts are directly connected to Relay Agents. In some network configurations, one or more
Layer 2 devices might reside between DHCP clients and Relay agent. In these network
scenarios, it is difficult to use the Relay Agent Information option for IP address and other
parameter assignment policies effectively. So there is a need for the device that is closest to
the end hosts to append a Relay Agent Information option in DHCP messages. These
devices are typically known as Layer 2 Relay Agents.
dhcp l2relay
This command enables or disables the DHCP l2 relay globally or on a specific interface.
show dhcp l2relay all - Displays all configuration of the DHCP l2 Relay
show dhcp l2relay interface - Displays the DHCP l2 Relay interface configuration
75
Page 76
ProSafe Managed Switch
dhcp l2relay vlan
This command enables or disables the DHCP l2 relay on a specific vlan.
Formatdhcp l2relay vlan <vlan_list>
no dhcp l2relay vlan <vlan_list>
ModeGlobal Configuration Mode
<vlan_list> - Enter VLAN IDs in range <1-4094>. Use '-' to specify a range, or ',' to
separate VLAN IDs in a list. Spaces and zeros are not permitted.
show dhcp l2relay all - Displays all configuration of the DHCP l2 Relay
show dhcp l2relay agent-option - Displays the DHCP l2 Relay agent-option
show dhcp l2relay vlan - Displays the DHCP l2 Relay vlan configuration
dhcp l2relay circuit-id
This command enables or disables the DHCP l2 relay circuit-id insertion of option 82 on a
specific vlan.
Formatdhcp l2relay circuit-id <vlan_list>
no dhcp l2relay circuit-id <vlan_list>
Mode
<vlan_list> - Enter VLAN IDs in range <1-4094>. Use '-' to specify a range, or ',' to
separate VLAN IDs in a list. Spaces and zeros are not permitted.
show dhcp l2relay all - Displays all configuration of the DHCP l2 Relay
show dhcp l2relay agent-option - Displays the DHCP l2 Relay agent-option
show dhcp l2relay circuit-id - Displays the DHCP l2 Relay circuit id configuration
dhcp l2relay remote-id
This command enables or disables the DHCP l2 relay remote-id insertion of option 82 on a
specific vlan. If it is disabled, the remote-id will not be added.
Formatdhcp l2relay remote-id <string> <vlan_list>
no dhcp l2relay remote-id <vlan_list>
Mode
Global Configuration Mode
<vlan_list> - Enter VLAN IDs in range <1-4094>. Use '-' to specify a range, or ',' to
separate VLAN IDs in a list. Spaces and zeros are not permitted.
<String> - Remote-id suboption string of n charaters(1-32)
show dhcp l2relay all - Displays all configuration of the DHCP l2 Relay
show dhcp l2relay agent-option - Displays the DHCP l2 Relay agent-option
show dhcp l2relay remote-id - Displays the DHCP l2 Relay remote ID configuration
show dhcp l2relay all - Displays all configuration of the DHCP l2 Relay
show dhcp l2relay interface - Displays the DHCP l2 Relay interface configuration
show dhcp l2relay all
This command shows the complete configuration of the DHCP l2 Relay.
Formatshow dhcp l2relay all
ModePrivileged Configuration Mode
Example
----------------------------------------------------------------------------(JGSM7224)# show dhcp l2relay all
dhcp l2relay - Configure the dhcp l2 relay globally or on specific interfaces
dhcp l2relay vlan - Configure the dhcp l2 relay on specific VLAN
dhcp l2relay circuit-id - Configures the dhcp l2 relay circuit id on specific VLAN
dhcp l2relay remote-id - Configures the dhcp l2 relay remote ID on specific VLAN
dhcp l2relay trust - Configures the dhcp l2 relay trust mode on specific interface
show dhcp l2relay agent-option
This command shows the DHCP l2 Relay agent-option.
dhcp l2relay vlan - Configure the dhcp l2 relay on specific VLAN
dhcp l2relay circuit-id - Configures the dhcp l2 relay circuit ID on specific VLAN
dhcp l2relay remote-id - Configures the dhcp l2 relay remote ID on specific VLAN
show dhcp l2relay circuit-id
This command shows the DHCP l2 Relay circuit-id enabled on a specific vlan.
dhcp l2relay - Configures the dhcp l2 relay globally or on specific interfaces
dhcp l2relay trust - Configures the dhcp l2 relay trust mode on specific interface
clear dhcp l2relay statistics
This command clears the DHCP l2 Relay interface statistics.
DHCP snooping is a DHCP security feature that filters untrusted DHCP messages and builds
and maintains a DHCP snooping binding table. An untrusted message is one that is received
from outside the network or firewall and that can cause traffic attacks within your network.
The DHCP snooping binding table contains the MAC address, IP address, lease time,
binding type, VLAN number , and interface information that corresponds t o the local untrusted
interfaces of a switch; it does not contain information regarding hosts interconnected with a
trusted interface. An untrusted interface is an interface that is configured to receive
messages from outside the network or firewall. A trusted interface is an interface that is
configured to receive only messages from within the network.
ip dhcp snooping
Use this command to enable or disable DHCP snooping globally . DHCP snooping cannot be
enabled with the DHCP server at the same time.
8
Formatip dhcp snooping
no ip dhcp snooping
ModeGlobal Configuration Mode
Example
----------------------------------------------------------------------------(JGSM7224)(config)# ip dhcp snooping
(JGSM7224)(config)#
<ucast_mac> - Enter the MAC address field of the binding.
<ucast_addr> - Enter the IPv4 address field of the binding.
<slot/port> - Enter interface in slot/port format.
Example
----------------------------------------------------------------------------(JGSM7224)(config)# ip dhcp snooping binding 00:11:22:33:44:55 vlan 1
show ip dhcp snooping database - Display the DHCP Snooping configuration related
to the database persistency
ip dhcp snooping database write-delay
Use this command to configure the interval in seconds at which the DHCP Snooping
database will be persisted. The interval value ranges from 15 to 86400 seconds.The no
command sets the value to the default (300).
show ip dhcp snooping database - Display the DHCP Snooping configuration related
to the database persistency
ip dhcp snooping limit
Use this command to control the rate at which the DHCP Snooping messages come. The
default rate is 15 pps with a range from 0 to 100 pps. The default burst level is 1 second with
a range of 1 to 15 seconds. The limit none will disable the control. The no form of the
command sets the limit to the default.
show ip dhcp snooping interfaces - Display the DHCP Snooping per port
configurations
show ip dhcp snooping
Use this command to display the DHCP Snooping global configurations.
Formatshow ip dhcp snooping
ModePrivileged Configuration Mode
Example
----------------------------------------------------------------------------(JGSM7224)# show ip dhcp snooping
DHCP Snooping Mode: Disabled
MAC Address Validation: Disabled
DHCP Snooping is configured on the following VLANs: 1-3
DHCP Snooping Debug: event bind
(JGSM7224)#
ip dhcp snooping - Configure the DHCP Snooping globally
ip dhcp snooping verify mac-address - Configure the DHCP Snooping verification
ip dhcp snooping vlan - Configure the DHCP Snooping on specific vlan
debug ip dhcp snooping - Configure the DHCP Snooping debug
show ip dhcp snooping binding
Use this command to display the DHCP Snooping binding entries.
Formatshow ip dhcp snooping binding
ModePrivileged Configuration Mode
Example
----------------------------------------------------------------------------(JGSM7224)# show ip dhcp snooping binding
MacAddress IpAddress VLAN Interface Type Lease(sec)
0011.2233.4455 192.168.0.25 1 0/1 Static
Total Number Of Bindings: 1
ip dhcp snooping database - Configure the persistent location of the DHCP Snooping
database
ip dhcp snooping database write-delay - Configure the interval in seconds at
which the DHCP Snooping database will be persisted
show ip dhcp snooping statistics
Use this command to list statistics for DHCP Snooping security violations on untrusted ports.
Formatshow ip dhcp snooping statistics
ModePrivileged Configuration Mode
DHCP Snooping
92
Page 93
ProSafe Managed Switch
Example
----------------------------------------------------------------------------(JGSM7224)# show ip dhcp snooping statistics
Interface MAC Verify Client Ifc DHCP Server
clear ip dhcp snooping statistics - Clear the DHCP snooping statistics
show ip dhcp snooping interfaces
Use this command to display the DHCP Snooping per port configurations.
Formatshow ip dhcp snooping interfaces
ModePrivileged Configuration Mode
DHCP Snooping
93
Page 94
ProSafe Managed Switch
Example
----------------------------------------------------------------------------(JGSM7224)# show ip dhcp snooping interfaces
Interface Trust State Logging-Invalid Rate Limit Burst Interval
Packets (pps) (seconds)
0/1 No Enabled 25 6
0/2 No Disabled 15 1
0/3 No Disabled 15 1
0/4 No Disabled 15 1
0/5 No Disabled 15 1
0/6 No Disabled 15 1
0/7 No Disabled 15 1
0/8 No Disabled 15 1
0/9 No Disabled 15 1
0/10 No Disabled 15 1
0/11 No Disabled 15 1
0/12 No Disabled 15 1
0/13 No Disabled 15 1
0/14 No Disabled 15 1
0/15 No Disabled 15 1
0/16 No Disabled 15 1
0/17 No Disabled 15 1
0/18 No Disabled 15 1
0/19 No Disabled 15 1
0/20 No Disabled 15 1
0/21 No Disabled 15 1
0/22 No Disabled 15 1
0/23 No Disabled 15 1
0/24 No Disabled 15 1
(JGSM7224)#
ip dhcp snooping limit - Configure the DHCP snooping packet control
ip dhcp snooping log-valid - Configure the DHCP snooping logging
ip dhcp snooping trust - Configure the DHCP snooping port mode
DHCP Snooping
94
Page 95
ProSafe Managed Switch
clear ip dhcp snooping binding
Use this command to clear all DHCP Snooping bindings on all interfaces or on a specific
interface.
Formatclear ip dhcp snooping binding [interface { <slot/port> |
port-channel <1-8>}] | [vlan <1-4094>]
ModePrivileged Configuration Mode
Example
----------------------------------------------------------------------------(JGSM7224)# clear ip dhcp snooping binding vlan 1
(JGSM7224)#
show ip dhcp snooping - Displays the DHCP snooping global
DHCP Snooping
96
Page 97
9. SNTP
SNTP is a protocol for synchronizing the clocks of computer systems over packet-switched,
variable-latency data networks. It is a simplified access strategy for servers and clients using
NTP as now specified and deployed in the Internet. The access paradigm is identical to the
UDP/TIME Protocol and, in fact, it should be easily possible to adapt a UDP/TIME client
implementation to operate using SNTP. Moreover, SNTP is also designed to operate in a
dedicated server configuration including an integrated radio clock.
This command sets the listening port for the SNTP client greater than 1024, since below
1024 is reserved. Therefore the configurable listening port for a SNTP client starts at 1025.
The no form of command deletes the listening port for the SNTP client and sets the default
value. The SNTP client should be enabled.
Default123
Syntaxsntp client port <portno(1025-65535)>
no sntp client port
ModeSNTP Configuration
port no - Listening
port
for SNTP
client
SNTP
98
Page 99
ProSafe Managed Switch
Example
-----------------------------------------------------------------------------(JGSM7224)(config-sntp)# sntp client port 1026
This command sets the system time zone with respect to UTC. The no form of command
resets the system time zone to GMT. The SNTP server must be enabled prior to the
execution of this command.
Syntaxclock timezone <+/- UTC TimeDiff in Hrs:UTC TimeDiff in Min>
no clock timezone
ModeSNTP Configuration
SNTP
99
Page 100
ProSafe Managed Switch
+/- - After or before UTC.
UTC TimeDiff in Hrs - UTC Time difference in hours
UTC TimeDiff in Min - UTC Time difference in minutes