beautypg.com

4 default gateway, 5 ip lease time, 4 default gateway 8.8.1.5 ip lease time – Siemens S223 User Manual

Page 241: Default gateway, Ip lease time

background image

User Manual UMN:CLI
SURPASS hiD 6615 S223/S323 R1.5

A50010-Y3-C150-2-7619 241

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

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-router 100.1.1.254

SWITCH(config-dhcp[sample])# range 100.1.1.1 100.1.1.100

SWITCH(config-dhcp[sample])#

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.4 Default

Gateway

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

Command Mode

Description

default-router

A.B.C.D1

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

Specifies a default gateway of the DHCP pool.
A.B.C.D: default gateway IP address

no default-router

A.B.C.D1

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

Deletes a specified default gateway.

no default-router all

DHCP Pool

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-router 100.1.1.254

SWITCH(config-dhcp[sample])#

8.8.1.5

IP 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)

lease-time max

<120-2147483637>

Sets maximum IP lease time in the unit
of second. (default: 3600)

no lease-time

{default | max}

DHCP Pool

Deletes specified IP lease time.

i

!

This manual is related to the following products: