dhcp option121 route

Function

The dhcp option121 route command allocates static routes to domain users.

The undo dhcp option121 route command cancels the static routes allocated to domain users.

By default, no static routes are configured for domain users.

This command is supported only on the NetEngine 8000 F1A.

Format

dhcp option121 route ip-addr mask gateway-address

undo dhcp option121 route ip-addr mask gateway-address

Parameters

Parameter Description Value
ip-addr

Specifies the destination IP address.

The value is in dotted decimal notation.

mask

Specifies the mask length.

The value is an integer that ranges from 0 to 32.

gateway-address

Specifies the IP address of the gateway.

The value is in dotted decimal notation.

Views

AAA domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
aaa-access write

Usage Guidelines

Usage Scenario

Option 121 allows a DHCP server to allocate static routes to DHCP clients.

When clients access certain servers, you can run the dhcp option121 route command for the user domain to allocate static routes to clients and adjust routes.

When a DHCP user goes online, the BRAS encapsulates static route information into DHCP Option 121 and sends the information to a client. When a PPPoE user goes online, the BRAS encapsulates static route information into PPPoE PADN Tag 0x121 IP_ROUTE_ADD and sends the information to a client if you configure the client-option82 version1 command on the BAS interface to enable static route allocation for PPPoE users. When both PPPoE PADM and PADN packets need to be sent to a client, PADN packets are sent first.

A maximum of 24 routes can be configured for a domain.

DHCP clients will perform addressing based on the delivered static routes.

Precautions

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

Example

# Configure a static route for the domain huawei.
<HUAWEI> system-view
[~HUAWEI] aaa
[*HUAWEI-aaa] domain huawei
[*HUAWEI-aaa-domain-huawei] commit
[~HUAWEI-aaa-domain-huawei] dhcp option121 route 192.168.21.104 24 192.168.21.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >