The gateway command specifies an egress gateway address of the DHCP server in the DHCP server group view.
The undo gateway command restores the default setting.
By default, no egress gateway address is specified.
Parameter |
Description |
Value |
---|---|---|
ip-address |
Specifies the IP address of an egress gateway. |
The value is in dotted decimal notation. |
Usage Scenario
This command applies to DHCP relay agents. If a DHCP server and its DHCP relay agent are on different network segments, you can run the gateway command to specify an egress gateway address for the DHCP relay agent. In this way, the DHCP relay agent can communicate with the DHCP server. Run the gateway-list command to configure an egress gateway for the DHCP server.
Precautions