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

    Multiple interfaces with multiple static IP mapping

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    2 Posts 1 Posters 1.2k Views
    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.
    • C
      catdsnny
      last edited by

      I have a DELL machine with 4 ethernet cards.  I have a static IP block from my ISP - 5 IPs, so its a /29.  I want to map each static IP to a separate interface.  I have it basically working inbound, but when I try outbound, it only reports the WAN interface IP, no matter which interface I check from.  I'm running an Asterisk PBX on one of the interfaces and the trunk provider authenticates by IP, so it wont quite work with using the same outbound IP for all inside interfaces.

      WAN config is 96.56.225.194/29  gateway 96.56.225.193
      LAN config is 192.168.1.0/24
      OPT1 config is 192.168.2.0/24
      OPT2 no config yet

      The asterisk PBX is connected to OPT1 as 192.168.2.2 and 192.168.1.230 (it is dual homed).  It can ping out and I can ping it locally on both addresses.  I can also ping 96.56.225.195.

      I set up a virtual IP of 96.56.225.195 and assigned a 1:1 mapping, NAT and outbound NAT, but doing www.whatismyip.com from either address reports 96.56.225.194

      Whats the best way to have multiple static IPs mapped exclusively to multiple interfaces?  Or is there a better way to achieve this?

      thanks

      1 Reply Last reply Reply Quote 0
      • C
        catdsnny
        last edited by

        Nevermind…was a cabling problem - all is working

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