Plenty of growing ISPs and WISPs run their whole subscriber edge on MikroTik: a RouterOS box terminates PPPoE, a billing panel such as Splynx or PHPNuxBill drives FreeRADIUS, and NAT is a masquerade rule. It works, and it is cheap to start. When one box stops keeping up, you can replace the termination without rebuilding everything around it. Netavo BNG is a standard RADIUS NAS that understands the Mikrotik-Rate-Limit attribute your panel already sends, so your plans, speed profiles and the panel your staff use do not change. This guide maps the RouterOS pieces so you can plan a cutover rather than a redesign.
The shape of the migration
The RouterOS box does four jobs for the subscriber edge: it runs the PPPoE server, authenticates and accounts each session against RADIUS, hands out an address from an IP pool, and translates subscribers to public IPv4 with NAT. Netavo does the same four jobs, so each part of the configuration translates directly. What usually prompts the move is scale: on RouterOS, PPPoE encapsulation, per-session queues and connection-tracking NAT share the same CPU, and the usual fix, sharding subscribers across more RouterOS boxes, multiplies the RADIUS clients, routing and failover you operate.
Build the Netavo edge alongside the MikroTik, register it as a new NAS in FreeRADIUS, move a pilot group of subscribers, then shift the rest.
The examples below are sections to add to a working config.json; they do not form a complete file.
The PPPoE server
On RouterOS you run a PPPoE server per interface, with a default PPP profile:
/interface pppoe-server server
add service-name=isp interface=vlan200 default-profile=pppoe-res \
authentication=chap,pap one-session-per-host=yes disabled=no
/ppp profile
add name=pppoe-res local-address=100.64.0.1 remote-address=pool-res \
dns-server=1.1.1.1,9.9.9.9 change-tcp-mss=yes
On Netavo you name the physical access ports, turn on PPPoE, and describe the VLAN hand-off as an access NNI:
"dataPlane": {
"subscriberInterfaces": [
{ "ifname": "eno1", "pci": "0000:04:00.0", "rxQueues": 4,
"accessProtocols": ["pppoe"], "spray": "auto" }
]
},
"pppoe": { "enabled": true, "acName": "bng1", "serviceName": "isp", "authProtocols": "chap,pap" },
"subscribers": {
"accessNnis": [
{ "name": "towers-north", "interface": "eno1", "sVlan": 200,
"description": "Aggregation hand-off, one C-VLAN per subscriber" }
]
}
| RouterOS | Netavo | Notes |
|---|---|---|
/interface pppoe-server server per interface |
pppoe.enabled, subscribers.accessNnis |
No per-interface server instances; sessions arrive on the access NNI |
service-name= |
pppoe.serviceName |
Empty accepts any service name |
authentication=chap,pap |
pppoe.authProtocols |
PAP and CHAP |
one-session-per-host=yes |
built in, per circuit | Netavo allows one session per access circuit (port and VLANs), not per MAC on a shared VLAN |
PPP profile local-address |
none needed | The BNG is the subscriber's gateway |
PPP profile change-tcp-mss=yes |
built in | The data plane clamps TCP MSS on subscriber traffic |
PPP profile dns-server= |
RADIUS DNS attributes | MS-Primary/Secondary-DNS-Server or the Broadband Forum DNS attributes |
RADIUS and accounting
RouterOS sends PPP to RADIUS with three settings:
/radius
add address=10.20.0.5 secret=<radius-secret> service=ppp src-address=10.20.0.1
/ppp aaa
set use-radius=yes accounting=yes interim-update=5m
/radius incoming
set accept=yes port=1700
Netavo points auth and accounting at the same FreeRADIUS. Your panel keeps deciding who gets service and on which plan; only the NAS changes.
"auth": {
"driver": "radius",
"radius": {
"servers": [ { "host": "10.20.0.5", "port": 1812, "secret": "<radius-secret>" } ],
"nasIdentifier": "bng1",
"nasIpAddress": "10.20.0.2",
"rateAttributeMode": "mikrotik",
"coaPort": 1700,
"coaClients": [ { "name": "freeradius", "source": "10.20.0.5", "secret": "<coa-secret>" } ]
}
},
"accounting": { "driver": "radius", "interimIntervalSeconds": 300 }
| RouterOS | Netavo | Notes |
|---|---|---|
/radius add ... service=ppp |
auth.radius.servers[] |
Secrets are kept in the 0640 config file, write-only through the CLI and API, and never shown by show configuration |
/ppp aaa use-radius=yes accounting=yes |
auth.driver and accounting.driver: "radius" |
Start, Interim-Update and Stop |
interim-update=5m |
accounting.interimIntervalSeconds: 300 |
An Acct-Interim-Interval from RADIUS overrides it, with a 60-second floor |
/radius incoming accept=yes |
coaPort, coaClients[] |
RFC 5176 CoA and Disconnect; set the port your panel already sends to (Netavo's default is 3799) |
NAS entry for the MikroTik in FreeRADIUS clients.conf |
add one for Netavo | Same secret or a new one; the NAS-Identifier and NAS-IP-Address change |
Rate limits: Mikrotik-Rate-Limit
This is the piece that makes the move painless. PHPNuxBill, Splynx and most RouterOS-oriented panels shape subscribers by returning a Mikrotik-Rate-Limit attribute, and with rateAttributeMode set to mikrotik Netavo applies it as RouterOS did: a reply of Mikrotik-Rate-Limit = "20M/100M" gives 20 Mbit/s up and 100 Mbit/s down, with no per-plan configuration on the BNG and no change to how your panel defines packages. The default mode, auto, also understands the Netavo and Broadband Forum rate attributes, so a mixed estate works too.
One difference to check: RouterOS burst is a time-averaged allowance (burst-rate, burst-threshold and burst-time working together). Netavo reads the rx/tx rate and the burst-rate, but a policer cannot reproduce RouterOS's averaging, so burst-threshold and burst-time are ignored. If your plans sell burst as a feature, test a burst plan in the pilot and set expectations accordingly.
| RouterOS | Netavo | Notes |
|---|---|---|
Mikrotik-Rate-Limit from RADIUS |
rateAttributeMode: "mikrotik" (or auto) |
rx = subscriber upload, tx = download, as on RouterOS |
PPP profile rate-limit= |
the same string sent from RADIUS | Per-subscriber shaping comes from the RADIUS reply, not box config |
| Simple queues and queue trees, PCQ | per-subscriber rate | No hierarchical queues; see below |
Mikrotik-Address-List, Mikrotik-Group |
not read | Express the intent with a rate, a VRF or a pool instead |
Address pools
A RouterOS /ip pool becomes a typed Netavo pool, and you can add IPv6 at the same time: a routed WAN prefix and a delegated prefix need two more pools, and a dual-stack subscriber stays one session.
/ip pool
add name=pool-res ranges=100.64.16.2-100.64.31.254
"addressPools": [
{ "name": "pool-res", "family": "ipv4",
"subnets": [ { "prefix": "100.64.16.0/20" } ],
"exclude": [ "100.64.16.0", "100.64.16.1", "100.64.31.255" ] },
{ "name": "res-v6-wan", "family": "ipv6-wan",
"subnets": [ { "prefix": "2a0e:9f81:101::/52", "announce": true } ] },
{ "name": "res-v6-pd", "family": "ipv6-pd", "delegationLength": 56,
"subnets": [ { "prefix": "2a0e:9f81:110::/44", "announce": true } ] }
]
| RouterOS | Netavo | Notes |
|---|---|---|
/ip pool add ranges= |
addressPools family ipv4 |
Prefixes rather than ranges; exclude keeps addresses back |
PPP profile remote-address=pool-res |
Framed-Pool pool-res from RADIUS, or a profile's pool |
Keep the pool name; if the PPP profile supplied it, have RADIUS return Framed-Pool |
Framed-IP-Address from RADIUS |
honoured | Static addresses carry over unchanged |
/ipv6 pool with prefix-length |
family ipv6-pd, delegationLength |
IPv6CP plus DHCPv6 prefix delegation |
From masquerade to CGNAT
On RouterOS, subscriber NAT is usually one rule:
/ip firewall nat
add chain=srcnat src-address=100.64.0.0/10 out-interface=ether1 action=masquerade
It leans on the connection-tracking table, so table size and CPU limit it as subscribers grow, and it keeps no record of which subscriber held which public address and port. Answering an abuse report means firewall logging per connection, or guessing.
On Netavo the same job is the on-box CGNAT, included in every licence. Each subscriber is given blocks of ports on a public address, and each block allocation and release is one sequence-numbered log record over syslog, so "who held this address and port at this time?" is a single lookup:
"cgn": {
"enabled": true,
"ipGroups": [ {
"name": "residential",
"publicSubnets": ["198.51.100.0/27"],
"chunkSize": 512, "portCap": 2048,
"bindingTimeoutSeconds": 300 } ],
"logger": { "drivers": ["syslog"] },
"defaultVrfIpGroup": "residential"
}
| RouterOS | Netavo | Notes |
|---|---|---|
action=masquerade / src-nat to-addresses= |
cgn.ipGroups[].publicSubnets |
NAT44 onto a public pool |
| connection-tracking table | port blocks per subscriber | chunkSize and portCap set block size and the per-subscriber ceiling |
firewall log=yes on NAT rules |
cgn.logger |
One record per port block, not per connection; RFC 5424 syslog or Azure Service Bus |
dst-nat port forwards for one subscriber |
a public address for that subscriber | See inbound services behind CGNAT |
Sizing the public pool against your subscriber count is worked through in how many subscribers can share one public IPv4.
What doesn't map one for one
Check these differences before planning the cutover:
- Many subscribers on one VLAN. A RouterOS PPPoE server commonly serves a whole sector or building on one shared VLAN, telling sessions apart by MAC. Netavo terminates one subscriber per access circuit today (a C-VLAN per subscriber, inside an S-VLAN if you need one); shared-VLAN (N:1) PPPoE is designed but not shipping. If your access network puts many subscribers on one VLAN, plan a per-subscriber VLAN design for the migrated segment, or wait for N:1.
- Queue trees and PCQ. Netavo applies a per-subscriber rate from the RADIUS reply; it does not reproduce RouterOS queue trees, PCQ or hierarchical shaping. Confirm your plans map to per-subscriber rates.
- Burst. As above, burst-rate is read but RouterOS's time-averaged burst is not reproduced.
- Hotspot, scripts and firewall logic. RouterOS hotspot portals, scheduler scripts and per-subscriber firewall rules have no counterpart on the BNG. Keep them where they are, or move the intent into RADIUS.
- MikroTik-specific attributes. Only
Mikrotik-Rate-Limitis read; other MikroTik vendor attributes are ignored.
What stays on MikroTik
The replacement covers the BNG role. You can keep RouterOS elsewhere in the network:
- RouterOS remains a capable small-site router, CPE and switch. Your access and aggregation layer does not have to change.
- Your billing panel is untouched. Netavo does not replace it; it is the NAS your billing already knows how to drive. The Splynx integration notes cover that pairing in detail.
- Only subscriber termination and NAT move to the BNG.
Try it against your own RADIUS
The free evaluation build is the production build, licensed for up to 50 concurrent subscribers with every feature enabled. Stand it up on a VM, point a test FreeRADIUS instance (or a staging copy of your panel) at it, and bring a handful of real PPPoE sessions up with your existing Mikrotik-Rate-Limit replies before you touch production. Start at netavobng.com/evaluation; the configuration reference is in the manual.
Still weighing the options? See comparing MikroTik with chassis and software BNGs.