ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How to connect VM (virtual machines ) to the internet through your PC? what is the gateway need to be add ?DNS ?

Virual machines hyper veam make VM network with your local network as one network

user-image
تم إضافة السؤال من قبل Mahmoud Abojebah , Oracle Developer , Jordan Armed Force
تاريخ النشر: 2017/12/07
Nawdeep kumar
من قبل Nawdeep kumar , 1. NOC/SOC(InfoSec) Engineer , EC-Council (A cyber security certification body)

this is too simple, you may keep network mode in vmware as a Bridge mode and connect to your local host machine lan and and in vmware guest machine you use direct router ip of lan side and dns server provided by your isp.

Mojahid Hussain
من قبل Mojahid Hussain , Senior System Administrator , Saudi Commission for Health Specialties

Connect VMware Workstation Virtual Machine to Physical Network

I will show you the steps by connecting Windows XP machine to external network. The diagram below shows our scenario.

VM to Physical Network

Windows XP is installed as virtual machine in VMware Workstation 9. At first configure static IP address in Windows XP machine as 192.168.50.102 and gateway of router’s IP as 192.168.50.100. When testing servers static IP address will be mostly used.

Connect VMware Workstation Virtual Machine to Physical Network

Now open the virtual machine settings of Windows XP machine in VMware Workstation. Select Network Adapter in Hardware tab. Here, choose the option, Bridged: Connected directly to the physical network. Then click OK button. Note: – If you choose replicate physical network connection state, IP address of virtual machine is automatically changed if you moved between networks which is assigned by DHCP server of the particular network. This works if the machine is configured to get IP address automatically from DHCP in Local area connectionproperties.

Connect VMware Workstation Virtual Machine to Physical Network

Your Windows machine is now connected to physical network. You can now Ping your default gateway (R1), and PC (Physical machine’s IP address) from Windows XP machine and vice-versa. You can also ping your virtual machine’s IP address from you machine, outside of VMware workstation application. If your configuration is right but it’s not pinging then type “ipconfig /flushdns” in the command prompt of PC (Physical machine). This will solve the problem by flushing (deleting) cache DNS records from PC.