Sujet : Re: I never thought of this scenario
De : mh+usenetspam1118 (at) *nospam* zugschl.us (Marc Haber)
Groupes : comp.os.linux.miscDate : 22. Apr 2024, 09:30:04
Autres entêtes
Organisation : private site, see http://www.zugschlus.de/ for details
Message-ID : <v0576c$pr04$1@news1.tnib.de>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Forte Agent 6.00/32.1186
The Natural Philosopher <
tnp@invalid.invalid> wrote:
DHCP is similar in that the on;y thing a router has to do is determine
its a UDP broadcast, and if it is, work out where to send it, and what
return address to give it if any..
>
One would expect the router to simply spoof a MAC address on its
interface, and relay responses to that MAC address back to the client
network.
In short its acting like an ethernet switch or bridge
>
I am more curious as to how the DHCP server 'knows' which network
address to give the client, but not interested enough to look it up. :-)
That's because the DHCP relay agent does not simply "route" the
broadcast packet, it generates a new packet with the client message,
adds information about itself (such as, for example, the IP address of
the Interface where the DHCP broadcast was received on) and forwards
the resulting NEW message as routable unicast to the DHCP server.
-- ----------------------------------------------------------------------------Marc Haber | " Questions are the | Mailadresse im HeaderRhein-Neckar, DE | Beginning of Wisdom " | Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402