VMware - How to set static IP and DNS server for the VM's provisioned? #22352
Unanswered
kTipSSIoYv
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@kTipSSIoYv It is Windows only because this is setting the NIC settings and on Windows DNS is per adapter where on Linux DNS settings are global. Here is a snippet from the [VMware Docs]
So for Linux we check for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use the following inline method to set static IP but I'm not sure how to set DNS nameservers.
prov.set_nic_settings(1, {:ip_addr⇒10.226.133.55, :subnet_mask⇒'255.255.255.192', :gateway⇒'10.226.133.5', :addr_mode⇒["static", "Static"] } )
Here in the documentation it says
dns_servers
is only for windows. How do achieve the same results for Linux servers?Beta Was this translation helpful? Give feedback.
All reactions