The option121 command configures the classless static route for the DHCP client.
The undo option121 command deletes a configured classless static route.
By default, no classless static route is configured.
option121 ip-address { ip-address mask-length gateway-address } &<1-8>
undo option121 [ ip-address ip-address mask-length gateway-address ]
Parameter |
Description |
Value |
---|---|---|
ip-address | Specifies the destination IP address. | The value is in dotted decimal notation. |
mask-length | Specifies the mask length. | The value is an integer that ranges from 0 to 32. |
gateway-address | Specifies the gateway address of a route. | The value is in dotted decimal notation. |
Usage Scenario
The option121 command applies to only the DHCP server. The option121 command configures Option 121 that defines a classless static route allocated to a client.
mask-length and gateway-address specify a classless static route. The option121 command configures a maximum of eight classless static routes.
Precautions
To configure multiple classless static routes, run the option121 command repeatedly.
The undo option121 command will delete all classless static routes. To delete one classless static route, run the undo option121 ip-address ip-address mask-length gateway-address command.
<HUAWEI> system-view [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] option121 ip-address 10.10.10.10 24 10.11.11.11
<HUAWEI> system-view [HUAWEI] dhcp option template template1 [HUAWEI-dhcp-option-template-template1] option121 ip-address 10.10.10.10 24 10.11.11.11