Add option to specify an interface or an address for routers.

The interface is used on routers to source ping and traceroute.
On software routers, an address is required instead of the interface.