Is it possible to check the connectivity between 2 linux machines by pinging from a third machine?
Clash 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.
networking monitoring
New contributor
add a comment |
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.
networking monitoring
New contributor
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
add a comment |
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.
networking monitoring
New contributor
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
networking monitoring
New contributor
New contributor
edited Nov 19 at 22:43
Michael Prokopec
3628
3628
New contributor
asked Nov 19 at 14:19
shwetha nayak
31
31
New contributor
New contributor
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
add a comment |
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
add a comment |
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
New contributor
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
add a comment |
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
New contributor
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
add a comment |
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
New contributor
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
add a comment |
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
New contributor
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
New contributor
New contributor
answered Nov 19 at 14:29
Arcticooling
584
584
New contributor
New contributor
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
add a comment |
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
add a comment |
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.
shwetha nayak is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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