08-02-2019 08:11 AM
Hi,
When switch forward DHCP request to ip-helper (DHCP server), does it use loopback IP/interface IP/vlan IP?
May i know what is the settings in procedures, e.g when a client connected in vlan 20 tries to get DHCP?
any quick sample config?
08-02-2019 08:27 AM
Hello getaway51,
the IP address of the L3 interface that received the DHCP request is placed in an internal field named gi address.
the packet is changed:
destination address from 255.255.255.255 to DHCP server unicast address (the one specified on the ip helper-address command)
the source address is changed from 0.0.0.0 to the IP address of the outgoing interface on the best path to the DHCP server.
The DHCP server uses the gi-address to find the correct DHCP scope to use to pick up a free IP address to be given to the client.
Hope to help
Giuseppe
08-02-2019 09:13 AM
if client is connected to vlan 10. What would be the gi address?
is it the int vlan 10 ip address?
08-02-2019 10:27 AM
08-02-2019 10:41 PM
I am sorry, what is mean by secondary and primary address? If the client connected via access mode to vlan 10, what is the gi address use for dhcp request to dhcp server?
is it the ip address configured under int vlan 10?
08-03-2019 10:42 AM
08-03-2019 07:12 PM
08-04-2019 05:45 AM
Hello getaway51,
>>
if client is connected to vlan 10. What would be the gi address?
is it the int vlan 10 ip address?
Absolutely yes, it is the L3 interface that receives the original not routable DHCP discovery from the client.
See also Martin's answer.
Populating the gi-address field is necessary to make the DHCP server able to choice the correct DHCP pool.
The translated packet may have a source IP address that is different from the gi-address this is why this internal field exists.
The loopback address is never used in DHCP relay operations.
Hope to help
Giuseppe
08-03-2019 03:43 PM
sometimes wikipedia explains it well.
The relay agent stores its own IP address in field GIADDR field of the DHCP packet. The DHCP server uses the GIADDR-value to determine the subnet on which the relay agent received the broadcast, and allocates an IP address on that subnet. When the DHCP server replies to the client, it sends the reply to the GIADDR-address, again using unicast. The relay agent then retransmits the response on the local network.
from https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide