Sharing Internet with two machines, ping doen't work
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# ping -c 4 211.218.150.200 # other network
PING 211.218.150.200 (211.218.150.200) 56(84) bytes of data.
64 bytes from 211.218.150.200: icmp_seq=0 ttl=54 time=16.8 ms
64 bytes from 211.218.150.200: icmp_seq=1 ttl=54 time=14.3 ms
64 bytes from 211.218.150.200: icmp_seq=2 ttl=54 time=18.6 ms
64 bytes from 211.218.150.200: icmp_seq=3 ttl=54 time=33.8 ms
# ping -c 4 -I 61.96.30.10 192.168.0.1
PING 192.168.0.1 (192.168.0.1) from 61.96.30.10 : 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.077 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.018 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.015 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.017 ms
# ping -c 4 -I 192.168.0.1 61.96.30.10
PING 61.96.30.10 (61.96.30.10) from 192.168.0.1 : 56(84) bytes of data.
64 bytes from 61.96.30.10: icmp_seq=0 ttl=64 time=0.095 ms
64 bytes from 61.96.30.10: icmp_seq=1 ttl=64 time=0.015 ms
64 bytes from 61.96.30.10: icmp_seq=2 ttl=64 time=0.013 ms
64 bytes from 61.96.30.10: icmp_seq=3 ttl=64 time=0.015 ms
Is the firewall on computer#2 blocking things? Computer #1 is connected to the net and the iptables should be setup on that one, not the second machine.
If the two computers are connected directly using a cat5 cable from machine #1 to machine #2 , then you will need to use a crossover cable . If you are going through a hub/switch , then you would use a regular cat5 cable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.