Data Center & Cloud Infrastructure VMUG Community

Expand all | Collapse all

Can I use PowerCLI to add management interface to esxi 6.7?

  • 1.  Can I use PowerCLI to add management interface to esxi 6.7?

    Posted 06-26-2020 12:47 PM
    What commands are available to add a new management interface to an esxi 6.7 host?  The interface is already created via vcenter 6.7.

    ------------------------------
    Andrew Hale
    Engineer/Specialist
    N/A
    Shoreview MN
    ------------------------------


  • 2.  RE: Can I use PowerCLI to add management interface to esxi 6.7?

    Posted 06-26-2020 01:59 PM

    Hi Andrew,

    To add the management interface to an ESXi host, try the below command:

    New-VMHostNetworkAdapter -VMHost <Host_IP/FQDN> -VirtualSwitch vSwitch0 -PortGroup VMkernel -IP <IP Address> -SubnetMask <Subnet Mask>

    Example: New-VMHostNetworkAdapter -VMHost 192.168.0.15 -VirtualSwitch vSwitch2 -PortGroup "Kernel" -IP 192.168.0.50 -SubnetMask 255.255.255.0

    Refer similar threads:
    Help with new-vmhostnetworkadapter command - https://communities.vmware.com/thread/196997
    How to set the Connection Type using New-VirtualPortGroup - https://communities.vmware.com/thread/284121
    Mac Address error when using the New-VMHostNetworkAdapter cmdlet - https://communities.vmware.com/thread/469941
    New-VMHostNetworkAdapter : Cannot convert 'System.Object]' to the type 'VMware.VimAutomation.ViCore.Types.V1.Host.Networking.VirtualSwitchBase' - https://communities.vmware.com/thread/618989

    https://blogs.vmware.com/PowerCLI/2016/08/using-powercli-configure-hosts.html



    ------------------------------
    Install Upgrade Expert - Tami
    #vSphereAMA
    ------------------------------