Why would a switch ever send an ARP request for a MAC address when it can just wait for the first packet to...

How to cope with regret and shame about not fully utilizing opportunities during PhD?

Missouri raptors have wild hairdos

Formal Definition of Dot Product

51% attack - apparently very easy? refering to CZ's "rollback btc chain" - How to make sure such corruptible scenario can never happen so easily?

What's tha name for when you write multiple voices on same staff? And are there any cons?

Why does lemon juice reduce the "fish" odor of sea food — specifically fish?

Does Lawful Interception of 4G / the proposed 5G provide a back door for hackers as well?

Was this character’s old age look CGI or make-up?

Why are solar panels kept tilted?

What kind of SATA connector is this?

Automatically anti-predictably assemble an alliterative aria

Effects of ~10atm pressure on engine design

Why do the lights go out when someone enters the dining room on this ship?

Tikz draw contour without some edges, and fill

Extracting sublists that contain similar elements

Is Germany still exporting arms to countries involved in Yemen?

What to do if SUS scores contradict qualitative feedback?

Safety when modifying old electrical work

Can I say: "When was your train leaving?" if the train leaves in the future?

How i can place a block anywhere in Store

High Memory Utilization in Juniper ACX2100

Conditional probability - sum of dice is even given that at least one is a five

As programers say: Strive to be lazy

Can't find the release for this wiring harness connector



Why would a switch ever send an ARP request for a MAC address when it can just wait for the first packet to be received from a device?


Won't GLBP confuse a switch's mac address-table?What happens if two hosts with the same MAC address are in the same broadcast domain?How does a switch learn a switch table?Learn MAC addresses via replies to other hosts requestsSwitch learning MAC address of default routerWhat is the difference between ARP and BUM Traffic?ARP broadcast vs Default RouteWhy does the receiver of an ARP request updates its cache tableHow does a router know the destination mac?How does a system know the local gateways MAC address for given IP address













2















I've been reading 'Windows Networking Fundamentals' and in that book it says that a switch can learn what MAC address is associated with a particular port when the connected device makes its first transmission to the switch by checking the source of the packet. It goes on to say that if the packet destination is an unknown MAC address it will flood every port with the packet (except the port it received the packet from), and then can potentially use the reply from the destination device to learn the destination MAC address.



However, in my Networks lectures, I have been told that switches send an ARP request to any unknown devices when they are first connected and the ARP reply is used to obtain the MAC address.



If the switch does send an ARP request when devices are first connected, why would any of the first method ever need to occur?



So does the switch initiate the process of obtaining a MAC address? Or does the switch learn it after the device makes its first transmission to the switch? Or does it depend on some other factors?










share|improve this question







New contributor



Cutter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    2















    I've been reading 'Windows Networking Fundamentals' and in that book it says that a switch can learn what MAC address is associated with a particular port when the connected device makes its first transmission to the switch by checking the source of the packet. It goes on to say that if the packet destination is an unknown MAC address it will flood every port with the packet (except the port it received the packet from), and then can potentially use the reply from the destination device to learn the destination MAC address.



    However, in my Networks lectures, I have been told that switches send an ARP request to any unknown devices when they are first connected and the ARP reply is used to obtain the MAC address.



    If the switch does send an ARP request when devices are first connected, why would any of the first method ever need to occur?



    So does the switch initiate the process of obtaining a MAC address? Or does the switch learn it after the device makes its first transmission to the switch? Or does it depend on some other factors?










    share|improve this question







    New contributor



    Cutter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      2












      2








      2








      I've been reading 'Windows Networking Fundamentals' and in that book it says that a switch can learn what MAC address is associated with a particular port when the connected device makes its first transmission to the switch by checking the source of the packet. It goes on to say that if the packet destination is an unknown MAC address it will flood every port with the packet (except the port it received the packet from), and then can potentially use the reply from the destination device to learn the destination MAC address.



      However, in my Networks lectures, I have been told that switches send an ARP request to any unknown devices when they are first connected and the ARP reply is used to obtain the MAC address.



      If the switch does send an ARP request when devices are first connected, why would any of the first method ever need to occur?



      So does the switch initiate the process of obtaining a MAC address? Or does the switch learn it after the device makes its first transmission to the switch? Or does it depend on some other factors?










      share|improve this question







      New contributor



      Cutter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I've been reading 'Windows Networking Fundamentals' and in that book it says that a switch can learn what MAC address is associated with a particular port when the connected device makes its first transmission to the switch by checking the source of the packet. It goes on to say that if the packet destination is an unknown MAC address it will flood every port with the packet (except the port it received the packet from), and then can potentially use the reply from the destination device to learn the destination MAC address.



      However, in my Networks lectures, I have been told that switches send an ARP request to any unknown devices when they are first connected and the ARP reply is used to obtain the MAC address.



      If the switch does send an ARP request when devices are first connected, why would any of the first method ever need to occur?



      So does the switch initiate the process of obtaining a MAC address? Or does the switch learn it after the device makes its first transmission to the switch? Or does it depend on some other factors?







      switch mac-address switching arp






      share|improve this question







      New contributor



      Cutter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      Cutter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Cutter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 7 hours ago









      CutterCutter

      133




      133




      New contributor



      Cutter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Cutter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          1 Answer
          1






          active

          oldest

          votes


















          3














          You are confusing switching, where a switch creates and updates a MAC address table as frames pass through it, with the switch management.



          Switching is a layer-2 function, and a dumb switch will never use ARP. ARP is used by layer-3 devices to relate a layer-3 address to a layer-2 address, something that is not done for simple layer-2 switching.



          A managed switch will have a layer-3 management interface that acts like a host on the LAN, so that interface (virtual host) needs to use ARP to relate layer-3 addresses to layer-2 addresses for any layer-3 packets that the switch management interface needs to send to another device. That has nothing to do with the switching function of the switch.






          share|improve this answer
























          • So a layer 2 switch will never use ARP and a layer 3 switch will always use ARP?

            – Cutter
            7 hours ago











          • That's not at all what I said. A managed layer-2 switch will use ARP for its management interface because that is a layer-3 interface, but it has nothing to do with switching frames. A layer-3 switch is always a manged switch, but not all managed switches are layer-3 switches. Also, a layer-3 switch is still a layer-2 switch, and the layer-2 switching uses a MAC address table, like any other layer-2 switch. The layer-3 part is a routing module in the switch, and it uses ARP the same way a router does.

            – Ron Maupin
            7 hours ago













          • Okay sorry, one more question. So if the layer-2 part of a layer-3 switch uses a MAC address table, why does the layer-3 part need to use ARP? Doesn't it already have the MAC address from the MAC address table used in layer-2?

            – Cutter
            7 hours ago













          • MAC address tables relate a MAC address to a switch interface, and that is completely different than what ARP does, which is to relate a layer-3 address to a layer-2 address. Switching doesn't know anything about layer-3, and that allows a switch to carry any layer-3 protocol. The layer-2 and layer-3 functions in a layer-3 switch are completely separate. It is really just putting a router and a switch in the same box. The functions are very different.

            – Ron Maupin
            7 hours ago













          • Okay thank you.

            – Cutter
            7 hours ago












          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
          });


          }
          });






          Cutter is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f59088%2fwhy-would-a-switch-ever-send-an-arp-request-for-a-mac-address-when-it-can-just-w%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          You are confusing switching, where a switch creates and updates a MAC address table as frames pass through it, with the switch management.



          Switching is a layer-2 function, and a dumb switch will never use ARP. ARP is used by layer-3 devices to relate a layer-3 address to a layer-2 address, something that is not done for simple layer-2 switching.



          A managed switch will have a layer-3 management interface that acts like a host on the LAN, so that interface (virtual host) needs to use ARP to relate layer-3 addresses to layer-2 addresses for any layer-3 packets that the switch management interface needs to send to another device. That has nothing to do with the switching function of the switch.






          share|improve this answer
























          • So a layer 2 switch will never use ARP and a layer 3 switch will always use ARP?

            – Cutter
            7 hours ago











          • That's not at all what I said. A managed layer-2 switch will use ARP for its management interface because that is a layer-3 interface, but it has nothing to do with switching frames. A layer-3 switch is always a manged switch, but not all managed switches are layer-3 switches. Also, a layer-3 switch is still a layer-2 switch, and the layer-2 switching uses a MAC address table, like any other layer-2 switch. The layer-3 part is a routing module in the switch, and it uses ARP the same way a router does.

            – Ron Maupin
            7 hours ago













          • Okay sorry, one more question. So if the layer-2 part of a layer-3 switch uses a MAC address table, why does the layer-3 part need to use ARP? Doesn't it already have the MAC address from the MAC address table used in layer-2?

            – Cutter
            7 hours ago













          • MAC address tables relate a MAC address to a switch interface, and that is completely different than what ARP does, which is to relate a layer-3 address to a layer-2 address. Switching doesn't know anything about layer-3, and that allows a switch to carry any layer-3 protocol. The layer-2 and layer-3 functions in a layer-3 switch are completely separate. It is really just putting a router and a switch in the same box. The functions are very different.

            – Ron Maupin
            7 hours ago













          • Okay thank you.

            – Cutter
            7 hours ago
















          3














          You are confusing switching, where a switch creates and updates a MAC address table as frames pass through it, with the switch management.



          Switching is a layer-2 function, and a dumb switch will never use ARP. ARP is used by layer-3 devices to relate a layer-3 address to a layer-2 address, something that is not done for simple layer-2 switching.



          A managed switch will have a layer-3 management interface that acts like a host on the LAN, so that interface (virtual host) needs to use ARP to relate layer-3 addresses to layer-2 addresses for any layer-3 packets that the switch management interface needs to send to another device. That has nothing to do with the switching function of the switch.






          share|improve this answer
























          • So a layer 2 switch will never use ARP and a layer 3 switch will always use ARP?

            – Cutter
            7 hours ago











          • That's not at all what I said. A managed layer-2 switch will use ARP for its management interface because that is a layer-3 interface, but it has nothing to do with switching frames. A layer-3 switch is always a manged switch, but not all managed switches are layer-3 switches. Also, a layer-3 switch is still a layer-2 switch, and the layer-2 switching uses a MAC address table, like any other layer-2 switch. The layer-3 part is a routing module in the switch, and it uses ARP the same way a router does.

            – Ron Maupin
            7 hours ago













          • Okay sorry, one more question. So if the layer-2 part of a layer-3 switch uses a MAC address table, why does the layer-3 part need to use ARP? Doesn't it already have the MAC address from the MAC address table used in layer-2?

            – Cutter
            7 hours ago













          • MAC address tables relate a MAC address to a switch interface, and that is completely different than what ARP does, which is to relate a layer-3 address to a layer-2 address. Switching doesn't know anything about layer-3, and that allows a switch to carry any layer-3 protocol. The layer-2 and layer-3 functions in a layer-3 switch are completely separate. It is really just putting a router and a switch in the same box. The functions are very different.

            – Ron Maupin
            7 hours ago













          • Okay thank you.

            – Cutter
            7 hours ago














          3












          3








          3







          You are confusing switching, where a switch creates and updates a MAC address table as frames pass through it, with the switch management.



          Switching is a layer-2 function, and a dumb switch will never use ARP. ARP is used by layer-3 devices to relate a layer-3 address to a layer-2 address, something that is not done for simple layer-2 switching.



          A managed switch will have a layer-3 management interface that acts like a host on the LAN, so that interface (virtual host) needs to use ARP to relate layer-3 addresses to layer-2 addresses for any layer-3 packets that the switch management interface needs to send to another device. That has nothing to do with the switching function of the switch.






          share|improve this answer













          You are confusing switching, where a switch creates and updates a MAC address table as frames pass through it, with the switch management.



          Switching is a layer-2 function, and a dumb switch will never use ARP. ARP is used by layer-3 devices to relate a layer-3 address to a layer-2 address, something that is not done for simple layer-2 switching.



          A managed switch will have a layer-3 management interface that acts like a host on the LAN, so that interface (virtual host) needs to use ARP to relate layer-3 addresses to layer-2 addresses for any layer-3 packets that the switch management interface needs to send to another device. That has nothing to do with the switching function of the switch.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 7 hours ago









          Ron MaupinRon Maupin

          70.3k1371130




          70.3k1371130













          • So a layer 2 switch will never use ARP and a layer 3 switch will always use ARP?

            – Cutter
            7 hours ago











          • That's not at all what I said. A managed layer-2 switch will use ARP for its management interface because that is a layer-3 interface, but it has nothing to do with switching frames. A layer-3 switch is always a manged switch, but not all managed switches are layer-3 switches. Also, a layer-3 switch is still a layer-2 switch, and the layer-2 switching uses a MAC address table, like any other layer-2 switch. The layer-3 part is a routing module in the switch, and it uses ARP the same way a router does.

            – Ron Maupin
            7 hours ago













          • Okay sorry, one more question. So if the layer-2 part of a layer-3 switch uses a MAC address table, why does the layer-3 part need to use ARP? Doesn't it already have the MAC address from the MAC address table used in layer-2?

            – Cutter
            7 hours ago













          • MAC address tables relate a MAC address to a switch interface, and that is completely different than what ARP does, which is to relate a layer-3 address to a layer-2 address. Switching doesn't know anything about layer-3, and that allows a switch to carry any layer-3 protocol. The layer-2 and layer-3 functions in a layer-3 switch are completely separate. It is really just putting a router and a switch in the same box. The functions are very different.

            – Ron Maupin
            7 hours ago













          • Okay thank you.

            – Cutter
            7 hours ago



















          • So a layer 2 switch will never use ARP and a layer 3 switch will always use ARP?

            – Cutter
            7 hours ago











          • That's not at all what I said. A managed layer-2 switch will use ARP for its management interface because that is a layer-3 interface, but it has nothing to do with switching frames. A layer-3 switch is always a manged switch, but not all managed switches are layer-3 switches. Also, a layer-3 switch is still a layer-2 switch, and the layer-2 switching uses a MAC address table, like any other layer-2 switch. The layer-3 part is a routing module in the switch, and it uses ARP the same way a router does.

            – Ron Maupin
            7 hours ago













          • Okay sorry, one more question. So if the layer-2 part of a layer-3 switch uses a MAC address table, why does the layer-3 part need to use ARP? Doesn't it already have the MAC address from the MAC address table used in layer-2?

            – Cutter
            7 hours ago













          • MAC address tables relate a MAC address to a switch interface, and that is completely different than what ARP does, which is to relate a layer-3 address to a layer-2 address. Switching doesn't know anything about layer-3, and that allows a switch to carry any layer-3 protocol. The layer-2 and layer-3 functions in a layer-3 switch are completely separate. It is really just putting a router and a switch in the same box. The functions are very different.

            – Ron Maupin
            7 hours ago













          • Okay thank you.

            – Cutter
            7 hours ago

















          So a layer 2 switch will never use ARP and a layer 3 switch will always use ARP?

          – Cutter
          7 hours ago





          So a layer 2 switch will never use ARP and a layer 3 switch will always use ARP?

          – Cutter
          7 hours ago













          That's not at all what I said. A managed layer-2 switch will use ARP for its management interface because that is a layer-3 interface, but it has nothing to do with switching frames. A layer-3 switch is always a manged switch, but not all managed switches are layer-3 switches. Also, a layer-3 switch is still a layer-2 switch, and the layer-2 switching uses a MAC address table, like any other layer-2 switch. The layer-3 part is a routing module in the switch, and it uses ARP the same way a router does.

          – Ron Maupin
          7 hours ago







          That's not at all what I said. A managed layer-2 switch will use ARP for its management interface because that is a layer-3 interface, but it has nothing to do with switching frames. A layer-3 switch is always a manged switch, but not all managed switches are layer-3 switches. Also, a layer-3 switch is still a layer-2 switch, and the layer-2 switching uses a MAC address table, like any other layer-2 switch. The layer-3 part is a routing module in the switch, and it uses ARP the same way a router does.

          – Ron Maupin
          7 hours ago















          Okay sorry, one more question. So if the layer-2 part of a layer-3 switch uses a MAC address table, why does the layer-3 part need to use ARP? Doesn't it already have the MAC address from the MAC address table used in layer-2?

          – Cutter
          7 hours ago







          Okay sorry, one more question. So if the layer-2 part of a layer-3 switch uses a MAC address table, why does the layer-3 part need to use ARP? Doesn't it already have the MAC address from the MAC address table used in layer-2?

          – Cutter
          7 hours ago















          MAC address tables relate a MAC address to a switch interface, and that is completely different than what ARP does, which is to relate a layer-3 address to a layer-2 address. Switching doesn't know anything about layer-3, and that allows a switch to carry any layer-3 protocol. The layer-2 and layer-3 functions in a layer-3 switch are completely separate. It is really just putting a router and a switch in the same box. The functions are very different.

          – Ron Maupin
          7 hours ago







          MAC address tables relate a MAC address to a switch interface, and that is completely different than what ARP does, which is to relate a layer-3 address to a layer-2 address. Switching doesn't know anything about layer-3, and that allows a switch to carry any layer-3 protocol. The layer-2 and layer-3 functions in a layer-3 switch are completely separate. It is really just putting a router and a switch in the same box. The functions are very different.

          – Ron Maupin
          7 hours ago















          Okay thank you.

          – Cutter
          7 hours ago





          Okay thank you.

          – Cutter
          7 hours ago










          Cutter is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Cutter is a new contributor. Be nice, and check out our Code of Conduct.













          Cutter is a new contributor. Be nice, and check out our Code of Conduct.












          Cutter is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f59088%2fwhy-would-a-switch-ever-send-an-arp-request-for-a-mac-address-when-it-can-just-w%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m