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

custom static route

$
0
0

Hi,

 

I have the following config:

 

pppoe1 NAT masquerade -- with public ip 186.x.x.41

pppoe2 NAT masquerade -- with public ip186.x.x.42

 

 

eth1.100 (is vlan for public ip 186.x.x.41)  -- the local subnet is 172.16.10.0/24

eth1.200 (is vlan for public ip 186.x.x.42) -- the local subnet is 172.16.20.0/24

 

 

this is the config:

 

-- for 186.x.x.41

set protocols static table 1 route 0.0.0.0/0 next-hop 186.x.x.41
set firewall modify SOURCE_ROUTE rule 10 description 'traffic from eth1.100 to 186.x.x.41'
set firewall modify SOURCE_ROUTE rule 10 source address 172.16.10.0/24
set firewall modify SOURCE_ROUTE rule 10 modify table 1
set interfaces ethernet eth1 vif 100 firewall in modify SOURCE_ROUTE

 

-- for 186.x.x.42

set protocols static table 1 route 0.0.0.0/0 next-hop 186.x.x.42
set firewall modify SOURCE_ROUTE rule 10 description 'traffic from eth1.100 to 186.x.x.42'
set firewall modify SOURCE_ROUTE rule 10 source address 172.16.20.0/24
set firewall modify SOURCE_ROUTE rule 10 modify table 1
set interfaces ethernet eth1 vif 200 firewall in modify SOURCE_ROUTE

 

************************************************************ The question

If i traceroute from eth1.100 which has the public 186.x.x.41 to 186.x.x.42

traceroute 186.x.x.42

186.x.x.42  -- single hop

 

What static routes I have to add in order to achive: ???

traceroute 186.x.x.42

172.16.10.1

186.x.x.41

186.x.x.42

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles



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