Siemens S323, S223 DNS Server, Manual Binding, Following is an example of specifying a DNS server

Models: S323 S223

1 381
Download 381 pages 49.11 Kb
Page 242
Image 242

UMN:CLI

User Manual

 

SURPASS hiD 6615 S223/S323 R1.5

 

 

 

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

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

8.8.1.6DNS Server

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

Command

Mode

Description

 

 

 

dns-server A.B.C.D1

 

Specifies a DNS server. Up to 8 DNS servers are pos-

 

sible.

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

 

 

A.B.C.D: DNS server IP address

 

DHCP Pool

 

 

no dns-server A.B.C.D1

Deletes a specified DNS server.

 

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

 

 

 

 

 

 

no dns-server all

 

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-router100.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-server200.1.1.1 200.1.1.2 200.1.1.3

SWITCH(config-dhcp[sample])#

i

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.7Manual 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

 

Assigns a static IP address to a DHCP client.

 

A.B.C.D: static IP address

MAC-ADDRESS

DHCP Pool

MAC-ADDRESS: MAC address

 

 

 

 

 

no fixed-address A.B.C.D

 

Deletes a specified static IP assignment.

 

 

 

242

A50010-Y3-C150-2-7619

Page 242
Image 242
Siemens S323 DNS Server, Manual Binding, Following is an example of specifying a DNS server, 242 A50010-Y3-C150-2-7619