general question concerning static lease dhcp

Hello,

I have a short question before purchasing my RouterBoard (seems to be the RB750GS).

My current network-setup is dealing with a few usergroups and i managed them via dhcp.
x.y.z.1-20 → general hardware (nas, printers, … )
x.y.z.21-40 → group 1
x.y.z.41-60 → group 2
x.y.z.61-80 → group 3
…and so on.

Every NIC(wired and wireless) gets his IP via static lease dhcp. One group is reserved for the dynamic IPs.

I am working through Dennis Burgess Book, the Wiki and the Forum ( :smiley: ) so i know that everything for its own is no problem (would be strange if not). My question now is if it is possible to combine this the following way:
Dynamic IPs are only out of one of the mentioned groups but static DHCP can be out of the complete range.

I would do this the following, easy way. Setup the DHCP-Server, define the IP-range for dynDHCP (e.g. 101-120), Go to the ‘leases’-tab and define all static leases. These leases will be outside the x.y.z.101-120 range. Will this be working?

I hope I could explain my question the way it can be understand.

best regards

Nirnath

You can make dhcp of all the range, configure the static leases and mark the arp for leases.

Dont tryed but I think will work..

You can make dhcp of all the range, configure the static leases and mark the arp for leases.

Dont tryed but I think will work..

I would do this the following, easy way. Setup the DHCP-Server, define the IP-range for dynDHCP (e.g. 101-120), Go to the ‘leases’-tab and define all static leases. These leases will be outside the x.y.z.101-120 range. Will this be working?

That works fine. Static leases don’t have to be within the pool used for dynamic assignments.

The below is from my home router and works just peachy:

/ip pool
add name=dhcp-lan-pool ranges=192.168.1.250-192.168.1.254

/ip dhcp-server
add address-pool=dhcp-lan-pool authoritative=yes bootp-support=static disabled=no interface=LAN lease-time=2h name=dhcp-lan
/ip dhcp-server lease
add address=192.168.1.102 comment=xbox360 disabled=no mac-address=00:17:FA:EB:0D:11 server=dhcp-lan
add address=192.168.1.103 comment=media-server disabled=no mac-address=C4:2C:03:10:75:0E server=dhcp-lan
/ip dhcp-server network
add address=192.168.1.0/24 comment="" dns-server=8.8.8.8,8.8.4.4 domain=local gateway=192.168.1.1 netmask=24

The Xbox always gets .102, the media-server always gets .103, dynamic clients get something between .250 and .254.

Add arp for leases is to avoid someone using a reserved ip address.

Thanks for the answers. It solved my problem and the tip with the arp-entries solved the next question i possibly would have posted. :smiley:

I would like to give karma to both of you, but i do not have any + or - buttons for anyone of you?!


Nirnath

:laughing: it’s true?! WTF?
I can see fewi + and -

perhaps because i’m brand new to this forum?! :confused:

EDIT: It seems that I have to post three times to give karma. After this post the buttons appeared.

hahaha

you are welcome!