Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    static route with two PPPoE interfaces sharing the same default gw

    Routing and Multi WAN
    2
    4
    444
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      md0
      last edited by md0

      Hi,

      I have two outgoing PPPoE connections from my ISP with fixed IP addresses and the same default gateway, 10.0.0.1 (say interface A and interface B).

      Interface A is the default outgoing interface. I need to have traffic to certain destinations use interface B, so I have added a static route to the outside network and asigned it to gateway B. However, in the resulting routing table the new static rule is bound to the 10.0.0.1 gw (which is correct), but also to interface A instead of B (which is wrong). It looks like the route is configured only based on the default gateway and not the egress interface...

      Is this a bug/error, or am I missing something?

      Thank you!

      jahonixJ 1 Reply Last reply Reply Quote 0
      • jahonixJ
        jahonix @md0
        last edited by

        @md0 said in static route with two PPPoE interfaces sharing the same default gw:

        Is this a bug/error, or am I missing something?

        You missed to slap your ISP (or the one who ordered this mess) for giving you two connections with the same gateway.
        Routing through different interfaces can only happen when they have different gateways.

        A transit network in front of your second WAN can help.

        1 Reply Last reply Reply Quote 0
        • M
          md0
          last edited by

          Hi jahnix,

          I agree that it's not an ideal situation, but I needed a cheap setup with multiple fixed IP addresses. And it works for the most part - for example, traffic to the gw monitoring IPs is correctly assigned to the common gateway and different egress interfaces. Why can't this be applied to static routes too?

          1 Reply Last reply Reply Quote 0
          • M
            md0
            last edited by

            Problem solved: created an outbound NAT rule on interface A that replaced the source address with that of interface B for certain destinations. Since the two interfaces share the same gateway this was not an issue for the ISP - it doesn't care on what PPPoE session a request came from as long as the originating IP address is allowed through the default gateway.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.