Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Python Networking

You're reading from   Learning Python Networking A complete guide to build and deploy strong networking capabilities using Python 3.7 and Ansible

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher
ISBN-13 9781789958096
Length 490 pages
Edition 2nd Edition
Languages
Tools
Concepts
Arrow right icon
Authors (3):
Arrow left icon
Dr. M. O. Faruque Sarker Dr. M. O. Faruque Sarker
Author Profile Icon Dr. M. O. Faruque Sarker
Dr. M. O. Faruque Sarker
José Manuel Ortega José Manuel Ortega
Author Profile Icon José Manuel Ortega
José Manuel Ortega
Sam Washington Sam Washington
Author Profile Icon Sam Washington
Sam Washington
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1: Introduction to Network and HTTP Programming FREE CHAPTER
2. Network Programming with Python 3. Programming for the Web with HTTP 4. Section 2: Interacting with APIs, Web Scraping, and Server Scripting
5. Application Programming Interface in Action 6. Web Scraping with BeautifulSoup and Scrapy 7. Engaging with Email 8. Interacting with Remote Systems 9. Section 3: IP Address Manipulation and Network Automation
10. Working with IP and DNS 11. Implementing IPv6 and Address Manipulation 12. Performing Network Automation with Python and Ansible 13. Section 4: Sockets and Server Programming
14. Programming with Sockets 15. Designing Servers and Asynchronous Programming 16. Designing Applications on the Web 17. Assessment 18. Another Book You May Enjoy

Chapter 8, Implementing IPv6 and Address Manipulation

  1. Link-local.
  2. :: 1/128.
  3. socket.getaddrinfo.
  4. 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)
  1. We can call the interfaces() function from this library to list all of the interfaces that are present in the system.
  2. 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.
  3. psutil.
  4. We can interoperate between IPv4 and IPv6 with the ipv6() and ipv4() methods.
  5. From ipaddress, we can import IPv6Address, IPv6Network, and IPv6Interface.
  1. 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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image