Open Virtualbox
Goto File > Host Network Manager
Press “Create new” button
A new “VirtualBox Host-Only Ethernet Adapter” was created
Select it
Go to Adapter > Select Configure Adapter Manually
Add IPv4 Address: 192.168.1.1
IPv4 Network Mask: 255.255.255.0
Go to Adapter > Enable DHCP Server
Hit Save
Now go to your Kali/Parrot/Whatever
Settings
Network
Adapter 1
Enable network adapter
Attached to: Host-only adapter
Name: The “VirtualBox Host-Only Ethernet Adapter” you have created
Now go to your Vulnerable VM that has static IP
Settings
Network
Adapter 1
Enable network adapter
Attached to: Host-only adapter
Name: The “VirtualBox Host-Only Ethernet Adapter” you have created
Now both boxes are on the same subnet.
You can test the connection with a simple ping command and you are ready to go!
If you wish to have internet access you will have to add a second interface (NAT or bridged) to your box and switch between the interfaces if and when Internet access is needed.
One thought on “Vulnhub VM with Static IP1 min read”