I have a setup with a wireless and a wired NIC.
Each is connected to a different router.
Both are capable of internet access.
In general, it seems that the wired connection takes precedence and most if not all traffic goes through the wired connection.
From my PC I can find what my WAN IP address is by using the command
wget
http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
That returns my public IP address for the connection used for the command.
Is there a means by which I can force the use of the wireless connection for a command like this?
The only way I have found to do it is by temporarily killing the wired connection so that the wireles one functions by default for the internet connection.
Maybe some variation of the command to force it to use the WLAN1 wireless connection?
It is not vital, but it would save me some hassle if I could achieve it ...... even in a small script.
The routers LAN side addresses, which are dynamic, issued by DHCP, are in two different LAN segments ...... 192.168.1.xy & 192.168.3.xy
If necessary I guess the wireless IP LAN address could be made static ...... if it becomes necessary ....
Thanks for reading.
As usual suggestions welcome.
regards.