File: interfaces-vrf.scd

package info (click to toggle)
ifupdown-ng 0.12.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 964 kB
  • sloc: ansic: 3,572; sh: 980; makefile: 233
file content (58 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
interfaces-vrf(5)

# NAME

*interfaces-vrf* - VRF extensions for the interfaces(5) file format

# DESCRIPTION

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.

# VRF-RELATED 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
```

# SEE ALSO

*ip-vrf*(8)
*ip-link*(8)

# AUTHORS

Maximilian Wilhelm <max@sdn.clinic>