Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

When multiple nics are attached to a VM, device config id of the nics are not distinct.

$
0
0

When multiple nics are attached to a VM, device config id of the nics are not distinct.

We thought of distinguishing multiple nics of a VM by its deviceConfigId, but since it is not distinct we cannot use deviceConfigId as the identifier or primary key.

 

Ask is

1. Is this by design or bug at the vcenter end.

2. If it is by design, can you folks please suggest how do I distinguish between multiple nics, specifically which set of properties of GuestNicInfor should I use to generate the unique guid.

 

Below is the view for one of my machine.

Machine had 13 nic out of which 11 were of id 4001, 1 of id 4000 and 1 of id 0

[

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"10.100.250.198"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"192.168.252.98"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"10.83.10.198"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"10.45.16.20"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"192.168.252.59"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"192.168.106.12"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"192.168.237.198"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"10.100.236.198",

"192.168.233.198",

"192.168.236.198"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"192.168.210.60",

"192.168.241.198"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"192.168.253.198",

"192.168.254.198"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 2",

"NicId": "4001",

"NetworkName": "alla-vlan-trunk-0-4094-2",

"IpAddressList": [

"192.168.238.198",

"192.168.239.198",

"192.168.250.198"

],

"MacAddress": "00:50:56:b7:00:60",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 1",

"NicId": "4000",

"NetworkName": "griffel-lan-55-2",

"IpAddressList": [

"2a06:c0:1:0:74ee:46:a6e0:f635",

"192.168.23.75"

],

"MacAddress": "00:50:56:b7:00:58",

"IpAddressType": "Static"

  },

  {

"Label": "Network adapter 3",

"NicId": "0",

"NetworkName": "",

"IpAddressList": [],

"MacAddress": "00:50:56:ac:74:7b",

"IpAddressType": "Static"

  }

]


Viewing all articles
Browse latest Browse all 175326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>