DXS-3600-32S CLI Reference Guide


Add to my manuals
596 Pages

advertisement

DXS-3600-32S CLI Reference Guide | Manualzz

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

DHCP Server Commands

14-1 bootfile

This command is used to define the startup mapping file name of the DHCP client in the DHCP address pool configuration mode. The no form of this command can be used to remove the definition.

bootfile file-name

no bootfile

Parameters

file-name

Specifies the startup file name.

Default

No startup file name is defined, by default.

Command Mode

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

Some DHCP clients need to download the operating system and the configuration file during the startup. The DHCP server should provide the mapping file name required for the startup, so that DHCP clients can download the file from the corresponding server (such as TFTP). The servers are defined by the next-server command.

Example

This example shows how to define the ‘device.conf’ file as the startup file name.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#bootfile device.conf

DXS-3600-32S(dhcp-config)#

14-2 default-router

This command is used to define the default gateway of the DHCP client in the DHPC address pool configuration mode.

The no form of this command can be used to delete the definition of the default gateway.

default-router ip-address [ip-address2 [ip-address3]]

no default-router

Parameters

ip-address ip-address2 ip-address3

Specifies to define the IP address of the equipment. It is required to configure one IP address at least.

(Optional) Up to 3 gateways can be configured.

Default

No gateway is defined by default.

Command Mode

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

In general, the DHCP client should get the information of the default gateway from the DHCP server. The DHCP server should specify one gateway address for the client at least, and this address should be of the same network segment as the address assigned to the client.

184

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to define 192.168.12.1 as the default gateway.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#default-router 192.168.12.1

DXS-3600-32S(dhcp-config)#

14-3 dns-server

This command is used to define the DNS server of the DHCP client in the DHPC address pool configuration mode. The no form of this command can be used to delete the definition of the DNS server.

dns-server ip-address [ip-address2 [ip-address3]]

no dns-server

Parameters

ip-address ip-address2 ip-address3

Specifies to define the IP address of the DNS server. At least one IP address should be configured.

(Optional) Up to 3 DNS servers can be configured.

Default

No DNS server is defined by default.

Command Mode

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

Define the DNS server for the DHCP client.

Example

This example shows how to specify the DNS server 192.168.12.3 for the DHCP client.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#dns-server 192.168.12.3

DXS-3600-32S(dhcp-config)#

14-4 domain-name

This command is used to define the suffix domain name of the DHCP client in the DHPC address pool configuration mode. The no form of this command can be used to delete the suffix domain name.

domain-name domain-name

no domain-name

Parameters

domain-name

Specifies to define the suffix domain name string of the DHCP client.

Default

No suffix domain name by default.

Command Mode

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

After the DHCP client obtains a specified suffix domain name, it can access a host with the same suffix domain name by the host name directly.

185

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to define the suffix domain name ‘domain.com’ for the

DHCP client.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#domain-name domain.com

DXS-3600-32S(dhcp-config)#

14-5 hardware-address

This command is used to define the hardware address of the DHCP client in the DHPC address pool configuration mode. The no form of this command can be used to delete the definition of the hardware address.

hardware-address hardware-address type

no hardware-address

Parameters

hardware-address type

Specifies to define the MAC address of the DHCP client.

Specifies the hardware platform protocol of the DHCP client. Use the string definition or digits definition.

String option:

• Ethernet

• ieee802

Digits option:

• 1 (10M Ethernet)

• 6 (IEEE 802)

Default

Command Mode

No hardware address is defined by default. If there is no option when the hardware address is defined, it is the Ethernet by default.

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

This command can be used only when the DHCP is defined by manual binding.

Example

This example shows how to define the MAC address 00d0.f838.bf3d with the type ethernet.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#hardware-address 00d0.f838.bf3d

DXS-3600-32S(dhcp-config)#

14-6 host

This command is used to define the IP address and network mask of the DHCP client host in the DHCP address pool configuration mode. The no form of this command can be used to delete the definition of the IP address and network mask for the DHCP client.

host ip-address [netmask]

no host

Parameters

ip-address netmask

Specifies to the IP address of the DHCP client.

Specifies to define the network mask of DHCP client.

186

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Default

Command Mode

No IP address or network mask of the host is defined.

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

If the network mask is not defined definitely, the DHCP server will use the natural network mask of this IP address: 255.0.0.0 for class A IP address, 255.255.0 for class B IP address, and 255.255.255.0 for class C IP address.

This command can be used only when the DHCP is defined by manual binding.

Example

This example shows how to set the client IP address as 192.168.12.91 and the network mask as 255.255.255.240.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#host 192.168.12.91 255.255.255.240

DXS-3600-32S(dhcp-config)#

14-7 ip dhcp excluded-address

This command is used to define some IP addresses and make the DHCP server not assign them to the DHCP client in the global configuration mode. The no form of this command can be used to cancel this definition.

ip dhcp excluded-address low-ip-address [high-ip-address]

no ip dhcp excluded-address low-ip-address [high-ip-address]

Parameters

low-ip-address high-ip-address

Specifies to exclude the IP address, or exclude the start IP address within the range of the IP address.

Specifies to exclude the end IP address within the range of the IP address.

Default

No excluded address is defined.

Command Mode

Global Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

If the excluded IP address is not configured, the DHCP server attempts to assign all

IP addresses in the DHCP address pool. This command can reserve some IP addresses for specific hosts to prevent these addresses are assigned to the DHCP client, and define the excluded IP address accurately to reduce the conflict detecting time when the DHCP server assigns the address.

Example

In the configuration example below, the DHCP server will not attempt to assign the

IP addresses within 192.168.12.100~150.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp excluded-address 192.168.12.100 192.168.12.150

DXS-3600-32S(config)#

14-8 ip dhcp ping packet

This command is used to configure the times of pinging the IP address when the DHCP server detects address conflict in the global configuration mode. The no form of this command is used to restore it to the default configuration.

ip dhcp ping packet [number]

no ip dhcp ping packet

187

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Parameters

number

(Optional) Specifies the number of packets in the range of 0 to 10, where 0 indicates disabling the ping operation. The Ping operation sends two packets by default.

Default

Command Mode

The Ping operation sends two packets by default.

Global Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

When the DHCP server attempts to assign the IP address from the DHCP address pool, use the ping operation to check whether this address is occupied by other hosts. Record it if the address is occupied, otherwise, assign it to the DHCP client.

The Ping operation will send up to 10 packets, two packets by default.

Example

This example shows how to set the number of the packets, sent by the ping operation as 3.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp ping packet 3

DXS-3600-32S(config)#

14-9 ip dhcp ping timeout

This command is used to configure the timeout that the DHCP server waits for response when it uses the ping operation to detect the address conflict in the global configuration mode. The no form of this command can be used to restore it to the default configuration.

ip dhcp ping timeout milli-seconds

no ip dhcp ping timeout

Parameters

milli-seconds

Specifies the time that the DHCP server waits for ping response in the range 10 to

2000 milliseconds.

Default

Command Mode

The default timeout is 100 milliseconds.

Global Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

This command defines the time that the DHCP server waits for a ping response packet.

Example

In the configuration example below, the waiting time of the ping response packet is

600ms.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp ping timeout 600

DXS-3600-32S(config)#

14-10 ip dhcp pool

This command is used to define a name of the DHCP address pool and enter into the DHCP address pool configuration mode in the global configuration mode. The no form of this command can be used to delete the DHCP address pool.

ip dhcp pool pool-name

no ip dhcp pool pool-name

188

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Parameters

pool-name

Specifies a string of characters and positive integers, for instance, mypool or 1.

Default

Command Mode

No DHCP address pool is defined by default.

Global Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

Execute the command to enter into the DHCP address pool configuration mode, in this configuration mode, configure the IP address range, the DNS server and the default gateway.

Example

This example shows how to define a DHCP address pool with the name ‘mypool0’.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool mypool0

DXS-3600-32S(dhcp-config)#

14-11 lease

This command is used to define the lease time of the IP address that the DHCP server assigns to the client in the

DHCP address pool configuration mode. The no form of this command can be used to restore it to the default configuration.

lease {days [hours] [minutes] | infinite}

no lease

Parameters

days hours minutes

infinite

Specifies the lease time in days.

(Optional) Specifies the lease time in hours. It is necessary to define the days before defining the hours.

(Optional) Specifies the lease time in minutes. It is necessary to define the days and hours before defining the minutes.

Specifies an infinite lease time used.

Default

The lease is 1 days, by default.

Command Mode

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

When the lease is getting near to expire, the DHCP client will send the request of renewal of lease. In general, the DHCP server will allow the renewal of lease of the original IP address.

Example

This example shows how to set the DHCP lease to 1 hour.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#lease 0 1

DXS-3600-32S(dhcp-config)#

Example

This example shows how to set the DHCP lease to 1 minute.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#lease 0 0 1

DXS-3600-32S(dhcp-config)#

189

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

14-12 netbios-name-server

This command is used to configure the WINS name server of the Microsoft DHCP client NETBIOS in the DHCP address pool configuration mode. The no form of this command can be used to delete the WINS server.

netbios-name-server ip-address [ip-address2 [ip-address3]]

no netbios-name-server

Parameters

ip-address ip-address2 ip-address3

Specifies the IP address of the WINS server. It is required to configure one IP address at least.

(Optional) Specifies the IP addresses of WINS servers. Up to 3 WINS servers can be configured.

Default

Command Mode

No WINS server is defined, by default.

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

When more than one WINS server is defined, the former has higher priory. The

DHCP client will select the next WINS server only when its communication with the former WINS server fails.

Example

This example shows how to specify the WINS server 192.168.12.3 for the DHCP client.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#netbios-name-server 192.168.12.3

DXS-3600-32S(dhcp-config)#

14-13 netbios-node-type

This command is used to define the node type of the master NetBIOS of the Microsoft DHCP client in the DHCP address configuration mode. The no form of this command can be used to delete the configuration of the NetBIOS node type.

netbios-node-type type

no netbios-node-type

Parameters

type

Specifies the type of node in two modes: Digit in hexadecimal form in the range of 0 to FF.

Only the following numerals are available:

1: b-node.

2: p-node.

4: m-node.

8: h-node.

String:

b-node: broadcast node

p-node: peer-to-peer node

m-node: mixed node

h-node: hybrid node

190

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Default

Command Mode

No type of the NetBIOS node is defined, by default.

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

There are 4 types of the NetBIOS nodes of the Microsoft DHCP client:

1) Broadcast, which carries out the NetBIOS name resolution by the broadcast method,

2) Peer-to-peer, which directly requests the WINS server to carry out the

NetBIOS name resolution,

3) Mixed, which requests the name resolution by the broadcast method firstly, and then carry out the name resolution by the WINS server connection,

4) Hybrid, which requests the WINS server to carry out the NetBIOS name resolution firstly, and it will carry out the NetBIOS name resolution by the broadcast method if the response is not received.

By default, the node type for Microsoft operating system is broadcast or hybrid. If the

WINS server is not configured, broadcast node is used. Otherwise, hybrid node is used. It is recommended to set the type of the NetBIOS node as Hybrid.

Example

This example shows how to set the NetBIOS node of Microsoft DHCP client as

Hybrid.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#netbios-node-type h-node

DXS-3600-32S(dhcp-config)#

14-14 network

This command is used to define the network number and network mask of the DHCP address pool in the DHCP address pool configuration mode. The no form of this command can be used to delete the definition.

network net-number net-mask

no network

Parameters

net-number net-mask

Specifies the network number of the DHCP address pool

Specifies the network mask of the DHCP address pool. If the network mask is not defined, the natural network mask will be used by default.

Default

No network number or network mask is defined by default.

Command Mode

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

This command defines the subnet and subnet mask of a DHCP address pool, and provides the DHCP server with an address space which can be assigned to the clients. Unless excluded addresses are configured, all the addresses of the DHCP address pool can be assigned to the clients. The DHCP server assigns the addresses in the address pool orderly. If the DHCP server found an IP address is in the DHCP binding table or in the network segment, it checks the next until it assigns an effective IP address.

The show ip dhcp binding command can be used to view the address assignment, and the show ip dhcp conflict command can be used to view the address conflict detection configuration.

191

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to define the network number of the DHCP address pool as 192.168.12.0, and the network mask as 255.255.255.240.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#network 192.168.12.0 255.255.255.240

DXS-3600-32S(dhcp-config)#

14-15 next-server

This command is used to define the startup server that the DHCP client accesses during startup in the DHCP address configuration mode. The no form of this command can be used to delete the definition of the startup server list.

next-server ip-address

no next-server

Parameters

ip-address

Specifies to define the IP address of the startup server, which is usually the TFTP server. It is required to configure one IP address at least.

Default

Command Mode

None.

DHCP Address Pool Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

Define the next server for the DHCP client.

Example

This example shows how to specify the startup server 192.168.12.4 for the DHCP client.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#ip dhcp pool pool1

DXS-3600-32S(dhcp-config)#next-server 192.168.12.4

DXS-3600-32S(dhcp-config)#

14-16 service dhcp

This command is used to enable the DHCP service (include DHCP server and DHCP relay) on the device in the global configuration mode. The no form of this command can be used to disable the DHCP service.

service dhcp no service dhcp

Parameters

Default

None.

By default, this option is disabled.

Command Mode

Global Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

The DHCP server can assign the IP addresses to the clients automatically, and provide them with the network configuration information such as DNS server and default gateway. The DHCP relay can forward the DHCP requests to other servers, and the returned DHCP responses to the DHCP client, serving as the relay for

DHCP packets.

192

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to enable the DHCP server and the DHCP relay feature.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#service dhcp

DXS-3600-32S(config)#

14-17 clear ip dhcp binding

This command is used to clear the DHCP binding table.

clear ip dhcp binding {* | ip-address}

Parameters

* ip-address

Specifies to delete all DHCP bindings.

Specifies to delete the binding of the specified IP addresses.

Default

Command Mode

None.

Privileged Mode.

Command Default Level

Level: 2

Usage Guideline

This command can only clear the automatic DHCP binding, but the manual DHCP binding can be deleted by the no ip dhcp pool command.

Example

This example shows how to clear the DHCP binding with the IP address

192.168.12.100.

DXS-3600-32S#clear ip dhcp binding 192.168.12.100

DXS-3600-32S#

14-18 clear ip dhcp conflict

This command is used to clear the DHCP address conflict record.

clear ip dhcp conflict {* | ip-address}

Parameters

* ip-address

Specifies to delete all DHCP address conflict records.

Specifies to delete the conflict record of the specified IP addresses.

Default

None.

Command Mode

Privileged Mode.

Command Default Level

Level: 2

Usage Guideline

The DHCP server uses the ping session to detect the address conflict, while the

DHCP client uses the address resolution protocol (ARP) to detect the address conflict. The clear ip dhcp conflict can be used to delete the history conflict record.

Example

This example shows how to clear all address conflict records.

DXS-3600-32S#clear ip dhcp conflict *

DXS-3600-32S#

193

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

14-19 show ip dhcp binding

This command is used to show the binding condition of the DHCP address.

show ip dhcp binding [ip-address]

Parameters

ip-address

(Optional) Specifies to only show the binding condition of the specified IP addresses.

Default

Command Mode

None.

Privileged Mode.

Command Default Level

Level: 2

Usage Guideline

If the IP address is not defined, show the binding condition of all addresses. If the IP address is defined, show the binding condition of this IP address.

Example

This example shows how to the result of the show ip dhcp binding command.

DXS-3600-32S#show ip dhcp binding

IP Address Hardware Address Lifetime Type

------------ ---------------- ----------- ----------

192.168.12.91 00-D0-F8-38-BF-3D Infinite Manual

Total Entries: 1

DXS-3600-32S#

Display Parameters

IP Address

Hardware Address

Lifetime

Type

Description

The IP address to be assigned to the DHCP client.

The hardware address of the DHCP client.

The expiration date of the lease. The Infinite indicates it is not limited by the time.

The type of the address binding. The Automatic indicates an IP address is assigned automatically, and the Manual indicates an IP address is assigned by manual.

14-20 show ip dhcp conflict

This command is used to show the conflict history record of DHCP server.

show ip dhcp conflict

Parameters

Default

None.

None.

Command Mode

Privileged Mode.

Command Default Level

Level: 2

Usage Guideline

This command can show the conflict address list and excluded address list detected by the DHCP server.

194

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows the output result of the show ip dhcp conflict command.

DXS-3600-32S#show ip dhcp conflict

IP Address Detection Method Detection Time

------------ ---------------- ----------------

192.168.12.1 Ping 2011/12/16 17:06:59

Total Entries: 0

DXS-3600-32S#

Display Parameters

IP Address

Detection Method

Detection Time

Description

The IP addresses which cannot be assigned to the DHCP client.

The conflict detection method.

The conflict detection time.

195

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement

Table of contents