I have a PPPoE Server running on ether2 that is giving public IPs to clients connected. (23.45.67.x/26)
The (physical) Gateway-Device 23.45.67.1 is connected to ether1. so 23.45.67.1 is added as gateway and 23.45.67.2 is added as address to ether1.
How can I make the Router “forward” or “route” pakets from The PPPoE clients to the gateway?
Here are the symptoms that I can see:
Mikrotik Router can ping the gateway and Internet-IPs (so the gateway settings and internet connection must be ok)
from a PPPoE client PC I can ping 23.45.67.2 but not the gateway.
from the internet I can ping the gateway and 23.45.67.2
The forwarding/routing between the gateway and the PPPoE Clients seems to be the problem.
May I need to set some static route?
When I connect to my gateway with a PC, I can easiely access internet. with any of the public IPs that are available to me.
The Mikrotik can also access internet, but not the clients on the PPPoE Server side.
in this case proxy-arp solves this issue (this is because your pppoe server acts as a proxy between the gateway and your public clients), but in most cases you should ask your provider to create a /30 subnet between their router and your pppoe server, and then route the entire range of public address address to that /30.
Did I make myself clear or this explanation is a little bit confusing?
Some people call proxy arp pseudo bridging. When you have packet forwarding turned on with proxy arp it’s almost like having a layer2 bridge except it’s not a true bridge. When your pppoe server hands out an ip to your client user that user is going to try to find the gateway out to the internet but since the gateway and the client are on different interfaces they can’t arp each other to form a conversation. Proxy arp fixes this by taking the arp requests and proxying them to the other interfaces on the router. When the arps are proxied the devices have a path to send packets to each other. It’s always a good idea to be careful when using proxy arp as proxy arp is almost promiscious and will proxy any arp requests even arps that aren’t in your /26 segment.
i want to do the same, providing public IP to clients connecting. but i have more then one range, like couple of /24’s would the same ospf work ? what do i need to modify ?