c - Why does ioctl(sd, SIOCETHTOOL,&ifreq) on a virtual server running on VMware does not return the hardware address -


i facing issue in retrieving hardware address on virtual server running on vmware.

i used hardware address on stand alone linux server using c function
ioctl(sd, siocethtool, &ifreq)
now, have configured linux server on top of esxi vmware.
now, same c function returns hardware address '000000'.
me in knowing if because of vmware , if me pointers on how fixed. highly appreciated. thanks.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_us&cmd=displaykc&externalid=2062302 says same kind of issue there in esxi5.1 , fixed installing bugfixes. esxi 6.0, didn't find such bug fixes. hope may bugfix shortly vmware issue.

check pr above link. "pr 1030731: when use ethtool_gpermaddr ioctl obtain permanent mac address vmxnet3 nic, if linux kernel version between 2.6.13 , 2.6.23, no results obtained. if linux kernel version above 2.6.23, mac address returned contains zeros."


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -