I am currently trying to configure a router to which I connect to (to its web interface) using an Ethernet cable through the eth0 interface. That router doesn't have access to the internet.Now, I have access to another network (different IP range and all) that does have access to the internet through my wireless interface wlan0.I would like to use eth0 to only connect to the router I am trying to configure and wlan0 for the rest of the connections. That way, I could do some research while trying to configure the router.I'm sure it's doable, with some kind of routing but I haven't been able to find anything that works. The issue is that when I plug the Ethernet cable, the system starts using that eth connection for everything.To sum up a bit:Assuming the router's address is 10.0.0.1, can I do something to route traffic going to 10.0.0.1 through the eth0 interface and anything else through wlan0? I am using Debian Squeeze.
Use eth interface to connect to a router and wlan for the internet
debian;networking;routing
There are a few possible options here.1Don't use DHCP for configuring eth0. Use a static configuration instead, and don't set a gateway. DHCP is setting a default gateway of the router so your machine uses it for all traffic. Without the gateway being set, it will only use the interface to talk to hosts on that network2Tell the router not to advertise itself as a gateway. This wont be possible on most routers, so this may not be an option at all.3It's possible debian might be able to ignore the gateway setting that the router advertises via DHCP, but I don't use debian, so I'm not sure. This is dependent upon what debian uses to configure network devices.4Also debian specific, you might be able to run a script after the interface is brought up and have it delete the gateway route that is added by DHCP.