LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2011, 04:32 AM   #1
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
unable to ping or ssh any machine on network


Hello all,

I have come across some strange issue which I am not able to overcome

I have 2 RHEL 5.2 installed on vmware workstation 6

Code:
IP of RHEL 1 -----> 192.168.0.233
IP of RHEL 2 -----> 192.168.0.106
IP of Windows 7 -----> 192.168.0.81
the vmware is installed on windows 7
Till yesterday everything was working fine. But since today morning when I started the VM, my windows machine is not able to ping the VMs

Strange thing is that I ran IPscan to check for those IP(233 and 106), it says that both are in network but still unable to ping?

I have checked every possible thing as per my knowledge, (i am very poor in networking )

Code:
/etc/hosts
/etc/resolv.conf
/etc/sysconfig/ntwork-scripts/ifcfg-eth0
the vmware network adapter is set to bridged networking

Code:
#ethtool eth0
link yes
Issues:

1.The VM's are able to ping each other but not my windows machine
2.I am unable to ping my gateway or DNS
3.telnet localhost returns with error

Code:
#telnet localhost
telnet: connect to address 127.0.0.1: connection refused 
telnet: unable to connect to remote host: connection refused
Code:
#vi /etc/hosts
::1 localhost6.localdomain6   localhost6
127.0.0.1 locahost.localdomain    localhost
192.168.0.233   server.deepsoft.com     server
Code:
#vi /etc/resolv.conf
search deepsoft
nameserver x.x.x.x
Can anyone guide me, how can I fix this?
I want to use my linux on putty but due to this issue I am unable to do so

Every time I try to ping, I get host unreachable error

Last edited by deep27ak; 11-09-2011 at 04:53 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-09-2011, 05:35 AM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
It sounds like an issue with the network adapter component of vmware. But I'm not entirely clear on what can ping what - you haven't always said which machine you are pinging from.

Is this right:
On RHEL 1 you can ping RHEL 2 successfully, but not ping the windows host or your gateway?
Same on RHEL2?
On the windows host you can't ping the RHEL guests (but you could before)?

What does ifconfig -a report on each guest? What does ipconfig /all report on the host?
 
2 members found this post helpful.
Old 11-09-2011, 06:02 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by SecretCode View Post
It sounds like an issue with the network adapter component of vmware. But I'm not entirely clear on what can ping what - you haven't always said which machine you are pinging from.

Is this right:
On RHEL 1 you can ping RHEL 2 successfully, but not ping the windows host or your gateway?
Same on RHEL2?
On the windows host you can't ping the RHEL guests (but you could before)?

What does ifconfig -a report on each guest? What does ipconfig /all report on the host?
ok let me explain again

windows 7 is not able to ping either linux machine on VM
and both the machines on VM can ping each other

I have attached few files, please check them :

Issue is with linux VM through which I am not able to ping windows machine and vice versa
Attached Thumbnails
Click image for larger version

Name:	eth0.jpg
Views:	528
Size:	88.7 KB
ID:	8336   Click image for larger version

Name:	eth0_233.png
Views:	377
Size:	214.5 KB
ID:	8337   Click image for larger version

Name:	ping.jpg
Views:	344
Size:	170.6 KB
ID:	8338  
 
Old 11-09-2011, 06:07 AM   #4
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
could you also post the output on the linux VMs of those commands:
Code:
route
ifconfig
nmap -sP 192.168.0.0/24
and the equivalent under windows

also I suggest you make all your ping tests using IP addresses, this way, we know dns is not involved.
 
Old 11-09-2011, 06:15 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by 16pide View Post
could you also post the output on the linux VMs of those commands:
Code:
route
ifconfig
nmap -sP 192.168.0.0/24
and the equivalent under windows

also I suggest you make all your ping tests using IP addresses, this way, we know dns is not involved.

you can check attach fles

I am pinging through IP address from windows as well as linux machine
Attached Thumbnails
Click image for larger version

Name:	ifconfig_route.jpg
Views:	505
Size:	110.4 KB
ID:	8339   Click image for larger version

Name:	nmap.jpg
Views:	204
Size:	22.2 KB
ID:	8340  

Last edited by deep27ak; 11-09-2011 at 06:21 AM.
 
Old 11-09-2011, 06:57 AM   #6
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
ifconfig says you have an IPv4 address, nmap says you don't. That's odd.

Please post the output of ipconfig /all from the host.
 
Old 11-09-2011, 07:03 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by SecretCode View Post
ifconfig says you have an IPv4 address, nmap says you don't. That's odd.

Please post the output of ipconfig /all from the host.
you can check the attachment
Attached Thumbnails
Click image for larger version

Name:	ipconfig_all.jpg
Views:	376
Size:	212.9 KB
ID:	8341  
 
Old 11-09-2011, 07:46 AM   #8
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Are you not able to copy & paste as text? Using code tags? Much easier for us to work with.
 
Old 11-09-2011, 07:50 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by SecretCode View Post
Are you not able to copy & paste as text? Using code tags? Much easier for us to work with.
Since I am not able to connect through putty that is why i am using these attachment because its not possible to copy and paste from VM to windows

sorry for that but please can you tell me what could be the issue

I deleted that network adapter and created a new one in the VM but still same problem.
 
Old 11-09-2011, 08:24 AM   #10
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
well thnx friends for your interest but it seems I have solved the problem

I will leave the solution for other users who face this issue

It is actually nothing to do with LINUX or WINDOWS

Quote:
It is something with vmware so I apologize for posting this post

When I had installed vmware workstation, I didn't noticed by default a vmware network adapter also got installed which was handling all the network adapter stuff.

I am still surprised to see that the default network adapter option in there was changed to something else and that is the reason my VMs were unable to connect to their network adapter

Well its pretty VM stuff so I won't elaborate further

Thanks again SecretCode and 16pide
 
Old 11-09-2011, 09:48 AM   #11
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by SecretCode View Post
It sounds like an issue with the network adapter component of vmware.
I was right!

Glad you've found the fix.
 
Old 09-05-2012, 02:02 AM   #12
tieulytamhoan
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
Post Please help

Quote:
Originally Posted by deep27ak View Post
well thnx friends for your interest but it seems I have solved the problem

I will leave the solution for other users who face this issue

It is actually nothing to do with LINUX or WINDOWS


When I had installed vmware workstation, I didn't noticed by default a vmware network adapter also got installed which was handling all the network adapter stuff.

I am still surprised to see that the default network adapter option in there was changed to something else and that is the reason my VMs were unable to connect to their network adapter

Well its pretty VM stuff so I won't elaborate further

Thanks again SecretCode and 16pide
Hi deep27ak,

I have the same problem as you had when doing my project. It takes me several weeks digging webpages as well as forums but I could not figure out how to solve it.

Please be kind enough to help me solve this painful trouble. Looking forward to you. Highly appreciated.
 
Old 09-05-2012, 02:33 AM   #13
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by tieulytamhoan View Post
Hi deep27ak,

I have the same problem as you had when doing my project. It takes me several weeks digging webpages as well as forums but I could not figure out how to solve it.

Please be kind enough to help me solve this painful trouble. Looking forward to you. Highly appreciated.
The problem I faced was that

The network adapter I selected in my virtual box was selected to NAT which I changed to "Bridged" and selected my ethernet adapter

Check the network settings of your VMware
 
Old 09-05-2012, 07:46 PM   #14
tieulytamhoan
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
Lightbulb Solved

Quote:
Originally Posted by deep27ak View Post
The problem I faced was that

The network adapter I selected in my virtual box was selected to NAT which I changed to "Bridged" and selected my ethernet adapter

Check the network settings of your VMware
Thanks for your enthusiasm, deep2k7. Problem was found.

It was something didn't go well with the network card configured inside my virtual CentOS Linux running VMWare.

Solution shared for who has to cope with this painful issue:
1. Remove the network card in "Network Configuration".
2. Restart both virtual machine and physical machine.
3. Make a new network card.
4. Testing ping.
[5. If trouble still exist -> write emails for VMWare & Linux ^_^]

Cheers, guys!
 
Old 12-16-2012, 11:40 PM   #15
oamohammedshiraz
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
Thanks a ton for the tip... it worked for me
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian: Unable to ping (network) beyond my own machine alizeno Linux - Networking 1 09-27-2010 08:27 AM
unable to ping the linux machine chakribobby Linux - Newbie 6 07-15-2010 06:17 PM
unable to ping or ssh in ubuntu 9.04 zagg Linux - Networking 6 08-20-2009 04:40 AM
not able to ping a machine but can do ssh to machine , wanna run vnc client amolgupta Linux - Software 4 07-28-2009 05:17 PM
Unable to use wget and unable to ping machine from external source grunshaw Linux - Networking 3 10-24-2006 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration