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

Formal Definition of Dot Product

Can't find the release for this wiring harness connector

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

Can I say that master can only initiate communication in SPI vs. in I2C slave can also initiate the communication?

Is there anything special about -1 (0xFFFFFFFF) regarding ADC?

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?

How i can place a block anywhere in Store

In books, how many dragons are there in present time?

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

CPLD based Pierce oscillator

What was the significance of Varys' little girl?

Why does the headset man not get on the tractor?

How much Replacement does this axiom provide?

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

Why is it harder to turn a motor/generator with shorted terminals?

What information do scammers need to withdraw money from an account?

Are there any established rules for splitting books into parts, chapters, sections etc?

What is the largest number of identical satellites launched together?

Rounding a number extracted by jq to limit the decimal points

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

using `is` operator with value type tuples gives error

Is it possible to create different colors in rocket exhaust?

Effects of ~10atm pressure on engine design

Entering the UK as a British citizen who is a Canadian permanent resident



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












          • Okay thank you.

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












          • Okay thank you.

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












          • Okay thank you.

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












          • Okay thank you.

            – Cutter
            6 hours ago

















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

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












          • Okay thank you.

            – Cutter
            6 hours ago
















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

          – Cutter
          6 hours ago





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

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














          Okay thank you.

          – Cutter
          6 hours ago





          Okay thank you.

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

          Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

          Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

          199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單