Grab IP from DHCP????

Discussions related to using VirtualBox on Linux hosts.

Grab IP from DHCP????

Postby KateGa » 18. Jun 2021, 05:21

Sorry all, I am VERY new at this stuff. I was trying set up a vulnhub beginner machine for my school project. I can't figure out how to assign an IP address to a VM after importing it. The server is their and running.

I saw in the instructions for setting up a local lab using linux:
sudo cp /etc/network/interfaces{,.bak}
sudo vi /etc/network/interfaces ## what do I change here?
sudo service isc-dhcp-server restart (Or 'sudo service dhcpd-server restart')
Done! (Check by connecting another VM on the same virtual network)

Looks like an instruction was left out on how to change the /etc/network/interfaces file. Can someone help? After I change it, how do I assign an IP to an imported VM?
KateGa
 
Posts: 1
Joined: 18. Jun 2021, 05:17

Re: Grab IP from DHCP????

Postby mpack » 18. Jun 2021, 10:04

I already answered basically the same question yesterday.

viewtopic.php?f=7&t=103149.
mpack
Site Moderator
 
Posts: 34892
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 15 guests