![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9t_XhAniO1aUJoZtdCqjrdq0CuMCywMmgkzEz4cRjLYUuBCK4Q89K1cjWsSXDkREEaweoybajG86omzDAMkVHc4pVFQ3TQ0VYF3O31KXqeuLPM0m-PHueE0DdgdgRzMlb0f4KtL1hsD4Z/s1600/hands_done.jpg)
Configure Static IPs for VM's
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_sG7QJ1Ep4pLWrYMHH1DH0Y1mnd0ebn9LA-sFDqrCv1Am82rU3NWSBhDKy62IDi69JGSzn6wXNrGBVaew_0pSjcByufG3dVQy0BpMvHPClLqfNYc2xBqLYfajjl5G4vOXeu1uIDNh_3GY/s200/1.jpg)
Edit.
Set Network.
Enable DHCP server.
Add one network adapter, because you will need two network adapters.
NAT for Internet and a Host-Only for LAN.
Now boot up your VM and edit network.
sudo nano /etc/network/interfaces
# The primary network interface # LAN 1 auto
enp0s3
iface enp0s3 inet dhcp ## static IP # LAN 2 auto
enp0s8
iface enp0s8 inet static address 10.0.2.5 gateway 10.0.2.2 netmask 255.255.255.0
Restart networking service
sudo /etc/init.d/networking restart
or
sudo service networking restart
View assigned IP's [DHCP and STATIC]
sudo ip a | grep inet
0 comments :
Post a Comment
Comment: