modified on 24 June 2008 at 15:57 ••• 18,760 views

OSPF and PPPoE Setup

From MikroTik Wiki

Jump to: navigation, search

This is from

Once we have the IP Addresses, Gateway, and Routing information from our service provider, we can begin by creating and configuring the OSPF area, followed by setting up the PPPoE server. In this example is the routing network given to us by the provider, with the gateway The public IP Address block we have been given is Once these steps have been completed, the PPPoE username and passwords that are set up will be on the internet with an IP Address out of the range. Our public facing network card is ether1.

IP Address Configuration

This gets your MikroTik Router out on the internet with an accessible public IP address.

/ip address add address= interface=ether1

OSPF Setup

This enables OSPF for the network.

/routing ospf area add area-id= name=public_110
/routing ospf network add area=public_110 network=
/routing ospf area range add area=public_110 range cost=default advertise=yes

PPPoE Setup

First, create the public IP Address pool.

/ip pool add name=public_pool ranges= next-pool=none

Next we create a PPP profile, add a user, and then start the server on interface "ether2".

/ppp profile add name="public_profile" local-address= remote-address=public_pool
/ppp secret add name=user password=changeme service=pppoe profile=public_profile
/interface pppoe-server server add service-name=public_internet interface=ether2 default-profile=public_profile \
\... one-session-per-host=yes authentication=pap max-mtu=1480 max-mru=1480

Now, this MikroTik Router should be routing all PPPoE clients on your network out on to the internet with their own public IP addresses.