is it possible to u...
 
Notifications
Clear all

is it possible to use esxcli to attach the host to new VLAN add new IP , mask gateway and new DNS in one command from the console

1 Posts
1 Users
0 Reactions
352 Views
Brandon Lee
Posts: 398
Admin
Topic starter
(@brandon-lee)
Member
Joined: 14 years ago

I had this question in the comments on my post about changing the ESXi management IP and VLAN. I will need to so some more testing to validate everything and see how to properly string this together. Just some initial thoughts:

esxcli network ip interface add --interface-name=vmkX --portgroup-name=portgroup
esxcli network ip interface ipv4 set --interface-name=vmk0 --ipv4=IP --netmask=NETMASK --type=static
esxcli network ip interface tag add -i vmk0 -t Management

Change ESXi Management IP Address and VLAN on vSphere Distributed Switches VDS - Virtualization Howto