Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static IP #208

Closed
OmegaZero opened this issue Oct 6, 2023 · 3 comments
Closed

Static IP #208

OmegaZero opened this issue Oct 6, 2023 · 3 comments

Comments

@OmegaZero
Copy link

Terraform Version

1.5.7

How do you set a static IP through Terraform or is this not possible? I see you can set the network switch name, the network adapter name and a static MAC if you want to use DHCP, but how can you configure the network adapter to have a static IP?

So far the only way I see to do this is:
A) configure it in the image you are using to clone off of
B) Output the name of the Ethernet adapter and then use a script i.e. PowerShell to configure the adapter with a static address later.

Is there a better way and I'm just missing it?

@taliesins
Copy link
Owner

You can assign static ips to mac addresses in your dhcp server. This way when the VM turns on it will get the expected ip address.

The other option is we get #36 up and running

@taliesins
Copy link
Owner

Hopefully #235 will allow you to set a static ip

@taliesins
Copy link
Owner

#235 is merged. So lets continue this on #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants