Results 1 to 4 of 4

Thread: two connections with two devices with networkmanager

  1. #1

    Default two connections with two devices with networkmanager

    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).

    Here are my routing tables



    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?

  2. #2
    Join Date
    Oct 2008
    Location
    North Wales, UK
    Posts
    1,114

    Default Re: two connections with two devices with networkmanager

    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

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,775

    Default Re: two connections with two devices with networkmanager

    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.
    Henk van Velden

  4. #4

    Default Re: two connections with two devices with networkmanager

    Everything works with ifup (static address for eth0 and dhcp for wlan0).
    Thank you I didn't even think about giving ifup a try...

    I can switch between this ifup configuration for home use and networkmanager, so it's a good workaround.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •