VMware Cloud Community
Opax
Contributor
Contributor
Jump to solution

Static Ip Address

Hi again everyone,

I would like to define a static address on VMs.

But, I don't find a cmdlet to do that.

Thanks a lot.

Opax

Reply
0 Kudos
1 Solution

Accepted Solutions
RParker
Immortal
Immortal
Jump to solution

You don't need static IP, just do DHCP then reserve those IP's for the VM's, that is the same thing.

View solution in original post

Reply
0 Kudos
5 Replies
RParker
Immortal
Immortal
Jump to solution

You don't need static IP, just do DHCP then reserve those IP's for the VM's, that is the same thing.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Did you look at the Set-VMGuestNetworkInterface cmdlet ?

But be aware that there are some limitations for that cmdlet.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Opax
Contributor
Contributor
Jump to solution

You don't need static IP, just do DHCP then reserve those IP's for the VM's, that is the same thing.

My tool need to give a static address to VM, because most of time my VM are servers.

LucD wrote:

Did you look at the Set-VMGuestNetworkInterface cmdlet ?

But be aware that there are some limitations for that cmdlet.

Yes, I did a look to that cmdlet, but the problem is, to security reasons, the Guest User is disable.

Thanks for your answers

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Does this mean you don't have any administrative account to access that guest ?

Since the IP settings need to be done from within the guest OS, you will need to have some kind of access to the OS.

An alternative is to use WMI calls, but again that needs an account to connect to the guest OS.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Opax
Contributor
Contributor
Jump to solution

Excuse me,

But RParker was right !

I misread.

Thanks.

Reply
0 Kudos