Thank you Luth
,
- R1 routing Table:
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 1xx.x.xx.xx >
1 ADC 10.0.0.0/24 10.0.0.1 bridge_gestHW >
2 Do 10.0.0.0/24 9x.xx.xx.3 >
10.0.0.2 >
3 ADC 10.0.0.1/32 10.0.0.1 loopback >
4 ADC 9x.xx.xx.0/24 9x.xx.xx.2 bridge_gestHW >
5 Do 9x.xx.xx.0/24 9x.xx.xx.3 >
10.0.0.2 >
6 ADo 9x.xx.xx.252/32 9x.xx.xx.3 >
10.0.0.2 >
7 ADo 9x.xx.xx.253/32 9x.xx.xx.3 >
10.0.0.2 >
8 ADo 9x.xx.xx.254/32 9x.xx.xx.3 >
10.0.0.2 >
9 ADC 1xx.x.xx.84/30 1xx.x.xx.86 ether1 >
- R2 Table:
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADo 0.0.0.0/0 10.0.0.1 110
9x.xx.xx.2
1 A S 0.0.0.0/32 9x.xx.xx.2 1
2 ADC 10.0.0.0/24 10.0.0.2 ether1 0
3 ADC 9x.xx.xx.0/24 9x.xx.xx.3 ether1 0
4 ADo 9x.xx.xx.2/32 10.0.0.1 110
9x.xx.xx.2
5 ADC 9x.xx.xx.252/32 9x.xx.xx.3 <pppoe-rosario> 0
6 ADC 9x.xx.xx.253/32 9x.xx.xx.3 <pppoe-ovidio> 0
7 ADC 9x.xx.xx.254/32 9x.xx.xx.3 <pppoe-test> 0
8 ADo 1xx.xx.xx.84/30 10.0.0.1 110
9x.xx.xx.2
- About OSPF instances on R1
[admin@CoreRouter] /routing ospf instance> pr
Flags: X - disabled
0 name="default" router-id=10.0.0.1
distribute-default=if-installed-as-type-1
redistribute-connected=as-type-1
redistribute-static=as-type-1 redistribute-rip=no
redistribute-bgp=no redistribute-other-ospf=no
metric-default=1 metric-connected=20 metric-static=20
metric-rip=20 metric-bgp=auto metric-other-ospf=auto
in-filter=ospf-in out-filter=ospf-out
- On Router 2 OSPF
[admin@PPPoE-SRV] /routing ospf instance> pr
Flags: X - disabled, * - default
0 * name="default" router-id=10.0.0.2 distribute-default=if-installed-as-type
redistribute-connected=as-type-1 redistribute-static=no
redistribute-rip=no redistribute-bgp=no redistribute-other-ospf=no
metric-default=1 metric-connected=20 metric-static=20 metric-rip=20
metric-bgp=auto metric-other-ospf=auto in-filter=ospf-in
out-filter=ospf-out
As you can see I have doing tests changing private ip by public ones and the result is the same.
Now router 1 has 9x.xx.xx.2 (10.0.0.1 is still active) on a bridge interface
Router 2 has 9x.xx.xx.3 on eth1(10.0.0.2 is still active) that is connected to router 1.
- PPPoE server on router 2 it's installed on a bridge interface and its pool goes from 9x.xx.xx.20-9x.xx.xx.254 (this bridge interface has no IP), and his local address is 9x.xx.xx.3
In Ripe NCC database there is the route object created and my ISP says that the route is announced and working (I have another /24 working ok).
I tried to do traceroute from a pppoe client to 1xx.xx.xx.85/30 (the IP from remote router upstream provider) and without masquerade rule on Router1 (Router 2 has neither nat nor mangle rules) the last hop is 10.0.0.1 and is unable to reach it.
When I enable on R1:
chain=srcnat action=masquerade src-address=9x.xx.xx.0/24 out-interface=ether1
then I can reach that IP.
I don't understand whats going on.....
Thank you again.