I have a two ESXi hosts, they are both configured with a virtual distributed switch (called nsx-network)
I setup a CentOS7 vm (nsx-vm) connected with DPortGroup network.
Then I login the vm (nsx-vm). I try to configure a static IP for it.
In ifcfg-eno16780032 configure file, I wrote the configuration like below:
Then I reboot the server, and check the static IP, but it not configuration.
When I run ifup, CentOS report error to me:
So the vm network card ,in distributed port group, can not be configured with static IP ?? or is there something I configured wrong here?
Could anyone help? please guide me a bit. Thanks in advance.
Can you remove the existing NIC and add a new nic and fill below specs and start the network service or simply reboot the machine . Error has nothing to do with dvswitch.
Thank you for your timely reply.
I am sorry for late reply, I am still searching where the problem is.
I found that the error was disappeared, when I power off and power on the vm again.
I login the vm I found the configured IP is there. However, when I use the vms (in the same distribute port group) to ping each other, they can not reach each other.
I noticed the topology here, even the vms are powered on, they are seems not connected with the virtual Distributed switch.
as you can see, the link of router-vm is down there. but the VMware-NSX-Manager does not show anything here.
Why is that happened? should I change any configuration of Virtual Distributed Switch or is it related with physical network card? Please Help. Thank you.
Link Down can happen usually when VM Network adapter is not connected to the portgroup irrespective VM is powered on/off . Can you double check -> edit settings of VM's Network Adapter Connected is checked (Try disconnecting and reconnecting it once) , also you can check the distributed switch PORT tab and select the respective port and refresh it once.
Thanks your help,
I did what you suggested, but the links are still down.
I checked the network adapter, they are connected.
I also change different network adapter from vmxnet to E1000, some of them will throw inactivate errors, when I login to the vm.
Could be this problem related to physical network card connection (the uplink physical network card is connected with a VLAN trunk port on a switch).
Status should be green even if there is no uplink attached . Can you switch the VM network adapater to a vSwitch PortGroup and check the status ?
I have the exact same issue configuring my dev environment with the new NSX 6.4.0.
The VM eth stays down and rebooting does not help however powering off then on fixes the problem.
Not a solution for his issue but for those wondering better to completely power off then on again if you ever have VMs that have their interfaces not coming up.