User Manual

UMN:CLI

SURPASS hiD 6615 S223/S323 R1.5

 

 

 

 

 

The following is an example for specifying the range of IP addresses.

SWITCH(config)# service dhcp SWITCH(config)# ip dhcp pool SWITCH(config-dhcp[sample])# SWITCH(config-dhcp[sample])# SWITCH(config-dhcp[sample])# SWITCH(config-dhcp[sample])#

sample

network 100.1.1.0/24 default-router100.1.1.254 range 100.1.1.1 100.1.1.100

i

!

You can also specify several inconsecutive ranges of IP addresses in a single DHCP pool, e.g. 100.1.1.1 to 100.1.1.62 and 100.1.1.129 to 100.1.1.190.

When specifying a range of IP address, the start IP address must be prior to the end IP address.

8.8.1.4Default Gateway

To specify a default gateway of the DHCP pool, use the following command.

Command

Mode

Description

 

 

 

default-router A.B.C.D1

 

Specifies a default gateway of the DHCP pool.

[A.B.C.D2] [A.B.C.D8]

 

A.B.C.D: default gateway IP address

 

DHCP Pool

 

no default-router A.B.C.D1

Deletes a specified default gateway.

[A.B.C.D2] [A.B.C.D8]

 

 

 

 

 

 

no default-router all

 

Deletes all the specified default gateways.

 

 

 

The following is an example of specifying the default gateway 100.1.1.254.

SWITCH(config)# service dhcp

SWITCH(config)# ip dhcp pool sample

SWITCH(config-dhcp[sample])# network 100.1.1.0/24

SWITCH(config-dhcp[sample])# default-router100.1.1.254

SWITCH(config-dhcp[sample])#

8.8.1.5IP Lease Time

Basically, the DHCP server leases an IP address in the DHCP pool to DHCP clients, which will be automatically returned to the DHCP pool when it is no longer in use or ex- pired by IP lease time.

To specify IP lease time, use the following command.

Command

Mode

Description

 

 

 

lease-time default <120-2147483637>

 

Sets default IP lease time in the unit of

 

second. (default: 3600)

 

 

 

DHCP Pool

 

lease-time max <120-2147483637>

Sets maximum IP lease time in the unit

 

of second. (default: 3600)

 

 

 

 

 

no lease-time {default max}

 

Deletes specified IP lease time.

 

 

 

A50010-Y3-C150-2-7619

241

Page 241
Image 241
Siemens S223, S323 user manual Default Gateway, IP Lease Time, Following is an example of specifying the default gateway