问题描述
我想使用WMI(在C ++中)配置静态IPv6地址.
I would like to use WMI (in C++) to configure a static IPv6 address.
使用EnableStatic
配置静态IPv4地址可以正常工作,EnableStatic
是名为Win32_NetworkAdapterConfiguration
的WMI类的一部分.
Configuring a static IPv4 address is working fine using EnableStatic
, which is part of a WMI class named Win32_NetworkAdapterConfiguration
.
有人可以帮助我使用WMI配置IPv6地址吗?我一直在寻找示例代码,但没有找到任何代码.
Can anyone help me configure an IPv6 address using WMI? I have been looking for example code, but have not found any.
推荐答案
否.
根据MSDN上的 Win32_NetworkAdapterConfiguration文档网站,此API从Windows Vista开始支持受限 IPv6功能(看起来仅限于读取接口上的地址).
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.
您可能还想看一下这篇文章: WMI中的IPv6和IPv4支持 .
You might also want to look at this article: IPv6 and IPv4 Support in WMI.
这篇关于我可以使用EnableStatic配置IPv6地址(使用WMI)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!