How does a DHCP relay router forward the packet to the server?Linux DHCP-Helper: GIADDR is not the source IP addressHow broadcasting works on different networks?How DHCP OFFER unicast works?Cisco Small-business switch - DHCP Relay offer packet droppedCan/Should a DHCP server send a DHCPDISCOVER message?How DHCP works?How does a router relay DHCP packets when it is configured as a relay agent?DHCP relay bindingAssign DHCP IP address on Cisco router interfaceDHCP relay on Juniper MX

Why do Computer Science majors learn Calculus?

Can solid acids and bases have pH values? If not, how are they classified as acids or bases?

Sci-fi book: portals appear in London and send a failed artist towards a designated path where he operate a giant superweapon

Pulling the rope with one hand is as heavy as with two hands?

Fizzy, soft, pop and still drinks

Is there any validity to the claim that fracking can help reduce CO2?

Examples of subgroups where it's nontrivial to show closure under multiplication?

Why the difference in metal between 銀行 and お金?

Will tsunami waves travel forever if there was no land?

Is creating your own "experiment" considered cheating during a physics exam?

Why does nature favour the Laplacian?

What's the polite way to say "I need to urinate"?

Realistic Necromancy?

Please, smoke with good manners

Phrase for the opposite of "foolproof"

How do Bards prepare spells?

US visa is under administrative processing, I need the passport back ASAP

How did Captain America manage to do this?

Do I have an "anti-research" personality?

Controversial area of mathematics

Is there really no use for MD5 anymore?

Don’t seats that recline flat defeat the purpose of having seatbelts?

What is the difference between `command a[bc]d` and `command `ab,cd`

How to make a pipeline wait for end-of-file or stop after an error?



How does a DHCP relay router forward the packet to the server?


Linux DHCP-Helper: GIADDR is not the source IP addressHow broadcasting works on different networks?How DHCP OFFER unicast works?Cisco Small-business switch - DHCP Relay offer packet droppedCan/Should a DHCP server send a DHCPDISCOVER message?How DHCP works?How does a router relay DHCP packets when it is configured as a relay agent?DHCP relay bindingAssign DHCP IP address on Cisco router interfaceDHCP relay on Juniper MX













1















We know that routers do not forward broadcast messages. So when a DHCP relay router receives a DHCP Discover message, the destination IP address is going to be 255.255.255.255 because at this stage the client does not know the DHCP Server's IP address. So why does the router not drop the packet? How does it forward the packet to the server? Since my understanding is that the router will see layer 3 and drop it since it saw a broadcast address.










share|improve this question


























    1















    We know that routers do not forward broadcast messages. So when a DHCP relay router receives a DHCP Discover message, the destination IP address is going to be 255.255.255.255 because at this stage the client does not know the DHCP Server's IP address. So why does the router not drop the packet? How does it forward the packet to the server? Since my understanding is that the router will see layer 3 and drop it since it saw a broadcast address.










    share|improve this question
























      1












      1








      1








      We know that routers do not forward broadcast messages. So when a DHCP relay router receives a DHCP Discover message, the destination IP address is going to be 255.255.255.255 because at this stage the client does not know the DHCP Server's IP address. So why does the router not drop the packet? How does it forward the packet to the server? Since my understanding is that the router will see layer 3 and drop it since it saw a broadcast address.










      share|improve this question














      We know that routers do not forward broadcast messages. So when a DHCP relay router receives a DHCP Discover message, the destination IP address is going to be 255.255.255.255 because at this stage the client does not know the DHCP Server's IP address. So why does the router not drop the packet? How does it forward the packet to the server? Since my understanding is that the router will see layer 3 and drop it since it saw a broadcast address.







      dhcp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 6 hours ago









      iiTechiiiiTechii

      374




      374




















          2 Answers
          2






          active

          oldest

          votes


















          2














          The DHCP relay agent (router, or otherwise) creates a unicast DHCP request for the DHCP server(s) configured in the relay agent. The DHCP server replies to the relay agent, which then sends the response back to the requester.



          You can see all the details of how this works in RFC 2131, Dynamic Host Configuration Protocol, which explains that DHCP relay inherits the BOOTP relay.






          share|improve this answer






























            0














            DHCP relay is not a routing function, even if it is usually activated on a router, but it's also used on switches (L2 and L3). You should see the relay agent as a network service like the DHCP server itself. In fact, it's more like a proxy than a routing function.



            DHCP relay can't just forward the bare discovery, but needs to change several DHCP fields to enable proper handling by the DCHP server. Most often option 82 is also inserted to provide further information about the relay agent (vendor-id and remote-id) and the interface the client is located on (circuit-id).






            share|improve this answer























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "496"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              noCode: true, onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f58778%2fhow-does-a-dhcp-relay-router-forward-the-packet-to-the-server%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              The DHCP relay agent (router, or otherwise) creates a unicast DHCP request for the DHCP server(s) configured in the relay agent. The DHCP server replies to the relay agent, which then sends the response back to the requester.



              You can see all the details of how this works in RFC 2131, Dynamic Host Configuration Protocol, which explains that DHCP relay inherits the BOOTP relay.






              share|improve this answer



























                2














                The DHCP relay agent (router, or otherwise) creates a unicast DHCP request for the DHCP server(s) configured in the relay agent. The DHCP server replies to the relay agent, which then sends the response back to the requester.



                You can see all the details of how this works in RFC 2131, Dynamic Host Configuration Protocol, which explains that DHCP relay inherits the BOOTP relay.






                share|improve this answer

























                  2












                  2








                  2







                  The DHCP relay agent (router, or otherwise) creates a unicast DHCP request for the DHCP server(s) configured in the relay agent. The DHCP server replies to the relay agent, which then sends the response back to the requester.



                  You can see all the details of how this works in RFC 2131, Dynamic Host Configuration Protocol, which explains that DHCP relay inherits the BOOTP relay.






                  share|improve this answer













                  The DHCP relay agent (router, or otherwise) creates a unicast DHCP request for the DHCP server(s) configured in the relay agent. The DHCP server replies to the relay agent, which then sends the response back to the requester.



                  You can see all the details of how this works in RFC 2131, Dynamic Host Configuration Protocol, which explains that DHCP relay inherits the BOOTP relay.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 6 hours ago









                  Ron MaupinRon Maupin

                  69k1370126




                  69k1370126





















                      0














                      DHCP relay is not a routing function, even if it is usually activated on a router, but it's also used on switches (L2 and L3). You should see the relay agent as a network service like the DHCP server itself. In fact, it's more like a proxy than a routing function.



                      DHCP relay can't just forward the bare discovery, but needs to change several DHCP fields to enable proper handling by the DCHP server. Most often option 82 is also inserted to provide further information about the relay agent (vendor-id and remote-id) and the interface the client is located on (circuit-id).






                      share|improve this answer



























                        0














                        DHCP relay is not a routing function, even if it is usually activated on a router, but it's also used on switches (L2 and L3). You should see the relay agent as a network service like the DHCP server itself. In fact, it's more like a proxy than a routing function.



                        DHCP relay can't just forward the bare discovery, but needs to change several DHCP fields to enable proper handling by the DCHP server. Most often option 82 is also inserted to provide further information about the relay agent (vendor-id and remote-id) and the interface the client is located on (circuit-id).






                        share|improve this answer

























                          0












                          0








                          0







                          DHCP relay is not a routing function, even if it is usually activated on a router, but it's also used on switches (L2 and L3). You should see the relay agent as a network service like the DHCP server itself. In fact, it's more like a proxy than a routing function.



                          DHCP relay can't just forward the bare discovery, but needs to change several DHCP fields to enable proper handling by the DCHP server. Most often option 82 is also inserted to provide further information about the relay agent (vendor-id and remote-id) and the interface the client is located on (circuit-id).






                          share|improve this answer













                          DHCP relay is not a routing function, even if it is usually activated on a router, but it's also used on switches (L2 and L3). You should see the relay agent as a network service like the DHCP server itself. In fact, it's more like a proxy than a routing function.



                          DHCP relay can't just forward the bare discovery, but needs to change several DHCP fields to enable proper handling by the DCHP server. Most often option 82 is also inserted to provide further information about the relay agent (vendor-id and remote-id) and the interface the client is located on (circuit-id).







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 30 mins ago









                          Zac67Zac67

                          33.6k22167




                          33.6k22167



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Network Engineering Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f58778%2fhow-does-a-dhcp-relay-router-forward-the-packet-to-the-server%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Era Viking Índice Início da Era Viquingue | Cotidiano | Sociedade | Língua | Religião | A arte | As primeiras cidades | As viagens dos viquingues | Viquingues do Oeste e Leste | Fim da Era Viquingue | Fontes históricas | Referências Bibliografia | Ligações externas | Menu de navegação«Sverige då!»«Handel I vikingetid»«O que é Nórdico Antigo»Mito, magia e religião na volsunga saga Um olhar sobre a trajetória mítica do herói sigurd«Bonden var den verklige vikingen»«Vikingatiden»«Vikingatiden»«Vinland»«Guerreiras de Óðinn: As Valkyrjor na Mitologia Viking»1519-9053«Esculpindo símbolos e seres: A arte viking em pedras rúnicas»1679-9313Historia - Tema: VikingarnaAventura e Magia no Mundo das Sagas IslandesasEra Vikinge

                              What's the metal clinking sound at the end of credits in Avengers: Endgame?What makes Thanos so strong in Avengers: Endgame?Who is the character that appears at the end of Endgame?What happens to Mjolnir (Thor's hammer) at the end of Endgame?The People's Ages in Avengers: EndgameWhat did Nebula do in Avengers: Endgame?Messing with time in the Avengers: Endgame climaxAvengers: Endgame timelineWhat are the time-travel rules in Avengers Endgame?Why use this song in Avengers: Endgame Opening Logo Sequence?Peggy's age in Avengers Endgame

                              Are there legal definitions of ethnicities/races? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Legal definitions in the United StatesAre there truly legal limits on US interest rates?Are gender identity and sexual orientation federally protected?Why is there an apparent legal bias against digital services?What limits are there to the powers of individual judges in the United States legal system?Are women only scholarships legal under Irish / EU law?Is the term “race” defined by Public Law enacted by Congress of the United StatesIs there a legal definition of race in the US?Neighbors are spying for landlord on Renters is it legal?Are Protected Classes Bi-directional?