You are not logged in.

#1 2021-07-07 05:46:48

kashishme
Member
Registered: 2021-01-08
Posts: 44

[SOLVED]Assigning ip address for virtual machines in internal network

How do i Assign ip address for virtual machines in internal network in virtual box, to isolate the network.

Here are the details:
i have been getting into pentesting and i stumbled on this video by networkchuck (https://www.youtube.com/watch?v=mvsiuLzpx2E , skip to 6:03 minutes). where he just teaches to setup hacking lab. so here is where i get stuck, he uses dhcp to assign ip address to the virtual machines (at 6:03 in video), in internal network. But he uses windows, so can someone tell me how to do it on arch? i can't really get that or just point me to a place where i can get that. Also, RTFM didn't help (unless i missed something, which can also be the case.

Also, arch is on my host system, the virtual machines to be connected in the internal network are kali and mrrobot server (from the video)

thank you!

Last edited by kashishme (2021-07-07 13:37:39)

Offline

#2 2021-07-07 07:35:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,785

Re: [SOLVED]Assigning ip address for virtual machines in internal network

Not a single thing he's doing in that section of that video is windows specific and all of this should work exactly the same way on virtualbox in Arch. What's your exact problem?

The only difference is that linux is case-sensitive so the vboxmanage command would be VBoxManage and  you need to ensure the appropriate kernel modules are loaded https://wiki.archlinux.org/title/Virtua … el_modules (in general I'd say you should read that entire page most of the questions you'd have here should be answered, or if they aren't, you should be able to formulate a more targeted and focused question that allows more appropriate answers than RTFM)

Last edited by V1del (2021-07-07 07:40:26)

Offline

#3 2021-07-07 09:55:21

kashishme
Member
Registered: 2021-01-08
Posts: 44

Re: [SOLVED]Assigning ip address for virtual machines in internal network

my problem is that the particular step where he uses dhcp server. how do i use it on arch, beccause i tried doing it by going to virtualbox directory in 'usr/share/virtualbox', but it does not work. how are the steps same? i have arch on my host system not on virtualbox (should have mentioned it) on virtualbox the os is kali and the mr.robot server.

Offline

#4 2021-07-07 10:53:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,446

Re: [SOLVED]Assigning ip address for virtual machines in internal network

No need to cd to that directory, just try to run the VBoxManage command networkchuck uses from a terminal and show us the output it gives.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2021-07-07 11:31:46

kashishme
Member
Registered: 2021-01-08
Posts: 44

Re: [SOLVED]Assigning ip address for virtual machines in internal network

alright, i will do that...

Offline

#6 2021-07-07 11:37:43

kashishme
Member
Registered: 2021-01-08
Posts: 44

Re: [SOLVED]Assigning ip address for virtual machines in internal network

here is the output: http://ix.io/3scT
and here is the one where i used dhcpcd (seeing arch wiki): http://ix.io/3scV.

i have never used dhcp so be "kind" ig... lol

Offline

#7 2021-07-07 12:15:50

seth
Member
Registered: 2012-09-03
Posts: 23,261

Re: [SOLVED]Assigning ip address for virtual machines in internal network

I guess you're looking for https://wiki.archlinux.org/title/Dhcpd ? (notice there's one less "c")

Offline

#8 2021-07-07 12:37:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,785

Re: [SOLVED]Assigning ip address for virtual machines in internal network

Why are you trying to do that? In the very video you posted he's using virtualbox's own dhcpd server with the VBoxManage command which is likely what you'd want to use as well in this case?

Last edited by V1del (2021-07-07 12:39:54)

Offline

#9 2021-07-07 13:04:52

kashishme
Member
Registered: 2021-01-08
Posts: 44

Re: [SOLVED]Assigning ip address for virtual machines in internal network

V1del wrote:

Why are you trying to do that? In the very video you posted he's using virtualbox's own dhcpd server with the VBoxManage command which is likely what you'd want to use as well in this case?

oh ok, i see the trouble here. But do you mind pin pointing it? because i don't know what to do next?

Offline

#10 2021-07-07 13:06:22

kashishme
Member
Registered: 2021-01-08
Posts: 44

Re: [SOLVED]Assigning ip address for virtual machines in internal network

seth wrote:

I guess you're looking for https://wiki.archlinux.org/title/Dhcpd ? (notice there's one less "c")

thanks for that here is the other output with one less 'c': http://ix.io/3sdn

Offline

#11 2021-07-07 13:27:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,785

Re: [SOLVED]Assigning ip address for virtual machines in internal network

Define the internal network name via the virtualbox GUI, then run the command he's using here: https://youtu.be/mvsiuLzpx2E?t=611 changing the vboxmanage to the capitalised version VBoxManage (don't worry about the cd, the VBoxManage command will be in your normal PATH granted you are using Arch packages)

Where exactly do you see him using dhcp as a standalone command?

Last edited by V1del (2021-07-07 13:28:54)

Offline

#12 2021-07-07 13:34:14

kashishme
Member
Registered: 2021-01-08
Posts: 44

Re: [SOLVED]Assigning ip address for virtual machines in internal network

i see him using dhcpserver command after getting into the virtualbox directory, so i thought i should do the same.

but the vboxmanage command!!, holy sh*t i missed it. Really sorry for wasting your time, my eyes didn't catch the vboxmanage thing. I used the vboxmanage command and it worked.

thanks a lot!

Last edited by kashishme (2021-07-07 13:37:22)

Offline

Board footer

Powered by FluxBB