LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2009, 05:37 PM   #1
pvn_80
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Rep: Reputation: 15
not able to ping two Linux systems installed on VM


Hi,

In my office I have two systems and I installed VM on both the systems and then installed Linux 5.0 on them. I'm doing ifconfig to obtain IP address of both the Linux machines installed on VM, but when I try to ping each one of them they are not responding. How do I fix this?

Thanks
 
Old 12-22-2009, 06:05 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,349

Rep: Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910
Quote:
Originally Posted by pvn_80 View Post
Hi,

In my office I have two systems and I installed VM on both the systems and then installed Linux 5.0 on them. I'm doing ifconfig to obtain IP address of both the Linux machines installed on VM, but when I try to ping each one of them they are not responding. How do I fix this?

Thanks
Based on what you say, we've no idea.

You say "Linux 5.0"...WHAT linux? RedHat? SUSE? Debian? What kind of network configuration?

Post the output of both of the ifconfig statements for ONLY the interfaces you're talking about, and the routing table (output of the "route" command). You may have interfaces down, no default route, different networks, etc.

Are the linux boxes on two different VM hosts, or on the same one? Running what kind of VM software?
 
Old 12-22-2009, 06:24 PM   #3
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
What type of network interface did you setup? NAT? Bridged? etc. What are the IP addresses of the machines?
 
Old 12-23-2009, 02:37 PM   #4
pvn_80
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Original Poster
Rep: Reputation: 15
not able to ping two Linux systems installed on VM Reply to Thread

TB0ne,

This is what I have setup.System1 and System2 are two separate desktops on the same network

System1: Windows XP
IP:172.21.45.77
VM 6.5.1
On this VM I have installed RHEL 5.0 and named it station1. Below is the output of ifconfig and route:

[root@station1 ~]#ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:292:B5:B0
inet addr:192.168.223.129 Bcast:192.168.223.255 Mask:255.255.255.0
inet6 addr:fe80::20c:29ff:fed2:b5b0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packtes:169 errors:0 dropped:0 overruns:0 frame:0
TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20358 (19.8 KiB) TX bytes:26999 (18.6 KiB)
Interrupt:67 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING NTU:16436 Metric:1
RX packets:3888 errors:0 dropped:0 overruns:0 frame:0
TX packets:3888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8070948 (7.6 MiB) TX bytes:8070948 (7.6 MiB)


[root@station1 ~]#route
kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.223.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.223.2 0.0.0.0 UG 0 0 0 eth0



System2: Windows XP
IP:172.21.45.15
VM 6.5.1
On this VM I have installed RHEL 5.0 and named it Server1. Below is the output of ifconfig and route:

[root@Server1 ~]#ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:292:B5:B0
inet addr:192.168.107.128 Bcast:192.168.107.255 Mask:255.255.255.0
inet6 addr:fe80::20c:29ff:fed2:b5b0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packtes:267 errors:0 dropped:0 overruns:0 frame:0
TX packets:259 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27892 (27.2 KiB) TX bytes:26999 (26.3 KiB)
Interrupt:67 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING NTU:16436 Metric:1
RX packets:12795 errors:0 dropped:0 overruns:0 frame:0
TX packets:12795 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5442880 (5.1 MiB) TX bytes:26999 (5.1 MiB)


[root@Server1 ~]#route
kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.107.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.107.2 0.0.0.0 UG 0 0 0 eth0
 
Old 12-23-2009, 04:38 PM   #5
jillges
LQ Newbie
 
Registered: Aug 2003
Location: Sanford, Florida
Distribution: OpenSuse
Posts: 7

Rep: Reputation: 0
Sounds like a routing issue. Assuming your guests are on a NAT-ed network, not host only, the hosts act as routers. You need to tell each host how to get to the VM networks on the other host. On System 1, try "route add 192.168.107.0 mask 255.255.255.0 172.21.45.15". And on System 2 try "route add 192.168.223.0 mask 255.255.255.0 172.21.45.77"
 
Old 12-23-2009, 07:15 PM   #6
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
That or change your VM from NAT to Bridged and let them pull and IP from your router and be on the same network.
 
Old 12-23-2009, 09:20 PM   #7
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Also in VMware when you set up a NAT network connection, your Virtual Machine will get a 192.x.x.x network address. The host also gets a virtual address of 192.x.x.x. This allows the VM to communicate to the Host and other VM's on that host but I do not think it can communicate with other host or VMs on other host unless you set specific routes. I prefer to do Bridged connections to avoid having to do routes and such.
 
Old 12-23-2009, 09:25 PM   #8
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,924

Rep: Reputation: 278Reputation: 278Reputation: 278
NAT networking shares the host IP. Ping doesn't work in this case.
 
  


Reply

Tags
linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Copying installed package list to other systems tweak13 SUSE / openSUSE 2 02-26-2007 07:29 PM
LXer: Linux On Laptops: Pre-installed Systems Avoid Problems LXer Syndicated Linux News 0 08-27-2006 06:33 PM
can't ping other systems noahzenzen Linux - Networking 14 08-03-2005 05:34 PM
not able to ping from one n/w to another using linux box installed with zebra abirami Linux - Networking 7 09-14-2004 07:07 AM
ping program not installed in redhat linux 7.1 domeili Linux - Newbie 1 08-02-2004 10:38 AM


All times are GMT -5. The time now is 09:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration