# VXLAN

The `nv unset` commands remove the configuration you set with the equivalent `nv set` commands. This guide only describes an `nv unset` command if it differs from the `nv set` command.

## nv set nve vxlan ageing

Configures the VXLAN aging timer. You can set a value between 0 and 4096.

### Version History

Introduced in Cumulus Linux 5.7.0

### Example

    cumulus@switch:~$ nv set nve vxlan ageing 4096

## nv set nve vxlan arp-nd-suppress

Enables and disables VXLAN ARP and ND suppression. The default setting is `enabled`.

In Cumulus Linux 5.14 and earlier, you specify `on` or `off`.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan arp-nd-suppress disabled

## nv set nve vxlan decapsulation dscp action

Configures the VXLAN decapsulation DSCP or COS action. You can specify one of the following options:

- `copy` (if the inner packet is IP).
- `preserve` (the inner DSCP does not change).
- `derive` (from the switch priority).

### Example

    cumulus@switch:~$ nv set nve vxlan decapsulation dscp action derive

## nv set nve vxlan state

Enables and disables VXLAN globally.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan state enabled

## nv set nve vxlan encapsulation dscp action

Configures the VXLAN outer DSCP action during encapsulation. You can specify one of the following options:

- `copy` (if the inner packet is IP)
- `set` (to a specific value)
- `derive` (from the switch priority).

The default setting is `derive`.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan encapsulation dscp action derive

## nv set nve vxlan encapsulation dscp value

Configures the DSCP value to put in outer VXLAN packets.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan encapsulation dscp 16

## nv set nve vxlan flooding state

Enables and disables VXLAN flooding.

In Cumulus Linux 5.13 and later, enabling VXLAN flooding requires head-end replication and, or a configured multicast group. Make sure to set head-end replication on with the `nv set nve vxlan flooding head-end-replication evpn` command and, or a configured multicast group with the `nv set nve vxlan flooding multicast-group <ip-address>`.

In Cumulus Linux 5.12 and earlier, enabling VXLAN flooding requires head-end replication. Make sure to set head-end replication on with the `nv set nve vxlan flooding head-end-replication evpn` command when you enable VXLAN flooding.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan flooding state enabled

## nv set nve vxlan flooding head-end-replication <hrep-id>

Configures VXLAN head end replication, where the switch replicates BUM traffic and sends individual copies to remote destinations.

### Command Syntax

Syntax | Description
--- | ---
`<hrep-id>` | The IPv4 unicast address or `evpn`.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan flooding head-end-replication 10.10.10.2

## nv set nve vxlan flooding multicast-group <ipv4-multicast>

Configures the multicast group for VXLAN flooding. BUM traffic goes to the specified multicast group, where receivers with an interest in that group receive the traffic. This usually requires that you use PIM-SM in the network.

One multicast group per layer 2 VNI is optimal configuration for underlay bandwidth utilization. However, you can specify the same multicast group for more than one layer 2 VNI.

### Command Syntax

Syntax | Description
--- | ---
`<ipv4-multicast>` | The multicast group.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan flooding multicast-group 224.0.0.10

## nv set nve vxlan mac-learning

Enables and disables VXLAN MAC learning.

In Cumulus Linux 5.14 and earlier, you specify `on` or `off`.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan mac-learning enabled

## nv set nve vxlan mlag shared-address <shared-address>

Configures the anycast IP address for VXLAN active-active.

### Command Syntax

Syntax | Description
--- | ---
`<shared-address>` | The anycast IP address.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan mlag shared-address 10.0.1.12

## nv set nve vxlan mtu

Configures the MTU for VXLAN interfaces.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan mtu 1500

## nv set nve vxlan source address <source-address>

Configures the local tunnel IP address for VXLAN tunnels.

### Command Syntax

Syntax | Description
--- | ---
`<source-address>` | The IPv4 address or `auto`. `auto` sets the address to the primary loopback address of the switch.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set nve vxlan source address 10.10.10.1