How to Set Up an IPv6 Address on a Windows Cloud Server?

25-01-2024 02:31:55

The adoption of IPv6 addresses has resolved the issue of limited IP address resources, thereby fostering the application and development of the internet and also eliminating the barriers for various devices to access the internet. The following demonstration focuses on the Windows operating system, illustrating how to set up an IPv6 address on a cloud server. This guide is applicable to versions such as Windows Server 2019, Windows Server 2016, and Windows Server 2012 R2.

Firstly, identify the name of the network adapter in the operating system. This can be done by using the 'ipconfig /all' command or by viewing it in the Network and Sharing Center.

Assuming the network adapter name is 'Ethernet', execute the following commands to set the IPv6 address.

netsh interface ipv6 set global randomizeidentifiers=disabled
netsh interface ipv6 add address interface="Ethernet" address="2001:db8:1000::100/64" 
netsh interface ipv6 add address interface="Ethernet" address="2001:db8:1000::200/64" 

Here, '2001:db8:1000::100' is the primary IPv6 address, and '2001:db8:1000::200' is the secondary IPv6 address. If the secondary IPv6 is not required, the last line can be omitted."