Find the answer to your Linux question:
Results 1 to 3 of 3
I got two Linux-routers for routing between two nets. Both got two links to each other. One is a wifi-connection, the other is Ethernet. I want to set it up ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    1

    How to make the router choose between two routes to the same net.


    I got two Linux-routers for routing between two nets.
    Both got two links to each other. One is a wifi-connection, the other is Ethernet.
    I want to set it up so it got two routes between the nets, one for each link.
    How can I make the router use the link that got its cable connected?
    When I add both routes with the "route add -net" command it only tries the first one in the routing table, and gives up if the cable for the first interface is not connected, and doesn't try the other route to the same net.

    Hope this is understandable, and answerable

  2. #2
    Just Joined!
    Join Date
    Aug 2008
    Posts
    10
    Did you try adding both the route to the router as default using route add-net.

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    What is the output of:

    Code:
    /sbin/route -n

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. $spacer_open
    $spacer_close

Posting Permissions

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