I came back to this today ...... yeah I know I said I was giving up
.... don't believe everything you read
OK, I now have two NICs set up here - one is eth and the other wlan.
eth0 is the default NIC.
At times I might wish to use the other to download something ..... from some as yet unknown IP address.
So to try to duplicate this, which I can likely put in a small script if it works, I am using whatismyip.com in a browser to check which NIC I am using.
$ konqueror [url=http://www.whatismyip.com]www.whatismyip.com[/url]
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 35 0 0 wlan0
link-local * 255.255.0.0 U 35 0 0 wlan0
link-local * 255.255.0.0 U 1002 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default my.router 0.0.0.0 UG 0 0 0 eth0
default 192.168.1.254 0.0.0.0 UG 35 0 0 wlan0
I want to be able to use a user script to go to the whatismyip.com address on wlan0 ...... and to go there without the script on eth0.
So far it seems that using the route command requires root privileges ...... not that I got it working even as root.
So, as I am apparently incapable of figuring this out myself, can anyone give me a command that would work in this script?
Thanks for your further attention.