- Link-local.
- :: 1/128.
- socket.getaddrinfo.
- Use the following code to create a server with IPv6 support with a socket module:
# socket.AF_INET6 to indicate that we will use Ipv6
client = socket.socket (socket.AF_INET6, socket.SOCK_STREAM)
- We can call the interfaces() function from this library to list all of the interfaces that are present in the system.
- AF_LINK is the link layer interface (for example, Ethernet), AF_INET represents the IPv4 internet address, and AF_INET6 represents the IPv6 internet address.
- psutil.
- We can interoperate between IPv4 and IPv6 with the ipv6() and ipv4() methods.
- From ipaddress, we can import IPv6Address, IPv6Network, and IPv6Interface.
- The subnets(prefixlen_diff=1, new_prefix=None) method also has the capacity to generate subnets with additional host bits or with a specific amount of network bits. Any IPv4Network object can find out information about its parent with the supernet() method, which is the opposite of the subnet.