05.01.2015 Views

MikroTik RouterOS™ v2.9

MikroTik RouterOS™ v2.9

MikroTik RouterOS™ v2.9

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

elong to the 10.0.0.0/24 network with 10.0.0.1 gateway and 159.148.60.2 DNS server for the time<br />

of 3 days:<br />

[admin@<strong>MikroTik</strong>] ip dhcp-server> setup<br />

Select interface to run DHCP server on<br />

dhcp server interface: ether1<br />

Select network for DHCP addresses<br />

dhcp address space: 10.0.0.0/24<br />

Select gateway for given network<br />

gateway for dhcp network: 10.0.0.1<br />

Select pool of ip addresses given out by DHCP server<br />

addresses to give out: 10.0.0.2-10.0.0.254<br />

Select DNS servers<br />

dns servers: 159.148.60.20<br />

Select lease time<br />

lease time: 3d<br />

[admin@<strong>MikroTik</strong>] ip dhcp-server><br />

The wizard has made the following configuration based on the answers above:<br />

[admin@<strong>MikroTik</strong>] ip dhcp-server> print<br />

Flags: X - disabled, I - invalid<br />

# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP<br />

0 dhcp1 ether1 0.0.0.0 dhcp_pool1 3d no<br />

[admin@<strong>MikroTik</strong>] ip dhcp-server> network print<br />

# ADDRESS GATEWAY DNS-SERVER WINS-SERVER DOMAIN<br />

0 10.0.0.0/24 10.0.0.1 159.148.60.20<br />

[admin@<strong>MikroTik</strong>] ip dhcp-server> /ip pool print<br />

# NAME RANGES<br />

0 dhcp_pool1 10.0.0.2-10.0.0.254<br />

[admin@<strong>MikroTik</strong>] ip dhcp-server><br />

General Information<br />

Dynamic Addressing, using DHCP-Relay<br />

Let us consider that you have several IP networks 'behind' other routers, but you want to keep all<br />

DHCP servers on a single router. To do this, you need a DHCP relay on your network which relies<br />

DHCP requests from clients to DHCP server.<br />

This example will show you how to configure a DHCP server and a DHCP relay which serve 2 IP<br />

networks - 192.168.1.0/24 and 192.168.2.0/24 that are behind a router DHCP-Relay.<br />

IP addresses of DHCP-Server:<br />

[admin@DHCP-Server] ip address> print<br />

Flags: X - disabled, I - invalid, D - dynamic<br />

# ADDRESS NETWORK BROADCAST INTERFACE<br />

0 192.168.0.1/24 192.168.0.0 192.168.0.255 To-DHCP-Relay<br />

1 10.1.0.2/24 10.1.0.0 10.1.0.255 Public<br />

[admin@DHCP-Server] ip address><br />

Page 423 of 615<br />

Copyright 1999-2005, <strong>MikroTik</strong>. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.<br />

Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!