Fixes #7263 - make sure the ip address from interfaces is valid

These should be validated too.