Difference between revisions of "Change MAC address of VLAN interface"

From MikroTik Wiki
Jump to: navigation, search
(New page: Let's suppose you already have working VLAN setup, and just want to change MAC address of the VLAN interface. In RouterOS v3.24 and 4.0beta3 it's still not possible to change MAC address d...)
 
(commands work fine for me in v3.25 and v4b3)
Line 3: Line 3:
 
  /interface bridge add name=bridge1 disabled=no
 
  /interface bridge add name=bridge1 disabled=no
 
  /interface bridge port add bridge=bridge1 disabled=no interface=vlan1
 
  /interface bridge port add bridge=bridge1 disabled=no interface=vlan1
  /interface bridge set bridge1 admin-mac=de:ad:00:be:ef:00
+
  /interface bridge set bridge1 admin-mac=de:ad:00:be:ef:00 auto-mac=no
  
 
From now, other devices will see ''de:ad:00:be:ef:00'' MAC-address for the IP address of VLAN interface
 
From now, other devices will see ''de:ad:00:be:ef:00'' MAC-address for the IP address of VLAN interface
 
'''WARNING!''' Unfortunately, in v3.24 and v4.0beta3 ''bridge set admin-mac'' CLI command is not working - you should do it with [[WinBox]]
 

Revision as of 16:38, 11 June 2009

Let's suppose you already have working VLAN setup, and just want to change MAC address of the VLAN interface. In RouterOS v3.24 and 4.0beta3 it's still not possible to change MAC address directly. We'll use bridge for making this possible!

/interface bridge add name=bridge1 disabled=no
/interface bridge port add bridge=bridge1 disabled=no interface=vlan1
/interface bridge set bridge1 admin-mac=de:ad:00:be:ef:00 auto-mac=no

From now, other devices will see de:ad:00:be:ef:00 MAC-address for the IP address of VLAN interface