Add support for gateway override, using ip/subnet@gw syntax.

Thank you @sbmandava (Suresh Mandava) for contributing this!