beautypg.com

6 dns server, 7 manual binding, 6 dns server 8.8.1.7 manual binding – Siemens S223 User Manual

Page 242: Dns server, Manual binding

background image

UMN:CLI User Manual

SURPASS hiD 6615 S223/S323 R1.5

242 A50010-Y3-C150-2-7619

The following is an example of setting default and maximum IP lease time.

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])# lease-time default 5000

SWITCH(config-dhcp[sample])# lease-time max 10000

SWITCH(config-dhcp[sample])#

8.8.1.6 DNS

Server

To specify a DNS server to inform DHCP clients, use the following command.

Command Mode

Description

dns-server

A.B.C.D1

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

Specifies a DNS server. Up to 8 DNS servers are pos-
sible.
A.B.C.D: DNS server IP address

no dns-server

A.B.C.D1

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

Deletes a specified DNS server.

no dns-server

all

DHCP Pool

Deletes all the specified DNS servers.

The following is an example of specifying a DNS server.

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])# lease-time default 5000

SWITCH(config-dhcp[sample])# lease-time max 10000

SWITCH(config-dhcp[sample])# dns-server 200.1.1.1 200.1.1.2 200.1.1.3

SWITCH(config-dhcp[sample])#

If you want to specify a DNS server for all the DHCP pools, use the dns server command.
For more information, see Section 6.1.9.

8.8.1.7 Manual

Binding

To manually assign a static IP address to a DHCP client who has a specified MAC ad-
dress, use the following command.

Command Mode

Description

fixed-address

A.B.C.D

MAC-ADDRESS

Assigns a static IP address to a DHCP client.
A.B.C.D: static IP address
MAC-ADDRESS: MAC address

no fixed-address

A.B.C.D

DHCP Pool

Deletes a specified static IP assignment.

i

This manual is related to the following products: