Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Policy-based routing with next-hop on DHCP

$
0
0

I have a setup with an EdgeRouter PoE that has one ISP on switch0.1000 and another on switch0.2000. I have a functional setup source policy for reaching both according to plan.

 

protocols {
     static {
         route 0.0.0.0/0 {
             next-hop 192.168.10.1 {
             }
             next-hop 192.168.1.1 {
             }
         }
         table 1 {
             description ISP1
             route 0.0.0.0/0 {
                 next-hop 192.168.10.1 {
                 }
             }
         }
         table 2 {
             description ISP2
             route 0.0.0.0/0 {
                 next-hop 192.168.1.1 {
                 }
             }
         }
    }
}

The problem is, I had to enable NAT on my modem for table 2. I tried with interface-route to no avail. How do I poke the gateway I get from DHCP into both the main table and table 2 instead of 192.168.1.1?


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>