Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. 192.168.3.65
  2. 192.168.3.66
  3. 192.168.3.67
  4. ...
  5. ...
  6. 192.168.3.94
  7.  
  8. >>> for x in ipaddress.ip_network('192.168.3.78/27'):
  9. print(x)
  10.  
  11. Traceback (most recent call last):
  12. File "<pyshell#31>", line 1, in <module>
  13. for x in ipaddress.ip_network('192.168.3.78/27'):
  14. File "C:UsersAdminAppDataLocalProgramsPythonPython37-32libipaddress.py", line 74, in ip_network
  15. return IPv4Network(address, strict)
  16. File "C:UsersAdminAppDataLocalProgramsPythonPython37-32libipaddress.py", line 1536, in __init__
  17. raise ValueError('%s has host bits set' % self)
  18. ValueError: 192.168.3.78/27 has host bits set
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement