Hello all.
I’ve this problem:
I have a pppoe server with eth1 as wan port and eth2-eth5 bridged ports (bridge1) and ip 10.10.10.100/24 assigned to this bridge1.
The pppoe server is on 10.10.10.100 and gives to pppoe client ip addresses 192.168.50.0/24. My ISP gives me public IP addresses xxx.xxx.xxx.0/23: I attest public addresses xxx.xxx.xxx.2/3/… on eth1 of pppoe server, while the gateway xxx.xxx.xxx.1 is attested to the ISP. I can assign a specific public ip address attested on eth1 to a specific pppoe client with srcnat and dstnat and all goes well.
Now I want to assign a /29 native class of public IPs (xxx.xxx.xxx.0/29) to some PCs connected behind a router RB433. RB433 has eth1 as LAN port (connected with these PCs that needs ip addresses) with public IP xxx.xxx.xxx.1/29, and eth2 as pppoe-client1 with ip 192.168.50.5 (pppoe-client1 secret has local address 192.168.50.4 and remote address 192.168.50.5). PC settings are: ip addr xxx.xxx.xxx.2-6, mask 255.255.255.248, gw xxx.xxx.xxx.1. dns 8.8.8.8.
On pppoe-server there’s the default route 0.0.0.0/0 gw xxx.xxx.xxx.1/23 and I added the route: dst addr: xxx.xxx.xxx.0/29 gw: 192.168.50.5 pref source: 10.10.10.100.
When pppoe link goes up a dynamic default route on RB433 (dst addr: 0000/0, gw: 192.168.50.4) is addes as active.
From my PC with the public ip xxx.xxx.xxx.2/29 I can ping 10.10.10.100 but not xxx.xxx.xxx.1/23 and so I don’t have access to the internet.
Can anyone halp me, please.