Step 4
Run:
ip address
ip-address
{
mask
|
mask-length
}
An IP address is configured for the interface.
Step 5
Run:
dhcp select interface
The AR150/200 is configured to select an interface address pool for IP address allocation.
The range of dynamically assignable IP addresses in the interface address pool is the network
segment to which the address of the interface belongs. The users whose IP addresses are in this
network segment can get online only from this interface.
Step 6
(Optional) Run:
dhcp server lease
{
day
day
[
hour
hour
[
minute
minute
] ] |
unlimited
}
An IP address lease is configured.
By default, the IP address lease is one day.
Step 7
(Optional) Run:
dhcp server excluded-ip-address
start-ip-address
[
end-ip-address
]
The IP address that cannot be assigned dynamically in the interface address pool is specified.
If an IP address has been assigned to a server, such as a DNS server, it cannot be assigned to a
DHCP client. You can run the
dhcp server excluded-ip-address
command at one time to
configure an IP address that cannot be assigned dynamically. Running the
dhcp server
excluded-ip-address
command multiple times specifies multiple IP addresses that cannot be
dynamically assigned.
Step 8
(Optional) Run:
dhcp server static-bind
ip-address
ip-address
mac-address
mac-address
An IP address in the interface address pool is bound to a MAC address manually.
If a user requires a fixed IP address, you can bind an unused IP address in the interface address
pool to the MAC address of the user device.
NOTE
Before binding the IP address to the MAC address, ensure that the IP address is dynamically assignable in the
interface address pool.
----End
6.4.3 (Optional) Configuring the DNS Service and NetBIOS Service
Dynamically on the DHCP Client
When functioning as the DHCP server, the AR150/200 is configured to dynamically allocate
carrier-provided DNS and NetBIOS configurations to the DHCP clients.
Context
The DNS and NetBIOS configurations have been specified before the DHPC server allocates
IP addresses to the DHCP client. If you do not have the configurations allocated by the carrier,
dynamically allocate the DNS and NetBIOS configurations to the DHCP client.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
6 DHCP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
139