Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typos

...

Info

RouterOS MACVLAN interfaces are not supported by Container, as it exclusively utilizes VETH (Virtual Ethernet) interfaces for its networking.

...

Code Block
languageros
/interface macvlan
add interface=ether1 name=macvlan1

/interface macvlan print
Flags: R - RUNNING
Columns: NAME, MTU, INTERFACE, MAC-ADDRESS, MODE
#   NAME       MTU  INTERFACE  MAC-ADDRESS        MODE  
0 R macvlan1  1500  ether1     76:81:BF:68:69:83  bridge

Now, a DHCP client can be created on ether1 and macvlan1 interfaces:

...

PropertyDescription
arp (disabled | enabled | local-proxy-arp | proxy-arp | reply-only; Default: enabled)Address Resolution Protocol setting
  • disabled - the interface will not use ARP
  • enabled - the interface will use ARP
  • local-proxy-arp -  the router performs proxy ARP on the interface and sends replies to the same interface
  • proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces
  • reply-only - the interface will only reply to requests originated originating from matching IP address/MAC address combinations, which are entered as static entries in the IP/ARP table. No dynamic entries will be automatically stored in the IP/ARP table. Therefore, for communications to be successful, a valid static entry must already exist.
arp-timeout (auto | integer; Default: auto)How Sets for how long the ARP record is kept in the ARP table after no packets are received from IP. Value auto equals to the value of arp-timeout in IP/Settings /ip/settings/, default is 30s.
comment (string; Default: )Short description of the interface.
disabled (yes | no; Default: no)Changes whether the interface is disabled.
interface (name; Default: )Name of the interface on top of which MACVLAN will work. MACVLAN interfaces can be created on Ethernet or VLAN interfaces, adding VLAN on MACVLAN is not supported.
loop-protect (on | off | default; Default: default)Enables or disables loop protect on the interface, the default works as turned off.
loop-protect-disable-time (time interval | 0; Default: 5m)Sets how long the selected interface is disabled when a loop is detected. 0 - forever.
loop-protect-send-interval (time interval; Default: 5s)Sets how often loop protect packets are sent on the selected interface.
mac-address (MAC; Default: )Static MAC address of the interface. A randomly generated MAC address will be assigned when not specified.
mode (private | bridge; Default: bridge)

Sets MACVLAN interface mode:

  • private - does not allow communication between MACVLAN instances on the same parent interface.
  • bridge - allows communication between MACVLAN instances on the same parent interface.
mtu (integer; Default: 1500)

Sets Layer3 Layer 3 Maximum Transmission Unit. For the MACVLAN interface, it cannot be higher than the parent interface.

name (string; Default: )Interface name.

...