In this section, you will learn to work with IP addresses for IPv4/v6 address manipulation. Here, we will focus on IPv6 address manipulation.
Understand ipaddress module as IPv4 and IPv6 manipulation library
The Python ipaddress module
The ipaddress module simplifies working with IPv4 and IPv6 addresses in python. In this section, we will focus on the IPv6 protocol and work primarily with the following three class types:
- IPv6Address: Represents a single IPv6 address
- IPv6Network: Represents an IPv6 network
- IPv6Interface: Represents an IPv6 interface
You can get more information about this module with the help command from the Python interpreter:
The IPv6Address class represents an IPv6 address or network. To create these...