Showing posts with label DHCP. Show all posts
Showing posts with label DHCP. Show all posts

Mikrotik Router DHCP Server Configuration


Basic Ip Address Configuration:

/ip address
add address=192.168.0.2/24 network=192.168.0.0 interface=WAN
add address=10.10.10.1/24 network=10.10.10.0 interface=LOCAL


Create an IP address pool:

/ip pool add name=DHCP-POOL ranges=10.10.10.1-10.10.10.254


Add a DHCP network which will concern to the network 10.10.10.0/24 and will distribute a gateway with IP address 10.10.10.1 to DHCP clients: Add a DHCP server:

/ Ip dhcp-server enable 0
/ip dhcp-server add interface=LOCAL  addree-pool=DHCP-POOL
/ Ip dhcp-server network add address = 10.10.10.0/24 gateway = 10.10.10.1 dns-server = 8.8.8.8
comment="DHCP-POOL"


NAT Configuration:

/ip firewall nat
add chain=srcnat action=masquerade src-address=10.10.10.0/24 out-interface=WAN


Set Default Gateway:

/ip route
add dst-address=0.0.0.0/0  gateway=192.168.0.1

Setting Up Mikrotik Hotspot Server

For your information , Mikrotik is a router os with all in one solution for small business and solution for your small  or Big Network. Mikrotik Router OS or Mikrotik Router Board can be used and setting as a Hotspot gateway with a login page. In this tutorials i will saw you how to configure Mikrotik as a Hotspot network with Login page and user manager . This is just a basic configuration, in the next article i will guide you to setting up the mikrotik as a hotspot with fully fiutured intergrated system.

For the first , make sure your router is have been installed this package :

System
DHCP
Wireless
Hotspot
Proxy
User Manager
Security
Advanced tools

Step to setting up Mikrotik hotspot :

system identity set name=MyNet
ip address add address 192.168.1.2/27 interface=ether1
ip address add address 192.168.0.1/24 interface=ether2

add comment="" disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.1.1 scope=30 target-scope=10

[admin@MikroTik] > ip hotspot setup
hotspot interface: ether2
local address of network: 192.168.0.1/24
masquerade network: yes
address pool of network: 192.168.0.2-192.168.0.250
select certificate: none
ip address of smtp server: 0.0.0.0
dns servers: 8.8.8.8
dns name: hotspot.mynet
name of local hotspot user: user
password for the user: password

Now, we will configure the user manager :
tool user-manager customer add login=admin password=password
tool user-manager router add ip-address=127.0.0.1 shared-secret=12345 subscriber=admin
radius add service=hotspot address=127.0.0.1 secret=12345
ip hotspot profile set 1 use-radius=yes

Done, your Mikrotik now can be use as hospot gateway !!

Mikrotik Simple Static Routing + NAT

This is a very simple example. If you need to ping an IP address in the network and you are not sure if you configured your static routes OK, this little article could help you understand how...

CORE ROUTER..

/ip address 
add address=192.168.0.2/24 interface=ether1
add address=172.16.0.1/16 interface=ether2

/ip firewall nat
add action=masquerade chain=srcnat src-address=10.0.0.0/8

/ip route
add gateway=192.168.0.1
add dst-address=10.0.0.0/8 gateway=172.16.0.2


PPP/DHCP SERVER

/ip address 
add address=172.16.0.2/16 interface=ether1

/ip pool
add name=pool1 ranges=10.0.0.2-10.255.255.254

ONLY FOR DHCP SERVER

/ip address 
add address=10.0.0.1/8 interface=ether2

Mikrotik Malicious Spam IP Blacklist – Firewall Auto Update Script

We have published a malicious ip blacklist for free! Combined dshield and spamhaus malicious blacklists formatted for Mikrotik RouterOS .r...