Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine
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.
4. I restarted network service using this command:
/etc/init.d/network start
everything is fine.
When checking using ifconfig command.
I get the following:
eth0 Link encap: Ethernet HWaddr 00:08:0D:EE:19:66
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr:........
UP BROADCAST RUNNING......
RX....
TX....
collisions:0........
RX bytes:0 (0.0 b) TX bytes:......
lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask:255.0.0.0
inet6 addr:........
UP LOOPBACK RUNNING......
RX....
TX....
collisions:0........
RX bytes:0 (0.0 b) TX bytes:......
I mean I assigned the IP: 192.168.1.4 to Linux machine (Eth0).
I did everything above and can't ping till now, when pinging from windows or Linux I get a message "destination host unreachable" restarted Linux many times but same result. NETWORK CABLE is working fine I tested it.
In case of 2 computers connected through a crossover cable you don't need a gateway and specifically in your case, you have defined a gateway (192.168.1.1) that is not reachable by any of the 2 boxes.
If you want, you can set each gateway to the ip of the specific box, but leaving it blank it's not going to do any harm either.
In case of 2 computers connected through a crossover cable you don't need a gateway and specifically in your case, you have defined a gateway (192.168.1.1) that is not reachable by any of the 2 boxes.
If you want, you can set each gateway to the ip of the specific box, but leaving it blank it's not going to do any harm either.
Regards
I removed this line: "route add default gw 192.168.1.1 eth0" from the file: /etc/sysconfig/network.
I can't ping from windows to Linux even from Linux to windows can't.
Distribution: Suse, RedHat, CentOS, Solaris, Windows
Posts: 38
Rep:
Use the trace route from windows (tracert) to Linux (traceroute) and vice versa. Post the result, may be that help any one.
If you can not ping, you must not be able to trace the route as well. Most important thing about CentOS is its security. Also check if you are allowed to ping to/from your Linux
Use the trace route from windows (tracert) to Linux (traceroute) and vice versa. Post the result, may be that help any one.
If you can not ping, you must not be able to trace the route as well. Most important thing about CentOS is its security. Also check if you are allowed to ping to/from your Linux
Thanks Adnan, I will check tracert 192.168.1.4 (linux IP) and traceroute 192.168.1.3 (windows IP) and will post results here when I go to home as I am at work now.
Also I will check pinging from / to Linux and will inform you when I reach.
Distribution: Debian, Arch Linux, Linux Mint, Ubuntu, Fedora, Suse, Mepis, Redhat, Sayabon, mandrake and android (
Posts: 192
Rep:
Look first disconnect your Internet connection... From your router or other wise your router is going to try and send it out over the Internet... Since this is more then likely not a Cisco router... Just a cheap cable router its not going to recognise the local account and send it out over the world wide web.... No Cable company is going to give direct access to there network..
Look first disconnect your Internet connection... From your router or other wise your router is going to try and send it out over the Internet... Since this is more then likely not a Cisco router... Just a cheap cable router its not going to recognise the local account and send it out over the world wide web.... No Cable company is going to give direct access to there network..
Thanks Culaterout for your comment.
Actually I was pinging from windows while connecting wireless to internet, will this cause problem? only I have crossover cable connecting both laptops.
Distribution: Debian, Arch Linux, Linux Mint, Ubuntu, Fedora, Suse, Mepis, Redhat, Sayabon, mandrake and android (
Posts: 192
Rep:
Quote:
Originally Posted by Moderns
Thanks Culaterout for your comment.
Actually I was pinging from windows while connecting wireless to internet, will this cause problem? only I have crossover cable connecting both laptops.
Thanks.
No problem related...Ops sometimes I forget we have wireless???
Not a very secure measure is wireless so I stay away from it... Seeing
Use the trace route from windows (tracert) to Linux (traceroute) and vice versa. Post the result, may be that help any one.
If you can not ping, you must not be able to trace the route as well. Most important thing about CentOS is its security. Also check if you are allowed to ping to/from your Linux
for Linux: the command will be in bold color
[root@localhost ~]# traceroute 192.168.1.3 //windows ip
traceroute to 192.168.1.3 (192.168.1.3) 30 hops max, 40 byte packets
1 (192.168.1.4) 2999.519 ms !H 2999.490 ms !H 2999.456 ms !H
[root@localhost ~]# traceroute 192.168.1.4 // linux ip
traceroute to 192.168.1.4 (192.168.1.4) 30 hops max, 40 byte packets
1 (192.168.1.4) 0.083 ms 0.021 ms 0.019 ms
Also I can ping Linux IP address 192.168.1.4
[root@localhost ~]# ping 192.168.1.4
64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.051 ms
64 bytes from 192.168.1.4: icmp_seq=2 ttl=64 time=0.053 ms
64 bytes from 192.168.1.4: icmp_seq=3 ttl=64 time=0.051 ms
64 bytes from 192.168.1.4: icmp_seq=4 ttl=64 time=0.052 ms
64 bytes from 192.168.1.4: icmp_seq=5 ttl=64 time=0.049 ms
64 bytes from 192.168.1.4: icmp_seq=6 ttl=64 time=0.051 ms
.
.
.
.
.
Also I can ping in windows to same windows IP 192.168.1.3
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.