1

Setup: I am using Lability to deploy a hacking lab consisting of 3 virtual machines. One of the machines is Kali Linux. How could I automatically set a static IP for the Kali when it is first deployed from the script?

Problem: Lability has very limited options to configure Linux hosts. No option to configure networking.

Have tried: DSC for Linux but not a solution because everything needs to installed from the Lability / DSC script. This is compulsory. DSC for Linux requires components installed on the Linux host, and these cannot be installed with Lability when deploying the virtual machines.

Can I bind the MAC address of the Kali network adapter somehow to a specific IP address? I can set up a DHCP server on one of the machines.

What other suggestions for solutions you see?

I am pretty invested in Lability / Desired State Configuration at this point and changing tools would likely be the prettiest solution but not viable considering time constraints.

Any help is much appreciated, thank you!

1 Answers1

0

You can install Powershell Core for Linux.

Installing Powershell Core on Linux

Powershell in Linux

Normally in Windows we use Set-NetIPAddress to configure an IP Address. You can try and check if the command is available in Linux Powershell Core.

About Set-NetIPAddress

Rajiv Iyer
  • 157
  • 9