Mikrotik Routerboard and PPPOE - please help

JerryMungo

Honorary Master
Joined
Jul 18, 2008
Messages
37,529
Reaction score
6,278
Hi, I have a Routerboard with 5 ethernet ports setup as:

ether1-gateway
ether2-master-local
ether3-slave-local
ether4-slave-local
ether5-slave-local

Usually the ADSL modem connects to ethernet port 1 and the routerboard dials pppoe via the modem. Is there a way I can have the modem connected to a regular ethernet port and have it dial PPPOE? I was wondering if connecting ether1 to ether 2, then having the modem on ether3...

The idea is that I want to be able to have the router dial up and route for everyone while still being able to establish my own PPPOE from my PC when required.

Any advice appreciated!
 
When I was last working with Mikrotik routers about a year ago, especially the wireless ones, there was an option in the setup that allowed me to dial into an ADSL account through an ethernet port, but I can't remember what it was called. Your router might also be capable of half-bridge mode which will then allow multiple PPPOE accounts on separate computers to be dialled in, in addition to the regular one that the modem should open.

Windows Vista, 7 and 8 will also use PPPOE accounts over the regular local area connection when the dial-up account is initiated. I have a separate PPPOE account that I can dial into for testing in addition to the Telkom one that everyone else in the house uses.
 
When I was last working with Mikrotik routers about a year ago, especially the wireless ones, there was an option in the setup that allowed me to dial into an ADSL account through an ethernet port, but I can't remember what it was called. Your router might also be capable of half-bridge mode which will then allow multiple PPPOE accounts on separate computers to be dialled in, in addition to the regular one that the modem should open.

Windows Vista, 7 and 8 will also use PPPOE accounts over the regular local area connection when the dial-up account is initiated. I have a separate PPPOE account that I can dial into for testing in addition to the Telkom one that everyone else in the house uses.

I have the Huawei MT880ax modem. I can only see router or bridge mode - I'll google a little more and see if half-bridge mode is available.

Currently the Mikrotik is the router and the Huawei is the modem (bridge mode). I tested the Huawei in router mode but I can't dial pppoe from my workstation at the same time. Since it's connected to the ether1-gateway port, it's not available to the rest of the LAN.
 
Last edited:
Bridge mode is where its at, then. Give that a try and see how it goes. I worked with the MT880 and it was a superb little performer, but the configuration options were confusing the first time I set one up.
 
Bridge mode is where its at, then. Give that a try and see how it goes. I worked with the MT880 and it was a superb little performer, but the configuration options were confusing the first time I set one up.

It is in bridge mode (Huawei modem/router), but for the Mikrotik to handle routing, it has to be attached to port 1 which is dedicated to the task of gateway, meaning that the Huawei modem is not available to be dialled by workstations elsewhere on the net. :(
 
Mikrotik routers normally could handle DHCP IIRC, so you could simply point the default gateway to whatever IP you want. Are you sure that only etho1 can be used for the gateway? What model routerboard is it?
 
The idea is that I want to be able to have the router dial up and route for everyone while still being able to establish my own PPPOE from my PC when required.
No problem, I've always run my RB750G like this. Not for PC based PPPoE, but rather to get to my ADSL modem's IP for its web inf (check stats etc.).

Basically you have no LAN or WAN infs, just configure a single inf (ether1) for both LAN routing and WAN PPPoE, then slave all other infs to ether1.
 
No problem, I've always run my RB750G like this. Not for PC based PPPoE, but rather to get to my ADSL modem's IP for its web inf (check stats etc.).

Basically you have no LAN or WAN infs, just configure a single inf (ether1) for both LAN routing and WAN PPPoE, then slave all other infs to ether1.

Thats making sense... will it not just attempt to dial out on ether1-gateway? I'm not that familiar with routeros so I may have to google a bit to set up ether1 to be lan/wan pppoe. Do you know what I should be trying?
 
Thats making sense... will it not just attempt to dial out on ether1-gateway?
The PPPoE interface will dial out of whichever parent interface its attached to. So if you only have one IP layer interface (i.e. all other ports are slaved to the one), then it will physically dial out of all the ports.
 
Why would you not want to place your ADSL modem on ether1-gateway port?

Just take note that MikroTik RouterOS does not support PPPoE Relaying/Half-Bridge mode at all!
 
Why would you not want to place your ADSL modem on ether1-gateway port?
Because the OP wants to create another separate PPPoE session from a PC, independent of the one(s) created by the router.

Just take note that MikroTik RouterOS does not support PPPoE Relaying/Half-Bridge mode at all!
Thats why the simplest way of achieving this is to use a 'one arm' configuration i.e. single router inf for both LAN routing and WAN PPPoE switched to all 5 ports. The PPPoE session from a PC does not even pass through the router inf/process of the RB, it just switches straight from the PC to the ADSL modem.
 
Why would you not want to place your ADSL modem on ether1-gateway port?

Just take note that MikroTik RouterOS does not support PPPoE Relaying/Half-Bridge mode at all!

Like I said... I want to access the modem and dial pppoe from my workstation but I can't access anything on ether1-gateway.
 
Because the OP wants to create another separate PPPoE session from a PC, independent of the one(s) created by the router.

Thats why the simplest way of achieving this is to use a 'one arm' configuration i.e. single router inf for both LAN routing and WAN PPPoE switched to all 5 ports. The PPPoE session from a PC does not even pass through the router inf/process of the RB, it just switches straight from the PC to the ADSL modem.

This is what I need to figure out how to do.
 
This is what I need to figure out how to do.
Essentially you need to;

1. Connect to the RB on its MAC addr from WinBox
2. Note down the IP addressing & other services e.g. NAT, DHCP of ether2
3. Remove all the config in 2. from ether2
4. Slave ether3-5 to ether1 (from ether2)
5. Slave ether2 to ether1
6. Reapply all config in 2. to ether1

What you will be left with is a one port router (hence the 'one arm' term) connected to a six port switch (router using one of them). The router's one inf will be your LAN port from a IP & services perspective. The WAN inf will be the virtual PPPoE inf which still communicates in/out of the single router inf (to a device connected to any of the other 5 switch ports).
 
Last edited:
Essentially you need to;

1. Connect to the RB on its MAC addr from WinBox
2. Note down the IP addressing & other services e.g. NAT, DHCP of ether2
3. Remove all the config in 2. from ether2
4. Slave ether3-5 to ether1 (from ether2)
5. Slave ether2 to ether1
6. Reapply all config in 2. to ether1

What you will be left with is a one port router (hence the 'one arm' term) connected to a six port switch (router using one of them). The router's one inf will be your LAN port from a IP & services perspective. The WAN inf will be the virtual PPPoE inf which still communicates in/out of the single router inf (to a device connected to any of the other 5 switch ports).

Thanks Roman, I'll let you know how it goes. Appreciate the help!
 
Still struggling... here's the issue... on the quickset screen, if I enable router mode and specify the PPPOE details, it creates a PPPOE entry and forces it through ether1-gateway... even if I disable ether1-gateway. I can edit the PPPOE entry and get it working on bridge1-local but when I click the quickset screen, it has changed the PPPOE setting to static IP for the wan interface and no longer routes.

I may have to physically bridge ethernet1 with one of the other ports using a flylead and see if that works. Highly annoying.
Another thing about these routers is that there's only one way to config them - through ethernet, and you can quite easily accidentally disable your master ethernet port and lose access to the router completely - reset is the only way back.
 
on the quickset screen
Have never used quickset, but I suspect for this kind of custom config its not usable. You'd would need to configure manually, either from scratch or modifying an existing quickset config (no running quickset again).

and you can quite easily accidentally disable your master ethernet port and lose access to the router completely - reset is the only way back.
The system should not allow you to have no master ports. If plugged into the correct port, you should always be able to connect to the MAC addr via WinBox, click [...] at he end of Connect To:

EDIT: The manual config should be really simple ...

Plug into port 1 and connect using the MAC addr from Winbox
Reset the RB to default empty config
Reconnect and run the following from a terminal window (in Winbox);


/interface ethernet
set 0 master-port=none
set 1 master-port=ether1
set 2 master-port=ether1
set 3 master-port=ether1
set 4 master-port=ether1

/interface pppoe-client
add add-default-route=yes allow=pap,chap disabled=no interface=ether1 max-mru=1492 max-mtu=1492 name=ADSL password=PPPPP use-peer-dns=yes user=UUUUU

/ip pool
add name=dhcp_pool1 ranges=192.168.1.100-192.168.1.200

/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=ether1 name=dhcp1

/ip address
add address=192.168.1.1/24 comment="LAN" interface=ether1

/ip dhcp-server network
add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1

/ip dns
set allow-remote-requests=yes max-udp-packet-size=512

/ip firewall nat
add action=masquerade chain=srcnat out-interface=ADSL

/system clock
set time-zone-name=Africa/Johannesburg

/system identity
set name="My RB"

/system ntp client
set enabled=yes mode=unicast primary-ntp=196.25.1.1


That should be it.
 
Last edited:
system reset-configuration no-defaults=yes

That will wipe all config, remove the stupid gateway, master, slave config.
 
system reset-configuration no-defaults=yes

That will wipe all config, remove the stupid gateway, master, slave config.

Trouble with that is I can't reconnect to the stupid Mikrotik with winbox (or anything else) lol. It finds the machine and mac address but there's no IP associated with it. Do I need a DHCP server running so that it can at least get an IP address so I can work on it?

When I try to connect to that Mac it comes back with a timeout message (almost immediately).
 
Top
Sign up to the MyBroadband newsletter
X