Community discussions

MikroTik App
 
fahad1986
just joined
Topic Author
Posts: 7
Joined: Wed Apr 23, 2014 9:38 am

MAC authentication on LAN

Wed Apr 23, 2014 9:53 am

Hello all
I am getting IP from DHCP server on a fiber link . I dont have static IP , I want to give IP to my clients from the same DHCP server but after mac filtering.It mean if users mac is in the router then user get IP if not then user dont get IP .
Thank in advance
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: MAC authentication on LAN

Wed Apr 23, 2014 10:23 pm

Use DHCP server with only static IP and add static Lease for each MAC.
 
fahad1986
just joined
Topic Author
Posts: 7
Joined: Wed Apr 23, 2014 9:38 am

Re: MAC authentication on LAN

Thu Apr 24, 2014 6:55 am

I dont wanna give static IP to users
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: MAC authentication on LAN

Thu Apr 24, 2014 10:36 am

You can create mac filtering, block all mac except admitted one.
You must create one rule for mac.

/ip firewall filter
action=accept chain=forward in-interface=from-the-users src-mac=00:11:22:33:44:55
action=drop chain=forward in-interface=from-the-users

or you also can use
/bridge filters

for do the the same thing described above, but in this case you probably want use switching instead of bridging.
 
fahad1986
just joined
Topic Author
Posts: 7
Joined: Wed Apr 23, 2014 9:38 am

Re: MAC authentication on LAN

Fri Apr 25, 2014 10:47 am

what is the difference in both the method ?
In IP firewall my clients get IP from the DHCP server from where I am getting IP ?
How many mac a miktrotik router can learn at a time ?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: MAC authentication on LAN

Fri Apr 25, 2014 2:52 pm

what is the difference in both the method ?
In IP firewall my clients get IP from the DHCP server from where I am getting IP ?
How many mac a miktrotik router can learn at a time ?

1) The first are faster.

2) I do not understand this question, sorry.

3) I think virtually are no limit.
 
fahad1986
just joined
Topic Author
Posts: 7
Joined: Wed Apr 23, 2014 9:38 am

Re: MAC authentication on LAN

Sat Apr 26, 2014 7:59 am

for the second question
I have mention in earlier post that I am getting IP from a dhcp server . I want that my clients also get IP from same dhcp server .
I have also search this website pl see this
http://demo.mt.lv/webfig/#Bridge.Filters.new
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: MAC authentication on LAN

Sat Apr 26, 2014 12:38 pm

You can put on bridge your ether WAN and the ether used to other client,
enable "use ip firewall" on bridge
and use firewall filter to select what MAC are allowed or not*** from client ether to wan etehr.


*** default all must be dropped, you must add manually each mac allowed.
 
fahad1986
just joined
Topic Author
Posts: 7
Joined: Wed Apr 23, 2014 9:38 am

Re: MAC authentication on LAN

Sat Apr 26, 2014 1:17 pm

is it possible that a router read all mac at first automatically
 
fahad1986
just joined
Topic Author
Posts: 7
Joined: Wed Apr 23, 2014 9:38 am

Re: MAC authentication on LAN

Mon May 05, 2014 6:29 am

U have tried but failed , can you pl show me through some images

Who is online

Users browsing this forum: No registered users and 17 guests