vxlan
interface/vxlan
Type: Directory
Create and configure Virtual eXtensible Local Area Network (VXLAN) interfaces for Layer 2 overlays over routed IPv4 or IPv6 underlays. Interfaces can carry a comment. See the VXLAN guide for forwarding, configuration examples, and hardware offload.
| Flag | Name | Description |
|---|---|---|
| X | disabled | Whether the VXLAN interface is disabled. New interfaces are enabled by default. |
| R | running | Whether the VXLAN interface is running. |
| H | hw-offloaded | Whether the VXLAN interface is hardware-offloaded on a supported device. |
| Argument | Type | Description |
|---|---|---|
| name | string | Name of the VXLAN interface. Default: vxlan1. |
| mtu | num | Maximum transmission unit of the VXLAN interface. VXLAN adds 50 bytes of overhead over IPv4 and 70 bytes over IPv6; each inner 802.1Q tag adds another 4 bytes. Ensure that encapsulated Ethernet frames fit the underlay MTU, or reduce the frame or VXLAN MTU to prevent fragmentation and packet loss. Default: 1500. |
| mac-address | macAddr | Static MAC address of the VXLAN interface. If unset, RouterOS assigns a randomly generated address that persists when the interface is disabled and re-enabled. Default: automatically generated. |
| vni ( mandatory ) | num | VXLAN Network Identifier (VNI) of the overlay segment. VNI values must be unique across VXLAN interfaces on the router. Range: 1..16777215. |
| group | alt { address: ipAddr , ipv6-address: ip6Addr } | Multicast group address used to forward broadcast, unknown-unicast, and multicast (BUM) traffic between VTEPs. This property requires interface. Setting group updates vteps-ip-version to the group address family. The underlay must provide multicast connectivity between VTEPs. A multicast underlay disables hardware offload on devices that support VXLAN offload. Default: unset. |
| interface | iface_enum | Interface used for multicast forwarding. The router joins the group on this interface, and VXLAN sends the outer packets out through it, whatever the underlay route to the group points at. This property requires group. A multicast underlay disables hardware offload on devices that support VXLAN offload. Default: unset. |
| port | num | UDP port on which the VTEP listens and the destination port for packets sent to remote VTEPs. It does not fix the outer UDP source port. VXLAN interfaces that share a UDP port must use the same checksum setting and vtep-vrf. Range: 1..65535. Default: 4789. |
| local-address | address (flags=46) | Local source address for outer VXLAN packets. If unset, RouterOS selects an address from the underlay egress interface. Setting this property updates vteps-ip-version to the local address family. Default: unset. |
| dont-fragment | enum (disabled | enabled | auto | inherit) { disabled:0, enabled:1, auto:2, inherit:2 } | Controls fragmentation and the Don't Fragment (DF) flag of outer packets.
|
| vtep-vrf | enum | Routing table in which local VTEPs listen and originate underlay connections. Multicast group and interface settings do not support a VRF underlay. The same UDP port cannot be used in multiple routing tables. VXLAN-VRF offload is supported on switches that run the switch-marvell package; do not infer hardware support on other chips from this software property. Default: main. |
| vteps-ip-version | enum (ipv4 | ipv6) { ipv4:1, ipv6:2 } | Address family for local and remote VTEPs:
|
| allow-fast-path | bool | Whether to allow Fast Path processing. Fragmented and flooded VXLAN packets are redirected through slow path. Fast Path is disabled for a VXLAN interface that uses a VRF. Default: yes. |
| max-fdb-size | num | Maximum number of MAC addresses that the VXLAN forwarding database (FDB) can store. Range: 1..65535. Default: 4096. |
| ttl | num | Time to live for outgoing outer IPv4 packets and hop limit for outer IPv6 packets. auto uses 64 for unicast underlays and 1 for multicast underlays. Increase the value when the multicast underlay crosses routers. Range: 0..255. Default: auto. |
| learning | bool | Whether to learn inner source MAC addresses and remote VTEP addresses from received packets:
|
| checksum | bool | UDP checksum handling for transmitted outer VXLAN packets:
|
| rem-csum | enum (none | rx | tx | both) { none:0, rx:1, tx:2, both:3 } | Remote Checksum Offload (RCO) mode. RCO elides the inner checksum of an encapsulated datagram so that the outer checksum can be offloaded by the network driver. RCO changes the encapsulation protocol, so the receiver must also support it.
|
| hw | bool | Whether to allow hardware offload on devices that support VXLAN offload. Set to no to disable offload for this interface. Default: yes. |
| bridge | iface_enum | Name of the bridge to which RouterOS adds the VXLAN interface as a dynamic port. Bridge VLAN entries configure tagged and untagged VLAN membership. Default: unset. |
| bridge-pvid | num | Port VLAN ID assigned to the dynamic bridge port created by bridge. This property has an effect only when the bridge has vlan-filtering=yes; bridge VLAN entries control tagged and untagged membership. Range: 1..4094. Default: 1. |
| arp | enum (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 (ARP) mode:
|
| arp-timeout | alt { arp-timeout: enum (auto) { auto:0 } , arp-timeout: time } | How long an ARP entry is kept after no packets are received from the address. auto uses the arp-timeout value from /ip/settings, which is 30s by default. Default: auto. |
| arp-accept | bool | Whether to accept gratuitous ARP replies and create new ARP entries for addresses not already present in /ip/arp. Default: no. |
| loop-protect | enum (default | off | on) { default:0, off:1, on:2 } | Loop protection mode on the interface:
|
| loop-protect-send-interval | time | How often loop protect packets are sent on the interface. Default: 5s. |
| loop-protect-disable-time | time | How long the interface is disabled when a loop is detected. 0 disables it forever. Default: 5m. |
| Read-only Argument | Type | Description |
|---|---|---|
| l2mtu | num | Read-only Layer 2 maximum transmission unit. Without an associated multicast interface, the value is 65535. When the associated interface exposes its own L2MTU, VXLAN subtracts 50 bytes for an IPv4 underlay or 70 bytes for IPv6. Reduce mtu if it does not fit the associated interface. |
| loop-protect-status | enum (off | on | disabled) { off:1, on:2, disabled:3 } | Current loop protection state:
|