DHCP internal network problems
Posted: 3. Aug 2022, 07:22
Hello:
Total newbie here trying to set up a pentest lab. Read a few related threads but still cannot figure out what is wrong
I'm Using a Win10 Host with two Linux VM (one Kali, one target) using VirtualBox, trying to set up an internal network for the two VMs to communicate. Tried using Win10 Host CLI to enter Vboxmanage DHCP string but vboxmanage was not recognized, so I added vbox to the path:
SET PATH=%PATH%;C:\Program Files\Oracle\VirtualBox (which seemed to work after running vboxmanage)
Then entered:
vboxmanage dhcpserver add --netname testnetwork --ip 10.10.10.1 --netmask 255.255.255.0 --lowerip 10.10.10.2 --upperip 10.10.10.12 --enable
Not sure if it worked, but there was no error message
Then went into each VM setting set network to internal with netname of testnetwork, full promiscuity, no cable connected.
Used ifconfig in Kali but no ip info was returned:
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 08:00:27:db:96:6a txqueuelen 1000 (Ethernet)
RX packets 10 bytes 3420 (3.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 65 bytes 11725 (11.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Not sure if the network was actually established or if the problem is the VM network settings. Any advice would be greatly appreciated. Thanks!
Total newbie here trying to set up a pentest lab. Read a few related threads but still cannot figure out what is wrong
I'm Using a Win10 Host with two Linux VM (one Kali, one target) using VirtualBox, trying to set up an internal network for the two VMs to communicate. Tried using Win10 Host CLI to enter Vboxmanage DHCP string but vboxmanage was not recognized, so I added vbox to the path:
SET PATH=%PATH%;C:\Program Files\Oracle\VirtualBox (which seemed to work after running vboxmanage)
Then entered:
vboxmanage dhcpserver add --netname testnetwork --ip 10.10.10.1 --netmask 255.255.255.0 --lowerip 10.10.10.2 --upperip 10.10.10.12 --enable
Not sure if it worked, but there was no error message
Then went into each VM setting set network to internal with netname of testnetwork, full promiscuity, no cable connected.
Used ifconfig in Kali but no ip info was returned:
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 08:00:27:db:96:6a txqueuelen 1000 (Ethernet)
RX packets 10 bytes 3420 (3.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 65 bytes 11725 (11.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Not sure if the network was actually established or if the problem is the VM network settings. Any advice would be greatly appreciated. Thanks!