The contents of
this chapter are only applicable to the S3600-EI series among S3600 Series Ethernet
Switches.
Syntax
bims-server ip ip-address [ port port-number ] sharekey key
undo bims-server
View
DHCP address pool view
Parameter
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
configure the connection between a DHCP global address pool and a BIMS server.
Use the undo bims-server command to
remove the configuration of the connection between a DHCP global address pool
and a BIMS server.
By default, no connection is configured.
Related command: dhcp server bims-server.
Branch intelligent management system (BIMS) is a network management
software provided by H3C Technologies Co., Ltd.
Example
# Set the IP address of the remote BIMS
server in the DHCP global address pool to 192.168.0.1, the port number to 651,
and the shared key to aaa.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] dhcp server ip-pool test
[H3C-dhcp-pool-test] bims-server ip
192.168.0.1 port 651 sharekey aaa
Syntax
dhcp enable
undo dhcp enable
View
System view
Parameter
None
Description
Use the dhcp enable command to
enable DHCP.
Use the undo dhcp enable command to
disable DHCP.
By default, DHCP is enabled.
You must first enable DHCP before
performing other DHCP-related configurations. This configuration is necessary
for both DHCP servers and DHCP relays.
To improve security and avoid malicious attack to the unused SOCKETs,
S3600 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 DHCP is enabled by executing the dhcp
enable command, if the DHCP server and DHCP relay functions are not
configured, UDP 67 and UDP 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 67 and UDP 68 ports will be disabled.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Enable DHCP.
[H3C] dhcp enable
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 and VLAN interface view
Parameter
interface interface-type interface-number [ to interface-type
interface-number ]: Specifies the interface(s) to operate in global address
pool mode. The interface-type and interface-number arguments are
the type and number of an interface. The to keyword separates the start
and the end of an interface range.
all: Specifies all ports 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 local 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 local
DHCP server global address pool mode.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# 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
local global DHCP address pools to the DHCP client.
[H3C] dhcp select global all
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 and VLAN interface view
Parameter
interface interface-type interface-number [ to interface-type
interface-number ]: Specifies the interface(s) to operate in interface
address pool mode.
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 local 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 local
DHCP server global address pool mode.
To improve security
and avoid malicious attack to the unused SOCKETs, S3600 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.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Configure all interfaces to operate in
interface 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 the
local interface DHCP address pool to the DHCP client.
[H3C] dhcp select interface all
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
Parameter
port
port-number: Specifies the port number of the
remote BIMS server.
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 an interface operating in the interface
address pool mode.
all:
Specifies all interfaces.
Description
Use the dhcp server bims-server
command to configure the connection between a DHCP interface address pool and a
remote BIMS server.
Use the undo dhcp server bims-server
command to remove the configuration of the connection between a DHCP interface
global address pool and a BIMS server.
Related command: bims-server.
Branch intelligent
management system (BIMS) is a network management software provided by H3C
Technologies Co., Ltd.
Example
# Set the IP address of the remote BIMS
server in DHCP interface address pool 2 to 192.168.0.2, the port number to 111,
and the shared key to aaa.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] dhcp server bims-server ip
192.168.0.2 port 111 sharekey aaa interface
Vlan-interface 2
Syntax
dhcp server detect
undo dhcp server detect
View
System view
Parameter
None
Description
Use the dhcp server detect command
to enable the private DHCP server detecting function.
Use the undo dhcp server detect
command to disable the private DHCP server detecting function.
By default, the private DHCP server
detecting function is disabled.
With the private DHCP server detecting
function enabled, a DHCP server tracks the information (such as the IP
addresses and interfaces) of DHCP servers to enable the administrator to detect
private DHCP servers in time and take proper measures.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Enable the private DHCP server detecting
function.
[H3C] dhcp server detect
Syntax
In VLAN interface view, use the following
commands to configure DNS server IP address(es) for the current DHCP interface address
pool.
dhcp server dns-list ip-address&<1-8>
undo dhcp server dns-list { ip-address | all }
In system view, use the following commands to
configure DNS server IP address(es) for multiple DHCP interface address pools.
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
Parameter
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.
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 configure DNS server IP address(es) for the DHCP address pool(s) of
specified interface(s).
Use the undo dhcp server dns-list
command to remove the DNS server IP address(es) configured for the DHCP address
pool(s) of the specified interface(s).
By default, no DNS server IP address is
configured for a DHCP interface address pool.
If you execute the dhcp server dns-list
command repeatedly, the new configuration overwrites the previous one.
Related command: dns-list.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Enter VLAN-interface1 view.
[H3C] interface Vlan-interface 1
# Configure the DNS server IP address
1.1.1.254 for the DHCP address pool of the VLAN-interface1.
[H3C-Vlan-interface1] dhcp server
dns-list 1.1.1.254
Syntax
In VLAN interface view, use the following
commands to configure a domain name for the DHCP clients whose IP addresses are
from the current 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 for the DHCP clients whose IP addresses are from multiple
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
Parameter
domain-name:
Domain name 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).
all: Specifies all interface address pools.
Description
Use the dhcp server domain-name
command to configure a domain name for the DHCP clients whose IP addresses are
from the specified interface address pool(s).
Use the undo dhcp server domain-name
command to remove the configured domain name.
By default, no domain name is configured
for the DHCP clients.
Related command: domain-name.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Enter VLAN-interface1 view.
[H3C] interface Vlan-interface 1
# Configure the domain name aabbcc.com for
the DHCP clients whose IP addresses are from the DHCP address pool of the
current VLAN interface.
[H3C-Vlan-interface1] dhcp server
domain-name aabbcc.com
Syntax
In VLAN interface view, use the following
commands to configure the lease time of the IP addresses in the current
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 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
Parameter
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).
all: Specifies all interface address pools.
Description
Use the dhcp server expired command
to configure the lease time of the IP addresses in the specified interface
address pool(s).
Use the undo dhcp server expired
command to restore the default lease time.
The default lease time is one day.
Note that an IP address is considered to be
expired if its lease time is after the year 2106.
Related command: expired.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Set the lease time of the IP addresses in
all interface address pools to be 1 day, 2 hours and 3 minutes.
[H3C] dhcp server expired day 1 hour
2 minute 3 all
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
Parameter
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 command: dhcp server ip-pool,
network, static-bind ip-address and dhcp server static-bind.
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 has been bound.
Example
# Enter system view.
<H3C> 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.
[H3C] dhcp server forbidden-ip
10.110.1.1 10.110.1.63
Syntax
dhcp server ip-pool pool-name
undo dhcp server ip-pool pool-name
View
System view
Parameter
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 command: dhcp enable.
To improve security
and avoid malicious attack to the unused SOCKETs, S3600 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.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Create DHCP address pool 0.
[H3C] dhcp server ip-pool 0
[H3C-dhcp-pool-0]
Syntax
In VLAN interface view, use the following
commands to configure NetBIOS server IP address(es) for the current DHCP
interface address pool.
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 NetBIOS server IP addresses for multiple DHCP interface address
pools.
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
Parameter
ip-address&<1-8>:
IP address of a NetBIOS server. &<1-8> means you can provide up to
eight NetBIOS server IP addresses. When inputting more than one NetBIOS 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 pool(s).
all: (In comparison with the ip-address argument) Specifies all
NetBIOS 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 NetBIOS server IP address(es) for the specified DHCP
interface address pool(s).
Use the undo dhcp server nbns-list
command to remove the NetBIOS server IP address(es) configured for the
specified DHCP interface address pool(s).
By default, no NetBIOS server IP address is
configured for a DHCP interface address pool.
If you execute the dhcp server nbns-list
command repeatedly, the new configuration overwrites the previous one.
Related command: nbns-list and dhcp
server netbios-type.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Configure the NetBIOS server IP address
10.12.1.99 for all the DHCP interface address pools.
[H3C] dhcp server nbns-list
10.12.1.99 all
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 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 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
Parameter
b-node:
Specifies the broadcast type. Nodes of this type acquire host name-to-IP
address mapping by broadcasting.
p-node:
Specifies the peer-to-peer type. Nodes of this type acquire host name-to-IP
address mapping by communicating with the NetBIOS server.
m-node:
Specifies the m-typed mixed type. Nodes of this type are p-nodes with some
broadcasting features. (The character m here stands for mixed.)
h-node: Specifies
the hybrid type. 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 interface(s), through which you can
specify the corresponding interface address pools.
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 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 and the default NetBIOS node type is hybrid node (h-node).
Related command: netbios-type and dhcp
server nbns-list.
Example
# Enter system view.
<H3C> 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 address pool of VLAN-interface1.
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] dhcp server netbios-type
p-node
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
System view/VLAN interface view
Parameter
code:
Customized option number ranging from 2 to 254. Note that this argument cannot
be 3, 6, 15, 44, 46, 50 through 55, 57 through 61, 82, 184, or 217. For
commands related to option 184, refer to 1.1.18 dhcp
server voice-config command and the 1.1.19 dhcp
server voice-config interface command. You cannot configure option 184 by executing the dhcp server option command.
ascii ascii-string: Specifies a string that is of 1 to 63 characters. Note that each
character of the string must be an ASCII character.
hex hex-string&<1-10>:
Specifies strings, each of which comprises 1 to 8 hexadecimal digits.
&<1-10> means you can provide up to 10 such strings. When inputting
more than one string, separate two neighboring strings with a space. Note that
the total number of the hexadecimal digits (spaces not included) cannot exceed
64.
ip-address ip-address&<1-8>: Specifies IP
addresses. &<1-8> means you can provide up to eight IP addresses.
When inputting more than one 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.
all:
Specifies all interface address pools.
Description
Use the dhcp server option command
to customize DHCP options for the specified DHCP interface address pool(s).
Use the undo dhcp server option
command to remove the customized DHCP options.
If you execute the dhcp server option
command repeatedly, the new configuration overwrites the previous one.
Related command: option.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Configure option 100 to be 0x11 and 0x22
for all DHCP interface address pools.
[H3C] dhcp server option 100 hex 11 22 all
Syntax
dhcp server ping { packets number | timeout milliseconds
}
undo dhcp server ping { packets | timeout }
View
System view
Parameter
packets number: Specifies the number of the ping operation. The number
argument ranges from 0 to 10 and defaults to 2. Value 0 means no ping operation
will be performed.
timeout milliseconds: Specifies the timeout time (in milliseconds) of each ping
operation. The milliseconds argument ranges from 0 to 10,000 and
defaults to 500.
Description
Use the dhcp server ping command to
set the maximum number of the ping operations and the maximum response timeout
time of each ping operation.
Use the undo dhcp server ping
command to restore the default settings.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Set the maximum number of the ping
operations to 10, and the timeout time of a ping operation to 300 milliseconds.
[H3C] dhcp server ping packets 10
[H3C] dhcp server ping timeout 300
Syntax
dhcp server relay information enable
undo dhcp server relay information
enable
View
System view
Parameter
None
Description
Use the dhcp server relay information
enable command to enable the DHCP server to support option 82.
Use the undo dhcp server relay
information enable command to disable the DHCP server from supporting option
82.
By default, the DHCP server supports option
82.
Example
# Disable the DHCP server from supporting
option 82.
<H3C>system-view
System View: return to User View with
Ctrl+Z.
[H3C] undo dhcp server relay
information enable
Syntax
dhcp server static-bind ip-address ip-address { client-identifier
client-identifier | mac-address mac-address }
undo dhcp server static-bind { client-identifier client-identifier | ip-address
ip-address | mac-address mac-address }
View
VLAN interface view
Parameter
ip-address: IP address to be statically bound. Note that the specified IP
address must belong to the same network segment as that of the VLAN interface.
client-identifier: Client ID to be statically bound, in the format of H-H-H. It contains
3 to 160 hexadecimal numbers.
mac-address:
MAC address to which the IP address is statically
bound.
Description
Use the dhcp server static-bind
command to statically bind an IP address of the current address pool to a MAC
address.
Use the undo dhcp server static-bind
command to cancel an IP-MAC address binding.
By default, no IP address in an address
pool is statically bound.
It should be noted that:
l
An IP address can be statically bound to only
one MAC address or one client ID. A MAC address or client ID can be bound with
only one IP address statically.
l
The IP address to be statically bound cannot be
an interface IP address of the device. Otherwise the static binding does not
take effect; the bound MAC address can still obtain another IP address.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Statically bind the client ID aaaa-bbbb
to the IP address 10.1.1.1 (Assume that the interface address pool of VLAN-interface1
already exists and the IP address belongs to the address pool).
[H3C] interface vlan-interface 1
[H3C-Vlan-interface1] dhcp server
static-bind ip-address 10.1.1.1 client-identifier aaaa-bbbb
# Statically bind the IP address 10.1.1.1
to the MAC address 0000-e03f-0305. (Assume that the interface address pool of
VLAN-interface1 already exists and the IP address belongs to the address pool.)
[H3C-Vlan-interface1] dhcp server
static-bind ip-address 10.1.1.1 mac-address 0000-e03f-0305
Syntax
dhcp server voice-config { ncp-ip
ip-address | as-ip ip-address | voice-vlan vlan-id
{ enable | disable } | fail-over ip-address dialer-string
}
undo dhcp server voice-config [ ncp-ip | as-ip | voice-vlan | fail-over
]
View
VLAN interface view
Parameter
ncp-ip: Specifies
the IP address of the network call processor (NCP).
as-ip: Specifies
the IP address of the alternative NCP server.
voice-vlan: Specifies
the voice VLAN.
fail-over: Specifies
a fail-over call routing.
ip-address:
IP address of the NCP, alternate server, or fail-over.
vlan-id: ID
of the voice VLAN, in the range of 2 to 4,094.
enable:
Enables a VLAN.
disable:
Disables a VLAN.
dialer-string: Fail-over dialer string. The value contains 0 to 9 and the
wildcard asterisk (*).
Description
Use the dhcp server voice-config command
to enable the DHCP server to assign IP addresses with option 184 and its
sub-options from the current interface address pool.
Use the undo dhcp server voice-config
command to disable the DHCP server from assigning IP addresses with option 184
and its sub-options from the current interface address pool.
The DHCP server answers option 184 and the
corresponding sub-options only after the DHCP client requests for option 184.
Before configuring other sub-options, you
must configure the sub-option ncp-ip; otherwise other sub-options do not
take effect.
By default, the DHCP server does not
support option 184 and the corresponding sub-options.
Related command: voice-config.
Example
# Enter system view
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Enter VLAN-interface1 view.
[H3C] interface Vlan-interface 1
# Enable the DHCP server to support all the
sub-options of option 184 in VLAN-interface1. The NCP IP address is 1.1.1.1 and
the IP address of the alternate server is 2.2.2.2. The voice VLAN is enabled,
with the ID being 3. The fail-over IP address is 3.3.3.3 and the dial number
string is 99*.
[H3C-Vlan-interface1] dhcp select
interface
[H3C-Vlan-interface1] dhcp server
voice-config ncp-ip 1.1.1.1
[H3C-Vlan-interface1] dhcp server
voice-config as-ip 2.2.2.2
[H3C-Vlan-interface1] dhcp server
voice-config voice-vlan 3 enable
[H3C-Vlan-interface1] dhcp server
voice-config fail-over 3.3.3.3 99*
Syntax
dhcp server voice-config { ncp-ip ip-address | as-ip ip-address | voice-vlan
vlan-id { enable | disable } | fail-over ip-address
dialer-string } { interface interface-type interface-number [
to interface-type interface-number ] | all }
undo dhcp server voice-config [ ncp-ip | as-ip | voice-vlan | fail-over
] { interface interface-type interface-number [ to interface-type
interface-number ] | all }
View
System view
Parameter
ncp-ip:
Specifies the IP address of the network call processor (NCP).
as-ip:
Specifies the IP address of the alternate server (AS).
voice-vlan:
Specifies the voice VLAN.
fail-over:
Specifies the Fail-over call routing.
ip-address:
IP address of the NCP, alternate server, or Fail-over.
vlan-id: ID
of the voice VLAN. This argument ranges from 2 to 4094.
enable:
Enables the voice VLAN.
disable: Disables
the voice VLAN.
dialer-string:
Dial number string. This argument comprises of number 0
through 9 and the * character (acting as the wildcard).
interface-type interface-number [ to interface-type interface-number
]: Specifies all interfaces in the interface range identified by the two
interface indexes separated by the to keyword (including the end
interfaces). The interfaces must be VLAN interfaces.
all:
Specifies that the sub-options apply to all VLAN interfaces.
Description
Use the dhcp server voice-config
interface command to configure option 184 and its sub-options, which will
be sent to DHCP clients by a DHCP server as well when the DHCP server assigns
IP addresses of specified address pools to DHCP clients.
Use the undo dhcp server voice-config
interface command to disable a DHCP server from sending option 184 and the
specified sub-option to DHCP clients when the DHCP server assigns IP addresses
to DHCP clients.
A DHCP server sends Option 184 and the
corresponding sub-options to a DHCP client only when the latter requests for
option 184.
The NCP-IP sub-option is necessary for all
other sub-options. You need to configure the NCP-IP sub-option first to enable
other sub-options.
By default, option 184 and its sub-options
are not supported by a DHCP server.
Related command: voice-config.
Example
# Enter system view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
# Configure the DHCP server to support
option 184 and all its sub-options when the DHCP server assigns IP addresses to
DHCP clients through VLAN-interface1, with the sub-options being set as
follows:
l
NCP-IP: 1.1.1.1
l
AS-IP: 2.2.2.2
l
Voice VLAN configuration: voice VLAN: Enabled; voice
VLAN ID: 3
l
Fail-over call routing: IP address 3.3.3.3; dialer-string:
99*
[H3C] dhcp select interface
Vlan-interface1
[H3C] dhcp server voice-config ncp-ip
1.1.1.1 interface Vlan-interface1
[H3C] dhcp server voice-config as-ip
2.2.2.2 interface Vlan-interface1
[H3C] dhcp server voice-config voice-vlan
3 enable interface Vlan-interface1
[H3C] dhcp server voice-config
fail-over 3.3.3.3 99* interface Vlan-interface1
Syntax
display dhcp server conflict { all | ip ip-address }
View
Any view
Parameter
all:
Specifies all IP addresses.
ip ip-address: Specifies one IP address.
Description
Use the display dhcp server conflict
command to display the statistics of IP address conflicts on the DHCP server.
Related command: reset dhcp server
conflict.
Example
# Display the statistics of IP address
conflicts.
<H3C> display dhcp server conflict
all
Address Discover Time
10.110.1.2 Jan 11 2003
11:57:07 PM
Table 1-1 Description
on the fields of the display dhcp server conflict command
|
Field
|
Description
|
|
Address
|
Conflicting IP address
|
|
Discover Time
|
Time when the conflict is detected
|
Syntax
display dhcp server expired { ip ip-address | pool [ pool-name ] | interface
[ interface-type interface-number ] | all }
View
Any view
Parameter
ip ip-address:
Specifies an IP address.
pool [ pool-name
]: Specifies a global address pool. The pool-name argument, a string
of 1 to 35 characters, is the name of an address pool. If you do not provide
this argument, this command applies to all global address pools.
interface [ interface-type
interface-number ]: Specifies a VLAN interface. If you do not specify a
VLAN interface, this command applies to all VLAN interfaces.
all:
Specifies all DHCP address pools.
Description
Use the display dhcp server expired
command to display the lease expiration information about one IP address, or
the lease expiration information about all IP addresses in one or all DHCP
address pools. When all the IP addresses in an address pool are assigned, the
DHCP server assigns the expired IP addresses to DHCP clients.
Example
# Display the lease expiration information
about the IP addresses in all DHCP address pools.
<H3C> display dhcp server expired all
Global pool:
IP address Client-identifier/
Lease expiration Type
Hardware address
Interface pool:
IP address Client-identifier/
Lease expiration Type
Hardware address
--- total 0 entry ---
Table 1-2
Description on the fields of the display dhcp
server expired command
|
Field
|
Description
|
|
Global pool
|
The information about the expired IP
addresses of global address pools
|
|
Interface pool
|
The information about the expired IP
addresses of interface address pools
|
|
IP address
|
Bound IP addresses
|
|
Client-identifier/Hardware address
|
User ID or MAC addresses to which IP
addresses are bound
|
|
Lease expiration
|
The time when a lease time expires
|
|
Type
|
Address binding type
|
Syntax
display dhcp server free-ip
View
Any view
Parameter
None
Description
Use the display dhcp server free-ip
command to display the free (that is, unassigned) IP addresses.
Example
# Display the free IP addresses.
<H3C> display dhcp server free-ip
IP Range from 1.0.0.0
to 2.2.2.1
IP Range from 2.2.2.3
to 2.255.255.255
IP Range from 4.0.0.0
to 4.255.255.255
IP Range from 5.5.5.0
to 5.5.5.0
IP Range from 5.5.5.2
to 5.5.5.255