Networking

具有輔助私有 IP 的 EC2 網路介面,未顯示在 Windows 的介面上

  • May 20, 2015

我在 VPC 下的 EC2 上有一個 windows server 2012 r2 實例,我有兩個網路介面。兩者的主要私有 IP 都顯示在視窗中。我在其中一個網路介面上有一個輔助 IP 地址,這個輔助 IP 似乎沒有綁定到該介面。帶有 10.0.0.186 的介面也應該有 10.0.0.254

我錯過了什麼嗎?

C:\使用者\管理員>ipconfig

Windows IP Configuration


Ethernet adapter Ethernet 2:

  Connection-specific DNS Suffix  . : ec2.internal
  Link-local IPv6 Address . . . . . : fe80::7cbf:137f:14ce:133d%15
  IPv4 Address. . . . . . . . . . . : 10.0.0.135
  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . : 10.0.0.1

Ethernet adapter Ethernet:

  Connection-specific DNS Suffix  . : ec2.internal
  Link-local IPv6 Address . . . . . : fe80::9043:dee7:59e6:6649%12
  IPv4 Address. . . . . . . . . . . : 10.0.0.186
  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . : 10.0.0.1

Tunnel adapter isatap.ec2.internal:

  Media State . . . . . . . . . . . : Media disconnected
  Connection-specific DNS Suffix  . : ec2.internal

Tunnel adapter Local Area Connection* 12:

  Connection-specific DNS Suffix  . :
  IPv6 Address. . . . . . . . . . . : 2001:0:9d38:90d7:4d9:1d21:cbff:57ff
  Link-local IPv6 Address . . . . . : fe80::4d9:1d21:cbff:57ff%13
  Default Gateway . . . . . . . . . : ::

PS C:\Users\Administrator> Get-NetIPAddress

IPAddress         : fe80::7cbf:137f:14ce:133d%15
InterfaceIndex    : 15
InterfaceAlias    : Ethernet 2
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::9043:dee7:59e6:6649%12
InterfaceIndex    : 12
InterfaceAlias    : Ethernet
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::4d9:1d21:cbff:57ff%13
InterfaceIndex    : 13
InterfaceAlias    : Local Area Connection* 12
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 2001:0:9d38:90d7:4d9:1d21:cbff:57ff
InterfaceIndex    : 13
InterfaceAlias    : Local Area Connection* 12
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : RouterAdvertisement
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::5efe:10.0.0.186%14
InterfaceIndex    : 14
InterfaceAlias    : isatap.ec2.internal
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Deprecated
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::5efe:10.0.0.135%14
InterfaceIndex    : 14
InterfaceAlias    : isatap.ec2.internal
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Deprecated
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : ::1
InterfaceIndex    : 1
InterfaceAlias    : Loopback Pseudo-Interface 1
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : WellKnown
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 10.0.0.135
InterfaceIndex    : 15
InterfaceAlias    : Ethernet 2
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 00:57:59
PreferredLifetime : 00:57:59
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 10.0.0.186
InterfaceIndex    : 12
InterfaceAlias    : Ethernet
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 00:57:59
PreferredLifetime : 00:57:59
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 127.0.0.1
InterfaceIndex    : 1
InterfaceAlias    : Loopback Pseudo-Interface 1
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 8
PrefixOrigin      : WellKnown
SuffixOrigin      : WellKnown
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IP 地址未綁定到您的介面。您可以通過 PowerShell 添加地址:

New-NetIPAddress –InterfaceIndex 12 –IPAddress 10.0.0.254 -PrefixLength 24

引用自:https://serverfault.com/questions/692058