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.
Code: Select all
# 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