Struggling with multiple external Gateways...

Discussion in 'HyperWRT Firmware' started by LitlJay, Jul 11, 2010.

  1. LitlJay

    LitlJay Networkin' Nut Member

    Until recently I had an ISP who sold me 5 static IP's that all had the same gateway address. I used one for my Thibor-flashed WRT54G and a few iptables commands in the firewall script to do 1:1 natting and assign the other 4 to devices on my network.

    I recently changed ISP's, thinking that I would only need to type in my 5 new external IP's and pick up where I left off.

    NOT SO! The new static IP's each are on a different subnet and have a different gateway address! Why they would do this escapes me, but no amount of pleading will get them to give me 5 addresses on the same subnet.

    What I need is a nifty routing table to get them all working, and I assume the same old firewall script will work. I have tried and tried, but the task seems to be above my pay grade.

    Can someone show me how to write a working routing table and where to put it in HyperWRT?


  2. mstombs

    mstombs Network Guru Member

    Lon time since I used that version of firmware... but

    It may just need you to define static route to the gateways through the WAN port, with route commands in the firewall script of form

    route add -host $GW dev vlan1
    for each gateway.

    (may also be a way through web gui).

    If your devices on the lan need to think they are contacting the ISP gateway directly, enabling proxy_arp on the router might work, if not already enabled

    echo "1" >/proc/sys/net/ipv4/conf/vlan1/proxy_arp
    echo "1" >/proc/sys/net/ipv4/conf/br0/proxy_arp
  3. LitlJay

    LitlJay Networkin' Nut Member

    Thanks for the help, but that didn't work.
    We do seem to be headed in the right direction, though. A ping to an outside host resolves to an IP address, but the pings fail.
    What else can I try?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice