programme:dhcpdnsadmin:dda_module
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
wiki:skripte:dda_module [2018/07/14 15:33] – [Genearate IPs] pulsar | programme:dhcpdnsadmin:dda_module [2020/11/13 13:54] (aktuell) – ↷ Seite von programme:dda:dda_module nach programme:dhcpdnsadmin:dda_module verschoben pulsar | ||
---|---|---|---|
Zeile 12: | Zeile 12: | ||
<code python> | <code python> | ||
- | >>> | + | |
- | >>> | + | >>> |
+ | >>> | ||
[IPv4Address(' | [IPv4Address(' | ||
</ | </ | ||
+ | |||
+ | Network objects can be iterated to list all the addresses belonging to the network. For iteration, all hosts are returned, including unusable hosts (for usable hosts, use the hosts() method). An example: | ||
+ | |||
+ | <code python> | ||
+ | >>> | ||
+ | >>> | ||
+ | ... addr | ||
+ | ... | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | IPv4Address(' | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Die Lösung zum Generieren === | ||
+ | |||
+ | Nur die reinen IP-Adressen aufgelistet und nur nutzbare Adressen, also keine 172.16.2.0 usw: | ||
+ | |||
+ | <code python> | ||
+ | >>> | ||
+ | >>> | ||
+ | ... | ||
+ | ... | ||
+ | 172.16.2.1 | ||
+ | 172.16.2.2 | ||
+ | 172.16.2.3 | ||
+ | 172.16.2.4 | ||
+ | 172.16.2.5 | ||
+ | 172.16.2.6 | ||
+ | 172.16.2.7 | ||
+ | 172.16.2.8 | ||
+ | 172.16.2.9 | ||
+ | 172.16.2.10 | ||
+ | 172.16.2.11 | ||
+ | 172.16.2.12 | ||
+ | 172.16.2.13 | ||
+ | 172.16.2.14 | ||
+ | </ | ||
==== Reverse IP mit ipaddress Modul ==== | ==== Reverse IP mit ipaddress Modul ==== |
programme/dhcpdnsadmin/dda_module.1531575186.txt.gz · Zuletzt geändert: 2018/07/14 15:33 von pulsar