TheCableGuy96
Contributor
Contributor

So I've now created a new VMKernel NIC and set it to the new port group for the additional vLAN. I have also set the IP and gateway and assigned it to that to a new TCP/IP stack I created for this vLAN (had to do this in SSH).

However, when I go to set the gateway and DNS settings for the new TCP/IP stack it's greyed out. The gateway below this is not reyed out but fails to set. So I googled around and found someone else who had the same issue. I followed what they did:

esxcli network ip interface ipv4 set --interface-name=vmk1 --type=static --ipv4=192.168.10.40 --netmask=255.255.255.0 --gateway=192.168.10.254

This appears to have worked from what I see:

[root@esxi:~] esxcli network ip interface ipv4 get
Name IPv4 Address IPv4 Netmask IPv4 Broadcast Address Type Gateway DHCP DNS
---- ------------- ------------- -------------- ------------ -------------- --------
vmk0 192.168.1.40 255.255.255.0 192.168.1.255 STATIC 192.168.1.254 false
vmk1 192.168.10.40 255.255.255.0 192.168.10.255 STATIC 192.168.10.254 false

But it's not showing as being set in ESXi Host Client and I still don't see how to set the DNS for it?

192.168.10.40 is also not responding to ping even though I set the ports as part of that vLAN (I've tried tagged and untagged).

Thanks for your support.

Reply
0 Kudos