Option 82 Configuration Example - H3C MSR 2600 Configuration Manual

Layer 3
Hide thumbs Also See for MSR 2600:
Table of Contents

Advertisement

Because the DHCP relay agent and server are on different subnets, you need to configure static or
dynamic routing to make them reachable to each other.
DHCP server configuration is also required to guarantee the client-server communication through the
DHCP relay agent. For DHCP server configuration information, see
examples
."
Figure 22 Network diagram
DHCP client
DHCP client
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable DHCP.
<RouterA> system-view
[RouterA] dhcp enable
# Enable the DHCP relay agent on Ethernet 1/1.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] dhcp select relay
# Specify the IP address of the DHCP server on the relay agent.
[RouterA-Ethernet1/1] dhcp relay server-address 10.1.1.1
After the preceding configuration is complete, DHCP clients can obtain IP addresses and other network
parameters from the DHCP server through the DHCP relay agent. You can use the display dhcp relay
statistics command to view the statistics of DHCP packets forwarded by the DHCP relay agent. If you
enable relay entry record on the DHCP relay agent with the dhcp relay client-information record
command, you can use the display dhcp relay client-information command to view relay entries.

Option 82 configuration example

Network requirements
As shown in
forwarding them to the DHCP server (Router B).
The circuit ID sub-option is company001.
The remote ID sub-option is device001.
To use Option 82, you must also enable the DHCP server to handle Option 82.
DHCP client
Eth1/1
10.10.1.1/24
Router A
DHCP relay agent
DHCP client
Figure
22, the DHCP relay agent (Router A) replaces Option 82 in DHCP requests before
Eth1/2
10.1.1.2/24
Eth1/1
10.1.1.1/24
Router B
DHCP server
62
"DHCP server configuration

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents