Community discussions

 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

replicating DHCP settings

Sat Dec 01, 2007 5:36 pm

Is it possibile to replicate dhcp server settings from one mikrotik from another. Is there setting for that ?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6616
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: replicating DHCP settings

Mon Dec 03, 2007 9:04 am

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.
 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

Re: replicating DHCP settings

Mon Dec 03, 2007 7:44 pm

Thanks,

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 ?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6616
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: replicating DHCP settings

Mon Dec 03, 2007 8:03 pm

It should not be a problem to export/import, when interface names and IP addresses are the same, where DHCP server will be configured.
 
iam8up
Member
Member
Posts: 312
Joined: Sun Oct 28, 2007 10:58 pm
Location: Troy, OH
Contact:

Re: replicating DHCP settings

Tue Dec 04, 2007 4:40 pm

After matching up interface names you can use this...

/ip dhcp-server export
 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

Re: replicating DHCP settings

Fri Dec 07, 2007 2:11 am

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 ?

Who is online

Users browsing this forum: No registered users and 98 guests