Tuesday 12 April 2016

virtualbox internetworking




vboxmanage dhcpserver add --netname testlab --ip 10.10.10.1 --netmask 255.255.255.0 --lowerip 10.10.10.2 --upperip 10.10.10.12 --enable




If you see the vm image, in the network section: you will be having something like:

Intel PRO/1000 MT Desktop (Internal Network, ‘testlab’)

And in the host you will see ip as: 10.10.10.3 and something else like: 10.10.10.2 and you can ping to each other.


# What to do, to have internet even?

In the above setting, we are not able to connect to external network. But internal networking working fine. 

With NAT its working fine :) and in NAT, we can do port forwarding and to access the port what we want to access.




### And in NAT, we can do port forwarding and to access the port what we want to access.

Example:



Select Port Forwarding and can configure.





External link:

https://www.youtube.com/watch?v=lhOY-KilEeE