Community discussions

MikroTik App
 
kadhol
just joined
Topic Author
Posts: 3
Joined: Tue Oct 14, 2008 3:23 pm

change MAC Address interface vlan

Tue Oct 14, 2008 3:28 pm

can you add the feature to change mac-address on the VLAN interface in the ROS, such as change mac-address ethernet on the next version?

thanks
Last edited by kadhol on Wed Oct 15, 2008 4:31 am, edited 1 time in total.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: change MAC Address interface vlan

Wed Oct 15, 2008 12:03 am

why do you need it? vlan is not ethernet, and vlan packets are received by ethernet interfaces, so in this scenario ethernet interface should have several mac-addresses...
 
kadhol
just joined
Topic Author
Posts: 3
Joined: Tue Oct 14, 2008 3:23 pm

Re: change MAC Address interface vlan

Wed Oct 15, 2008 3:39 am

when using the services of a cable or ADSL Internet, ISPs see the mac-address from the pc, when I plug in to mikrotik then I must have more than one ethernet if you have more than one cable or ADSL

VLAN functions can not work because the mac-address VLAN always follow the mac-address from the source ethernet card and it can not be changed

if I have a 10-line, then I must have 10 ethernet card in my router and is not efficient
 
flazh
just joined
Posts: 5
Joined: Mon Jun 12, 2006 11:57 am

Re: change MAC Address interface vlan

Wed Oct 15, 2008 11:40 am

agree with kadhol,
I need that feature , because if i want to use more than 10 DHCP Client, i must use 10 ethernet card
:(
 
kroto
just joined
Posts: 5
Joined: Wed Nov 08, 2006 12:56 pm

Re: change MAC Address interface vlan

Wed Oct 15, 2008 12:28 pm

yes, i have more than 5 connection in use, so i must using also 5 ethernet card. its very uneficient i think. i using internet cable. how about just using 1 ethernetcard for several connection. so it like vlan but it change the mac address, several mac address on 1 ethernet. i think my idea is the same with kadhol.

NB: excuse my english not so good
 
[a]
Trainer
Trainer
Posts: 20
Joined: Wed Aug 31, 2005 3:19 pm
Location: Jakarta, Indonesia
Contact:

Re: change MAC Address interface vlan

Wed Oct 15, 2008 12:45 pm

i'm certainly agree with the request from kadhol...

If mikrotik can have this feature as well, this would add more meat to mikrotik's level of flexibility on network implementation.
 
unique_leader
just joined
Posts: 9
Joined: Fri Aug 17, 2007 5:41 am

Re: change MAC Address interface vlan

Wed Oct 15, 2008 2:25 pm

yes, i'm agree with kadhol too
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: change MAC Address interface vlan

Wed Oct 15, 2008 8:06 pm

ive wanted to do this as well. is it possible to layer a bridge and vlan together so you can set the admin-mac on the port, and then use a managed switch to unwrap that and hand it off to a modem ?
 
kadhol
just joined
Topic Author
Posts: 3
Joined: Tue Oct 14, 2008 3:23 pm

Re: change MAC Address interface vlan

Fri Oct 17, 2008 8:56 pm

someone from mikrotik please kindly provide responses :)
 
shielder
Member Candidate
Member Candidate
Posts: 221
Joined: Wed Feb 09, 2005 7:09 pm
Location: Indonesia

Re: change MAC Address interface vlan

Sat Oct 18, 2008 6:36 pm

i think you could add cisco catalyst before the modem. the config would be :

mikrotik - catalyst - ADSL.

It should help.
 
ayufan
Member
Member
Posts: 334
Joined: Sun Jun 03, 2007 9:35 pm
Contact:

Re: change MAC Address interface vlan

Sat Oct 18, 2008 7:39 pm

try changing mac-address for specified vlan with bridge nat feature.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: change MAC Address interface vlan

Thu Jun 11, 2009 12:57 pm

Maybe someone will need it =)

http://wiki.mikrotik.com/wiki/Change_MA ... _interface

2MT Staff: please read 'warning' section of that page and fix it in v3.25 =)
2Normis: maybe, the link should be added to http://wiki.mikrotik.com/wiki/Assorted_examples ? :)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: change MAC Address interface vlan

Fri Jun 12, 2009 12:07 pm

Normis? =)
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26815
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: change MAC Address interface vlan

Fri Jun 12, 2009 3:36 pm

sure, you can add it there. it's not a protected page :)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: change MAC Address interface vlan

Fri Jun 12, 2009 7:45 pm

Oh, really, didn't noticed ))
 
brianchrist
newbie
Posts: 44
Joined: Mon Feb 27, 2006 4:50 pm

Re: change MAC Address interface vlan

Thu Mar 25, 2010 8:40 am

I think you should add the physical interface to the bridge.
And looks like this only add a new MAC to the VLAN because the original interface MAC still exist.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: change MAC Address interface vlan

Thu Mar 25, 2010 1:56 pm

And looks like this only add a new MAC to the VLAN because the original interface MAC still exist.
from the link:
From now, other devices will see de:ad:00:be:ef:00 MAC-address for the IP address of VLAN interface
so, now that IP will have two MAC addresses? O_o
 
macpacheco
just joined
Posts: 14
Joined: Sun May 31, 2015 2:19 am

Re: change MAC Address interface vlan

Mon Oct 02, 2017 9:31 am

Doesn`t work with HEX Poe Lite, RouterOS 6.30.4
I have a HEX Poe Lite with two bridge connections to the same site.
I have VLAN10 and VLAN11
VLAN11 is direct
VLAN10 is the sole member of a bridge, with admin-mac set
arp still responds with regular ethernet interface MAC
Even tried rebooting Hex POE, didn`t fix problem.

/interface bridge
add admin-mac=E2:8D:8C:D4:FE:CC name=bvlan10
add name=loopback
/interface bridge port
add bridge=bvlan10 interface=vlan10
/ip address
add address=192.168.99.250 interface=loopback network=192.168.99.250
add address=192.168.3.254/24 interface=vlan11 network=192.168.3.0
add address=192.168.99.12/29 interface=bvlan10 network=192.168.99.8

From server on the other end:
# arping -I eth0.5 192.168.3.254
ARPING 192.168.3.254 from 192.168.3.1 eth0.5
Unicast reply from 192.168.3.254 [E4:8D:8C:D4:FE:CD] 3.334ms
^CSent 1 probes (1 broadcast(s))
Received 1 response(s)
# arping -I eth0.5 192.168.99.12
ARPING 192.168.99.12 from 192.168.99.9 eth0.5
Unicast reply from 192.168.99.12 [E4:8D:8C:D4:FE:CD] 2.769ms
^CSent 1 probes (1 broadcast(s))
Received 1 response(s)

Because there`s a switch in the middle without independent learning, its forwarding table keeps alternating between the 2 vlans, resulting in high packet loss and unusability of setup.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: change MAC Address interface vlan

Mon Oct 02, 2017 9:46 am

/interface bridge
add admin-mac=E2:8D:8C:D4:FE:CC name=bvlan10
follow the instructions fully:
/interface bridge set bvlan10 auto-mac=no
 
macpacheco
just joined
Posts: 14
Joined: Sun May 31, 2015 2:19 am

Re: change MAC Address interface vlan

Mon Oct 02, 2017 11:36 am

/interface bridge
add admin-mac=E2:8D:8C:D4:FE:CC name=bvlan10
follow the instructions fully:
/interface bridge set bvlan10 auto-mac=no
Thanks Chupaka, it indeed was my fault.
 
volkirik
Member Candidate
Member Candidate
Posts: 212
Joined: Sat Jul 23, 2016 2:03 pm

Re: change MAC Address interface vlan

Sun Aug 14, 2022 12:32 pm

useful guide using bridge as temporary solution.

but we definiftely need proper implementation of changing VLAN MACs so we do not end up hundred of useless bridges in our router.

BTW try updating wiki pages instead of deleting. you can also put notice/warning if guide/content is no more valid/usable in ROS7.

Who is online

Users browsing this forum: Partial and 27 guests