Find the answer to your Linux question:
Results 1 to 3 of 3
Hi I have tried this in other forums but without response. I have two interfaces, eth0 and eth1 with ip 10.255.1.100 (GW 10.255.1.1) and 10.255.2.200 (GW: 10.255.2.1) subnet mask 255.255.255.0 ...
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    2

    How to add 2 IP route from 2 different interfaces to same remote ip

    Hi

    I have tried this in other forums but without response.
    I have two interfaces, eth0 and eth1 with ip 10.255.1.100 (GW 10.255.1.1) and 10.255.2.200 (GW: 10.255.2.1) subnet mask 255.255.255.0
    I want to add failover routing to an IP 192.168.100.100 i.e 1st priority route through GW 10.255.1.1 and second priority route through 10.255.2.1 (i.e primarily reach 192.168.100.100 through eth0 and try through eth1 if eth0 is down or the ip cant be reached from eth0)

    is such a route definition possible in IP?

    If yes, what would be the commands.
    if not, why?

    i have an sctp multihoming test to do with (2 IP addresses) in each end point , i want to make 4 paths using the above setup between the two end points.(in the above example, i have provided only 192.168.100.100 for simplicity)

    TIA,

    Regards,
    sn

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    I am trying to figure out what it is that you want to do here. If I am understanding you correctly you have a system with two paths. You are looking to use one path and if that path fails you want to be about to use the second path. This is advanced routing and you could start HERE and google for linux advance routing.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    May 2011
    Posts
    2
    Hi Robert

    Immence thanks for your reply.
    Yes, I got redirected to correct info i am looking for.
    Will take a look at guide.

    So, I reckon that previous to iproute2, the 4 paths for the above scenario would not have been possible.

    Regards,
    sn

    P.S:
    I too got counted : 544965

Posting Permissions

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