dhcp select relay (interface view)

Function

The dhcp select relay command enables DHCP relay.

The undo dhcp select command restores the default configuration on carrier IP devices.

By default, DHCP relay is disabled.

Format

dhcp select relay

undo dhcp select

Parameters

None

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

When a DHCP server and a DHCP client are on the same subnet, they can communicate using DHCP. You do not need to enable DHCP relay. If a DHCP server and a DHCP client are on different subnets, run the dhcp select relay command to enable DHCP relay to forward DHCP packets to the DHCP server.

Configuration Impact

After DHCP relay is enabled, the DHCP relay agent forwards IP addresses assigned by the DHCP server to DHCP clients.

Example

# Enable DHCP relay on GigabitEthernet 0/1/1 to forward DHCP messages.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/1
[~HUAWEI-GigabitEthernet0/1/1] dhcp select relay
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >