ifIndex: 12
Instead of using the Ipconfig command, you can also use the Get-NetIPAdress cmdlet as shown below to display the Address information for an Ethernet named:
PS C:> Get-NetIPAddress |where {$ _. InterfaceAlias -eq "Ethernet"}
IPAddress: fe80 :: 2025: 61fb: b68: c266% 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: 172.16.11.75
InterfaceIndex: 12
InterfaceAlias: Ethernet
AddressFamily: IPv4
Type: Unicast
PrefixLength: 24
PrefixOrigin: Manual
SuffixOrigin: Manual
AddressState: Preferred
ValidLifetime: Infinite ([TimeSpan] :: MaxValue)
PreferredLifetime: Infinite ([TimeSpan] :: MaxValue)
SkipAsSource: False
PolicyStore: ActiveStore
Did you notice this command returns more information than Ipconfig?
You can use cmdlet NewNetIPAdress to assign a new Unicast IPv6 global address with prefix length of 64 and the default gateway address for Ethernet Interface as follows:
PS C:> New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 2001: DB8: 3FA9 :: D3: 9C5A `
PrefixLength 64 -DefaultGateway 2001: DB8: 3FA9 :: 0C01
IPAddress: 2001: db8: 3fa9 :: d3: 9c5a
InterfaceIndex: 12
InterfaceAlias: Ethernet
AddressFamily: IPv6
Type: Unicast
PrefixLength: 64
PrefixOrigin: Manual
SuffixOrigin: Manual
AddressState: Tentative
ValidLifetime: Infinite ([TimeSpan] :: MaxValue)
PreferredLifetime: Infinite ([TimeSpan] :: MaxValue)
SkipAsSource: False
PolicyStore: ActiveStore
IPAddress: 2001: db8: 3fa9 :: d3: 9c5a
InterfaceIndex: 12
InterfaceAlias: Ethernet
AddressFamily: IPv6
Type: Unicast
PrefixLength: 64
PrefixOrigin: Manual
SuffixOrigin: Manual
AddressState: Invalid
ValidLifetime: Infinite ([TimeSpan] :: MaxValue)
PreferredLifetime: Infinite ([TimeSpan] :: MaxValue)
SkipAsSource: False
PolicyStore: PersistentStore
To confirm the result, you need to use Get-NetIPAddress with the AddressFamily parameter to display only IPv6 information as follows:
PS C:> Get-NetIPAddress-AddressFamily IPv6 |where {$ _. InterfaceAlias -eq "Ethernet"}
IPAddress: fe80 :: 2025: 61fb: b68: c266% 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: 2001: db8: 3fa9 :: d3: 9c5a
InterfaceIndex: 12
InterfaceAlias: Ethernet
AddressFamily: IPv6
Type: Unicast
PrefixLength: 64
PrefixOrigin: Manual
SuffixOrigin: Manual
AddressState: Preferred
ValidLifetime: Infinite ([TimeSpan] :: MaxValue)
PreferredLifetime: Infinite ([TimeSpan] :: MaxValue)
SkipAsSource: False
PolicyStore: ActiveStore
The interface is now multihomed (connecting multiple networks) because it has an IPv6 address link-local and IPv6 global. Open the Internet Protocol Version 6 dialog box (TCP / IPv6) Properties you will see the address information is configured manually as desired, like the following figure:
This snapshot confirms the successfully configured IP address using Windows PowerShell
This is the most valuable feature of IPv6 because it allows IPv6 nodes to communicate on the network without manually assigning addresses to them or using a DHCP server.
Assigning link-local addresses automatically for Interface on IPv6 servers is an example of automatically configuring IPv6 addresses, which allows servers on the same communication link to each other. This type of automatic address configuration is called stateless because it does not use the address configuration protocol like DHCP.
Another example of automatic stateless address configuration is when the IPv6 server uses a router to automatically configure additional addresses, such as a link-local or global Unicast address, a gateway address to wear. and other IPv6 configuration parameters. As follows:
Note: Automatic address configuration is not available for routers. In addition to configuring link-local addresses, address autoconfiguration is only used to assign addresses to servers. Addresses for routers must be configured using other methods, such as manual assignment.
Automatic address configuration is based on the use of address resolution protocols. On IPv4 networks, DHCP is such a protocol, it is used to assign automatic IP addresses and other configuration settings to the Interface on the host. DHCP infrastructure includes: DHCP server, DHCP clients, DHCP Relay Agent (can relay DHCP messages between server and client on different subnets).
The IPv6 version of this protocol is called DHCPv6, which uses the same infrastructure as that of DHCPv6 servers, DHCPv6 clients, and DHCPv6 Relay Agent. However, DHCPv6 can provide IPv6 hosts both stateless and automatically configured. This can be a bit confusing because it leads to additional addresses being assigned to the host. If you want to prevent this, you only need to configure IPv6 routers reasonably so that the DHCPv6 server can only assign addresses with status to the host.
One reason to deploy a DHCPv6 server on an IPv6 network is because Windows does not support automatically configuring the stateless address of DHCPv6 server settings by using Router Advertisement messages. This means that you need to use a DHCPv6 server if Windows must perform domain resolution using IPv6.
DHCPv6 client software is integrated into the following Windows versions:
The DHCP server service in the following Windows Server versions supports both stateless and status addresses:
You can configure a Windows Server 2012/2012 R2 computer as a stateless or stateless DHCPv6 server by following these steps:
Then use the New Scope Wizard to name and describe the scope, the IPv6 subnet prefix, and other required information.
These are ways to manually assign IPv6 addresses. Hope the article is useful to you :).