Can I use EnableStatic for configuring an IPv6 addres (using WMI)?

本秂侑毒 提交于 2019-12-22 10:29:21

问题


I would like to use WMI (in C++) to configure a static IPv6 address.

Configuring a static IPv4 address is working fine using EnableStatic, which is part of a WMI class named Win32_NetworkAdapterConfiguration.

Can anyone help me configure an IPv6 address using WMI? I have been looking for example code, but have not found any.


回答1:


No.

According to the Win32_NetworkAdapterConfiguration documentation on the MSDN web site, this API supports limited IPv6 functionality (looks like it's limited to just reading addresses on an interface) starting in Windows Vista.

You might also want to look at this article: IPv6 and IPv4 Support in WMI.



来源:https://stackoverflow.com/questions/3360230/can-i-use-enablestatic-for-configuring-an-ipv6-addres-using-wmi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!