CKF1028
Enthusiast
Enthusiast

Create a new TCP/IP stack

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.

 

0 Kudos
2 Replies
DARKINF
Enthusiast
Enthusiast

Hi, 1. To get route, you should also point new stack, likenetwork ip route ipv4 list -N STORAGE 2. You can edit in only in CLI
0 Kudos
CKF1028
Enthusiast
Enthusiast

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

 

0 Kudos