How to Configure a Static IP on a PXE VM in VMware ESXi

Written By Sebastian Sime (Draft Writer)

Updated at March 16th, 2026

→ Applies to: VMware ESXi 6.5 and above

 

Step 1. Login to VMware ESXi GUI (replace <your_ip_address_or_hostname> with the correct ip/hostname)

https://<your_ip_address_or_hostname>

 

Step 2. Click on Virtual Machines, then click on the PXE VM

Step 3. Click on PXE VM Console

 

Step 4. Login to the PXE VM

Default credentials:

  • Username: root
  • Password: Syneto.Default1

 

Step 5. List all network connections

nmcli con show

EXAMPLE OUTPUT

NAME	              UUID	                    TYPE	    DEVICE
ens34	49c8e901-1ae4-3553-b20a-2c00eb3ce932	ethernet	ens34
ens35	ad69bd90-3eca-3d43-b728-edd1ae72be1c	ethernet	ens35
lo	    0c7bd1a1-9d87-49f6-80ed-c35720b45216	loopback	lo

 

Step 6. Assign static IP address (replace <interface_name> with the interface name from Step 5, <IP> and <mask> with the ip and netmask)

nmcli con mod "<interface_name>" ipv4.addresses <IP>/<mask>

EXAMPLE

nmcli con mod "ens34" ipv4.addresses 192.168.1.100/24

 

Step 7. Assign default gateway (replace <interface_name> with the interface name from Step 5 and <gateway_IP> with the gateway)

nmcli con mod "<interface_name>" ipv4.gateway <gateway_IP>

EXAMPLE

nmcli con mod "ens34" ipv4.gateway 192.168.1.1

 

Step 8. Assign DNS servers (replace <interface_name> with the interface name from Step 5, <dns1> and <dns2> with the DNS)

nmcli con mod "<interface_name>" ipv4.dns "<dns1> <dns2>"

EXAMPLE

nmcli con mod "ens34" ipv4.dns "8.8.8.8 1.1.1.1"

 

Step 9. Refresh interface configuration (replace <interface_name> with the interface name from Step 5)

nmcli con down "<interface_name>" && nmcli con up "<interface_name>"

EXAMPLE OUTPUT

nmcli con down "ens34" && nmcli con up "ens34"