Monday, July 26, 2010
MAKE DHCP SERVER ON MIKROTIK
Now, if you want your client that connected on your gateway get the automatic IP address, we should setup the DHCP server on Mikrotik Server.
1. To make DHCP, first we setup the address pool
/ip pool add name=dhcp-pool ranges=172.16.0.10-172.16.0.20
2. Add DHCP network and the gateway that will be distributed to clients.
/ip dhcp-server network add address=172.16.0.0/24 gateway=172.16.0.1
3. Add DHCP server
/ip dhcp-server add interface=ether2 address-pool=dhcp-pool
4. See the status of DHCP server
[admin@Mikrotik] > ip dhcp-server print
Flags: X - disabled, I - invalid
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
0 X dhcp1 ether2
5. To activate the DHCP system, give the “enable” command
/ip dhcp-server enable 0
6. Test if client got automatic IP address.
Currently have 0 comments: