Page 1 of 1

replicating DHCP settings

Posted: Sat Dec 01, 2007 5:36 pm
by titius
Is it possibile to replicate dhcp server settings from one mikrotik from another. Is there setting for that ?

Re: replicating DHCP settings

Posted: Mon Dec 03, 2007 9:04 am
by sergejs
What do you mean by replicate ?

1) If you mean to use the same settings, you may export 'ip dhcp-server export' configuration and paste this to your new DHCP-server.
Make sure that interface names matches.

2) If you mean to extend DHCP over than one broadcasting domain, DHCP-relay is used for that. Look at the documentation for more information about relay.

Re: replicating DHCP settings

Posted: Mon Dec 03, 2007 7:44 pm
by titius

No I dont mean Relay.

But I see I have to use scripting, I want to export for example POOL1 and copy it to another mikrotik.

I want to use this in a case main dhcp server goes down, then all my client cant get IP so then backup dhcp server will go UP and use this copied pool.

can you give me a hint.

But problem is can it export and import it automatically ?

Re: replicating DHCP settings

Posted: Mon Dec 03, 2007 8:03 pm
by sergejs
It should not be a problem to export/import, when interface names and IP addresses are the same, where DHCP server will be configured.

Re: replicating DHCP settings

Posted: Tue Dec 04, 2007 4:40 pm
by iam8up
After matching up interface names you can use this...

/ip dhcp-server export

Re: replicating DHCP settings

Posted: Fri Dec 07, 2007 2:11 am
by titius
Can it be done for just one pool, when centralized dhcp fails, then I want to enable many small dhcp servers, one server per interface on few mikrotiks, when master dhcp server works again others will be disabled. So can I export different pools for matching subnets ?