^+1
Use NAT. Thats the simplest solution. Leave the IP configuration on VM to automatic. If you have a local LAN and want the VM to have IP in same range, then use bridge and set the IP manually. And you have to provide gateway also for internet connectivity.