Is it possible to check the connectivity between 2 linux machines by pinging from a third machine?

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











up vote
0
down vote

favorite












What is the ping and traceroute command option to use in order to check the connectivity between 2 machines (machine A and machine B) using my machine (machine C) ? How do I specify the source machine IP? ping -S machineAIP machineBIP or ping -I machineAIP machineBIP don't seem to work from my debian 8 machine.










share|improve this question









New contributor




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



















  • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, neither of those options in ping do what you wish. Is it possible to connect to one of the servers and complete a ping from there? Depending on your network setup if your machine can ping both servers successfully, barring firewall rules on one or the other, they should also be able to communicate.
    – kemotep
    Nov 19 at 14:34










  • Is this what you have in mind?
    – RubberStamp
    Nov 19 at 16:07














up vote
0
down vote

favorite












What is the ping and traceroute command option to use in order to check the connectivity between 2 machines (machine A and machine B) using my machine (machine C) ? How do I specify the source machine IP? ping -S machineAIP machineBIP or ping -I machineAIP machineBIP don't seem to work from my debian 8 machine.










share|improve this question









New contributor




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



















  • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, neither of those options in ping do what you wish. Is it possible to connect to one of the servers and complete a ping from there? Depending on your network setup if your machine can ping both servers successfully, barring firewall rules on one or the other, they should also be able to communicate.
    – kemotep
    Nov 19 at 14:34










  • Is this what you have in mind?
    – RubberStamp
    Nov 19 at 16:07












up vote
0
down vote

favorite









up vote
0
down vote

favorite











What is the ping and traceroute command option to use in order to check the connectivity between 2 machines (machine A and machine B) using my machine (machine C) ? How do I specify the source machine IP? ping -S machineAIP machineBIP or ping -I machineAIP machineBIP don't seem to work from my debian 8 machine.










share|improve this question









New contributor




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











What is the ping and traceroute command option to use in order to check the connectivity between 2 machines (machine A and machine B) using my machine (machine C) ? How do I specify the source machine IP? ping -S machineAIP machineBIP or ping -I machineAIP machineBIP don't seem to work from my debian 8 machine.







networking monitoring






share|improve this question









New contributor




shwetha nayak 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




shwetha nayak 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








edited Nov 19 at 22:43









Michael Prokopec

3628




3628






New contributor




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









asked Nov 19 at 14:19









shwetha nayak

31




31




New contributor




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





New contributor





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






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











  • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, neither of those options in ping do what you wish. Is it possible to connect to one of the servers and complete a ping from there? Depending on your network setup if your machine can ping both servers successfully, barring firewall rules on one or the other, they should also be able to communicate.
    – kemotep
    Nov 19 at 14:34










  • Is this what you have in mind?
    – RubberStamp
    Nov 19 at 16:07
















  • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, neither of those options in ping do what you wish. Is it possible to connect to one of the servers and complete a ping from there? Depending on your network setup if your machine can ping both servers successfully, barring firewall rules on one or the other, they should also be able to communicate.
    – kemotep
    Nov 19 at 14:34










  • Is this what you have in mind?
    – RubberStamp
    Nov 19 at 16:07















Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, neither of those options in ping do what you wish. Is it possible to connect to one of the servers and complete a ping from there? Depending on your network setup if your machine can ping both servers successfully, barring firewall rules on one or the other, they should also be able to communicate.
– kemotep
Nov 19 at 14:34




Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, neither of those options in ping do what you wish. Is it possible to connect to one of the servers and complete a ping from there? Depending on your network setup if your machine can ping both servers successfully, barring firewall rules on one or the other, they should also be able to communicate.
– kemotep
Nov 19 at 14:34












Is this what you have in mind?
– RubberStamp
Nov 19 at 16:07




Is this what you have in mind?
– RubberStamp
Nov 19 at 16:07










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










While ping allows you to set intermediate hosts, I think you can only do this if the intermediate hosts are willing to accept traffic intended for the destination (i.e., they behave as gateways). See https://superuser.com/questions/311849/how-can-i-ping-via-an-alternate-gateway



In this situation, I'd just use SSH:



ssh machineA ping machineB





share|improve this answer








New contributor




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

















  • Thanks for your answer but then I can't use this since I'll have to keep track of the passwords of all the machines I'm going to connect. I thought of running socket io node in machine A and B and then requesting from machine C to source machine(either A or B depending on the machine from where I want to ping) to ping the other machine and give me the result back.
    – shwetha nayak
    12 hours ago










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',
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
);



);






shwetha nayak 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%2funix.stackexchange.com%2fquestions%2f482766%2fis-it-possible-to-check-the-connectivity-between-2-linux-machines-by-pinging-fro%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








up vote
0
down vote



accepted










While ping allows you to set intermediate hosts, I think you can only do this if the intermediate hosts are willing to accept traffic intended for the destination (i.e., they behave as gateways). See https://superuser.com/questions/311849/how-can-i-ping-via-an-alternate-gateway



In this situation, I'd just use SSH:



ssh machineA ping machineB





share|improve this answer








New contributor




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

















  • Thanks for your answer but then I can't use this since I'll have to keep track of the passwords of all the machines I'm going to connect. I thought of running socket io node in machine A and B and then requesting from machine C to source machine(either A or B depending on the machine from where I want to ping) to ping the other machine and give me the result back.
    – shwetha nayak
    12 hours ago














up vote
0
down vote



accepted










While ping allows you to set intermediate hosts, I think you can only do this if the intermediate hosts are willing to accept traffic intended for the destination (i.e., they behave as gateways). See https://superuser.com/questions/311849/how-can-i-ping-via-an-alternate-gateway



In this situation, I'd just use SSH:



ssh machineA ping machineB





share|improve this answer








New contributor




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

















  • Thanks for your answer but then I can't use this since I'll have to keep track of the passwords of all the machines I'm going to connect. I thought of running socket io node in machine A and B and then requesting from machine C to source machine(either A or B depending on the machine from where I want to ping) to ping the other machine and give me the result back.
    – shwetha nayak
    12 hours ago












up vote
0
down vote



accepted







up vote
0
down vote



accepted






While ping allows you to set intermediate hosts, I think you can only do this if the intermediate hosts are willing to accept traffic intended for the destination (i.e., they behave as gateways). See https://superuser.com/questions/311849/how-can-i-ping-via-an-alternate-gateway



In this situation, I'd just use SSH:



ssh machineA ping machineB





share|improve this answer








New contributor




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









While ping allows you to set intermediate hosts, I think you can only do this if the intermediate hosts are willing to accept traffic intended for the destination (i.e., they behave as gateways). See https://superuser.com/questions/311849/how-can-i-ping-via-an-alternate-gateway



In this situation, I'd just use SSH:



ssh machineA ping machineB






share|improve this answer








New contributor




Arcticooling 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 answer



share|improve this answer






New contributor




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









answered Nov 19 at 14:29









Arcticooling

584




584




New contributor




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





New contributor





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






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











  • Thanks for your answer but then I can't use this since I'll have to keep track of the passwords of all the machines I'm going to connect. I thought of running socket io node in machine A and B and then requesting from machine C to source machine(either A or B depending on the machine from where I want to ping) to ping the other machine and give me the result back.
    – shwetha nayak
    12 hours ago
















  • Thanks for your answer but then I can't use this since I'll have to keep track of the passwords of all the machines I'm going to connect. I thought of running socket io node in machine A and B and then requesting from machine C to source machine(either A or B depending on the machine from where I want to ping) to ping the other machine and give me the result back.
    – shwetha nayak
    12 hours ago















Thanks for your answer but then I can't use this since I'll have to keep track of the passwords of all the machines I'm going to connect. I thought of running socket io node in machine A and B and then requesting from machine C to source machine(either A or B depending on the machine from where I want to ping) to ping the other machine and give me the result back.
– shwetha nayak
12 hours ago




Thanks for your answer but then I can't use this since I'll have to keep track of the passwords of all the machines I'm going to connect. I thought of running socket io node in machine A and B and then requesting from machine C to source machine(either A or B depending on the machine from where I want to ping) to ping the other machine and give me the result back.
– shwetha nayak
12 hours ago










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









 

draft saved


draft discarded


















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












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











shwetha nayak 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%2funix.stackexchange.com%2fquestions%2f482766%2fis-it-possible-to-check-the-connectivity-between-2-linux-machines-by-pinging-fro%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?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?