Page 1 of 1

VRF Implementation

Posted: 20 Mar 2020, 16:12
by vang1804
Hello!

It would be very nice to be able to attach the users also in Linux Network VRFs, instead of Namespaces.

There are many advantages with VRF implementation
  • With VRFs all routing is done by a single BGP session.
  • Only a few commands are needed to add a new VRF.
  • New services are very easy to be impemented.
E.g. you have a VRF for full access customers, a captive portal for those that are not paying, one VRF for PayAsYouGo users.
  • With VRFs there is no need to waste IPs for intermediate links. MPLS Core can be full private and it is hidden by the customer.
And many other advantages.

What do you think?

Thanks,
Vangelis

Re: VRF Implementation

Posted: 21 Mar 2020, 10:18
by dimka88
Hi, really good feature request. Will be good if you describe in our https://phabricator.accel-ppp.org/.

Re: VRF Implementation

Posted: 24 Dec 2021, 08:59
by dimka88

Re: VRF Implementation

Posted: 17 Feb 2022, 12:28
by Harun
VRF does not work for non-shared interfaces, incoming traffic is not allowed.

Configuration:

Code: Select all

[ipoe]
verbose=1
interface=re:^eth2\.[0-9]*$,shared=0,mode=L2,ifcfg=1,start=up,start=dhcpv4,ipv6=0,proxy-arp=1,ip-unnumbered=1,mtu=1500
username=lua:qinq
lua-file=/config/user-data/accel-ppp/ipoe/username.lua
idle-timeout=1200
lease-time=240
check-mac-change=0
vlan-mon=eth2,100
Interface after session start:

Code: Select all

eth2.100@eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master internet state UP group default qlen 1000
    link/ether 5a:34:4d:88:14:7f brd ff:ff:ff:ff:ff:ff
    inet 100.64.193.254 peer 100.64.193.136/32 scope global eth2.100
       valid_lft forever preferred_lft forever
Host 100.64.193.136 cannot ping host 100.64.193.254:

Code: Select all

# tcpdump -nptei eth2.100
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth2.100, link-type EN10MB (Ethernet), snapshot length 262144 bytes
9a:b7:e2:26:00:24 > 5a:34:4d:88:14:7f, ethertype IPv4 (0x0800), length 70: 100.64.193.136 > 100.64.193.254: ICMP echo request, id 22017, seq 41988, length 36
If I manually configure the interface, then there is no problem:

Code: Select all

ip link set dev eth2.100 master internet
ip addr add 100.64.193.254 peer 100.64.193.136/32 dev eth2.100

Re: VRF Implementation

Posted: 08 Mar 2022, 20:49
by dimka88
Hi @Harun, try patches from this task https://phabricator.accel-ppp.org/T61