Hello,
Standalone host with the latest VMware ESXi 7.0.2 build-17630552.
Create a new TCP/IP stack via the following command.
esxcli network ip netstack add -N STORAGE esxcli network vswitch standard portgroup add -p STORAGE -v vSwitch0 esxcli network vswitch standard portgroup set -p STORRAGE -v 200 esxcli network ip interface add -i vmk1 -N STORAGE -p STORAGE esxcli network ip interface ipv4 set -i vmk1 -t static -I 192.168.200.11 -N 255.255.255.0 -g 192.168.200.254
Q1: "esxcli network ip route ipv4 list", there’s no route be added for interface vmk1.
Q2: There’s a new TCP/IP stack be seen in the Host Client WebUI, but can’t edit.
Would someone please to tell me how to solve this problem, thanks.
Hello,
After showing the routing table of netstack=STORAGE, it seems the gateway setting is not working.
[root@ESXi:~] esxcli network ip interface ipv4 set -i vmk1 -t static -I 192.168.200.11 -N 255.255.255.0 -g 192.168.200.254
[root@ESXi:~] esxcli network ip route ipv4 list --netstack=STORAGE
Network Netmask Gateway Interface Source
----------- ------------- ------- --------- ------
192.168.200.0 255.255.255.0 0.0.0.0 vmk1 MANUAL