0. Install Virtualbox and Gust OS

1.NAT–Access the Internet from the Guest

2.Host Only Adapter–Access the Guest from the Host (and Other Guests)

a. configure virtual box network

b. Configure guest network.

IP: 192.168.56.101
DNS:192.168.56.1
Mask:255.255.255.0