VMware vSphere

 View Only
Expand all | Collapse all

Adding an additional NIC in vsphere client

jordendrew

jordendrewMay 25, 2018 03:16 PM

jordendrew

jordendrewMay 28, 2018 11:51 AM

  • 1.  Adding an additional NIC in vsphere client

    Posted May 24, 2018 06:29 PM

    I am trying to add an additional physical NIC. Everything tells me that it's being detected. I'm able to see it when listing detected devices, but when I try to add it, it's not showing up.



  • 2.  RE: Adding an additional NIC in vsphere client

    Posted May 24, 2018 08:22 PM

    Are you trying to add physical nic to virtual switch ? Can you share screenshot of error message ?



  • 3.  RE: Adding an additional NIC in vsphere client

    Posted May 24, 2018 08:27 PM

    Yes. I created a new Vswitch so it can connect to a second network that we have. When I goto the add adapter wizard, all I see is vmnic0. I should be also seeing vmnic1. There is not error per-say.



  • 4.  RE: Adding an additional NIC in vsphere client

    Posted May 24, 2018 08:37 PM

    Are you using the Embedded Host Client (i.e. the Web Client)?

    In case you are using an older version, please consider updating it (e.g. from ESXi Embedded Host Client). There have been a couple of issues which are solved with this version.


    André



  • 5.  RE: Adding an additional NIC in vsphere client

    Posted May 24, 2018 08:37 PM

    Can you ssh to esxi and run command ?

    esxcli network vswitch standard uplink add --uplink-name=vmnic1 --vswitch-name=vSwitch1

    Assuming your switch name as vSwitch1, if not please modify correct vmnic name and switch name.



  • 6.  RE: Adding an additional NIC in vsphere client

    Posted May 25, 2018 03:16 PM

    I got the response, Not a valid pnic: vmnic1



  • 7.  RE: Adding an additional NIC in vsphere client

    Posted May 25, 2018 03:26 PM

    Also just to verify the nic is being detected....

    [xxx@xxxx:~] lspci | grep -i net

    0000:07:00.0 Network controller: Intel Corporation I210 Gigabit Network Connection [vmnic0]

    0000:08:00.0 Network controller: Intel Corporation I210 Gigabit Network Connection [vmnic1]



  • 8.  RE: Adding an additional NIC in vsphere client

    Posted May 25, 2018 04:29 PM

    Was there any change in host hardware recently ? Like new PCI card addition..



  • 9.  RE: Adding an additional NIC in vsphere client

    Posted May 25, 2018 04:31 PM

    No. I just never used the nic before. Just plugged in a network cable and went to add the vswitch and realized the nic was not showing up.



  • 10.  RE: Adding an additional NIC in vsphere client

    Posted May 25, 2018 05:45 PM

    Please share screenshot of MAC addresses from your hardware as well as from esxi.



  • 11.  RE: Adding an additional NIC in vsphere client

    Posted May 25, 2018 06:06 PM

    [xxx@xxxx-2:~] grep "/net/pnic" /etc/vmware/esx.conf

    /net/pnic/child[0000]/name = "vmnic0"

    /net/pnic/child[0000]/virtualMac = "00:50:56:51:df:e0"

    /net/pnic/child[0000]/mac = "00:8c:fa:f1:df:e0"

    /net/pnic/child[0001]/name = "vmnic1"

    /net/pnic/child[0001]/virtualMac = "00:50:56:51:df:e1"

    /net/pnic/child[0001]/mac = "00:8c:fa:f1:df:e1"



  • 12.  RE: Adding an additional NIC in vsphere client

    Posted May 26, 2018 04:24 AM

    Please share Mac details for all your NICs, and hardware  MAC as well.



  • 13.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 11:29 AM

    Please share Mac details for all your NICs, and hardware  MAC as well.

    Not sure exactly what else is needed from what I posted. Got a command I can run?



  • 14.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 11:41 AM

    from Esxi console view under networking -> Physical adapters, please share screenshot of it.

    From hardware console you can see all the available nic cards and associated mac address. ( not sure about your vendor)



  • 15.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 11:51 AM

    Here are two screenshots.



  • 16.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 12:01 PM

    Your both screenshots are from ESXi. Your esxi itself not seeing vmnic1.  That's why you are not able to add vmnic1. either it is not plugged properly, or having some compatibility issue. what is your hardware ?



  • 17.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 12:05 PM

    The nic is an onboard nic in a Lenovo server. I used the Lenovo ESXi image when installing the the server. It's weird that it would be detected in the command i ran earlier.



  • 18.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 12:43 PM

    can you please provide screenshot of network interfaces from lenovo imm GUI?



  • 19.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 12:56 PM

    Here ya go. Couldn't find any other info about the network adapters.



  • 20.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 01:12 PM

    Please share output from below commands.

    lspci -v | grep -A1 -i ethernet

    vmkload_mod -l |grep drivername

    Also share your ESXi build details and Lenovo hardware model.



  • 21.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 01:29 PM

    [root@ncsi-esxi-2:~] lspci -v | grep -A1 -i ethernet

    0000:07:00.0 Ethernet controller Network controller: Intel Corporation I210 Gigabit Network Connection [vmnic0]

             Class 0200: 8086:1533

    --

    0000:08:00.0 Ethernet controller Network controller: Intel Corporation I210 Gigabit Network Connection [vmnic1]

             Class 0200: 8086:1533

    [root@ncsi-esxi-2:~] vmkload_mod -l |grep drivername

    [root@ncsi-esxi-2:~]

    VMware ESXi 6.0.0 build-2494585

    Product NameRD450
    Product Part Number00000000000001
    Product Version70DC002GUX


  • 22.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 01:38 PM

    so you do not have a driver installed. can you please check in vmware compatibility guide and install the correct drivers. post driver installation make sure esxcfg-nics -l command listing vmnic1. Then try to add nic to your vswitch.



  • 23.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 06:54 PM

    I loaded the drivers, but still not showing vmnic1.



  • 24.  RE: Adding an additional NIC in vsphere client

    Posted May 29, 2018 03:08 AM

    Can you run vmkload_mod -l | grep drivername and provide result ?



  • 25.  RE: Adding an additional NIC in vsphere client

    Posted May 29, 2018 12:10 PM

    [root@ncsi-esxi-2:~] vmkload_mod -l | grep drivername

    [root@ncsi-esxi-2:~]

    Nothing comes up. I find this especially weird since the other nic works and they're both the same. Should be using the same driver.



  • 26.  RE: Adding an additional NIC in vsphere client

    Posted May 29, 2018 12:26 PM

    did you keep host in maintenance and installed drivers ?

    did you reboot  host post installation ?



  • 27.  RE: Adding an additional NIC in vsphere client

    Posted May 29, 2018 03:25 PM

    I did not have it in maintenance mode but did reboot it.



  • 28.  RE: Adding an additional NIC in vsphere client

    Posted May 30, 2018 07:00 AM

    Keep the host in maintenance.

    run the offline bundle installation( esxcli software vib install -d offlinebundle.zip )

    Reboot the host.

    after that login and check if drivers are installed and post results here.



  • 29.  RE: Adding an additional NIC in vsphere client

    Posted May 31, 2018 01:43 PM

    FIXED IT!!! :-D I ran in it in maintenance mode.

    [root@ncsi-esxi-2:/vmfs/volumes/5a60bb3c-221015a0-c193-008cfaf1dfe0/DD_Intel_22.9_CD_AnyOS/VMware/ESX/6.0/i40en] esxcli software vib install -v /vmfs/volumes/5a

    60bb3c-221015a0-c193-008cfaf1dfe0/DD_Intel_22.9_CD_AnyOS/VMware/ESX/6.0/i40en/i4

    0en-1.5.6-1OEM.600.0.0.2768847.x86_64.vib

    Installation Result

       Message: Host is not changed.

       Reboot Required: false

       VIBs Installed:

       VIBs Removed:

       VIBs Skipped: INT_bootbank_i40en_1.5.6-1OEM.600.0.0.2768847

    So I was a little confused as to why I was still not seeing the driver. So I did a google search on listing drivers for nics. Came across this: VMware Knowledge Base

    I ran vmchdev -l | grep vmnic1 which gave me this: 0000:08:00.0 8086:1533 17aa:1100 passthru vmnic1

    Ran it for vmnic0 which gave me this: 0000:07:00.0 8086:1533 17aa:1100 vmkernel vmnic0

    I then looked up how to change the nic from passthrough to vmkernel which led me to this: VMware Knowledge Base

    Edited the esx.conf and rebooted and now I have both nic's up and running and added to the vswitch I want it on.

    I appreciate all your help with this. Even though your fix didn't work, it still led me in the right direction.



  • 30.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 10:21 AM

    Make sure vmnic1 is not already associated with a Standard switch. Try the command below:

    esxcli network vswitch standard list



  • 31.  RE: Adding an additional NIC in vsphere client

    Posted May 28, 2018 11:29 AM

    vmnic1 is not associated with any other switch.