Regarding VRF support in Linux Kernel

3 messages, 3 authors, 2016-06-22 · open the first message on its own page

Regarding VRF support in Linux Kernel

From: Ajith Adapa <hidden>
Date: 2016-06-22 21:05:51

Hi,

I am following the steps present in
(https://www.kernel.org/doc/Documentation/networking/vrf.txt) and
trying to create IPv4 VRF in latest Fedora 24 distribution with 4.5
Linux kernel.

[root@localhost ip]# uname -a
Linux localhost.localdomain 4.5.5-300.fc24.x86_64 #1 SMP Thu May 19
13:05:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I am getting operation not supported error as shown below

# ip link add vrf-blue type vrf table 10
RTNETLINK answers: Operation not supported

Is there any CONFIG option to enable VRF in Linux kernel ?

Regards,
Ajith

Re: Regarding VRF support in Linux Kernel

From: Randy Dunlap <hidden>
Date: 2016-06-22 22:03:26

On 06/22/16 14:05, Ajith Adapa wrote:
Hi,

I am following the steps present in
(https://www.kernel.org/doc/Documentation/networking/vrf.txt) and
trying to create IPv4 VRF in latest Fedora 24 distribution with 4.5
Linux kernel.

[root@localhost ip]# uname -a
Linux localhost.localdomain 4.5.5-300.fc24.x86_64 #1 SMP Thu May 19
13:05:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I am getting operation not supported error as shown below

# ip link add vrf-blue type vrf table 10
RTNETLINK answers: Operation not supported

Is there any CONFIG option to enable VRF in Linux kernel ?
Yes, in drivers/net/Kconfig:

config NET_VRF
	tristate "Virtual Routing and Forwarding (Lite)"
	depends on IP_MULTIPLE_TABLES
	depends on NET_L3_MASTER_DEV
	depends on IPV6 || IPV6=n
	depends on IPV6_MULTIPLE_TABLES || IPV6=n
	---help---
	  This option enables the support for mapping interfaces into VRF's. The
	  support enables VRF devices.




-- 
~Randy

Re: Regarding VRF support in Linux Kernel

From: David Ahern <hidden>
Date: 2016-06-22 22:21:06

On 6/22/16 4:03 PM, Randy Dunlap wrote:
On 06/22/16 14:05, Ajith Adapa wrote:
quoted
Hi,

I am following the steps present in
(https://www.kernel.org/doc/Documentation/networking/vrf.txt) and
trying to create IPv4 VRF in latest Fedora 24 distribution with 4.5
Linux kernel.

[root@localhost ip]# uname -a
Linux localhost.localdomain 4.5.5-300.fc24.x86_64 #1 SMP Thu May 19
13:05:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I am getting operation not supported error as shown below

# ip link add vrf-blue type vrf table 10
RTNETLINK answers: Operation not supported
VRF is not enabled in Fedora 24

David
quoted
Is there any CONFIG option to enable VRF in Linux kernel ?
Yes, in drivers/net/Kconfig:

config NET_VRF
	tristate "Virtual Routing and Forwarding (Lite)"
	depends on IP_MULTIPLE_TABLES
	depends on NET_L3_MASTER_DEV
	depends on IPV6 || IPV6=n
	depends on IPV6_MULTIPLE_TABLES || IPV6=n
	---help---
	  This option enables the support for mapping interfaces into VRF's. The
	  support enables VRF devices.


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help