I'm looking to enable the vMotion TCP/IP Stack prior to migrating the VMK to use the Stack. Setting DNS Values, Domain Name and default gateway to allow for L3 capabilities
I ma hoping to compete this using using ESXCLI commands on the newly provisioned host that will read the command via a KS script as there are no CMDlets in PowerCli available as of yet.
It seems pretty straight forward to create the fresh new stack and then add the VMK using this method.
esxcli network ip netstack add --netstack new-vmotion
esxcli network ip dns search add --netstack new-vmotion --domain test.domain
esxcli network ip dns server add --netstack new-vmotion --server 192.168.5.5
esxcli network ip dns server add --netstack new-vmotion --server 192.168.5.6
esxcli network vswitch standard portgroup add --portgroup-name Vmotion_ESX --vswitch-name vSwitch0
esxcli network vswitch standard portgroup set --portgroup-name Vmotion_ESX --vlan-id 202
esxcli network ip interface add --interface-name vmk10 --portgroup-name Vmotion_ESX --netstack new-vmotion
esxcli network ip interface ipv4 set --interface-name vmk10 --ipv4 192.168.111.100 --netmask 255.255.255.0 --type static
esxcli network ip route ipv4 add --network 192.168.111.0/24 --netstack new-vmotion --gateway 192.168.111.1
But if i want to use the existing stacks (vMotion, Provisioning ) that are automatically created during install they don't seem to listed. With the exception of the defaultTcpipStack as per below.
esxcli network ip netstack list
defaultTcpipStack
Key: defaultTcpipStack
Name: defaultTcpipStack
State: 4660
I manually created the VMK and Migrated to the system stack using the web client. Once i Did i re-ran the esxcli network ip netstack list command and both default and the vmotion netstack were listed
defaultTcpipStack
Key: defaultTcpipStack
Name: defaultTcpipStack
State: 4660
vmotion
Key: vmotion
Name: vmotion
State: 4660
I tried using the "vmotion" Key/Name list from the above command to edit the dns setting etc but to no luck there either.
One last thing i did try was to enable the Netstack as i noticed you could create them in disabled mode
esxcli network ip netstack set --netstack vmotion --enable true
Unable to find a Netstack instance vmotion
Any ideas if it is possible to edit the system TCP/IP NetStacks via the esxcli prior to adding the Vmks ? Once the VMk has been migrated it is possible to edit the DNS setting etc via esxcli
Any help or pointers appreciated