Multiple interfaces with multiple static IP mapping



  • 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



  • Nevermind…was a cabling problem - all is working


Log in to reply