Hi,
I’m trying to get two different connections on two different devices (eth0 and wlan0) :
one pc to pc connection (with crossover cable)
one pc to router connection (via wlan)
The problem is that I can’t ping remote servers when connected to both networks (but I can ping my router and resolve domain names).
Am I right? Is there a simple way to change this? I guess I should not edit the routing table manually because I see that it is being changed automatically when I connect / disconnect eth0. Can I tell Networkmanager to give wlan0 priority over eth0?
You need to pet them 2 different networks, like say, 192.168.1.xxx and 192.168.0.xxx each with it’s own settings.
Then
Routing table:
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
It is correct that there should be two different networks. But there are: one is 192.168.1.0/24 and the other is 10.0.0.0/8
The thing is that the default router is switching from the one to the other. In vort3x1337s’ case it should stay pointed at gateway 192.168.1.1 (the router) and not switch to 10.10.10.254 (a non existing, self invented router).
Now the bad news, I do not know why this happens (maybe other come to your rescue here). I do not use a networkmanager, but only traditional with ifup and no DHCP, so I can can configure exactly what I want. When your wlan connection is allways the same one in your home, you could consider doing likewise.