title: Check if two CIDR addresses intersect?
body: <p>Given two CIDR addresses say 192.168.2.0/14 and 192.168.2.0/32</p>
  
  <p>How do I check if two ip addresses overlap in "python2.6"??</p>
  
  <p>I have gone through netaddr and it allows to check if
  192.168.2.0 is in CIDR address 192.168.2.0/14 by</p>
  
  <pre><code>from netaddr import IPNetwork, IPAddress
  bool = IPAddress("192.168.2.0") in IPNetwork("192.168.2.0/14"):
  </code></pre>
  
  <p>But how to check for two CIDR address??</p>
  
  <p>I found a reference :: <a href="https://stackoverflow.com/questions/819355/how-can-i-check-if-an-ip-is-in-a-network-in-python">How can I check if an ip is in a network in python</a></p>