Grab IP from DHCP????

Discussions related to using VirtualBox on Linux hosts.
Post Reply
KateGa
Posts: 1
Joined: 18. Jun 2021, 05:17

Grab IP from DHCP????

Post by KateGa »

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?
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Grab IP from DHCP????

Post by mpack »

I already answered basically the same question yesterday.

viewtopic.php?f=7&t=103149.
Post Reply