Automatic IP address configuration in VANETs