Network requirements, Configuration procedure – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 62

Advertising
background image

51

[SwitchA] dhcp enable

# Add DHCP server 10.1.1.1 into DHCP server group 1.

[SwitchA] dhcp relay server-group 1 ip 10.1.1.1

# Enable the DHCP relay agent on VLAN-interface 1.

[SwitchA] interface vlan-interface 1

[SwitchA-Vlan-interface1] dhcp select relay

# Correlate VLAN-interface 1 to DHCP server group 1.

[SwitchA-Vlan-interface1] dhcp relay server-select 1

After the preceding configuration is complete, DHCP clients can obtain IP addresses and other network

parameters through the DHCP relay agent from the DHCP server. You can use the display dhcp relay
statistics command to view statistics of DHCP packets forwarded by DHCP relay agents. After you enable

address check of the DHCP relay agents with the dhcp relay address-check enable command, use the

display dhcp relay security command to view bindings of DHCP relay agents

NOTE:

Because the DHCP relay agent and server are on different subnets, you need to configure a static route
or dynamic routing protocol to make them reachable to each other.

You need to perform the configuration on the DHCP server to guarantee the client-server
communication.

DHCP relay agent Option 82 support configuration example

Network requirements

As shown in

Figure 21

, Enable Option 82 on the DHCP relay agent (Switch A).

Configure the handling strategy for DHCP requests containing Option 82 as replace.

Configure the padding content for the circuit ID sub-option as company001 and for the remote ID

sub-option as device001.

Switch A forwards DHCP requests to the DHCP server (Switch B) after replacing Option 82 in the
requests, so that the DHCP clients can obtain IP addresses.

Configuration procedure

# Specify IP addresses for the interfaces (omitted).
# Enable DHCP.

<SwitchA> system-view

[SwitchA] dhcp enable

# Add DHCP server 10.1.1.1 into DHCP server group 1.

[SwitchA] dhcp relay server-group 1 ip 10.1.1.1

# Enable the DHCP relay agent on VLAN-interface 1.

[SwitchA] interface vlan-interface 1

[SwitchA-Vlan-interface1] dhcp select relay

# Correlate VLAN-interface 1 to DHCP server group 1.

[SwitchA-Vlan-interface1] dhcp relay server-select 1

# Enable the DHCP relay agent to support Option 82, and perform Option 82-related configurations.

Advertising