Community discussions

MikroTik App
 
User avatar
arbabnazar
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Tue May 03, 2011 1:37 pm

Forcing Users to use your DHCP Only but not the Servers

Sat Jan 28, 2012 11:00 pm

As per subject, i want to force my clients to use the DHCP server to getting the ip in order to using the internet but i have some servers with static ip, and after i apply this rule(Add ARP For Leases & reply-only), I acheived my goal on client's side but after that my servers can't access the internet as well as other network resources...

Please tell me, how i can exclude them from this condition?

thanks in advance!
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Forcing Users to use your DHCP Only but not the Servers

Sun Jan 29, 2012 3:54 pm

You will have to put the MAC addresses from your static devices into the ARP table. This should solve your problem.

In case you can't find it :)
/ip arp
 
tjc
Member Candidate
Member Candidate
Posts: 276
Joined: Sun Jul 10, 2011 3:08 am

Re: Forcing Users to use your DHCP Only but not the Servers

Sun Jan 29, 2012 4:48 pm

Alternately you can do static DHCP assignments for the servers (by client-id or mac-address) and make the servers use DHCP too.

(corrected a thinko DNS vs. DHCP)
Last edited by tjc on Sun Jan 29, 2012 5:33 pm, edited 1 time in total.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Forcing Users to use your DHCP Only but not the Servers

Sun Jan 29, 2012 5:02 pm

Alternately you can do static DNS assignments for the servers (by client-id or mac-address) and make the servers use DNS too.
DHCP, right? ;)
But yes that is an alternative.
 
tjc
Member Candidate
Member Candidate
Posts: 276
Joined: Sun Jul 10, 2011 3:08 am

Re: Forcing Users to use your DHCP Only but not the Servers

Sun Jan 29, 2012 5:37 pm

:oops: Yeah, I meant DHCP not DNS. Corrected above.

That's what happens when you post too early in the morning before the caffeine kicks in... All those D words look the same when your eyes are still bleary.
 
troy
Member
Member
Posts: 320
Joined: Thu Jun 30, 2005 6:47 pm

Re: Forcing Users to use your DHCP Only but not the Servers

Sun Feb 05, 2012 6:47 pm

Just to add my 2 cents...

Starting with a /24, I'll generally allocate the top /25 (.128-.254) as a DHCP pool (I use clean subnets to make things easier when building address lists or matching IPs). The bottom /25 will be reserved for servers, routers, switches, access points, phones, printers, etc...

I'll use static DHCP for appliances, phones, printers... and manual configuration for servers and networking devices.

-T
 
User avatar
arbabnazar
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Tue May 03, 2011 1:37 pm

Re: Forcing Users to use your DHCP Only but not the Servers

Tue Feb 07, 2012 10:52 pm

thanks troy for the 2 cents tips.

Who is online

Users browsing this forum: Dendik, miker3000, sstefanov and 106 guests