connect virtual machine to internet

I have windows 7 connected to the wireless router which is connected to a wired router that is connected  to internet.

Windows 7-->Wireless router-->wired router-->internet

on windows 7 I have installed vmware workstation
 I have installed windows 2008R2 on vmware workstation
I have disabled firewall on windows2008.

the windows 2008 cannot connect to internet, I have tried to:
 The bridged option of  Network adapter and did not connect to internet
The NAT option and did not connect to internet.

I wonder what else should I do to get the VM machine(windows 2008 ) to connect to internet.

Thanks
jskfanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BawerCIOCommented:
only NAT option will work in the case of internet, or if you want to bridge then you have to assign an IP from your own actual range.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jskfanAuthor Commented:
<<only NAT option will work in the case of internet, or if you want to bridge then you have to assign an IP from your own actual range.>>

NAT option didn't work either..
what do you mean by assign an IP from your own actual range?

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
if using Bridged Networking it should obtain and IP address from your router, in the same range as you Windows 7 workstation.

Does you WIn7 PC obtain an IP address automatically?
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

jskfanAuthor Commented:
yes my windows 7 pc obtains an IP automatically through its wireless Lan adapter.

I used my windows 7 pc obtained IP address as the default gateway of the virtual machine (windows2008) , but still cannot connect or even ping the DG.
jskfanAuthor Commented:
it says destination host unreachable
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
just set the Windows 2008 machine to obtain and IP address automatically.

and use Bridged Networking for the VM
vmwarun - ArunCommented:
Open Virtual Network Editor by clicking on Start -> All Programs -> VMware -> Virtual Network Editor

Check whether the VMnet0 (Bridged) type of VM Networking is mapped correctly to the Wireless NIC on the Windows 7 host as shown in the picture.

VirtualNetworkEditor
In my case, its bound to the Ethernet adapter found on my Windows 7 laptop. In your case, it should be bound to the Wireless NIC on the Windows 7 host.

VMware Workstation sometimes has issues with Wireless cards where-in the VMs cannot obtain an IP address through DHCP when using Bridged Mode.
jskfanAuthor Commented:
unfortunately it didn't work using vmware editor either
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
when you set the WIndows 2008 VM to obtain an IP address automatically, what error do you get, or what IP address is assigned to the VM?

what IP address is assigned to the Win  7 workstation?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
have you set the VM to use Bridged Mode?
jskfanAuthor Commented:
I have done some changes, I can get the Ip address in the same subnet as my physical machine  Windows 7.

windows 7 has the IP 192.168.1.67 /24, DG 192.168.1.254
windows 2008 VM machine has 192.168.1.68/24 DG 192.168.1.254

I can't ping each other machine so far
jskfanAuthor Commented:
but for some reason it doesn't stay stable, the IP in VM switches to 169.254.x.x
IP
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
can you ping the gateway 192.168.1.254 from both machines?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
that's a bit weird, that it obtains an ip address, and then reverts to 169.xx.xx.xx

if you set it to a static of 192.168.1.68 in the vm, can you ping the gateway 192.168.1.254 constantly with -t (minus t)
jskfanAuthor Commented:
wow, for now I got it to work,I hope it will stay working.

control panel items\troubleshooting\network and internet
clicked internet connections wizard and it fixed it.
I can connect to internet now.
jskfanAuthor Commented:
thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.