Skip to main content
Version: 7.26

macvlan


interface/macvlan​

Type: Directory

MACVLAN interfaces add virtual interfaces with their own MAC addresses on a parent interface. Several MACVLAN interfaces can share one parent.

FlagNameDescription
XdisabledWhether an item is disabled.
RrunningWhether the interface is running.
ArgumentTypeDescription
namestringInterface name.
mac-addressmacAddrMAC address of the interface. When not set, RouterOS generates an address and stores it in the configuration, so it stays the same after a reboot.
mtunumLayer 3 maximum transmission unit. Default: 1500. The value cannot be higher than the parent interface's MTU; if the parent's MTU is lower, set mtu when creating the interface.
interfaceiface_enumParent interface. Any interface with a MAC address can be used, including an Ethernet, VLAN or bond interface. An active bridge port cannot be used: creation fails with failed to create device and the log reports a busy parent.
modeenum (private | bridge) { private:1, bridge:4 }Controls communication between MACVLAN interfaces on the same parent. bridge: the interfaces can communicate (default). private: they cannot; with either interface set to private, communication between them stops.
arpenum (disabled | enabled | proxy-arp | reply-only | local-proxy-arp) { disabled:0, enabled:1, proxy-arp:2, reply-only:3, local-proxy-arp:4 }Address Resolution Protocol mode. disabled: the interface does not use ARP. enabled: it uses ARP (default). proxy-arp: the router answers ARP requests on behalf of other interfaces. local-proxy-arp: it answers on the same interface. reply-only: the interface replies only for static entries in the IP/ARP table and does not learn dynamic entries.
arp-timeoutalt { arp-timeout: enum (auto) { auto:0 } , arp-timeout: time }How long an ARP record is kept after no packets are received from the address. auto uses the value from /ip/settings, which is 30s by default. Default: auto.
arp-acceptboolWhether to accept gratuitous ARP (GARP) frames from devices that are not already in the ARP table. no: new entries are not created; yes: new entries are created. Default: no.
loop-protectenum (default | off | on) { default:0, off:1, on:2 }Enables loop protection on the interface. default works as turned off. Default: default.
loop-protect-send-intervaltimeHow often loop protect packets are sent on the interface. Default: 5s.
loop-protect-disable-timetimeHow long the interface is disabled when a loop is detected. 0 disables it forever. Default: 5m.
Read-only ArgumentTypeDescription
l2mtunumLayer2 maximum transmission unit.
loop-protect-statusenum (off | on | disabled) { off:1, on:2, disabled:3 }Current loop protect state: off, on, or disabled.