Clearly a bug and a quick workaround seems doubtful given that the db column may only be char(15). I’d open a support case.
Thanks Sanford. Unfortunately this is not a bug - see Marketo's answer below. We have now built a workaround where we clean the IP address if its in ipv6 before submitting. Obviously not a good solution, but the only one I see for now. Any other solutions much appreciated.
_________________________________________
Marketo support:
"Unfortunately, I have confirmed that there is no way currently available for Marketo customers to provide configuration for IP v6 explicitly. Marketo doesn't accept IPv6. When you do a form submission with an IP address in IPv6 format, you can get errors, or the form submissions may not come through as it cannot qualify the IP address as a valid format. IPv6 support is not currently included on any roadmaps I have access to. So I would not anticipate it being released as a feature anytime soon. However, it may be incorporated in the long term. Unfortunately, there is no workaround as of now for this. Alternatively, I would like to suggest that despite the exhaustion of IPv4 addresses on the internet, it is still possible to record an IP for visitors to your website using the IPv6-to-IPv4 conversion method. You may find additional information about this conversion process at https://www.whatsmydns.net/ipv6-to-ipv4."