Changing the Gateway IP Address (giaddr) Field to the giaddr of the DHCP Relay Agent
You can configure the DHCP relay agent to change the gateway IP address (giaddr) field
in packets that it forwards between a DHCP client and a DHCP server.
To overwrite the giaddr of every DHCP packet with the giaddr of the DHCP relay agent
before forwarding the packet to the DHCP server:
1. Specify that you want to configure override options.
[edit forwarding-options dhcp-relay]
user@host# edit overrides
2. Specify that the giaddr of DHCP packets is overwritten.
[edit forwarding-options dhcp-relay overrides]
user@host# set always-write-giaddr
Related
Documentation
Extended DHCP Relay Agent Overview on page 46•
• Overriding the Default DHCP Relay Configuration Settings on page 68
Replacing the DHCP Relay Request and Release Packet Source Address
You can configure the DHCP relay agent to replace request and release packets with the
gateway IP address (giaddr) before forwarding the packet to the DHCP server.
To replace the source address with giaddr:
1. Specify that you want to configure override options.
[edit forwarding-options dhcp-relay]
user@host# edit overrides
2. Specify that you want to replace the IP source address in DHCP relay request and
release packets with the gateway IP address (giaddr).
[edit forwarding-options dhcp-relay overrides]
user@host# set replace-ip-source-with giaddr
Related
Documentation
Extended DHCP Relay Agent Overview on page 46•
• Overriding the Default DHCP Relay Configuration Settings on page 68
Enabling and Disabling DHCP Snooped Packets Support for DHCP Relay Agent
DHCP relay agent uses a two-part configuration to determine how to handle DHCP
snooped packets. This topic describes the first procedure, in which you enable or disable
snooping support for DHCP relay agent and, optionally, override the default snooping
configuration.
Copyright © 2017, Juniper Networks, Inc.72
DHCP and Other System Services Feature Guide for EX2300, EX3400, and EX4300 Switches