You are not logged in.

#1 2021-09-16 11:30:02

desword
Member
Registered: 2021-09-16
Posts: 2

How can use VRF to achieve user routing isolation?

Recently, I am studying the Virtual Routing and Forwarding feature in Linux.

http://www.routereflector.com/2016/11/w … -on-linux/

I find that to create VRF, each VRF is bond with a network interface.
e.g.,
# ip link add red type vrf table 1
# ip link set dev red up
# ip link set eth1 master red

Then, does it indicate that the number of isolated user's routing tables are highly related to the number of 'physical' installed network interface?
For example, a server is only equipped with three network interfaces, eth0, eth1, eth2. Then the server can only provide the isolation for three uesrs? Then the usage scenarios may be limited?

However, I can still see some approaches using VRF to distinguish users and provide the resource isolation services for mutiple tenant.

Anyone can give some help for this?
Thanks very much!

Offline

#2 2021-09-18 09:19:12

desword
Member
Registered: 2021-09-16
Posts: 2

Re: How can use VRF to achieve user routing isolation?

Any Help is appreciated.

Offline

#3 2021-09-18 10:07:08

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How can use VRF to achieve user routing isolation?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2021-09-18 12:09:57

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,925

Re: How can use VRF to achieve user routing isolation?

There appears to be such  a limit, but you get could around that using virtual network devices (like VM hypervisors do).

Apart from VRF you may also be able to use policy based routing .

iproute2 is very powerful, I suggest you read up on it:

http://www.policyrouting.org/iproute2.doc.html
https://baturin.org/docs/iproute2/


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB