vrrp
interface/vrrp
Type: Directory
| Flag | Name | Description |
|---|---|---|
| X | disabled | The VRRP interface is disabled by the user. |
| I | invalid | The VRRP interface is in the invalid state, for example due to a configuration error. |
| G | grp-authority | The VRRP interface is group-authority. It controls the state of the other group members and is the only interface that sends VRRP advertisements. |
| g | grp-member | The VRRP interface is a group member. Its state machine follows the state of the specified group-authority interface. |
| R | running | The VRRP interface is running. The M and B flags show whether it is master or backup. |
| H | hw-offloaded | The VRRP interface is hardware-offloaded when it is in the master state. The flag is cleared when the instance is not in the master state or L3 hardware offloading is disabled. |
| M | master | The VRRP interface is in the master state. |
| B | backup | The VRRP interface is in the backup state. |
| F | failure | The VRRP interface is in the failure state, for example due to a link-down on its parent interface. |
| Argument | Type | Description |
|---|---|---|
| name | string | VRRP interface name. |
| 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 mode. Default: enabled. |
| arp-timeout | alt { arp-timeout: enum (auto) { auto:0 } , arp-timeout: time } | How long an ARP record is kept in the ARP table after no packets are received from that IP address. auto uses the arp-timeout value from IP/Settings, which is 30s by default. Default: auto. |
| interface ( mandatory ) | iface_enum | Interface name on which VRRP instance will be running. |
| group-master | iface_enum { :0, none:0, self } | Deprecated name of group-authority; kept for compatibility. |
| group-authority | iface_enum { :0, none:0, self } | Allows multiple VRRP interfaces to be grouped so they share the same VRRP state. Within a group, a single group authority interface is selected. It controls the state of the other group members and is the only interface that sends VRRP advertisements. When the group-authority VRRP interface transitions to the backup state, all group members also transition to the backup state. If a failure is detected on any group member, for example due to a link-down on its parent interface, all group members transition to the failure state. Default:
|
| vrid | num | Virtual Router identifier. Each virtual router must have a unique identifier on its parent interface. Default: 1. |
| priority | num | Priority of the VRRP node used in the master election. A higher number means a higher priority. Priorities 1 to 254 are accepted; 255 is reserved for the router that owns the virtual IP address and 0 for a master that releases responsibility. Default: 100. |
| interval | time | The VRRP interval defines how often the VRRP master router sends Advertisement packets to backup routers. This interval directly determines the frequency at which backups receive keepalive information confirming that the master is operational. Default: Warning: Configuring VRRP intervals below 1 second can lead to unpredictable behavior and unintended master role changes. |
| preemption-mode | bool | Whether the current master yields the master role to a router with a higher priority that appears later. When set to yes, the master yields; when set to no, the master keeps the role until it fails, even if a higher-priority router is available. The setting on a backup does not change this decision. Default: yes. |
| authentication | enum (none | simple | ah) { none:0, simple:1, ah:2 } | Authentication method to use for VRRPv2 advertisement packets. RFC 5798 deprecates authentication for VRRPv3. Default:
|
| password | string | Password required for authentication. Can be ignored if authentication is not used. |
| on-backup | alt { script: string } | Script to execute when the node is switched to the backup state. |
| on-master | alt { script: string } | Script to execute when the node is switched to the master state. |
| on-fail | alt { script: string } | Script to execute when the node fails. |
| version | enum (2 | 3) { 2:2, 3:3 } | Which VRRP version to use. Default: 3. |
| v3-protocol | enum (ipv4 | ipv6) { ipv4:1, ipv6:2 } | A protocol that will be used by VRRPv3. Valid only if the version is 3. Default: ipv4. |
| v3-checksum-as-v2 | bool | Controls whether the VRRPv3 IPv4 checksum is calculated with or without the IPv4 pseudoheader. Different vendors interpret RFC 5798 section 5.2.8 differently regarding the pseudoheader in IPv4 checksum calculation. Linux-based implementations (including FRR) include the pseudoheader for both IPv4 and IPv6, while Cisco includes it only for IPv6.
This setting applies only to VRRPv3 with IPv4. It has no effect on VRRPv3 IPv6 or VRRPv2. All VRRP routers in the same Virtual Router must use the same value for this setting. Mismatched values will cause "bad checksum" errors and VRRP advertisement packets will be discarded. |
| sync-connection-tracking | bool | Synchronize connection tracking entries from the master to the backup routers. The VRRP connection tracking synchronization requires that RouterOS connection tracking is running. Default: no. |
| remote-address | ipAddr | Specifies the remote address of the other VRRP router for connection tracking synchronization. If not set, the system autodetects the remote address through VRRP. The remote address is used only if
|
| connection-tracking-mode | enum (passive-active | active-active) { passive-active:0, active-active:1 } | Specifies the mode for connection tracking synchronization. This setting is relevant only when
Using multiple VRRP groups with passive-active mode can lead to unsynchronized connection tracking tables because only one master handles synchronization, and the others do not exchange tracking data. |
| connection-tracking-port | num | Specifies UDP port for connection tracking synchronization. This setting is only relevant when sync-connection-tracking is enabled. Default: 8275. |
| Read-only Argument | Type | Description |
|---|---|---|
| mtu | num | Layer3 MTU size. The VRRP interface uses the MTU of its parent interface. |
| mac-address | macAddr | MAC address of the VRRP interface. |