LinuxQuestions.org
Review your favorite Linux distribution.
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 09-13-2007, 09:32 AM   #1
culin
Member
 
Registered: Sep 2006
Distribution: Fedora Core 10
Posts: 254

Rep: Reputation: 32
VM ware networking


Hi friends,
i have a problem here... in my windows PC i have installed VM ware Player.. and on that i have installed DebainEtch OS... so when i type ifconfig in the Debain it is telling the IP address of the system as 192.168.188.128.. but My windows PC where i have installed VM ware the IP address is in the different network say My IP address of the windows PC is 192.168.33.104...
so from an externel PC I can ping 192.168.33.104 IP but not 192.168.188.128...
so, how do i ping to IP address 192.168.188.128 from the externel PC ???
is it possible ?? if yes please help me to solve this problem..
thanks.. )
 
Old 09-13-2007, 09:42 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
I'm using WmWare Worksation so I don't know if it's exactly the same, but if you bridge the NIC of your virtual machine to the physical one in you virtual machine settings, it should work.

Regards,
Angel.

Last edited by angel115; 09-13-2007 at 09:45 AM.
 
Old 09-13-2007, 11:36 AM   #3
culin
Member
 
Registered: Sep 2006
Distribution: Fedora Core 10
Posts: 254

Original Poster
Rep: Reputation: 32
thanks for the reply angel115,
Quote:
Originally Posted by angel115
bridge the NIC of your virtual machine to the physical one in you virtual machine settings
please explain me what is this... i really dont know about bridging..
 
Old 09-13-2007, 02:56 PM   #4
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
I could be wrong here, but I think the VMWare Player uses NAT and doesn't let you re-configure the network.

Why do you want to be able to ping from a different machine.

Cheers.
 
Old 09-13-2007, 09:09 PM   #5
mrlinux11
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
Does the Linux Distro you have in the vmplayer running a firewall ???
 
Old 09-14-2007, 12:05 AM   #6
culin
Member
 
Registered: Sep 2006
Distribution: Fedora Core 10
Posts: 254

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by MQMan
Why do you want to be able to ping from a different machine.
since i want to acces this linux PC(Virtual machine) from the LAN..
Quote:
Originally Posted by mrlinux11
Does the Linux Distro you have in the vmplayer running a firewall ???
ya firewall is disabled....
please gimme any other solutions...
 
Old 09-15-2007, 10:45 AM   #7
mrlinux11
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
Do you have access to the vmware network settings with the vmware player ???
 
Old 09-15-2007, 01:43 PM   #8
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
I think you need to enable IP forwarding in windows xp, the instructions are here.
 
Old 09-17-2007, 02:18 AM   #9
culin
Member
 
Registered: Sep 2006
Distribution: Fedora Core 10
Posts: 254

Original Poster
Rep: Reputation: 32
Thanks all for replies..
Quote:
Do you have access to the vmware network settings with the vmware player ???
ya i can configure as DHCP or i can give statically..
Quote:
I think you need to enable IP forwarding in windows xp
i have already done that.. but even then the problem persists..
today i made some more observations...
when i go to show all network connections in my PC it is showing 2 more interfaces Vmnet1(with IP 192.168.27.1) and Vmnet8(with IP 192.168.247.1) and when i see the IP address of these 2 it is totally different from the IP address "when i do an ifconfig(with IP 192.168.247.128) in the DeebainEtch" all these are the observations with the NAT configuration in VmWare Player..
so from MY PC (win XP ) i am able to ping all the 3 ip addresses namely Vmnet1 Vmnet8 and the ifconfig IP address... but say from another machine(in the LAN)with IP address 192.168.174.75 i am able to ping the Vmnet1 IP address only not the other 2!!!!!!!!! and also i even checked with BRIDGED and HOST-ONLY configurations... but no result...
i am totally confused please someone help me...
how to ping all the 3 IP addresses from another PC in the LAN ???
thanks...

Last edited by culin; 09-17-2007 at 02:21 AM.
 
Old 09-17-2007, 12:34 PM   #10
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Quote:
Originally Posted by culin View Post
ya i can configure as DHCP or i can give statically..
I'm not talking about how you configure the card in the OS running under VMWare. I was referring to the VMWare options that allow you to run in Bridged, Host, or NAT mode at the VMWare level.

I think the VMWare player defaults to NAT, and can't be changed.

**Update** My bad, I just re-read what you put, and it looks like you did try all the modes.

My guess is that it's the routing tables in one, or more of the "real" machines that need to be set up to allow this.

Cheers.

Last edited by MQMan; 09-17-2007 at 12:39 PM.
 
Old 09-17-2007, 12:54 PM   #11
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
OK, I've thought about this a bit more. How are the machines connected, and what is the default Gateway for each. If the Gateway isn't the machine running the VMWare image, then how does each machine know that it has to send the request to that particular box. It has no knowledge of the IPs that are in the VMWare guest, and so sends anything it doesn't recognise to the default Gateway.

You will need to add a route, or routes, from each of the other boxes, that direct any of the traffic, that is intended for the VMWare quest, to the box where it's running.

Cheers.

Last edited by MQMan; 09-17-2007 at 12:56 PM.
 
Old 09-17-2007, 04:59 PM   #12
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
If I were you I would ditch VMware Player and Install VMware Server. VMware Server is free.

VMware Server on Windows XP will ask on install if you want to set a bridged connection which of course you do. A bridged connection the easy way I understand it and can explain it to you: shares one NIC, in this case the host machine at 192.168.0.1. So VMware Server creates its own network but the Virtual Machine will pull an address from the same network the Windows XP box is on. So if your home router is using DHCP it would allocate the next available IP address, so your XP box is 192.168.0.1 and your Virtual Machine would be 192.168.0.2. Once that was done you could forward the ports needed to access the Virtual Machine. I would set your Virtual Machine with a static address.

Setting up VMware Server is easy. If you haven't figured it out yet post back or PM and I can walk you through it.

Last edited by bskrakes; 09-17-2007 at 05:01 PM.
 
Old 09-18-2007, 01:24 AM   #13
culin
Member
 
Registered: Sep 2006
Distribution: Fedora Core 10
Posts: 254

Original Poster
Rep: Reputation: 32
fine... i will tell my problem in detail in other way....

All the below are with respect to the NAT configuration in the VM Player.

# My PC(windows XP) 192.168.33.104 with netmask 255.255.248.0 and default gateway 192.168.178.6 with persistant routes to
192.168.178.0, 192.168.6.0, 192.168.174.0, 192.168.172.0, 192.168.33.0

# With VMware player running (the DebainEtch)there will be 2 more interfaces in the network connection in windows namely
VMnet1(IP address 192.168.247.1 and gateway field is blank) and VMnet8(IP address 192.168.247.1 and gateway field is blank)

# Now i am pinging from an External PC which is in the same LAN where my PC is connected. The IP address of this PC is
192.168.174.75 with netmask 255.255.255.0 and default gateway 192.168.174.47.

# When i do an ifconfig in the DebainEtch in VMPlayer it is showing the IP address which is in the same subnet as of Vmnet1
i.e. ifconfig IP is 192.168.27.128. and from this DebainEtch i am able to ping to 192.168.174.75(External PC) and 192.168.33.104(My PC)

# From My PC i am able to ping all VMnet1 and VMnet8 and ifconfig IP's.

# From the Externel PC i am able to ping VMnet1 successfully and when i ping ifconfig and VMnet8
it is telling ""Time to live exceeded""


# So why i am not able to ping ifconfig IP from the Externel PC when i am able to ping that PC from here ??? ??? !!!

and when i try do add a route to 27.0 subnet it is telling Network unreachable !!!
/sbin/route add -net 192.168.27.0 netmask 255.255.255.0 gw 192.168.33.104
SIOCADDRT: Network is unreachable

Quote:
Originally Posted by bskrakes
Setting up VMware Server is easy. If you haven't figured it out yet post back or PM and I can walk you through it.
Thanks for the suggestion.. please send me some links or pdf's related to configuring that

Last edited by culin; 09-18-2007 at 01:27 AM. Reason: missed some points
 
Old 09-18-2007, 07:25 AM   #14
mrlinux11
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
Change the netmask on your external PC to 255.255.0.0 and retry it.
 
Old 09-18-2007, 11:36 PM   #15
culin
Member
 
Registered: Sep 2006
Distribution: Fedora Core 10
Posts: 254

Original Poster
Rep: Reputation: 32
No i had tried this long back....when i change the netmask and ping the VMware ifconfig IP (192.168.27.128)
this gives different message... Destination host not reachable... !!!
 
  


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
[SOLVED] Not-Quite-Soft-Ware soplin Linux - General 2 05-11-2007 06:47 AM
CD Burner in VM Ware? jedimastermopar Red Hat 1 10-12-2006 11:30 AM
ware do i start please paul.chambo Linux - Newbie 7 05-12-2006 03:56 AM
I need help with vm ware kevinbowers Linux - General 2 04-08-2006 04:37 PM
Burning Ware cipher_code Linux - General 3 12-19-2001 08:07 PM

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

All times are GMT -5. The time now is 09:45 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
Open Source Consulting | Domain Registration