Static file to map IP to MAC addresses

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I created a mesh network.



Sometimes the ARP, IPv4 based applications, or even ping do not correctly respond, any suggestion? Actually, I require to create a file (i.e whatever) that contains IP -> MAC Address, such as the following:



10.0.0.1 01:23:45:67:89:AB
10.0.0.2 01:23:45:67:89:CD


Then I can find my PCs/Laptops with those address---without requiring arp command.










share|improve this question
























  • This is more of a networking question than a Unix/Linux question but arp and ping not working could be the cause of several issues. You can just add static IP addresses to the machines which you can find out how to do from many of the questions on this site or by using Google. It may still not resolve the issue of ping not working.

    – Nasir Riley
    Mar 1 at 12:23











  • Please let us know, are you working on a virtual machine or your hosting Linux OS on a physical machine? Also provide detailed information, such as the distribution of your Linux machine, and so on.

    – Esmaeil Mirzaee
    Mar 1 at 12:39











  • @EsmaeilMirzaee they are individual physical linux machines. Distributions are latest debian linux. Regards...

    – mystic09
    Mar 1 at 12:43











  • You could do worse than install arpwatch.

    – roaima
    Mar 1 at 21:40















0















I created a mesh network.



Sometimes the ARP, IPv4 based applications, or even ping do not correctly respond, any suggestion? Actually, I require to create a file (i.e whatever) that contains IP -> MAC Address, such as the following:



10.0.0.1 01:23:45:67:89:AB
10.0.0.2 01:23:45:67:89:CD


Then I can find my PCs/Laptops with those address---without requiring arp command.










share|improve this question
























  • This is more of a networking question than a Unix/Linux question but arp and ping not working could be the cause of several issues. You can just add static IP addresses to the machines which you can find out how to do from many of the questions on this site or by using Google. It may still not resolve the issue of ping not working.

    – Nasir Riley
    Mar 1 at 12:23











  • Please let us know, are you working on a virtual machine or your hosting Linux OS on a physical machine? Also provide detailed information, such as the distribution of your Linux machine, and so on.

    – Esmaeil Mirzaee
    Mar 1 at 12:39











  • @EsmaeilMirzaee they are individual physical linux machines. Distributions are latest debian linux. Regards...

    – mystic09
    Mar 1 at 12:43











  • You could do worse than install arpwatch.

    – roaima
    Mar 1 at 21:40













0












0








0








I created a mesh network.



Sometimes the ARP, IPv4 based applications, or even ping do not correctly respond, any suggestion? Actually, I require to create a file (i.e whatever) that contains IP -> MAC Address, such as the following:



10.0.0.1 01:23:45:67:89:AB
10.0.0.2 01:23:45:67:89:CD


Then I can find my PCs/Laptops with those address---without requiring arp command.










share|improve this question
















I created a mesh network.



Sometimes the ARP, IPv4 based applications, or even ping do not correctly respond, any suggestion? Actually, I require to create a file (i.e whatever) that contains IP -> MAC Address, such as the following:



10.0.0.1 01:23:45:67:89:AB
10.0.0.2 01:23:45:67:89:CD


Then I can find my PCs/Laptops with those address---without requiring arp command.







linux networking iptables ip network-interface






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 1 at 14:06









Rui F Ribeiro

41.8k1483142




41.8k1483142










asked Mar 1 at 12:18









mystic09mystic09

12




12












  • This is more of a networking question than a Unix/Linux question but arp and ping not working could be the cause of several issues. You can just add static IP addresses to the machines which you can find out how to do from many of the questions on this site or by using Google. It may still not resolve the issue of ping not working.

    – Nasir Riley
    Mar 1 at 12:23











  • Please let us know, are you working on a virtual machine or your hosting Linux OS on a physical machine? Also provide detailed information, such as the distribution of your Linux machine, and so on.

    – Esmaeil Mirzaee
    Mar 1 at 12:39











  • @EsmaeilMirzaee they are individual physical linux machines. Distributions are latest debian linux. Regards...

    – mystic09
    Mar 1 at 12:43











  • You could do worse than install arpwatch.

    – roaima
    Mar 1 at 21:40

















  • This is more of a networking question than a Unix/Linux question but arp and ping not working could be the cause of several issues. You can just add static IP addresses to the machines which you can find out how to do from many of the questions on this site or by using Google. It may still not resolve the issue of ping not working.

    – Nasir Riley
    Mar 1 at 12:23











  • Please let us know, are you working on a virtual machine or your hosting Linux OS on a physical machine? Also provide detailed information, such as the distribution of your Linux machine, and so on.

    – Esmaeil Mirzaee
    Mar 1 at 12:39











  • @EsmaeilMirzaee they are individual physical linux machines. Distributions are latest debian linux. Regards...

    – mystic09
    Mar 1 at 12:43











  • You could do worse than install arpwatch.

    – roaima
    Mar 1 at 21:40
















This is more of a networking question than a Unix/Linux question but arp and ping not working could be the cause of several issues. You can just add static IP addresses to the machines which you can find out how to do from many of the questions on this site or by using Google. It may still not resolve the issue of ping not working.

– Nasir Riley
Mar 1 at 12:23





This is more of a networking question than a Unix/Linux question but arp and ping not working could be the cause of several issues. You can just add static IP addresses to the machines which you can find out how to do from many of the questions on this site or by using Google. It may still not resolve the issue of ping not working.

– Nasir Riley
Mar 1 at 12:23













Please let us know, are you working on a virtual machine or your hosting Linux OS on a physical machine? Also provide detailed information, such as the distribution of your Linux machine, and so on.

– Esmaeil Mirzaee
Mar 1 at 12:39





Please let us know, are you working on a virtual machine or your hosting Linux OS on a physical machine? Also provide detailed information, such as the distribution of your Linux machine, and so on.

– Esmaeil Mirzaee
Mar 1 at 12:39













@EsmaeilMirzaee they are individual physical linux machines. Distributions are latest debian linux. Regards...

– mystic09
Mar 1 at 12:43





@EsmaeilMirzaee they are individual physical linux machines. Distributions are latest debian linux. Regards...

– mystic09
Mar 1 at 12:43













You could do worse than install arpwatch.

– roaima
Mar 1 at 21:40





You could do worse than install arpwatch.

– roaima
Mar 1 at 21:40










1 Answer
1






active

oldest

votes


















0














Having different MACs for certain IPs is exactly the reason for Errors like 'ARP is not working', or 'Ping does not work'.



The reason: Managed Ethernet Switches can be configured to implement a "flap Limit" for MACs changing their port too often. So in your case, the duplicate IP may trigger such a measure. Unmanaged Switches may imply a rate-Limit for flapping by themselves.



Do you have These MACs on seperate Hosts, or on seperate Cards?



Making sure to use one IP on one Host/NIC only will prevent you from experiencing These Errors.






share|improve this answer























  • Sorry about that. They will be 10.0.0.1 and 10.0.0.2. Corrected the question.

    – mystic09
    Mar 1 at 12:44












  • Ah, is see, you've edited the addresses. So my Suggestion is: you are running the VMs on host-only or NAT (Network Adapter Settings). If you want full Access to the VMs, please Switch to "bridged Networking". This will help.

    – gerhard d.
    Mar 1 at 12:46











  • I have two physical machines. I am not on VMs.

    – mystic09
    Mar 1 at 12:48











  • Open a terminal on all boxes, and start "watch arp -a". Then ping the machines from each other, and watch the Output. What happens?

    – gerhard d.
    Mar 1 at 13:43











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f503767%2fstatic-file-to-map-ip-to-mac-addresses%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









0














Having different MACs for certain IPs is exactly the reason for Errors like 'ARP is not working', or 'Ping does not work'.



The reason: Managed Ethernet Switches can be configured to implement a "flap Limit" for MACs changing their port too often. So in your case, the duplicate IP may trigger such a measure. Unmanaged Switches may imply a rate-Limit for flapping by themselves.



Do you have These MACs on seperate Hosts, or on seperate Cards?



Making sure to use one IP on one Host/NIC only will prevent you from experiencing These Errors.






share|improve this answer























  • Sorry about that. They will be 10.0.0.1 and 10.0.0.2. Corrected the question.

    – mystic09
    Mar 1 at 12:44












  • Ah, is see, you've edited the addresses. So my Suggestion is: you are running the VMs on host-only or NAT (Network Adapter Settings). If you want full Access to the VMs, please Switch to "bridged Networking". This will help.

    – gerhard d.
    Mar 1 at 12:46











  • I have two physical machines. I am not on VMs.

    – mystic09
    Mar 1 at 12:48











  • Open a terminal on all boxes, and start "watch arp -a". Then ping the machines from each other, and watch the Output. What happens?

    – gerhard d.
    Mar 1 at 13:43















0














Having different MACs for certain IPs is exactly the reason for Errors like 'ARP is not working', or 'Ping does not work'.



The reason: Managed Ethernet Switches can be configured to implement a "flap Limit" for MACs changing their port too often. So in your case, the duplicate IP may trigger such a measure. Unmanaged Switches may imply a rate-Limit for flapping by themselves.



Do you have These MACs on seperate Hosts, or on seperate Cards?



Making sure to use one IP on one Host/NIC only will prevent you from experiencing These Errors.






share|improve this answer























  • Sorry about that. They will be 10.0.0.1 and 10.0.0.2. Corrected the question.

    – mystic09
    Mar 1 at 12:44












  • Ah, is see, you've edited the addresses. So my Suggestion is: you are running the VMs on host-only or NAT (Network Adapter Settings). If you want full Access to the VMs, please Switch to "bridged Networking". This will help.

    – gerhard d.
    Mar 1 at 12:46











  • I have two physical machines. I am not on VMs.

    – mystic09
    Mar 1 at 12:48











  • Open a terminal on all boxes, and start "watch arp -a". Then ping the machines from each other, and watch the Output. What happens?

    – gerhard d.
    Mar 1 at 13:43













0












0








0







Having different MACs for certain IPs is exactly the reason for Errors like 'ARP is not working', or 'Ping does not work'.



The reason: Managed Ethernet Switches can be configured to implement a "flap Limit" for MACs changing their port too often. So in your case, the duplicate IP may trigger such a measure. Unmanaged Switches may imply a rate-Limit for flapping by themselves.



Do you have These MACs on seperate Hosts, or on seperate Cards?



Making sure to use one IP on one Host/NIC only will prevent you from experiencing These Errors.






share|improve this answer













Having different MACs for certain IPs is exactly the reason for Errors like 'ARP is not working', or 'Ping does not work'.



The reason: Managed Ethernet Switches can be configured to implement a "flap Limit" for MACs changing their port too often. So in your case, the duplicate IP may trigger such a measure. Unmanaged Switches may imply a rate-Limit for flapping by themselves.



Do you have These MACs on seperate Hosts, or on seperate Cards?



Making sure to use one IP on one Host/NIC only will prevent you from experiencing These Errors.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 1 at 12:42









gerhard d.gerhard d.

1,271412




1,271412












  • Sorry about that. They will be 10.0.0.1 and 10.0.0.2. Corrected the question.

    – mystic09
    Mar 1 at 12:44












  • Ah, is see, you've edited the addresses. So my Suggestion is: you are running the VMs on host-only or NAT (Network Adapter Settings). If you want full Access to the VMs, please Switch to "bridged Networking". This will help.

    – gerhard d.
    Mar 1 at 12:46











  • I have two physical machines. I am not on VMs.

    – mystic09
    Mar 1 at 12:48











  • Open a terminal on all boxes, and start "watch arp -a". Then ping the machines from each other, and watch the Output. What happens?

    – gerhard d.
    Mar 1 at 13:43

















  • Sorry about that. They will be 10.0.0.1 and 10.0.0.2. Corrected the question.

    – mystic09
    Mar 1 at 12:44












  • Ah, is see, you've edited the addresses. So my Suggestion is: you are running the VMs on host-only or NAT (Network Adapter Settings). If you want full Access to the VMs, please Switch to "bridged Networking". This will help.

    – gerhard d.
    Mar 1 at 12:46











  • I have two physical machines. I am not on VMs.

    – mystic09
    Mar 1 at 12:48











  • Open a terminal on all boxes, and start "watch arp -a". Then ping the machines from each other, and watch the Output. What happens?

    – gerhard d.
    Mar 1 at 13:43
















Sorry about that. They will be 10.0.0.1 and 10.0.0.2. Corrected the question.

– mystic09
Mar 1 at 12:44






Sorry about that. They will be 10.0.0.1 and 10.0.0.2. Corrected the question.

– mystic09
Mar 1 at 12:44














Ah, is see, you've edited the addresses. So my Suggestion is: you are running the VMs on host-only or NAT (Network Adapter Settings). If you want full Access to the VMs, please Switch to "bridged Networking". This will help.

– gerhard d.
Mar 1 at 12:46





Ah, is see, you've edited the addresses. So my Suggestion is: you are running the VMs on host-only or NAT (Network Adapter Settings). If you want full Access to the VMs, please Switch to "bridged Networking". This will help.

– gerhard d.
Mar 1 at 12:46













I have two physical machines. I am not on VMs.

– mystic09
Mar 1 at 12:48





I have two physical machines. I am not on VMs.

– mystic09
Mar 1 at 12:48













Open a terminal on all boxes, and start "watch arp -a". Then ping the machines from each other, and watch the Output. What happens?

– gerhard d.
Mar 1 at 13:43





Open a terminal on all boxes, and start "watch arp -a". Then ping the machines from each other, and watch the Output. What happens?

– gerhard d.
Mar 1 at 13:43

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux 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%2funix.stackexchange.com%2fquestions%2f503767%2fstatic-file-to-map-ip-to-mac-addresses%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

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay