Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
获取IP地址的Powershell命令_Powershell - Fatal编程技术网

获取IP地址的Powershell命令

获取IP地址的Powershell命令,powershell,Powershell,windows中有主IP和备份IP的概念吗?如果有, 当我输入ip配置时,我得到以下结果。 以太网适配器PXE备份: Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe30::fc0t:386e:d899:16fb%1 IPv4 Address. . . . . . . . . . . : 10.229.69.109 Subnet Mask . . . . . . . . . .

windows中有主IP和备份IP的概念吗?如果有, 当我输入ip配置时,我得到以下结果。 以太网适配器PXE备份:

 Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe30::fc0t:386e:d899:16fb%1
   IPv4 Address. . . . . . . . . . . : 10.229.69.109
   Subnet Mask . . . . . . . . . . . : 255.255.254.0
   Default Gateway . . . . . . . . . :
以太网适配器生产:

Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fl80::a196:9574:d9db:51f9%1
   IPv4 Address. . . . . . . . . . . : 10.139.64.109
   Subnet Mask . . . . . . . . . . . : 255.255.254.0
   Default Gateway . . . . . . . . . : 10.229.80.1
如何确定什么是主ip和备份ip?。

请查看

例如:

Get-NetIPConfiguration | Where-Object InterfaceAlias -eq "PXE-Backup"

此命令在windows 2008 R2企业版中不起作用<代码>[System.Net.Dns]::GetHostByName($env:COMPUTERNAME)。地址列表或
gwmi win32_networkadapter |?网络已启用