Setup:
I have two computers, both with an ethernet and wireless interface.
I have router A that is connected to the internet.
I have a router B that is not connected to the internet.
I would like to connect both computers to router A wirelessly, and both computers to router B ethernetly.
Problem:
If I connect a computer to router A and router B at the same time, I no longer have internet access through router A.
Reason:
File transfers between my two computers using router A is very slow, because wireless is terrible. If I could connect both computers to the internet through router A, and both computers to each other through router B, then I could speed up file transfers between them whilst still being able to access the internet.
To my intense irritation, connecting ethernetly to a router that has internet access is not an option.
Additional info:
After connecting to routers A and B:
alyx@shire ~> route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default BTBusinessHub.h 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
192.168.1.0 * 255.255.255.0 U 9 0 0 wlan0
I found a previous question that seems to pose the same problem (How to set up dual wired and wireless connections?), and followed the given answer. It did not work, and I still could not connect to the internet through router A. 'route' output changed to the following:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
192.168.1.0 * 255.255.255.0 U 9 0 0 wlan0
ip route add default gw 192.168.1.1
does nothing -- the default gateway already is192.168.1.1
:default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
– Mar 20 '15 at 09:59route
showsdefault 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
as the first line. If I connect the ethernet and the wireless, and do the steps suggested in the askubuntu question I linked so that I getdefault 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
as the first line inroute
, yet I have no internet access. – Mar 20 '15 at 10:04destination
column ofroute
output that both wlan0 and eth0 are192.168.1.0
? I should change it so that one of them is192.168.2.0
? How do I do that? – Mar 20 '15 at 10:12