VMware Communities
samipk
Contributor
Contributor
Jump to solution

i need help accessing my guest pc from other pcs in network

Hello everyone,

i am a noob to VMware workstation 6 beta, i just setup a windows 2003 server system as a guest and my host os is also windows 2003 server, i wanted to use the guest os as a domain controller to get my other network pc to be in a domain this way but i am unable to get the pcs on the network to access the guest system , i did a configuration on the guest which allowed it to access other pcs in the network but the other pcs were not able to connect to it

My host os has 2 NIC cards both having static ips one has a public ip and is used to access internet and the other has private ip and is used to access my local network

i want to be able to connect to internet on the guest and also want other systems in the network to access the guest os please help me out in this step by step

i am attaching the screenshots of various thing to help out

here is the ipconfig screen of the guest os

\[img]http://img157.imageshack.us/img157/4670/screenfi5.jpg[/img]

here is the ipconfig screen of the host os

\[img]http://img405.imageshack.us/img405/7244/hostscreency9.jpg[/img]

here is the summary screen of the guest

\[img]http://img172.imageshack.us/img172/7558/summaryka8.jpg[/img]

here are the screenshots of the virtual network setting tabs

\[img]http://img256.imageshack.us/img256/7623/91647152vj5.jpg[/img]

\[img]http://img256.imageshack.us/img256/7154/28457454az9.jpg[/img]

\[img]http://img296.imageshack.us/img296/4637/69475442ec7.jpg[/img]

\[img]http://img187.imageshack.us/img187/6571/62507898au9.jpg[/img]

\[img]http://img187.imageshack.us/img187/6360/32337986fd7.jpg[/img]

waiting for a quick response thanks in advance

P.S SURECOM ETHERNET ADAPTER #2 is the NIC having the private ip address of my LAN which is 192.168.0.4

Message was edited by:

samipk

0 Kudos
1 Solution

Accepted Solutions
Peter_vm
Immortal
Immortal
Jump to solution

Better!

Try that simple thing with one of your guests:

Configure a single NIC and connect it to NAT.

Have guest IP settings set to DHCP. Boot it. Does it have access to internet? If it does, then you can start adjusting your "Virtual Network Settings..."

VMnet0 - bridge to "SURECOM EP-320X-R 100/10/M PCI Adapter #2"

VMnet1 - leave it as Host only

VMnet8 - leave it as NAT

Remove other VMnets.

Create FreeBSD VM

Have one vNIC1 bridged to VMnet0, second vNIC2 connected to VMnet8 (NAT). Put static IPs for both vNICs:

vNIC1 : 192.168.0.10 mask 255.255.255.0

vNIC2 : 192.168.130.3 mask 255.255.255.0

default gateway 192.168.130.2

enable IP routing, route 192.168.0.x network via vNIC1

For all physical computers use 192.168.0.10 as a gateway.

View solution in original post

0 Kudos
28 Replies
Peter_vm
Immortal
Immortal
Jump to solution

Oh boy, you have quite a mess here. Please make yourself a favour and uninstall VMware Workstation. It seems that you played with almost every setting possible, changing it from defaults.

You objective can be met more easily if you add an external router (typical for home networks). It costs very little, but adds to flexibility, simplicity and security in a small environment. Do you consider it as a viable option?

BTW. Beta forum is here:

http://www.vmware.com/community/forum.jspa?forumID=372

samipk
Contributor
Contributor
Jump to solution

well i have worked around a bit and corrected the mess a bit now my guest is able to connect to other pcs in the network and also is able to use internet by sharing my nic having the isp's public ip, but the main prob is still there and that is that other pcs in my network are unable to reach the guest os[/b] as the 2 nic's on the guest os have the ip of 192.168.13.x & 192.168.130.x where as the ip series used by other systems in my network is 192.168.0.x and my host nic's lan ip is 192.168.0.4

to clear all things up a bit i am pasting the new screens for you

here is the host's ipconfig i have removed ip details of the nic having the public ip it is named as WAN[/b]

http://i146.photobucket.com/albums/r268/cramper/hostosscreen.jpg

here is what happens when host pings the ips in the guest os[/b]

http://i146.photobucket.com/albums/r268/cramper/whenhostpingsguest.jpg"

here is the guest os ipconfig[/b]

http://i146.photobucket.com/albums/r268/cramper/guesosipconfig.jpg

here is what happens when i ping to the ips in the host os[/b]

http://i146.photobucket.com/albums/r268/cramper/whenguestospinghost.jpg

here are the setting in vmware virtual network and the summary screen[/b]

<a href="http://photobucket.com" target="_blank">!http://i146.photobucket.com/albums/r268/cramper/3-8.jpg|alt=Photo Sharing and Video Hosting at Photobucket|src=http://i146.photobucket.com/albums/r268/cramper/3-8.jpg|border=0!</a>

<a href="http://photobucket.com" target="_blank">!http://i146.photobucket.com/albums/r268/cramper/4-1.jpg|alt=Photo Sharing and Video Hosting at Photobucket|src=http://i146.photobucket.com/albums/r268/cramper/4-1.jpg|border=0!</a>

<a href="http://photobucket.com" target="_blank">!http://i146.photobucket.com/albums/r268/cramper/5-1.jpg|alt=Photo Sharing and Video Hosting at Photobucket|src=http://i146.photobucket.com/albums/r268/cramper/5-1.jpg|border=0!</a>

<a href="http://photobucket.com" target="_blank">!http://i146.photobucket.com/albums/r268/cramper/2-11.jpg|alt=Photo Sharing and Video Hosting at Photobucket|src=http://i146.photobucket.com/albums/r268/cramper/2-11.jpg|border=0!</a>

<a href="http://photobucket.com" target="_blank">!http://i146.photobucket.com/albums/r268/cramper/1-3.jpg|alt=Photo Sharing and Video Hosting at Photobucket|src=http://i146.photobucket.com/albums/r268/cramper/1-3.jpg|border=0!</a>

SORRY FOR NOT POSTING IN THE APPROPRIATE FORUM IF SOMEBODY CAN MOVE THIS IT WOULD BE GREAT[/b]

0 Kudos
Peter_vm
Immortal
Immortal
Jump to solution

You objective can be met more easily if you add an external router (typical for home networks). It costs very little, but adds to flexibility, simplicity and security in a small environment. Do you consider it as a viable option?

0 Kudos
samipk
Contributor
Contributor
Jump to solution

no i cannot afford any sort of extra hardware but i can turn the host os into a router(as it has windows 2003 server) if that can solve the problem but i would need some help for that

0 Kudos
Peter_vm
Immortal
Immortal
Jump to solution

I would rather perform routing in extra VM.

The problem is that you have host directly connected to the internet. That suggests to use NAT for your guests (they need to have internet access).

But that would preclude them from being accessible from other, physical machines on the network.

Solution is to create a router VM which becomes gateway for all machines on your network. One virtual NIC would be bridged to your LAN NIC on host, the other one to VMnet8 (NAT). Virtual NIC static IP needs to be on your network segment.

That is the simplest approach. I would not mess with routing on your host, as it might interfere with VMware network interfaces present there.

stiltzkin
Contributor
Contributor
Jump to solution

Watching this with eagerness as it appears that this may answer my question???

http://www.vmware.com/community/thread.jspa?threadID=77845&tstart=0

How easy is it to set up a VM as a router? Can you use one of the virtual appliances?

0 Kudos
Peter_vm
Immortal
Immortal
Jump to solution

Yes, they are appliances for that. If you are familiar with setting up a linux as a router, you can do that. I have configured a simple FreeBSD VM. It is set with 50MB RAM.

0 Kudos
samipk
Contributor
Contributor
Jump to solution

I would rather perform routing in extra VM.

how can i achieve that should i make a new 2003 server VM??how should i configure it?cause the router VM will also have ips that dont belong to 192.168.0.x series

Virtual NIC static IP needs to be on your network segment[/b]

i have posted the host ipconfig above which VMNet adpater on the host should i add the static ip of the series 192.168.0.x to??

i have tried it on vmnet8 by giving it an ip of 192.168.0.111 but when i do that everything goes dead in the guest

sorry for the noobness but i would be very glad if i can be helped step by step

0 Kudos
samipk
Contributor
Contributor
Jump to solution

Yes, they are appliances for that. If you are familiar with setting up a linux as a router, you can do that. I have configured a simple FreeBSD VM. It is set with 50MB RAM.[/b]

i have an image for the freebsd VM if you give me a step by step guide for doing that i might work it out

0 Kudos
Peter_vm
Immortal
Immortal
Jump to solution

Can you first post a full "IPCONFIG /ALL" from your host?

If there are public IPs, obfuscate them using other public IP values, like:

111.112.113.114

But be consistent.

0 Kudos
samipk
Contributor
Contributor
Jump to solution

here is the result of the full ipconfig/all of my host machine

<a href="http://photobucket.com" target="_blank">!http://i146.photobucket.com/albums/r268/cramper/hostosscreen.jpg|alt=Photo Sharing and Video Hosting at Photobucket|src=http://i146.photobucket.com/albums/r268/cramper/hostosscreen.jpg|border=0!</a>

i have only ommitted the WAN interface having the public ips the rest are here

i totally have 4 nic's now 2 are for vmware and a LAN and a WAN nic, hope this will help all the rest of the stuff you need to know are in my post above

thanks for trying to stick with helping me for so long

0 Kudos
Peter_vm
Immortal
Immortal
Jump to solution

Can you do a bit better?

Here is an example of "IPCONFIG /ALL" from my system:

Windows IP Configuration

Host Name . . . . . . . . . . . . : myhost

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : Yes

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : 3Com 3C918 Integrated Fast Ethernet

Controller (3C905B-TX Compatible)

Physical Address. . . . . . . . . : 00-C0-5F-68-80-EC

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 4.15.14.35

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 4.15.14.6

DNS Servers . . . . . . . . . . . : 64.81.159.2

63.208.196.90

216.126.88.2

PPP adapter VPN Internet:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface

Physical Address. . . . . . . . . : 00-53-45-00-00-00

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 172.18.34.83

Subnet Mask . . . . . . . . . . . : 255.255.255.255

Default Gateway . . . . . . . . . : 172.18.34.83

DNS Servers . . . . . . . . . . . : 10.0.15.2

NetBIOS over Tcpip. . . . . . . . : Disabled[/code]

0 Kudos
samipk
Contributor
Contributor
Jump to solution

sorry for being so lame Smiley Happy here are the details you want

Host Name . . . . . . . . . . . . : sa

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown

IP Routing Enabled. . . . . . . . : Yes

WINS Proxy Enabled. . . . . . . . : Yes

Ethernet adapter LAN:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : SURECOM EP-320X-R 100/10/M PCI Adapter #2

Physical Address. . . . . . . . . : 00-02-44-9D-31-EC

DHCP Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.0.4

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

DNS Servers . . . . . . . . . . . : 192.168.130.128

NetBIOS over Tcpip. . . . . . . . : Disabled

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet

8

Physical Address. . . . . . . . . : 00-50-56-C0-00-08

DHCP Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.130.1

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet

1

Physical Address. . . . . . . . . : 00-50-56-C0-00-01

DHCP Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.80.1

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

Ethernet adapter WAN:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : SURECOM EP-320X-R 100/10/M PCI Adapter

0 Kudos
Peter_vm
Immortal
Immortal
Jump to solution

Better!

Try that simple thing with one of your guests:

Configure a single NIC and connect it to NAT.

Have guest IP settings set to DHCP. Boot it. Does it have access to internet? If it does, then you can start adjusting your "Virtual Network Settings..."

VMnet0 - bridge to "SURECOM EP-320X-R 100/10/M PCI Adapter #2"

VMnet1 - leave it as Host only

VMnet8 - leave it as NAT

Remove other VMnets.

Create FreeBSD VM

Have one vNIC1 bridged to VMnet0, second vNIC2 connected to VMnet8 (NAT). Put static IPs for both vNICs:

vNIC1 : 192.168.0.10 mask 255.255.255.0

vNIC2 : 192.168.130.3 mask 255.255.255.0

default gateway 192.168.130.2

enable IP routing, route 192.168.0.x network via vNIC1

For all physical computers use 192.168.0.10 as a gateway.

0 Kudos
samipk
Contributor
Contributor
Jump to solution

i will be installing freebsd today and doing what you said by reading an ebook so wish me luck and check this post again in a day or 2 Smiley Happy thanks for the help

0 Kudos
samipk
Contributor
Contributor
Jump to solution

just 2 questions

does the default gateway 192.168.130.2 apply to both ethernets i have used the command route add default 192.168.130.2[/b]

and you wrote

For all physical computers use 192.168.0.10 as a gateway.[/b]

does this mean every lan system who wants to access guest should have this gateway?

well here is the initial settings that i have did on freebsd

<a href="http://imageshack.us">!http://img124.imageshack.us/img124/1976/wwck6.jpg|alt=Image Hosted by ImageShack.us|src=http://img124.imageshack.us/img124/1976/wwck6.jpg|border=0!</a>

Message was edited by:

samipk

0 Kudos
samipk
Contributor
Contributor
Jump to solution

just 2 questions

does the default gateway 192.168.130.2 apply to both ethernet i have used the command route add default 192.168.130.2[/b]

and you wrote

For all physical computers use 192.168.0.10 as a gateway.[/b]

does this mean every lan system who wants to access guest should have this gateway?

well here is the initial settings that i have did on freebsd

i configured the ipaddresses and default gateway in this manner check the picture

http://img339.imageshack.us/img339/3782/ifconfiganddefaultrouteyx6.jpg

i enabled routing by add gateway_enable=YES in the /etc/rc.conf file

i also added these lines to rc.conf file to enable routing for the 192.168.0.x network

static_routes="internalnet2"

route_internalnet2="-net 192.168.0.0/24 192.168.0.10"

now my rc.conf looks like this

http://img440.imageshack.us/img440/2508/rcconfic8.jpg

\- freebsd can now ping the 2003 server guests ip

\- the 2003 server guest can ping both the ips on freebsd(first it was unable to ping 192.168.0.10 but i added a default gateway of 192.168.130.3 which is the other nic on freebsd) and now its pinging.

\- the 2003 server guest can ping the host system (first it was unable to ping 192.168.0.4 but i added a secondary gateway of 192.168.130.3 which is the Vmnet8 nic on host)

\- the 2003 server is unable to access any other system on network though after i gave 192.168.130.3 as a gateway.

\- the freebsd machine is unable to ping any system on the network having segment of 192.168.0.x

what should i do now??i have worked hard to achieve this any brief help would be good and thanks for the good info

0 Kudos
Peter_vm
Immortal
Immortal
Jump to solution

Can you post the following from FreeBSD machine?

netstat -nr

cat /etc/resolv.conf

cat /etc/rc.conf[/code]

Yes, every LAN PC needs default gateway set to 192.168.0.10.

FreeBSD VM needs default gateway set to 192.168.130.2

Please send .vmx of FreeBSD VM.

0 Kudos
samipk
Contributor
Contributor
Jump to solution

here is the netstat -nr screenshot

http://img151.imageshack.us/img151/703/netstatnrta7.jpg

here is the cat /etc/resolv.conf screenshot

http://img291.imageshack.us/img291/3479/resolvconflx1.jpg

here is the cat /etc/rc.conf screenshot

http://img291.imageshack.us/img291/9494/rcconfrc5.jpg

here is the vmx file you desired i am pasting the content

config.version = "8"

virtualHW.version = "6"

scsi0.present = "TRUE"

scsi0.virtualDev = "lsilogic"

memsize = "256"

ide0:0.present = "TRUE"

ide0:0.fileName = "FreeBSD2.vmdk"

ide1:0.present = "TRUE"

ide1:0.fileName = "H:"(i have ommited the path)

ide1:0.deviceType = "cdrom-image"

floppy0.autodetect = "TRUE"

ethernet0.present = "TRUE"

ethernet0.wakeOnPcktRcv = "FALSE"

usb.present = "TRUE"

ehci.present = "TRUE"

sound.present = "TRUE"

sound.fileName = "-1"

sound.autodetect = "TRUE"

pciBridge0.present = "TRUE"

mks.keyboardFilter = "allow"

displayName = "FreeBSD"

guestOS = "freebsd"

nvram = "FreeBSD.nvram"

deploymentPlatform = "windows"

virtualHW.productCompatibility = "hosted"

tools.upgrade.policy = "useGlobal"

floppy0.fileName = "A:"

isolation.tools.hgfs.disable = "TRUE"

ethernet0.addressType = "generated"

uuid.location = "56 4d ca db 67 0d a0 ec-f2 40 4d 56 01 a2 8d 93"

uuid.bios = "56 4d ca db 67 0d a0 ec-f2 40 4d 56 01 a2 8d 93"

ide0:0.redo = ""

pciBridge0.pciSlotNumber = "17"

scsi0.pciSlotNumber = "16"

ethernet0.pciSlotNumber = "32"

sound.pciSlotNumber = "33"

ehci.pciSlotNumber = "34"

ethernet0.generatedAddress = "00:0c:29:a2:8d:93"

ethernet0.generatedAddressOffset = "0"

tools.remindInstall = "TRUE"

floppy0.startConnected = "FALSE"

ide1:0.startConnected = "TRUE"

ethernet0.startConnected = "FALSE"

ethernet0.connectionType = "custom"

ethernet0.vnet = "VMnet0"

ethernet1.present = "TRUE"

ethernet1.connectionType = "custom"

ethernet1.vnet = "VMNet8"

ethernet1.wakeOnPcktRcv = "FALSE"

ethernet1.addressType = "generated"

ethernet1.pciSlotNumber = "35"

ethernet1.generatedAddress = "00:0c:29:a2:8d:9d"

ethernet1.generatedAddressOffset = "10"

Also thankyou for the continous support Peter_vm :)[/b]

0 Kudos