I am trying to use nmap to scan a /119 IPv6 network. (512 addresses). Before I do this I want to generate a file that will populate all of the ip addresses in that range. The network info is as follows:network 2607:f4a0:3:0:250:56ff:feac:3c00Prefix length   119network range   2607:f4a0:0003:0000:0250:56ff:feac:3c00-                2607:f4a0:0003:0000:0250:56ff:feac:3dffSo I set my script up like this:[root@ns1 ~]# for i in {1..512}; do printf 2607:f4a0:3:0:250:56ff:feac:3c00%x\n $i >> ipv6.txt; doneWhat I expect to see in the file are 512 addresses that are within the range above. However what I see instead is this:2607:f4a0:3:0:250:56ff:feac:3c0012607:f4a0:3:0:250:56ff:feac:3c0022607:f4a0:3:0:250:56ff:feac:3c0032607:f4a0:3:0:250:56ff:feac:3c0042607:f4a0:3:0:250:56ff:feac:3c0052607:f4a0:3:0:250:56ff:feac:3c0062607:f4a0:3:0:250:56ff:feac:3c0072607:f4a0:3:0:250:56ff:feac:3c0082607:f4a0:3:0:250:56ff:feac:3c0092607:f4a0:3:0:250:56ff:feac:3c00a2607:f4a0:3:0:250:56ff:feac:3c00b2607:f4a0:3:0:250:56ff:feac:3c00c2607:f4a0:3:0:250:56ff:feac:3c00d2607:f4a0:3:0:250:56ff:feac:3c00e2607:f4a0:3:0:250:56ff:feac:3c00f2607:f4a0:3:0:250:56ff:feac:3c00102607:f4a0:3:0:250:56ff:feac:3c00112607:f4a0:3:0:250:56ff:feac:3c00122607:f4a0:3:0:250:56ff:feac:3c00132607:f4a0:3:0:250:56ff:feac:3c00142607:f4a0:3:0:250:56ff:feac:3c00152607:f4a0:3:0:250:56ff:feac:3c00162607:f4a0:3:0:250:56ff:feac:3c00172607:f4a0:3:0:250:56ff:feac:3c00182607:f4a0:3:0:250:56ff:feac:3c00192607:f4a0:3:0:250:56ff:feac:3c001a2607:f4a0:3:0:250:56ff:feac:3c001b2607:f4a0:3:0:250:56ff:feac:3c001cWhen I go to run nmap I get errors:nmap -Pn -sT -p 22 -6 -iL ipv6.txt > ipv6upErrors:Failed to resolve given IPv6 hostname/IP:    2607:f4a0:3:0:250:56ff:feac:3c00200.  Note that you can't use '/mask' or   '[1-4,7,100-]' style ranges for IPv6.How can I fix this?
simple for loop script to build out ipv6 subnet
bash;shell script;scripting
for i in {15360..15871}; do printf 2607:f4a0:3:0:250:56ff:feac:%.4x\n $i; doneOutput:2607:f4a0:3:0:250:56ff:feac:3c002607:f4a0:3:0:250:56ff:feac:3c012607:f4a0:3:0:250:56ff:feac:3c022607:f4a0:3:0:250:56ff:feac:3c03...2607:f4a0:3:0:250:56ff:feac:3dfd2607:f4a0:3:0:250:56ff:feac:3dfe2607:f4a0:3:0:250:56ff:feac:3dff