vmware-archive / powernsx

PowerShell module that abstracts the VMware NSX-v API to a set of easily used PowerShell functions
173 stars 90 forks source link

Unable to add secondary IP on NSX edge interface #631

Open anchaubey opened 3 years ago

anchaubey commented 3 years ago

Hi team,

I am able to add a secondary IP to my uplink ethernet 0 interface on one of the nsx edge. However, when doing it through Add-NsxEdgeInterfaceAddress or Set-NsxEdgeInterface modules, I am receiving errors. Please suggest if this can be achieved using powernsx.

alagoutte commented 3 years ago

Hi,

What error do you have ?

anchaubey commented 3 years ago

@alagoutte, I think these modules are trying to overwrite even the primary address which already exist on the nic, which should not happen. I am forced to add -Primaryaddress with these modules which should not happen. The errors are below:-

Add-NsxEdgeInterfaceAddress gives below error:- Overlapping IP addresses are not allowed for different addressGroups. Vnic 216.46.x.x ip assignment overlaps 0.

alagoutte commented 3 years ago

Hi,

What cmdlet do you are using ?