This
topic is applicable to the scenario for specifying the corresponding DHCP
servers for different option60 domain users. This configuration also works for Huawei MA5680T, Huawei MA5606T, Huawei MA5608T.
Prerequisites
A
VLAN must be created.
Before
the configuration, determine the option60 domain name of the user terminal.
Background Information
When
multiple services are provisioned on the MA5600, such as video multicast and IP telephone services,
the services are provided by different service providers. The service providers
may use different relay IP addresses of the same DHCP server or different DHCP
servers to allocate IP addresses to users. Therefore, configure the users to
apply for IP addresses from the DHCP server in the DHCP option60 mode.
In
the DHCP option60 mode, the DHCP server group is selected according to the
character string (namely, domain name) in the option60 of DHCP packets. Here,
the option60 domain name and the DHCP server group to which the domain name is
bound need to be configured beforehand. In this mode, users are differentiated
according to the domain information in the packet, and different service types
in the same VLAN can also be differentiated.
Procedure
1.
Configure the DHCP forwarding mode.
In
the global config mode, run the dhcp mode layer-3 option60 command to configure the DHCP relay
mode to L3 option60 mode (layer-3, option60). If keyword VLAN is selected and VLANID is entered, this configuration takes
effect only for this VLAN.
2.
Configure the DHCP server group.
a.
In the global config mode, run the dhcp-server command to create a DHCP server group.
·
igroup-number:
Indicates the number of the DHCP server group. It identifies a server group.
You can run the display
dhcp-server all-group command
to query the DHCP server groups that are already configured and select a DHCP
server group number that is not used by the system.
·
ip-addr: Indicates the
IP address of the DHCP server in the DHCP server group. Up to four IP addresses
can be entered.
NOTICE:
The IP address of the DHCP server
configured here must be the same as the IP address of the DHCP server on the
network side.
b.
(Optional) Run the dhcp
server mode command
to configure the working mode of the DHCP server.
The
DHCP servers in the DHCP server group can work in the load balancing mode or
active/standby mode. By default, they work in the load balancing mode.
3.
Create a DHCP option60 domain.
In
the global config mode, run the dhcp
domain command
to create a DHCP domain, and then enter the DHCP domain mode. The option60
domain name needs to be configured according to the type of the terminal
connected to the device. For the DHCP client installed with the Windows
98/2000/XP/NT series of OSs, the domain name must be msft.
4.
Bind the DHCP option60 domain to the DHCP server
group.
In
the option60 domain mode, run the dhcp-server command to bind the DHCP domain to the
DHCP server group. After the configuration is completed, the DHCP clients
belonging to the DHCP correspond to the DHCP server group.
5.
Configure the IP address of the gateway
corresponding to the DHCP domain.
a.
In the global config mode, run the interface
vlanif command
to create a VLAN L3 interface.
The
VLAN ID must be the same as the ID of the VLAN described in the prerequisite.
b.
In the VLANIF mode, run the ip
address command
to configure the IP address of the VLAN L3 interface.
After
the configuration is completed, this IP address is used as the source IP
address for forwarding the IP packets in the VLAN at L3.
NOTICE:
·
If only an L2 device exists between the MA5600 and the DHCP server, the IP address of
the VLAN L3 interface needs to be in the same subnet as the IP address of the
DHCP server.
·
If the upper-layer device of the MA5600 is an L3 device, the IP address of the
VLAN L3 interface and the IP address of the DHCP server can be in different
subnets; however, a route must exist between the VLAN L3 interface and the DHCP
server. For details, see Configuring
the Route.
c.
In the VLANIF mode, run the dhcp
domain gateway command
to configure the IP address of the gateway corresponding to the DHCP domain.
The
IP address of the gateway must be a configured IP address of the VLAN
interface. Under the same VLAN interface, different option60 domains can be
configured with different gateways. Therefore, different DHCP servers can be
selected according to the domain information in the packet.
Example
Assume
that server group 2 contains two DHCP servers working the load balancing mode,
with the IP address of the primary server 10.10.10.10 and the IP address of the
secondary server 10.10.10.11. To bind server group 2 to users whose option60
domain name is msft in VLAN 2 (with the IP address of the
L3 interface 10.1.2.1/24), do as follows:
huawei(config)#dhcp mode layer-3 Option60
huawei(config)#dhcp-server 2 ip 10.10.10.10 10.10.10.11
huawei(config)#dhcp domain msft
huawei(config-dhcp-domain-msft)#dhcp-server 2
huawei(config-dhcp-domain-msft)#quit
huawei(config)#interface vlanif 2
huawei(config-if-vlanif2)#ip address 10.1.2.1 24
huawei(config-if-vlanif2)#dhcp domain msft gateway 10.1.2.1
回复删除Dear learner,
If you don’t know anything about AAA Configuration Huawei OLT,
check out these links: AAA Configuration Huawei OLT