![MRV Communications OptiSwitch-2400/L3 User Manual Download Page 124](http://html1.mh-extra.com/html/mrv-communications/optiswitch-2400-l3/optiswitch-2400-l3_user-manual_1846068124.webp)
OptiSwitch 2400/L3
CLI
Commands
C
HAPTER
5
116
DHCP Commands
Command enable|disable
Description
Enables and disables the DHCP server.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400(config-dhcp)# enable
OS2400(config-dhcp)#
Command default-lease-time
value
Description
Enables you to configure the default lease time for a host IP
address.
Syntax
Description
value
:
The amount of time in seconds.
No Form
no default-lease-time
:
Enables you to
delete the default lease
time.
Example
OS2400(config-dhcp)# default-lease-time 12
OS2400(config-dhcp)#
Command dns
IPV_4 address
Description
Defines the domain name server address for DHCP clients.
Syntax
Description
IPV_4 address
:
Specifies the IP address of the domain name
server.
No Form
no dns
IPV_4 address
:
Enables you to
delete the domain name
server address.
Example
OS2400(config-dhcp)# dns 188.178.76.2
OS2400(config-dhcp)#
Command domain
name
Description
Specifies the domain name for DHCP clients.
Syntax
Description
name
: Specifies the domain name of the client.
No Form
no domain
:
Enables you to
delete the domain name.
Example
OS2400(config-dhcp)# domain
NAME The domain name (e.g. opticalaccess.com)
OS2400(config-dhcp)# domain hello.com