Community discussions

MikroTik App
 
MrMaarten
just joined
Topic Author
Posts: 2
Joined: Wed Mar 27, 2024 12:37 pm

PPPOE server for wan ip adresses.

Wed Mar 27, 2024 1:06 pm

I have a situation where i receive a vlan with a large ip pool and a gateway from my ISP.
Now i want to take 1 addres from this pool for my mikrotik and use the others to use for an PPPOE Server.
In order to test this i made a test configuration at home but i can't get it to work.

Current test setup i use at home:
Vlan 20 with subnet 192.168.3.0/24 and gateway 192.168.3.1.

My mikrotik has ip adress 192.168.3.2 and can connect to the internet.
My goals is to have a PPPOE server that hands out other ip adresses (192.168.3.10-192.168.3.50).
I can connect a PPPOE client but i can't acces the internet or ping the gateway.

# mar/27/2024 10:53:36 by RouterOS 6.42.6
# software id = **ELIDED**
#
# model = RouterBOARD 941-2nD
# serial number = **ELIDED**
/interface bridge
add arp=proxy-arp fast-forward=no name=bridge1 pvid=100 vlan-filtering=yes
/interface vlan
add interface=bridge1 name=vlan20 vlan-id=20
add interface=bridge1 name=vlan100 vlan-id=100
/ip pool
add name=PoeTestpool ranges=192.168.3.10-192.168.3.50
/ppp profile
add dns-server=8.8.8.8 local-address=192.168.3.2 name=PPPProfile1 \
    remote-address=PoeTestpool wins-server=1.1.1.1
/interface bridge port
add bridge=bridge1 interface=ether1 pvid=20
add bridge=bridge1 interface=ether2 pvid=100
/interface bridge vlan
add bridge=bridge1 untagged=ether2,bridge1 vlan-ids=100
add bridge=bridge1 tagged=bridge1,ether1 vlan-ids=20
/interface pppoe-server server
add disabled=no interface=bridge1 one-session-per-host=yes service-name=\
    "PPPOE Test"
/ip address
add address=192.168.3.2/24 interface=vlan20 network=192.168.3.0
/ip dns
set servers=8.8.8.8
/ip firewall nat
add action=accept chain=srcnat
/ip route
add distance=1 gateway=192.168.3.1
/ppp secret
add name=test password=123456 profile=PPPProfile1 service=pppoe
/system clock
set time-zone-name=**ELIDED**
/system routerboard settings
set silent-boot=yes
Last edited by tangent on Thu Mar 28, 2024 12:28 am, edited 1 time in total.
Reason: elided PII; converted "quote" to "code" block
 
MrMaarten
just joined
Topic Author
Posts: 2
Joined: Wed Mar 27, 2024 12:37 pm

Re: PPPOE server for wan ip adresses.

Wed Mar 27, 2024 4:38 pm

To add:
Online i read that its possible but that the route should be configured, the bridge should be set as proxy arp and a firewall rule should be added.

I think i did those correctly, but i obviously made a mistake or am missing something.
My idea is that it's in the routing but, but i'm stuck.

Who is online

Users browsing this forum: broderick, johnson73, maurizio and 38 guests