VMware
--
Questions
--
Followers
Top Experts
vSphere Client could not connect with the vCenter Server "vm01".
Details: A connection failure occurred (Unable to connect to the remote server).
I guess I've "destroyed" the management interface/network?! Because i can't ping it, and the ports seems to be closed. But the vm hosts are running fine.
How do i fix this, without having to restart the ESXi?
Some magic commands on the console? :)
Thanks!
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Good luck!
Tom
~ # esxcfg-vswitch -l
Switch Name    Num Ports  Used Ports  Configured Ports  MTU   Uplinks
vSwitch0 Â Â Â Â 64 Â Â Â Â Â 20 Â Â Â Â Â 64 Â Â Â Â Â Â Â Â 1500 Â Â vmnic0,vmnic1
 PortGroup Name     VLAN ID  Used Ports  Uplinks
 Management Network   0     1      vmnic0,vmnic1
 VM Network       0     16      vmnic0,vmnic1
Switch Name    Num Ports  Used Ports  Configured Ports  MTU   Uplinks
vSwitch1 Â Â Â Â 128 Â Â Â Â 1 Â Â Â Â Â 128 Â Â Â Â Â Â Â 9000
 PortGroup Name     VLAN ID  Used Ports  Uplinks
 VLAN 2         2     0
 VLAN 5         5     0






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
esx-cfg -nics -l
~ # esxcfg-nics -l
Name   PCI      Driver    Link Speed   Duplex MAC Address    MTU   Description
vmnic0  0000:03:06.00 tg3     Up  1000Mbps  Full  00:00:00:00:44:b8 1500  Broadcom Corporation NC7782 Gigabit Server Adapter (PCI-X, 10,100,1000-T)
vmnic1  0000:03:06.01 tg3     Down 0Mbps   Half  00:00:00:00:44:b7 1500  Broadcom Corporation NC7782 Gigabit Server Adapter (PCI-X, 10,100,1000-T)
 esxcfg-nics -l
 esxcfg-vswif -l
 esxcfg-vswitch -l
They will also work om esxi if the previous post doesn't help

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
esxcfg-nics -l
vmnic0
vmnic1
the results from the command esxcfg-vswitch -l shows the virtual switches
I have two
vSwitch0
vSwitch1
vSwitch0 has two physical nics assocaited with it, and no nics associated with vSwitch1.
two port groups Management Network and VM Network have been created on vSwitch0
two port groups VLAN 2 and VLAN 5 have been created on vSwitch1
Not that I am a mind reader, but go into the local gui and validate your configuration there.
Now if you had configured this server in a HA cluster there is the whole added situation potentially created by the isolation mode.
So is this standalone, or HA.
Can you gain access through the console to verify your management info?
-Virt
a) you accidentally amended the management Vswitch.
b) you added a new vswitch which conflicts with the managemment IPs.
Quickest option is to get to the ESxi box physically. log into the console (monitor &Â keyboard)and log in. You can amend the IP details of the management interface there and even restart the management system without restarting the host.
If necessary, set the management network to a different IP/subnet that you KNOW is not in use. you can then connect to the ESXi via vsphere and look into what went wrong.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
@thomasdietrich, @hanccocka and @danm66
esxcfg-nics -l
vmnic0
vmnic1
vmnic2
vmnic3
vmnic4 (down - shutdown on interface on cisco switch)
vmnic5 (down - shutdown on interface on cisco switch)
esxcfg-vswitch -l
vSwitch0
vSwitch1 (the problems started when i created this)
vSwitch has 4 physical nics(vmnic0-3) associated with it, and vSwitch has 2 (vmnic4 and 5).
1 port group have been created on vSwitch0, including mgmt network and VM Network.
2 port groups have been created on vSwitch1.
Can I delete vSwitch1(esxcfg-vswitch -d vSwitch1)? Do I have to delete the port groups first(esxcfg-vswitch -D "VMkernel-iSCSI-1" vSwitch1)?
esxcfg-vswif: not found
@Virtalicious and @totallytonto: You are probably right, I'll double check these settings asap, It's a standalone server.
@paulsolov: It's trunked.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
you don't need to delete the port groups first.
it would seem that the Management settings have been changed as my fellow Experts stated above.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
check your IP settings from the console.
F2 to examine default configuration.
see kb above.
Yes, I have live VM's on the server, and they are running fine.
I'll try deleting vSwitch1 and reconfigure the ESXi mgmt network.
Failed to remove vswitch: vswitch1, Error; PortGroup "VMkernel-iSCSI-1" on VirtualSwitch "vSwitch1" is still in use: 1 active ports, VM Kernel NIC
When running "esxcfg-vswitch -d VMkernel-iSCSI-1 i get:
Not a valid virtual switch or it is a DVSwitch: VMkernel-iSCSI-1
I've checked the Mgmt IP settings, they are correct.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Can you cut and paste output from the commands, so we can check
Add >Â vswitch.log to the end of line, and same with >Â nics.log






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Esxcfg-vswitch -A test vSwitch1
Esxcfg-vswitch -D test vSwitch1
This will create a port group and delete a port group to check you can create and delete a pg, got another command coming for you to try

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Need the piped output from esxcfg-vswitch -l and esxcfg-nics -l to workout what's going on here.esxcfg-vswitch -l
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch0 Â Â Â 64 Â Â Â Â Â Â 10 Â Â Â Â Â Â Â 64 Â Â Â Â Â Â Â Â Â Â Â Â 9000
vmnic0,vmnic1,vmnic2,vmnic
PortGroup Name VLAN ID Used Ports Uplinks
ISCSI Â Â Â Â Â Â Â Â Â 140 Â Â Â Â 0 Â Â Â Â Â Â Â Â vmnic0,vmnic1,vmnic2,vmnic
vlan13 Â Â Â Â Â Â Â Â 13 Â Â Â Â Â 1 Â Â Â Â Â Â Â Â vmnic0,vmnic1,vmnic2,vmnic
VM Machine Network149 Â 3 Â Â Â Â Â Â Â Â vmnic0,vmnic1,vmnic2,vmnic
Management Network12 Â 1 Â Â Â Â Â Â Â Â vmnic0,vmnic1,vmnic2,vmnic
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch1 Â Â Â 64 Â Â Â Â Â Â 2 Â Â Â Â Â Â Â 64 Â Â Â Â Â Â Â Â Â Â Â Â 1500
PortGroup Name VLAN ID Used Ports Uplinks
VMkernel-iSCSI-1 140 Â Â Â 1
--------------------------
esxcfg-nics -l
Name PCI Driver Link Speed Duplex MAC Address MTU Description
vmnic0 03:00.00 bnx2 Up 1000Mbps Full xx:xx:xx:xx:xx:xx 9000 Broadcom Corporation NC373i Integrated Multifunction Gigabit Server Adapter
vmnic1 05:00.00 bnx2 Up 1000Mbps Full xx:xx:xx:xx:xx:xx 9000 Broadcom Corporation NC373i Integrated Multifunction Gigabit Server Adapter
vmnic2 13:00.00 e1000e Up 1000Mbps Full xx:xx:xx:xx:xx:xx 9000 Intel Corporation NC360T PCI Express Dual Port Gigabit Server Adapter
vmnic3 13:00.01 e1000e Up 1000Mbps Full xx:xx:xx:xx:xx:xx 9000 Intel Corporation NC360T PCI Express Dual Port Gigabit Server Adapter
vmnic4 0b:00.00 e1000e Down 0Mbps Full xx:xx:xx:xx:xx:xx 1500 Intel Corporation NC360T PCI Express Dual Port Gigabit Server Adapter
vmnic5 0b:00.01 e1000e Down 0Mbps Full xx:xx:xx:xx:xx:xx 1500 Intel Corporation NC360T PCI Express Dual Port Gigabit Server Adapter
Just looking back the the support call here, did you also create the vmkernel iscsi port group?That is correct, I forgot to mention this, sorry.
Do you think it was possible this was given same ip address as management network?Don't think so, but I could have given it a ip address in the VM Network.
Okay try the following
Esxcfg-vswitch -A test vSwitch1
Esxcfg-vswitch -D test vSwitch1
This will create a port group and delete a port group to check you can create and delete a pg, got another command coming for you to try
The portgroup was created and deleted successfully.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
So taking our advice to reconfig your management network may be a good move.
Can you get in and examine the esxcfg-info -n and take a good look at the gateway and routing sections. Â This command will give you everything as VMware sees it in relation to nuts and bolts of the network configuration.
-Virt

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Try the followingThis did the trick :) The new vmknic had IP in the VM Network (not sure why this should cause problems with the mgmt network?!).
Esxcfg-vmknic -l to list
And -d to delete it.
Thanks for good response :)






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Have a nice weekend!

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
VMware
--
Questions
--
Followers
Top Experts
VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.