Dear All
l will first like to wish you all happy new year.
l am not very new to mikrotik but new to ospf.
l will like to use public ip on mikrotik hotspot.
My plan is to creat an address pool of the hotspot to the public ip so that the client only get public ip aftrer a suceesful log on.
l search for example to use but came up with the following for pppoe.
l tried it on pppoe and it work like a charm.
but when l tried it on hotspot it did not.
router-isp
hotspot server
clients
any help will be well comed.
Thanks
First, create the public IP Address pool.
IP Address Configuration
This gets your MikroTik Router out on the internet with an accessible public IP address.
/ip address add address=10.0.108.18/28 interface=ether1
OSPF Setup
This enables OSPF for the 10.0.110.0/24 network.
/routing ospf area add area-id=0.0.0.110 name=public_110
/routing ospf network add area=public_110 network=10.0.110.0/24
/routing ospf area range add area=public_110 range 10.0.110.0/24 cost=default advertise=yes
/ip pool add name=public_pool ranges=10.0.110.2-10.0.110.254 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=10.0.110.1 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.