24-DHCP Command

Download

Table of Contents

Chapter 1 DHCP Server Configuration Commands. 1-1

1.1 DHCP Server Configuration Commands. 1-1

1.1.1 accounting domain. 1-1

1.1.2 bims-server 1-2

1.1.3 bootfile-name. 1-3

1.1.4 dhcp enable. 1-3

1.1.5 dhcp select global 1-4

1.1.6 dhcp select interface. 1-6

1.1.7 dhcp server bims-server 1-7

1.1.8 dhcp server bootfile-name. 1-8

1.1.9 dhcp server detect 1-9

1.1.10 dhcp server dns-list 1-10

1.1.11 dhcp server domain-name. 1-12

1.1.12 dhcp server expired. 1-13

1.1.13 dhcp server forbidden-ip. 1-14

1.1.14 dhcp server ip-pool 1-16

1.1.15 dhcp server nbns-list 1-17

1.1.16 dhcp server netbios-type. 1-18

1.1.17 dhcp server option. 1-19

1.1.18 dhcp server ping. 1-21

1.1.19 dhcp server relay information enable. 1-22

1.1.20 dhcp server static-bind. 1-22

1.1.21 dhcp server tftp-server domain-name. 1-24

1.1.22 dhcp server tftp-server ip-address. 1-25

1.1.23 dhcp server voice-config. 1-26

1.1.24 display dhcp server conflict 1-27

1.1.25 display dhcp server expired. 1-28

1.1.26 display dhcp server free-ip. 1-29

1.1.27 display dhcp server ip-in-use. 1-30

1.1.28 display dhcp server statistics. 1-31

1.1.29 display dhcp server tree. 1-33

1.1.30 dns-list 1-35

1.1.31 domain-name. 1-35

1.1.32 expired. 1-36

1.1.33 gateway-list 1-37

1.1.34 nbns-list 1-38

1.1.35 netbios-type. 1-39

1.1.36 network. 1-40

1.1.37 option. 1-41

1.1.38 reset dhcp server conflict 1-42

1.1.39 reset dhcp server ip-in-use. 1-42

1.1.40 reset dhcp server statistics. 1-43

1.1.41 static-bind client-identifier 1-43

1.1.42 static-bind ip-address. 1-44

1.1.43 static-bind mac-address. 1-45

1.1.44 tftp-server domain-name. 1-46

1.1.45 tftp-server ip-address. 1-47

1.1.46 voice-config. 1-48

Chapter 2 DHCP Relay Agent Configuration Commands. 2-1

2.1 DHCP Relay Agent Configuration Commands. 2-1

2.1.1 address-check. 2-1

2.1.2 dhcp-relay hand. 2-2

2.1.3 dhcp relay information enable. 2-2

2.1.4 dhcp relay information strategy. 2-3

2.1.5 dhcp-security static. 2-4

2.1.6 dhcp-security tracker 2-5

2.1.7 dhcp-server 2-6

2.1.8 dhcp-server detect 2-7

2.1.9 dhcp-server ip. 2-8

2.1.10 display dhcp-security. 2-9

2.1.11 display dhcp-server 2-10

2.1.12 display dhcp-server interface. 2-11

2.1.13 reset dhcp-server 2-12

Chapter 3 DHCP Snooping Configuration Commands. 3-1

3.1 DHCP Snooping Configuration Commands. 3-1

3.1.1 dhcp-snooping. 3-1

3.1.2 dhcp-snooping information enable. 3-2

3.1.3 dhcp-snooping information format 3-2

3.1.4 dhcp-snooping information packet-format 3-3

3.1.5 dhcp-snooping information remote-id. 3-4

3.1.6 dhcp-snooping information strategy. 3-4

3.1.7 dhcp-snooping information vlan circuit-id. 3-6

3.1.8 dhcp-snooping information vlan remote-id. 3-7

3.1.9 dhcp-snooping trust 3-8

3.1.10 display dhcp-snooping. 3-9

3.1.11 display dhcp-snooping trust 3-9

3.1.12 display ip source static binding. 3-10

3.1.13 ip check source ip-address. 3-11

3.1.14 ip source static binding. 3-12

Chapter 4 Rate Limit Configuration Commands. 4-1

4.1 Rate Limit Configuration Commands. 4-1

4.1.1 dhcp protective-down recover enable. 4-1

4.1.2 dhcp protective-down recover interval 4-1

4.1.3 dhcp rate-limit 4-2

4.1.4 dhcp rate-limit enable. 4-3

Chapter 5 DHCP/BOOTP Client Configuration. 5-1

5.1 DHCP Client Configuration Commands. 5-1

5.1.1 display dhcp client 5-1

5.1.2 ip address dhcp-alloc. 5-2

5.2 BOOTP Client Configuration Commands. 5-3

5.2.1 display bootp client 5-3

5.2.2 ip address bootp-alloc. 5-4

 


Chapter 1  DHCP Server Configuration Commands

 

&  Note:

l      Support for assigning a TFTP server address and bootfile name from the DHCP server to the client with auto-configuration function is a new feature in this manual. For specific commands, see bootfile-name, dhcp server bootfile-name, dhcp server tftp-server domain-name, dhcp server tftp-server ip-address, tftp-server domain-name, and tftp-server ip-address.

l      DHCP-snooping option 82 is a new feature in this manual. For specific commands, see dhcp-snooping information enable to dhcp-snooping information vlan remote-id.

l      IP filtering is a new feature in this manual. For specific commands, see display ip source static binding, ip check source ip-address, and ip source static binding.

l      DHCP packet rate limit is a new feature in this manual. For specific commands, see Rate Limit Configuration Commands.

 

1.1  DHCP Server Configuration Commands

1.1.1  accounting domain

Syntax

accounting domain domain-name

undo accounting domain

View

DHCP address pool view

Parameters

domain-name: Name of a domain, a string of 1 to 24 characters. (You can use the domain command to create a domain.)

Description

Use the accounting domain command to enable the DHCP accounting function.

Use the undo accounting domain command to disable the DHCP accounting function.

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Enter DHCP address pool view.

[Sysname] dhcp server ip-pool test

# Enable the DHCP accounting function (assuming that domain 123 already exists).

[Sysname-dhcp-pool-test] accounting domain 123

1.1.2  bims-server

Syntax

bims-server ip ip-address [ port port-number ] sharekey key

undo bims-server

View

DHCP address pool view

Parameters

ip ip-address: Specifies the IP address of the remote BIMS server.

port port-number: Specifies the port number of the remote BIMS. The port-number argument ranges from 1 to 65534.

sharekey key: Specifies the shared key of the remote BIMS server. The key argument is a string containing 1 to 16 characters. It cannot be null.

Description

Use the bims-server command to specify the IP address, port number, and shared key of a BIMS server in the DHCP global address pool for the client.

Use the undo bims-server command to remove specified BIMS server information from the DHCP global address pool.

By default, the related information of the BIMS server is not specified.

If you execute the bims-server command repeatedly, the latest configuration will overwrite the previous one.

Related commands: dhcp server bims-server.

Examples

# Specify the IP address 192.168.0.1, port number 651, shared key aaa of the BIMS server in the DHCP global address pool for the client.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] dhcp server ip-pool test

[Sysname-dhcp-pool-test] bims-server ip 192.168.0.1 port 651 sharekey aaa

1.1.3  bootfile-name

Syntax

bootfile-name bootfile-name

undo bootfile-name

View

DHCP address pool view

Parameters

bootfile-name: Boot file name (with the extension name .cfg), a string of 1 to 63 characters.

Description

Use the bootfile-name command to specify a bootfile name in the DHCP global address pool for the client.

Use the undo bootfile-name command to remove the specified bootfile name from the DHCP global address pool.

By default, no bootfile name is specified.

If you execute the bootfile-name command repeatedly, the latest configuration will overwrite the previous one.

Examples

# Specify the bootfile name aaa.cfg in DHCP global address pool 0 for the client..

<Sysname> system-view

Enter system view, return to user view with Ctrl+Z.

[Sysname] dhcp server ip-pool 0

[Sysname-dhcp-ip-pool-0] bootfile-name aaa.cfg

1.1.4  dhcp enable

Syntax

dhcp enable

undo dhcp enable

View

System view

Parameters

None

Description

Use the dhcp enable command to enable DHCP.

Use the undo dhcp enable command to disable DHCP.

By default, DHCP is enabled.

Note that: You need to enable DHCP before performing other DHCP-related configurations.

 

&  Note:

To improve security and avoid malicious attacks to the unused sockets, S5600 Ethernet switches provide the following functions:

UDP ports 67 and 68 used by DHCP are enabled/disabled only when DHCP is enabled/disabled.

The implementation is as follows:

l      After DHCP is enabled by executing the dhcp enable command, if the DHCP server and DHCP relay functions are not configured, UDP port 67 and UDP port 68 ports is kept disabled; if the DHCP server and DHCP relay functions are configured, UDP 67 and UDP 68 ports are enabled.

l      After DHCP is disabled by executing the undo dhcp enable command, even if the DHCP server and DHCP relay functions are configured, UDP port 67 and UDP port 68 ports is disabled.

 

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Enable DHCP.

[Sysname] dhcp enable

1.1.5  dhcp select global

Syntax

VLAN interface view:

dhcp select global

undo dhcp select

System view:

dhcp select global { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp select { interface interface-type interface-number [ to interface-type interface-number ] | all }

View

System view, VLAN interface view

Parameters

interface interface-type interface-number [ to interface-type interface-number ]: Specifies the interface(s) to operate in global address pool mode. The interface-type argument specifies an interface type; the interface-number argument specifies an interface number; the interface interface-type interface-number [ to interface-type interface-number ] keyword and argument combination specifies an interface range.

all: Specifies all interfaces to operate in global address pool mode.

Description

Use the dhcp select global command to configure the specified interface(s) or all interfaces to operate in global DHCP address pool mode. Upon receiving a DHCP packet from a DHCP client through an interface operating in global DHCP address pool mode, the DHCP server chooses an IP address from a global DHCP address pool of the DHCP server and assigns the address to the DHCP client.

Use the undo dhcp select command to restore the default DHCP packet processing mode.

By default, an interface operates in DHCP server global address pool mode.

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Configure VLAN-interface 1 through VLAN-interface 3 to operate in global DHCP address pool mode, so that when a DHCP packet is received from a DHCP client on one of these interfaces, the DHCP server assigns an IP address from a global DHCP address pool to the DHCP client.

[Sysname] dhcp select global interface vlan-interface 1 to vlan-interface 3

# Configure all interfaces to operate in global DHCP address pool mode, so that when a DHCP packet is received from a DHCP client through any interface, the DHCP server assigns an IP address in global DHCP address pools to the DHCP client.

[Sysname] dhcp select global all

1.1.6  dhcp select interface

Syntax

VLAN interface view:

dhcp select interface

undo dhcp select

System view:

dhcp select interface { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp select { interface interface-type interface-number [ to interface-type interface-number ] | all }

View

System view, VLAN interface view

Parameters

interface interface-type interface-number [ to interface-type interface-number ]: Specifies the interface(s) to operate in interface address pool mode. The argument interface-type indicates interface type, interface-number indicates interface number. interface-type interface-number [ to interface-type interface-number ] specifies an interface range.

all: Specifies all interfaces to operate in interface address pool mode.

Description

Use the dhcp select interface command to configure the specified interface(s) to operate in DHCP interface address pool mode. Upon receiving a DHCP packet from a DHCP client through an interface operating in interface address pool mode, the DHCP server chooses an IP address from the interface address pool of the DHCP server and assigns the address to the DHCP client.

Use the undo dhcp select command to restore the default DHCP packet processing mode.

By default, an interface operates in DHCP server global address pool mode.

Before configuring an interface to operate in DHCP interface address pool mode, you need to configure an IP address for the interface.

 

&  Note:

To improve security and avoid malicious attack to the unused SOCKETs, S5600 Ethernet switches provide the following functions:

l      UDP 67 and UDP 68 ports used by DHCP are enabled only when DHCP is enabled.

l      UDP 67 and UDP 68 ports are disabled when DHCP is disabled.

The corresponding implementation is as follows:

l      After a DHCP interface address pool is created by executing the dhcp select interface command, UDP 67 and UDP 68 ports used by DHCP are enabled.

l      After a DHCP interface address pool is deleted by executing the undo dhcp select interface command and all other DHCP functions are disabled, UDP 67 and UDP 68 ports used by DHCP are disabled accordingly.

 

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Configure VLAN-interface 1 through VLAN-interface 3 to operate in DHCP interface address pool mode, so that when a DHCP packet is received from a DHCP client on one of these interfaces, the DHCP server assigns an IP address from the corresponding interface DHCP address pool to the DHCP client.

[Sysname] dhcp select interface interface vlan-interface 1 to vlan-interface 3

# Configure all interfaces to operate in DHCP interface address pool mode, so that when a DHCP packet is received from a DHCP client through any interface, the DHCP server assigns an IP address in the interface DHCP address pool to the DHCP client.

[Sysname] dhcp select interface all

1.1.7  dhcp server bims-server

Syntax

dhcp server bims-server ip ip-address [ port port-number ] sharekey key { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp server bims-server { interface interface-type interface-number [ to interface-type interface-number ] | all }

View

System view

Parameters

port port-number: Specifies the port number of the remote BIMS server. The port-number argument ranges from 1 to 65534.

sharekey key: Specifies the shared key of the remote BIMS server. The key argument is a string containing 1 to 16 characters. It cannot be null.

interface interface-type interface-number [ to interface-type interface-number ]: Specifies a port operating in the interface address pool mode. The interface-type argument specifies a port type; the interface-number argument specifies a port number; the interface interface-type interface-number [ to interface-type interface-number ] keyword and argument combination specifies a port range.

all: Specifies all ports.

Description

Use the dhcp server bims-server command to specify the IP address, port number, and shared key of a BIMS server in the DHCP interface address pool(s) for the client.

Use the undo dhcp server bims-server command to remove specified BIMS server information from the DHCP interface address pool(s).

By default, no IP address, port number, or shared key of a BIMS server is specified in the DHCP interface address pool(s) for the clients.

Related commands: bims-server.

Examples

# Specify the IP address 192.168.0.2, port number 111, shared key aaa of the BIMS server in the DHCP interface address pool of VLAN-interface 2 for the client.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] dhcp server bims-server ip 192.168.0.2 port 111 sharekey aaa interface

Vlan-interface 2

1.1.8  dhcp server bootfile-name

Syntax

In VLAN interface view, use the following commands to specify the bootfile name in the current interface address pool for the client:

dhcp server bootfile-name bootfile-name

undo dhcp server bootfile-name

In system view, use the following commands to specify the bootfile name in the specified interface address pool for the client:

dhcp server bootfile-name bootfile-name { all | interface interface-type interface-number }

undo dhcp server bootfile-name { all | interface interface-type interface-number }

View

System view, VLAN interface view

Parameters

bootfile-name: Bootfile name (with the extension name .cfg), in the range 1 to 63 characters.

all: Specifies all interface address pools.

interface interface-type interface-number: Specifies an interface address pool. The interface-type argument specifies an interface type; the interface-number argument specifies an interface number.

Description

Use the dhcp server bootfile-name command to specify the bootfile name in interface address pool for the client.

Use the undo dhcp server bootfile-name command to remove the bootfile name from interface address pool.

No bootfile name is specified in an interface address pool by default.

If you execute the dhcp server bootfile-name command repeatedly, the new configuration will overwrite the previous one.

Related commands: bootfile-name.

Examples

# Specify bootfile name aaa.cfg in the DHCP interface address pool of VLAN-interface 1.

<Sysname> system-view

Enter system view, return to user view with Ctrl+Z.

[Sysname] interface Vlan-interface 1

[Sysname-Vlan-interface1] dhcp server bootfile-name aaa.cfg

1.1.9  dhcp server detect

Syntax

dhcp server detect

undo dhcp server detect

View

System view

Parameters

None

Description

Use the dhcp server detect command to enable the unauthorized DHCP server detection function. With this feature enabled, upon receiving a DHCP request, the DHCP server will record the IP addresses of any DHCP servers which ever assigned an IP address to the DHCP client and the receiving interface. The administrator can use this information to check out any unauthorized DHCP servers.

Use the undo dhcp server detect command to disable the unauthorized DHCP server detecting function.

By default, the unauthorized DHCP server detecting function is disabled.

Note that:

With unauthorized DHCP server detection enabled, the device records only one entry for each DHCP server. The administrator needs to find unauthorized DHCP servers from the log information.

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Enable the unauthorized DHCP server detecting function.

[Sysname] dhcp server detect

1.1.10  dhcp server dns-list

Syntax

In VLAN interface view, use the following commands to specify the DNS server IP address in the current DHCP interface address pool for the client.

dhcp server dns-list ip-address&<1-8>

undo dhcp server dns-list { ip-address | all }

In system view, use the following commands to specify the DNS server IP address in multiple DHCP interface address pools for the client.

dhcp server dns-list ip-address&<1-8> { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp server dns-list { ip-address | all } { interface interface-type interface-number [ to interface-type interface-number ] | all }

View

System view, VLAN interface view

Parameters

ip-address&<1-8>: IP address of a DNS server. &<1-8> means you can provide up to eight DNS server IP addresses. When inputting more than one DNS server IP address, separate two neighboring IP addresses with a space.

interface interface-type interface-number [ to interface-type interface-number ]: Specifies the interface(s), through which you can specify the corresponding interface address pools. The interface-type argument specifies an interface type; the interface-number argument specifies an interface number; the interface interface-type interface-number [ to interface-type interface-number ] keyword and argument combination specifies an interface range.

all: (In comparison with the ip-address argument) Specifies all DNS server IP addresses.

all: (In comparison with the interface keyword) Specifies all interface address pools.

Description

Use the dhcp server dns-list command to specify the DNS server IP address in the DHCP interface address pool for the client.

Use the undo dhcp server dns-list command to remove the DNS server IP address specified in the DHCP interface address pool.

By default, no DNS server IP address is specified for the client.

If you execute the dhcp server dns-list command repeatedly, the new configuration overwrites the previous one.

Related commands: dns-list.

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Enter VLAN-interface 1 view.

[Sysname] interface Vlan-interface 1

# Configure the DNS server IP address 1.1.1.254 for the DHCP address pool of the VLAN-interface 1 for the client.

[Sysname-Vlan-interface1] dhcp server dns-list 1.1.1.254

1.1.11  dhcp server domain-name

Syntax

In VLAN interface view, use the following commands to configure a domain name suffix for the DHCP clients whose IP addresses are from the current DHCP interface address pool.

dhcp server domain-name domain-name

undo dhcp server domain-name

In system view, use the following commands to configure a domain name suffix for the DHCP clients whose IP addresses are from multiple DHCP interface address pools.

dhcp server domain-name domain-name { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp server domain-name { interface interface-type interface-number [ to interface-type interface-number ] | all }

View

System view, VLAN interface view

Parameters

domain-name: Domain name suffix of the DHCP clients whose IP addresses are from the specified interface address pool(s). This argument is a string of 3 to 50 characters.

interface interface-type interface-number [ to interface-type interface-number ]: Specifies the interface(s), through which you can specify the corresponding interface address pool(s). The interface-type argument specifies an interface type; the interface-number argument specifies an interface number; the interface interface-type interface-number [ to interface-type interface-number ] keyword and argument combination specifies an interface range.

all: Specifies all interface address pools.

Description

Use the dhcp server domain-name command to configure a domain name suffix for the DHCP clients whose IP addresses are from the specified interface address pool(s). With this suffix configured, the client only needs to input part of a domain name, and the system will add the domain name suffix for name resolution.

Use the undo dhcp server domain-name command to remove the configured domain name suffix.

By default, no domain name suffix is configured for the DHCP client.

Related commands: domain-name.

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Enter VLAN-interface 1 view.

[Sysname] interface Vlan-interface 1

# Configure the domain name suffix aabbcc.com for the DHCP clients whose IP addresses are from the current DHCP interface address pool.

[Sysname-Vlan-interface1] dhcp server domain-name aabbcc.com

# Configure the domain name suffix abcd.com for the DHCP clients whose IP addresses are from the DHCP interface address pools on VLAN-interface 2 through VLAN-interface 5.

[Sysname-Vlan-interface1] quit

[Sysname] dhcp server domain-name abcd.com interface Vlan-interface 2 to Vlan-interface 5

1.1.12  dhcp server expired

Syntax

In VLAN interface view, use the following commands to configure the lease time of the IP addresses in the current DHCP interface address pool.

dhcp server expired { day day [ hour hour [ minute minute ] ] | unlimited }

undo dhcp server expired

In system view, use the following commands to configure the lease time of the IP addresses in multiple DHCP interface address pools.

dhcp server expired { day day [ hour hour [ minute minute ] ] | unlimited } { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp server expired { interface interface-type interface-number [ to interface-type interface-number ] | all }

View

System view, VLAN interface view

Parameters

day day: Specifies the number of days. The day argument ranges from 0 to 365.

hour hour: Specifies the number of hours. The hour argument ranges from 0 to 23.

minute minute: Specifies the number of minutes. The minute argument ranges from 0 to 59.

unlimited: Specifies that the lease time is unlimited. (But actually, the system limits the maximum lease time to about 25 years.)

interface interface-type interface-number [ to interface-type interface-number ]: Specifies the interface(s), through which you can specify the corresponding interface address pool(s). The interface-type argument specifies an interface type; the interface-number argument specifies an interface number; the interface interface-type interface-number [ to interface-type interface-number ] keyword and argument combination specifies an interface range.

all: Specifies all interface address pools.

Description

Use the dhcp server expired command to configure the lease time of the IP addresses dynamically obtained in the specified DHCP interface address pool(s).

Use the undo dhcp server expired command to restore the default lease time.

The default lease time is one day.

Related commands: expired.

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Set the lease time of the IP addresses dynamically obtained in all DHCP interface address pools to be 1 day, 2 hours and 3 minutes.

[Sysname] dhcp server expired day 1 hour 2 minute 3 all

# Set the lease time of the IP addresses dynamically obtained from DHCP interface address pools on VLAN-interface 2 through VLAN-interface 5 to be 2 days.

[Sysname-Vlan-interface1] quit

[Sysname] dhcp server expired day 2 interface Vlan-interface 2 to Vlan-interface 5

1.1.13  dhcp server forbidden-ip

Syntax

dhcp server forbidden-ip low-ip-address [ high-ip-address ]

undo dhcp server forbidden-ip low-ip-address [ high-ip-address ]

View

System view

Parameters

low-ip-address: IP address that is not available for being assigned to DHCP clients automatically (An IP address of this kind is known as a forbidden IP address). This argument also marks the lower end of the range of the forbidden IP addresses.

high-ip-address: IP address that is not available for being assigned to DHCP clients. This argument also marks the higher end of the range of the forbidden IP addresses. Note that this argument cannot be less than the low-ip-address argument. If you do not provide this argument, only the IP address specified by the low-ip-address argument is forbidden.

Description

Use the dhcp server forbidden-ip command to forbid the specified IP addresses in a DHCP address pool to be automatically assigned.

Use the undo dhcp server forbidden-ip command to cancel the forbiddance.

By default, all IP addresses in an address pool are allowed to be automatically assigned.

Related commands: dhcp server ip-pool, network, static-bind ip-address, dhcp server static-bind.

 

&  Note:

l      When you execute the undo dhcp server forbidden-ip command, make sure that the specified address range does not contain any statically-bound IP address.

l      You can configure multiple IP address segments that are not to be automatically configured by executing the dhcp server forbidden-ip command several times.

l      If an IP address that is not to be automatically assigned has been configured as a statically-bound IP address, the DHCP server still assigns this IP address to the client whose MAC address or ID has been bound.

 

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Forbid the IP addresses in the range 10.110.1.1 to 10.110.1.63 to be automatically assigned.

[Sysname] dhcp server forbidden-ip 10.110.1.1 10.110.1.63

1.1.14  dhcp server ip-pool

Syntax

dhcp server ip-pool pool-name

undo dhcp server ip-pool pool-name

View

System view

Parameters

pool-name: Name of a DHCP address pool, which uniquely identifies the address pool. This argument is a string of 1 to 35 characters.

Description

Use the dhcp server ip-pool command to create a global DHCP address pool and enter DHCP address pool view. If the address pool identified by the pool-name argument already exists, this command leads you to DHCP address pool view.

Use the undo dhcp server ip-pool command to remove a specified DHCP address pool.

By default, no global DHCP address pool is created.

Related commands: dhcp enable.

 

&  Note:

To improve security and avoid malicious attack to the unused SOCKETs, S5600 Ethernet switches provide the following functions:

l      UDP 67 and UDP 68 ports used by DHCP are enabled only when DHCP is enabled.

l      UDP 67 and UDP 68 ports are disabled when DHCP is disabled.

The corresponding implementation is as follows:

l      After a DHCP address pool is created by executing the dhcp server ip-pool command, the UDP 67 and UDP 68 ports used by DHCP are enabled.

l      After a DHCP address pool is deleted by executing the undo dhcp server ip-pool command and all other DHCP functions are disabled, UDP 67 and UDP 68 ports used by DHCP are disabled.

 

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Create DHCP address pool 0.

[Sysname] dhcp server ip-pool 0

[Sysname-dhcp-pool-0]

1.1.15  dhcp server nbns-list

Syntax

In VLAN interface view, use the following commands to configure WINS server IP address(es) in the current DHCP interface address pool for the client.

dhcp server nbns-list ip-address&<1-8>

undo dhcp server nbns-list { ip-address | all }

In system view, use the following commands to configure WINS server IP addresses in multiple DHCP interface address pools for the client.

dhcp server nbns-list ip-address&<1-8> { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp server nbns-list { ip-address | all } { interface interface-type interface-number [ to interface-type interface-number ] | all }

View

System view, VLAN interface view

Parameters

ip-address&<1-8>: IP address of a WINS server. &<1-8> means you can provide up to eight WINS server IP addresses. When inputting more than one WINS server IP address, separate two neighboring IP addresses with a space.

interface interface-type interface-number [ to interface-type interface-number ]: Specifies the interface(s), through which you can specify the corresponding DHCP interface address pool(s). The interface-type argument specifies an interface type; the interface-number argument specifies an interface number; the interface interface-type interface-number [ to interface-type interface-number ] keyword and argument combination specifies an interface range.

all: (In comparison with the ip-address argument) Specifies all WINS server IP addresses.

all: (In comparison with the interface keyword) Specifies all interface address pools.

Description

Use the dhcp server nbns-list command to configure WINS server IP address(es) in the specified DHCP interface address pool(s) for the client.

Use the undo dhcp server nbns-list command to remove the WINS server IP address(es) configured in the specified DHCP interface address pool(s) for the clients.

By default, no WINS server IP address is configured for the client.

If you execute the dhcp server nbns-list command repeatedly, the new configuration overwrites the previous one.

Related commands: nbns-list, dhcp server netbios-type.

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Configure the WINS server IP address 10.12.1.99 in all the DHCP interface address pools for the DHCP client.

[Sysname] dhcp server nbns-list 10.12.1.99 all

1.1.16  dhcp server netbios-type

Syntax

In VLAN interface view, use the following commands to configure the NetBIOS node type of the DHCP clients whose IP addresses are from the current DHCP interface address pool.

dhcp server netbios-type { b-node | h-node | m-node | p-node }

undo dhcp server netbios-type

In system view, use the following commands to configure the NetBIOS node type of the DHCP clients whose IP addresses are from multiple DHCP interface address pools.

dhcp server netbios-type { b-node | h-node | m-node | p-node } { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp server netbios-type { interface interface-type interface-number [ to interface-type interface-number ] | all }

View

System view, VLAN interface view

Parameters

b-node: Specifies the b-typed node. Nodes of this type acquire host name-to-IP address mapping by broadcasting.

p-node: Specifies the p-typed node. Nodes of this type acquire host name-to-IP address mapping by communicating with the WINS server.

m-node: Specifies the m-typed node. Nodes of this type are p-nodes with some broadcasting features.

h-node: Specifies the h-typed node. Nodes of this type are b-nodes with peer-to-peer communicating features.

interface interface-type interface-number [ to interface-type interface-number ]: Specifies the DHCP interface address pool. The interface-type argument specifies an interface type; the interface-number argument specifies an interface number; the interface interface-type interface-number [ to interface-type interface-number ] keyword and argument combination specifies an interface range.

all: Specifies all interface address pools.

Description

Use the dhcp server netbios-type command to configure the NetBIOS node type of the DHCP clients whose IP addresses are from the specified DHCP interface address pool(s).

Use the undo dhcp server netbios-type command to restore the default NetBIOS node type.

By default, no NetBIOS node type is specified. After the WINS server IP address is configured for the client in the DHCP interface address pool, the client uses the hybrid node (h-node).

Related commands: netbios-type, dhcp server nbns-list.

Examples

# Enter system view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

# Specify p-node as the NetBIOS node type of the DHCP clients whose IP addresses are from the DHCP interface address pool of VLAN-interface 1.

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] dhcp server netbios-type p-node

1.1.17  dhcp server option

Syntax

In VLAN interface view, use the following commands to customize DHCP options for the current DHCP interface address pool.

dhcp server option code { ascii ascii-string | hex hex-string&<1-10> | ip-address ip-address&<1-8> }

undo dhcp server option code

In system view, use the following commands to customize DHCP options for multiple DHCP interface address pools.

dhcp server option code { ascii ascii-string | hex hex-string&<1-10> | ip-address ip-address&<1-8> } { interface interface-type interface-number [ to interface-type interface-number ] | all }

undo dhcp server option code { interface interface-type interface-number [ to interface-type interface-number ] | all }

View