/Everyone is free to use the -g option if needed /> Yes, but is eth0.2 a valid entry?
The parameter of -g is an IP address. It it not the IP address of an interface but of the gateway to the internet. So specifying an interface like eth0.2 does not make sense.
You could use something like this: .... -g `ip route list | grep '^default' | sed -e 's/.*via //' -e 's/ .*//'`
Rob
Rob,
Thanks!
I'm not sure how this could be used after the machine is running, though. I think if Marius incorporates a recheck into the future release, as he noted, we should be OK.
My issue is not discovering the WAN IP, it's the WAN IP can change during uptime.
- Lynwood KB3VWG
You could use something like this: .... -g `ip route list | grep '^default' | sed -e 's/.*via //' -e 's/ .*//'`