Originally Posted by
rmil
By using "route -n", you can always see through what IP number, internet goes. In your case it is wlan 10.20.30.40 you have flag UG
How does this look for a plan to follow what you just said to do?
Code:
$ ifconfig
Reveals ...
wlan0 ==> inet addr:10.20.30.159 Bcast:10.20.30.255 Mask:255.255.255.0
eth0 ==> inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0
Running the suggested command:
Code:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.20.30.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
0.0.0.0 10.20.30.40 0.0.0.0 UG 0 0 0 wlan0
And, adding anything of value from the route command:
Code:
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
10.20.30.0 * 255.255.255.0 U 2 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 wlan0
default 10.20.30.40 0.0.0.0 UG 0 0 0 wlan0
Then, to change it, you suggest I go from:
Code:
$ sudo route del default gw 10.20.30.40 wlan0
To what IP address?
Do I pick the IP address of the radio (which is currently set up as a bridge?)
Code:
$ sudo route add default gw 192.168.0.100 eth0
Unfortunately, this results in the error:
SIOCADDRT: No such process
So, I think I'm close to being able to switch, at will, between eth0 and wlan0 (if it weren't for that error above).
Maybe I put the wrong IP address in the "route add" line?
How do I get that IP address to set to the default for eth0?
Is it the gateway IP address of the WISP radio which is connected to the laptop eth0 port?
Or, do I use the gateway IP address as set up in that WISP radio?
Bookmarks