Community discussions

MikroTik App
 
Lukasz
newbie
Topic Author
Posts: 32
Joined: Tue May 16, 2006 4:41 pm
Location: Silesia, Poland

Problem with DHCP under MT

Tue May 16, 2006 4:49 pm

Hi, I have a DHCP configuration problem uner a MT (winbox).
I don't know how to configure static MAC <-> IP relations.

example :
Mac ip
00:88:sf:2s:43:ds 192.168.0.2

I'm sorry about my English. :|
Lucas
 
joeri91942
Frequent Visitor
Frequent Visitor
Posts: 88
Joined: Thu Mar 31, 2005 12:31 pm
Location: Sundsvall, Sweden

Tue May 16, 2006 4:57 pm

Try this
/ ip dhcp-server lease 
add address=192.168.2.73 mac-address=00:11:D8:8E:B0:D5 disabled=no
add address=192.168.2.40 mac-address=00:01:80:32:DF:92 disabled=no
/Jörgen
 
Lukasz
newbie
Topic Author
Posts: 32
Joined: Tue May 16, 2006 4:41 pm
Location: Silesia, Poland

Thu May 18, 2006 10:51 pm

ok, it's right..., thanks...
but, I have another qastion !
I configue a subnet mask (..../16), like 255.255.0.0
and a MT (in DHCP) give to DHCP client sub 255.0.0.0 , why ?

Can I make a something, to protect a network, that My client's can't change a IP addresses ?
for example, in My network, some laptop have a 192.168.0.4 ip, and I want to make like this, when client change on this lap ip configuration (ex. for 192.168.0.3), then can't connect to network, or something like this?!

one more time thank's for help
Lucas
 
joeri91942
Frequent Visitor
Frequent Visitor
Posts: 88
Joined: Thu Mar 31, 2005 12:31 pm
Location: Sundsvall, Sweden

Fri May 19, 2006 10:19 am

This works in my setup

/ ip pool
add name="dhcp-pool-1" ranges=192.168.2.100-192.168.2.254

/ ip dhcp-server network
add address=192.168.2.0/24 gateway=192.168.2.1 \
dns-server=195.67.199.33,195.67.199.34

/Jörgen
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Fri May 19, 2006 10:49 am

ok, it's right..., thanks...
but, I have another qastion !
I configue a subnet mask (..../16), like 255.255.0.0
and a MT (in DHCP) give to DHCP client sub 255.0.0.0 , why ?

Can I make a something, to protect a network, that My client's can't change a IP addresses ?
for example, in My network, some laptop have a 192.168.0.4 ip, and I want to make like this, when client change on this lap ip configuration (ex. for 192.168.0.3), then can't connect to network, or something like this?!

one more time thank's for help
Lucas
Set the interface to reply-only and make sure to create the ARP table with the IP/MAC. and.. read the manual....

Regards
 
Lukasz
newbie
Topic Author
Posts: 32
Joined: Tue May 16, 2006 4:41 pm
Location: Silesia, Poland

Fri May 19, 2006 3:14 pm

"Set the interface to reply-only"


that's help....
thank's very much....