Page 1 of 1

change MAC Address interface vlan

Posted: Tue Oct 14, 2008 3:28 pm
by kadhol
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

Re: change MAC Address interface vlan

Posted: Wed Oct 15, 2008 12:03 am
by Chupaka
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...

Re: change MAC Address interface vlan

Posted: Wed Oct 15, 2008 3:39 am
by kadhol
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

Re: change MAC Address interface vlan

Posted: Wed Oct 15, 2008 11:40 am
by flazh
agree with kadhol,
I need that feature , because if i want to use more than 10 DHCP Client, i must use 10 ethernet card
:(

Re: change MAC Address interface vlan

Posted: Wed Oct 15, 2008 12:28 pm
by kroto
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

Re: change MAC Address interface vlan

Posted: Wed Oct 15, 2008 12:45 pm
by [a]
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.

Re: change MAC Address interface vlan

Posted: Wed Oct 15, 2008 2:25 pm
by unique_leader
yes, i'm agree with kadhol too

Re: change MAC Address interface vlan

Posted: Wed Oct 15, 2008 8:06 pm
by changeip
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 ?

Re: change MAC Address interface vlan

Posted: Fri Oct 17, 2008 8:56 pm
by kadhol
someone from mikrotik please kindly provide responses :)

Re: change MAC Address interface vlan

Posted: Sat Oct 18, 2008 6:36 pm
by shielder
i think you could add cisco catalyst before the modem. the config would be :

mikrotik - catalyst - ADSL.

It should help.

Re: change MAC Address interface vlan

Posted: Sat Oct 18, 2008 7:39 pm
by ayufan
try changing mac-address for specified vlan with bridge nat feature.

Re: change MAC Address interface vlan

Posted: Thu Jun 11, 2009 12:57 pm
by Chupaka
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 ? :)

Re: change MAC Address interface vlan

Posted: Fri Jun 12, 2009 12:07 pm
by Chupaka
Normis? =)

Re: change MAC Address interface vlan

Posted: Fri Jun 12, 2009 3:36 pm
by normis
sure, you can add it there. it's not a protected page :)

Re: change MAC Address interface vlan

Posted: Fri Jun 12, 2009 7:45 pm
by Chupaka
Oh, really, didn't noticed ))

Re: change MAC Address interface vlan

Posted: Thu Mar 25, 2010 8:40 am
by brianchrist
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.

Re: change MAC Address interface vlan

Posted: Thu Mar 25, 2010 1:56 pm
by Chupaka
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

Re: change MAC Address interface vlan

Posted: Mon Oct 02, 2017 9:31 am
by macpacheco
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.

Re: change MAC Address interface vlan

Posted: Mon Oct 02, 2017 9:46 am
by Chupaka
/interface bridge
add admin-mac=E2:8D:8C:D4:FE:CC name=bvlan10
follow the instructions fully:
/interface bridge set bvlan10 auto-mac=no

Re: change MAC Address interface vlan

Posted: Mon Oct 02, 2017 11:36 am
by macpacheco
/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.

Re: change MAC Address interface vlan

Posted: Sun Aug 14, 2022 12:32 pm
by volkirik
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.