access packet dhcp request ip-ttl

Function

The access packet dhcp request ip-ttl command configures a TTL value for DHCP packets sent to a remote DHCP server.

The undo access packet dhcp request ip-ttl command restores the default TTL value for DHCP packets sent to a remote DHCP server.

By default, the TTL value in DHCP Discover/Request/Release/Decline messages is 16 when the device functions as a user-side DHCP relay agent.

This command is supported only on the NetEngine 8000 F1A.

Format

access packet dhcp request ip-ttl ttl-value

undo access packet dhcp request ip-ttl [ ttl-value ]

Parameters

Parameter Description Value
ttl-value

Specifies a TTL value.

The value is an integer ranging from 1 to 255.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bras-control write

Usage Guidelines

Usage Scenario

When the device functions as a user-side DHCP relay agent, it forwards DHCP Discover/Request/Release/Decline packets carrying the default TTL value of 16. However, if the device connects to the DHCP server with more than 16 hops in between, the DHCP Discover/Request/Release/Decline packets fail to be relayed to the DHCP server. As a result, users cannot obtain IP addresses. To allow the device to relay DHCP Discover/Request/Release/Decline packets to the DHCP server that is more than 16 hops away, run the access packet dhcp request ip-ttl command to set the TTL value in DHCP packets.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Set the TTL value to 210.
<HUAWEI> system-view
[~HUAWEI] access packet dhcp request ip-ttl 210
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >