Community discussions

MikroTik App
 
sguo
just joined
Topic Author
Posts: 10
Joined: Thu Aug 06, 2009 11:48 am

VLAN sub-if MAC

Sat May 07, 2011 6:36 am

Hi,

I am using winbox and notice that the physical and all subinterface in VLAN has same MAC, is this normal? I thought subif suppose to have different mac.
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: VLAN sub-if MAC

Sat May 07, 2011 7:04 am

Yes, this is normal. The same thing happens with Cisco equipment. There's no need to be concerned since each interface is on its own broadcast domain, and thus there's no conflict.
 
SpaceCommander
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Fri Dec 26, 2008 3:35 am

Re: VLAN sub-if MAC

Mon Jun 20, 2011 5:24 am

How to change VLAN MAC without creating bridge as described in http://wiki.mikrotik.com/wiki/Change_MA ... _interface ?
Under pure Linux, this is performed simply by "/sbin/ip link set vlan10 address 00:11:22:33:44:55"
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: VLAN sub-if MAC

Mon Jun 20, 2011 5:44 am

You can't. That functionality isn't exposed.

Why would you want to, though?
 
SpaceCommander
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Fri Dec 26, 2008 3:35 am

Re: VLAN sub-if MAC

Mon Jun 20, 2011 5:57 am

Why would you want to, though?
For preventing performance slowdown at bridge layer.
"PPPoE over VLAN over Ethernet" should be a bit faster than ""PPPoE over Bridge over VLAN over Ethernet", is itn't?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: VLAN sub-if MAC

Mon Jun 20, 2011 6:10 am

No, why would you want to change the MAC address in the first place?
 
SpaceCommander
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Fri Dec 26, 2008 3:35 am

Re: VLAN sub-if MAC

Mon Jun 20, 2011 6:27 am

why would you want to change the MAC address in the first place?
I have many ADSL modems working as bridges, each connected to untagged port on D-Link switch.
RouterBox is connected to tagged port: N vlan's for N modems.
By default, RouterBox MAC is the same in all vlan's == MAC of ether1-gateway.
But remote AC requires that each client must have unique MAC.
So the first PPPoE connection is established normally, and all remaining N-1 are rejected.
Changing VLAN MAC's solves this problem.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: VLAN sub-if MAC

Mon Jun 20, 2011 6:33 am

Gotcha.

File an official feature request with support@mikrotik.com and explain your use case. Maybe this functionality will be exposed in future versions. Until then I guess all you can do is use the bridge hack. There simply isn't any functionality to set a VLAN interface MAC address via the CLI or winbox. "/interface vlan print detail" shows it, but there is no setter.

Who is online

Users browsing this forum: Ahrefs [Bot], holvoetn, rogerioqueiroz and 112 guests