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

what does a native speaker say when he wanted to leave his work?

Is there any good reason to write "it is easy to see"?

Tikzpicture in figure problem

How do employ ' ("prime") in math mode at the correct depth?

Rounding a number extracted by jq to limit the decimal points

Solubility in different pressure conditions

Program which behaves differently in/out of a debugger

CPLD based Pierce oscillator

Non-deterministic Finite Automata | Sipser Example 1.16

Anatomically Correct Carnivorous Tree

Smallest Guaranteed hash collision cycle length

How exactly does artificial gravity work?

Wireless headphones interfere with Wi-Fi signal on laptop

declared variable inside void setup is forgotten in void loop

Can a tourist shoot a gun in the USA?

Where to find every-day healthy food near Heathrow Airport?

What makes "quality" analog AV cables better than cheap cables?

How do I tell my supervisor that he is choosing poor replacements for me while I am on maternity leave?

Why is a set not a partition of itself?

Could there be a material that inverts the colours seen through it?

Find hamming distance between two Strings of equal length in Java

Jumping frame contents with beamer and pgfplots

Is there ever any indication in the MCU as to how Spider-Man got his powers?

Do Life Drain attacks from wights stack?



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













1















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.























    1















    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.





















      1












      1








      1








      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 5 hours ago









      CutterCutter

      83




      83




      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


















          2














          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
            5 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
            4 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
            4 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
            4 hours ago












          • Okay thank you.

            – Cutter
            4 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









          2














          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
            5 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
            4 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
            4 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
            4 hours ago












          • Okay thank you.

            – Cutter
            4 hours ago















          2














          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
            5 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
            4 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
            4 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
            4 hours ago












          • Okay thank you.

            – Cutter
            4 hours ago













          2












          2








          2







          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 5 hours ago









          Ron MaupinRon Maupin

          70.2k1371130




          70.2k1371130












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

            – Cutter
            5 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
            4 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
            4 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
            4 hours ago












          • Okay thank you.

            – Cutter
            4 hours ago

















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

            – Cutter
            5 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
            4 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
            4 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
            4 hours ago












          • Okay thank you.

            – Cutter
            4 hours ago
















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

          – Cutter
          5 hours ago





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

          – Cutter
          5 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
          4 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
          4 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
          4 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
          4 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
          4 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
          4 hours ago














          Okay thank you.

          – Cutter
          4 hours ago





          Okay thank you.

          – Cutter
          4 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

          Log på Navigationsmenu

          Wonderful Copenhagen (sang) Eksterne henvisninger | NavigationsmenurSide på frankloesser.comWonderful Copenhagen

          Detroit Tigers Spis treści Historia | Skład zespołu | Sukcesy | Członkowie Baseball Hall of Fame | Zastrzeżone numery | Przypisy | Menu nawigacyjneEncyclopedia of Detroit - Detroit TigersTigers Stadium, Detroit, MITigers Timeline 1900sDetroit Tigers Team History & EncyclopediaTigers Timeline 1910s1935 World Series1945 World Series1945 World Series1984 World SeriesComerica Park, Detroit, MI2006 World Series2012 World SeriesDetroit Tigers 40-Man RosterDetroit Tigers Coaching StaffTigers Hall of FamersTigers Retired Numberse