Use list comprehension to generate ipv6

3 lines in 1.