interfaces-vrf(5)

interfaces-vrf5

Vrf extensions for the interfaces(5) file format

Overview

Linux has support for Virtual Routing and Forwarding (VRF) instances since Kernel >= 4.4. The following options allow to set up VRFs and adding configured interfaces to VRFs.

Note that in the Linux Kernel VRFs are represented as network interfaces, too. See https://www.kernel.org/doc/Documentation/networking/vrf.rst for more details.

Options

vrf-table table id

The id of the kernel routing table associated with this VRF interface. This parameter indicates that the interface where it is specified shall be a VRF.

vrf vrf interface

The vrf the interface should be assigned to. This parameter is specified on regular interfaces which should be within the given vrf.

Examples

A VRF interface:

auto vrf_external
iface vrf_external
	vrf-table 1023

A regular interface which should be within a VRF:

auto eth0
iface eth0
	address 192.2.0.42/24
	address 2001:db8::42/64
	gateway 192.2.0.1
	gateway 2001:db::1
	vrf vrf_external

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Authors

Maximilian Wilhelm <[email protected]>

From ifupdown-ng 0.12.1-7 in Debian 13 (Trixie). Parsed by carta from the page's man source.