Get-CINetworkAdapter command fails with the error "IPv6 is not supported."
search cancel

Get-CINetworkAdapter command fails with the error "IPv6 is not supported."

book

Article ID: 413114

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Get-CINetworkAdapter command fails with the error "IPv6 is not supported."

    Get-CINetworkAdapter : <timestamp>      Get-CINetworkAdapter            IPv6 is not supported.

    + Get-CIVM | Get-CINetworkAdapter
    +            ~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (FirstAddress:String) [Get-CINetworkAdapter]、InvalidArgument
        + FullyQualifiedErrorId : Cloud_IPRange_IPv6NotSupported,VMware.VimAutomation.Cloud.Commands.Cmdlets.GetCINetworkAdapter


  • The affected VM is connected to a vApp Network that has an IPv6 static IP pool.


Cause

The Get-CINetworkAdapter command attempts to retrieve vApp Network information.
Currently, this command does not support IPv6 IP ranges.
As a result, the command fails with the error: "IPv6 is not supported."

Resolution

Currently, there is no resolution.

As a workaround, if you need to retrieve the VM's IP address information, you can use the following command as an alternative:

Get-CIVM | ForEach-Object {
    $vmname = $_.Name

    $_.ExtensionData.Section.NetworkConnection | ForEach-Object {
        [PSCustomObject]@{
            VMName              = $vmname
            Index               = $_.NetworkConnectionIndex
            Network             = $_.Network
            MACAddress          = $_.MACAddress
            IpAddress           = $_.IpAddress
            SecondaryIpAddress  = $_.SecondaryIpAddress 
       }
    }
} | Format-Table -AutoSize