I have one linux server and its working one nic. now I added another one. I can't ping the second added nic. Do I need to make another setting on the vcenter. vlan definitions on vcenter are correct. it can be the problem the physical switch ? I added nic on vm and I wrote vlan id on the Distributed switch. When two nic are connected to a virtual server, are they both active? Does the operating system need to be adjusted?
nic 1 ( vlan 10 ) : 192.168.10.10 ( working )
nic 2 ( vlan 20 😞 10.10.10.10 ( ping not work )
vcenter 6.5
Distributed switch
Do you have a route in your switch/router table that forwards traffic between those two VLANs? If not, that's why it's failing.
Also, what you mean with ping not work... for instance, a VM with NIC on VLAN 20 can ping a device on the same VLAN 20 and/or the default gateway of VLAN 20? We need first make sure that we have L2 connectivity in VLAN 10 and VLAN 20, and after we confirm that, make sure the routing between VLAN10 and VLAN20 is allowed in your L3 device (router/firewall/switche L3).
From where you are trying to ping? Check whether the source and destination are in the same VLAN, or else you need to configure routing to reach a different network.
Have you added the default gateway on that nic ?
If no, Then it will not ping from different subnet. It will ping only from same subnet.