Re: [vpp-dev] questions about fib

2022-07-25 Thread haiyan...@ilinkall.cn
:ip4 index:1 buckets:1 uRPF:65 to:[518:183020] 
via:[285:13148]]
[0] [@13]: dpo-load-balance: [proto:ip4 index:48 buckets:1 uRPF:62 to:[0:0] 
via:[30:5268]]
  [0] [@5]: ipv4 via 10.120.0.253 G0: mtu:9000 
eeff00163e002e8f0800

at the moment, the default route is correct now, the higher priority is 
contributing to forwarding. but others with red color also use the wrong 
default route.
 
vpp# show ip fib 

10.10.22.0/30
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:19 buckets:1 uRPF:20 to:[140:13440] 
via:[10:960]]
[0] [@6]: ipv4 [features] via 0.0.0.0 gre2001: mtu:9000 
4500fe2f2f10c61200cfc61200cb0800
stacked-on entry:17:
  [@5]: arp-ipv4: via 10.10.20.1 G0
10.10.25.0/30
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:24 buckets:1 uRPF:26 to:[140:13440] 
via:[10:960]]
[0] [@6]: ipv4 [features] via 0.0.0.0 gre2002: mtu:9000 
4500fe2f2f0dc61200cfc61200ce0800
stacked-on entry:22:
  [@5]: arp-ipv4: via 10.10.20.1 G0
198.18.0.203/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:18 buckets:1 uRPF:58 to:[0:0]]
[0] [@3]: arp-ipv4: via 10.10.20.1 G0
198.18.0.205/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:13 buckets:1 uRPF:58 to:[0:0]]
[0] [@3]: arp-ipv4: via 10.10.20.1 G0
198.18.0.206/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:23 buckets:1 uRPF:58 to:[0:0]]
[0] [@3]: arp-ipv4: via 10.10.20.1 G0
198.18.0.207/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:29 buckets:1 uRPF:33 to:[38:4560]]
[0] [@2]: dpo-receive: 198.18.0.207 on loop2003

vpp# show fib entry 17 
17@198.18.0.203/32 fib:0 index:17 locks:4
  src:API refs:1 src-flags:added,contributing,active,
path-list:[63] locks:6 flags:shared, uPRF-list:58 len:1 itfs:[1, ]
  path:[88] pl-index:63 ip4 weight=1 pref=0 attached-nexthop:  
oper-flags:resolved,
10.10.20.1 G0
  [@0]: arp-ipv4: via 10.10.20.1 G0

  src:recursive-resolution refs:1 src-flags:added, cover:-1

 forwarding:   unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:18 buckets:1 uRPF:58 to:[0:0]]
[0] [@3]: arp-ipv4: via 10.10.20.1 G0
 Delegates:
  track: sibling:29
  Children:{adj:11}{adj:2}
 Children:{fib-entry-track:4}
vpp# show fib en
entry   entry-delegate  
vpp# show fib entry 22 
22@198.18.0.206/32 fib:0 index:22 locks:4
  src:API refs:1 src-flags:added,contributing,active,
path-list:[63] locks:6 flags:shared, uPRF-list:58 len:1 itfs:[1, ]
  path:[88] pl-index:63 ip4 weight=1 pref=0 attached-nexthop:  
oper-flags:resolved,
10.10.20.1 G0
  [@0]: arp-ipv4: via 10.10.20.1 G0

  src:recursive-resolution refs:1 src-flags:added, cover:-1

 forwarding:   unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:23 buckets:1 uRPF:58 to:[0:0]]
[0] [@3]: arp-ipv4: via 10.10.20.1 G0
 Delegates:
  track: sibling:39
  Children:{adj:14}{adj:3}
 Children:{fib-entry-track:6}
vpp# show ip fib 0.0.0.0/0 
ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto ] 
locks:[src:plugin-hi:2, src:adjacency:2, src:recursive-resolution:3, 
src:default-route:1, src:(nil):1, ]
0.0.0.0/0 fib:0 index:0 locks:3
  src:API refs:1 src-flags:added,contributing,active,
path-list:[62] locks:8 flags:shared, uPRF-list:65 len:2 itfs:[1, 2, ]
  path:[87] pl-index:62 ip4 weight=1 pref=0 recursive:  oper-flags:resolved,
via 10.120.0.253 in fib:0 via-fib:46 via-dpo:[dpo-load-balance:48]
  path:[86] pl-index:62 ip4 weight=1 pref=20 recursive:  
oper-flags:resolved,
via 10.10.20.1 in fib:0 via-fib:42 via-dpo:[dpo-load-balance:44]

  src:default-route refs:1 entry-flags:drop, src-flags:added,
path-list:[0] locks:1 flags:drop, uPRF-list:0 len:0 itfs:[]
  path:[0] pl-index:0 ip4 weight=1 pref=0 special:  cfg-flags:drop,
[@0]: dpo-drop ip4

 forwarding:   unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:65 to:[524:183432] 
via:[1737:80008]]
[0] [@13]: dpo-load-balance: [proto:ip4 index:48 buckets:1 uRPF:62 to:[0:0] 
via:[1816:84791]]
  [0] [@5]: ipv4 via 10.120.0.253 G0: mtu:9000 
eeff00163e002e8f0800



From: Neale Ranns
Date: 2022-07-26 06:02
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] questions about fib
 
Hi,
 
Before I answer can you please elaborate on what you mean by ‘stacked on’. Can 
you please give the config example.
 
/neale
 
From: vpp-dev@lists.fd.io  on behalf of 
haiyan...@ilinkall.cn via lists.fd.io 
Date: Monday, 25 July 2022 at 11:12
To: vpp-dev 
Subject: [vpp-dev] questions about fib
Hello  vpps
 
1. first we add a default route using api like this:
ip route add 0.0.0.0/0 via 10.121.20.1 weight 1 preference 20 
 
2.  than add some other routes which will stacked on default route above
 
3. add another defalut route using api with same weight value but higher 
priority (lower preference value) like this:
 ip route add 0.0.0.0/0 via 1

[vpp-dev] questions about fib

2022-07-24 Thread haiyan...@ilinkall.cn
Hello  vpps

1. first we add a default route using api like this:
ip route add 0.0.0.0/0 via 10.121.20.1 weight 1 preference 20 

2.  than add some other routes which will stacked on default route above

3. add another defalut route using api with same weight value but higher 
priority (lower preference value) like this:
 ip route add 0.0.0.0/0 via 10.120.0.253 weight 1 preference 0 

my question is: when the third step completed, does routes added by step 2 will 
stacked on the new default routes added by step 3?

actually the default route added by step 3 is correct. 

 I think step 3 route is higher priority than step 1, when it's added, it will 
back forward to all its children, am i right ? or did i miss something ? 

Thanks very much .



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21718): https://lists.fd.io/g/vpp-dev/message/21718
Mute This Topic: https://lists.fd.io/mt/92596414/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] how BIRD routes integrate into vpp

2022-06-08 Thread haiyan...@ilinkall.cn
Thanks very much, now my vpp and bird could work together. 

 we hope some routes that BGP received  not be added to kernel route table, so 
that the default kernel table won't be impacted, meanwhile we hope these routes 
to be added to vpp.

we have tried several methods, none could acheive this goal, do you have any 
suggestions?  




haiyan...@ilinkall.cn
 
From: Pim van Pelt
Date: 2022-04-24 16:56
To: haiyan...@ilinkall.cn
CC: vpp-dev
Subject: Re: [vpp-dev] how BIRD routes integrate into vpp
Hoi,

20.01 is somewhat old. Synchronizing routes from bird or frr is possible, 
although you'll want to run Linux Control Plane plugin (pertinent gerrit: 
https://gerrit.fd.io/r/c/vpp/+/31122) which was merged in time for the last 
release 21.10. I wrote a set of articles on the Linux CP plugin here: 
https://ipng.ch/s/articles/  (see the 7 posts marked "VPP Linux CP" for lots of 
background). You could try to compile the plugin on 20.01 but I'm certain 
you'll have to make some changes on your own, as the codebase has evolved quite 
a bit since your 20.01 release from 2020.

You can also take a look at a screencast I made that shows the plugin (that 
reads exactly from Bird as you wish): https://asciinema.org/a/432943

groet,
Pim

On Sun, Apr 24, 2022 at 9:32 AM haiyan...@ilinkall.cn  
wrote:
Dear All:
 
I'm going to use BIRD(BGP) working together with VPP, but how can I synchronize 
BIRD routes to VPP, any suggestions or reference? 

VPP version is 20.01,  try not to update VPP to new version as possible as we 
can .





-- 
Pim van Pelt  
PBVP1-RIPE - http://www.ipng.nl/

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21510): https://lists.fd.io/g/vpp-dev/message/21510
Mute This Topic: https://lists.fd.io/mt/90661567/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] VPP host stack or TLDK

2022-05-29 Thread haiyan...@ilinkall.cn
Hi vpp experts:

we plan to perform mptcp function in vpp, so we compare vpp host stack and 
TLDK, which one is better?  and what's the difference between them?  

I see that the TLDK latest updated date is about two years ago, is it still 
available? 


thanks 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21482): https://lists.fd.io/g/vpp-dev/message/21482
Mute This Topic: https://lists.fd.io/mt/91422140/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] how BIRD routes integrate into vpp

2022-04-24 Thread haiyan...@ilinkall.cn
Dear All:
 
I'm going to use BIRD(BGP) working together with VPP, but how can I synchronize 
BIRD routes to VPP, any suggestions or reference? 

VPP version is 20.01,  try not to update VPP to new version as possible as we 
can .

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21280): https://lists.fd.io/g/vpp-dev/message/21280
Mute This Topic: https://lists.fd.io/mt/90661567/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] about in/out arguments in "set interface nat44 .."command

2022-03-14 Thread haiyan...@ilinkall.cn
Hi Filip,

There are two kinds of traffic in my test.
one is managing traffic, which will comes into vpp only from a tap interfaces, 
for example tap's ip address is 10.10.1.1/24. we need these traffic to do snat 
and out from G0
one is business traffic, which are gererated interlanfrom vpp, these traffic 
will not do snat and out from G0
Both the two kinds of traffic share the same outside interface G0 which could 
access the internet.

I have tried:
1. seperate managing traffic into different vrf, ...
2. add static mapping for local 10.10.1.x/24 external ,  ...

but both did not work.

can vpp achieve this goal?  any suggestions will be appreciated.




haiyan...@ilinkall.cn
 
From: Filip Varga -X (fivarga - PANTHEON TECH SRO at Cisco)
Date: 2022-03-12 02:27
To: haiyan...@ilinkall.cn; vpp-dev
Subject: RE: [vpp-dev] about in/out arguments in "set interface nat44 .."command
Hi Haiyan,
 
Can you please be more specific. For example what other traffic except from 
interface A and B will be passing (are there other interfaces involved) ? Using 
nat44-ed forwarding is a bit tricky. It let’s pass traffic without translation 
if a preexisting session isn’t found so this would mean only static mapping 
get’s translated. Forwarding feature is used for specific purposes when in 
mixed environments you have A configured as inside and also outside and B 
configured as inside and outside also.
 
Best regards,
Filip Varga
 
From: vpp-dev@lists.fd.io  On Behalf Of 
haiyan...@ilinkall.cn
Sent: Thursday, March 10, 2022 12:54 AM
To: vpp-dev 
Subject: [vpp-dev] about in/out arguments in "set interface nat44 .."command
 
Dear all
 
if only want traffic from interface A to interface B done with nat44, others 
will be directly out from interface B, is this possible? 
 
I did the following command in vpp, but did not work
nat44 forwarding enable 
nat44 add address 
set interface nat44 in A out B
 
Thanks 
 


haiyan...@ilinkall.cn

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21015): https://lists.fd.io/g/vpp-dev/message/21015
Mute This Topic: https://lists.fd.io/mt/89682456/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



回复: Re: [vpp-dev] route between two vrfs does not work

2022-03-10 Thread haiyan...@ilinkall.cn
Hi Filip,

There comes another issue, traffic from VRF1's other interface could not be out 
from VRF1 interface with public ip address.  how can i make this work ? 

add my cli command in previous message below

Thanks.



haiyan...@ilinkall.cn
 
发件人: 李海艳
发送时间: 2022-03-09 11:03
收件人: Filip Varga -X (fivarga - PANTHEON TECH SRO at Cisco); vpp-dev
主题: Re: RE: [vpp-dev] route between two vrfs does not work
Hi Filip,

Great thanks,  that did work. Now VRF2 can reach internet through VRF1's 
outside interface. 



haiyan...@ilinkall.cn
 
From: Filip Varga -X (fivarga - PANTHEON TECH SRO at Cisco)
Date: 2022-03-09 05:01
To: haiyan...@ilinkall.cn; vpp-dev
Subject: RE: [vpp-dev] route between two vrfs does not work
Hi Haiyan,
 
VRF for nat44-ed and nat44-ei works as follows:
 
Scenario 2 VRF’s. VRF1 can reach the internet, VRF2 can’t.
 
1)
Enable nat44-ed plugin.

lhy: nat44 forwarding enable
 
2)
VRF1:
Configure public facing interface to be used as outside interface for nat44-ed 
plugin.
lhy: set interface nat44 out G0 output-feature
 
VRF2:
Configure one or all interface (that you want to be able to communicate with 
public IP addresses) as inside interface[s] for nat44-ed plugin.

lhy: set interface nat44 in tap300
lhy: set interface ip table tap300 VRF2
 
3)
Configure nat44-ed address range for VRF2.

lhy: nat44 add address  tenant-vrf VRF2
 
tenant-vrf parameter is used to tell nat for which source VRF the address 
should be used for translation. So in this scenario we need it to be VRF2.
 
Best regards,
Filip Varga
 
From: vpp-dev@lists.fd.io  On Behalf Of 
haiyan...@ilinkall.cn
Sent: Tuesday, March 8, 2022 1:06 AM
To: vpp-dev 
Subject: [vpp-dev] route between two vrfs does not work
 
 
Dear all 
 
my test uses two vrfs in vpp:
vrf A: interface(G0) with pulic ip address(172.16.0.73/24) exists,and i  also 
did "nat44 add address xxx tenant-vrf A"/"set interface nat44 out G0 
output-feature"/"nat44 forwarding enable" 
vrf B: there is no public ip address, so need to access the internet through 
vfr A interface G0, so i did "ip route add 172.16.0.47/32 table B via 0.0.0.0 
next-hop-table A",but that does not work.
do I missing something or any suggestion ?
detail configurations shows below: 
vpp# show version 
vpp v20.01-natt~82-g061bec7 built by root on localhost.localdomain at 2022年 03月 
07日 星期一 16:04:34 CST
vpp# 
vpp# 
vpp# show nat
natnat44  nat64  nat66  
vpp# show interface addr 
G0 (up):
  L3 172.16.0.73/24 ip4 table-id 1 fib-idx 1
G1 (up):
  L2 bridge bd-id 1 idx 1 shg 0  
local0 (dn):
loop21 (up):
  L2 bridge bd-id 1 idx 1 shg 0 bvi
  L3 192.168.1.1/24
tap10 (up):
  L3 10.10.1.1/24 ip4 table-id 1 fib-idx 1
tap20 (up):
  L2 bridge bd-id 1 idx 1 shg 0  
vpp# 
vpp# show ip fib   
ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto ] 
locks:[src:plugin-hi:2, src:adjacency:1, src:default-route:1, ]
0.0.0.0/0
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:0 to:[101:8484]]
[0] [@0]: dpo-drop ip4
0.0.0.0/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]]
[0] [@0]: dpo-drop ip4
172.16.0.47/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:33 buckets:1 uRPF:38 
to:[2220:186480]]
[0] [@13]: dst-address,unicast lookup in ipv4-VRF:1
192.168.1.0/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:27 buckets:1 uRPF:32 to:[0:0]]
[0] [@0]: dpo-drop ip4
192.168.1.0/24
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:26 buckets:1 uRPF:31 to:[10:960]]
[0] [@4]: ipv4-glean: loop21: mtu:9000 dead00150806
192.168.1.1/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:29 buckets:1 uRPF:36 to:[10:900]]
[0] [@2]: dpo-receive: 192.168.1.1 on loop21
192.168.1.200/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:30 buckets:1 uRPF:35 to:[5:480] 
via:[22:1848]]
[0] [@5]: ipv4 via 192.168.1.200 loop21: mtu:9000 
8a48fe5830d9dead00150800
192.168.1.255/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:28 buckets:1 uRPF:34 to:[0:0]]
[0] [@0]: dpo-drop ip4
224.0.0.0/4
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]]
[0] [@0]: dpo-drop ip4
240.0.0.0/4
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]]
[0] [@0]: dpo-drop ip4
255.255.255.255/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]]
[0] [@0]: dpo-drop ip4
ipv4-VRF:1, fib_index:1, flow hash:[src dst sport dport proto ] 
locks:[src:CLI:3, src:plugin-low:1, src:adjacency:8, 
src:recursive-resolution:1, ]
0.0.0.0/0
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:9 buckets:1 uRPF:20 to:[10:2415]]
[0] [@5]: ipv4 via 172.16.0.1 G0: mtu:9000 8446fe747dd4a0369f75ba8a0800
0.0.0.0/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:10 buc

[vpp-dev] about in/out arguments in "set interface nat44 .."command

2022-03-10 Thread haiyan...@ilinkall.cn
Dear all

if only want traffic from interface A to interface B done with nat44, others 
will be directly out from interface B, is this possible? 

I did the following command in vpp, but did not work
nat44 forwarding enable 
nat44 add address 
set interface nat44 in A out B

Thanks 



haiyan...@ilinkall.cn

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20998): https://lists.fd.io/g/vpp-dev/message/20998
Mute This Topic: https://lists.fd.io/mt/89682456/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] route between two vrfs does not work

2022-03-08 Thread haiyan...@ilinkall.cn
Hi Filip,

Great thanks,  that did work. Now VRF2 can reach internet through VRF1's 
outside interface. 



haiyan...@ilinkall.cn
 
From: Filip Varga -X (fivarga - PANTHEON TECH SRO at Cisco)
Date: 2022-03-09 05:01
To: haiyan...@ilinkall.cn; vpp-dev
Subject: RE: [vpp-dev] route between two vrfs does not work
Hi Haiyan,
 
VRF for nat44-ed and nat44-ei works as follows:
 
Scenario 2 VRF’s. VRF1 can reach the internet, VRF2 can’t.
 
1)
Enable nat44-ed plugin.
 
2)
VRF1:
Configure public facing interface to be used as outside interface for nat44-ed 
plugin.
 
VRF2:
Configure one or all interface (that you want to be able to communicate with 
public IP addresses) as inside interface[s] for nat44-ed plugin.
 
3)
Configure nat44-ed address range for VRF2.
 
tenant-vrf parameter is used to tell nat for which source VRF the address 
should be used for translation. So in this scenario we need it to be VRF2.
 
Best regards,
Filip Varga
 
From: vpp-dev@lists.fd.io  On Behalf Of 
haiyan...@ilinkall.cn
Sent: Tuesday, March 8, 2022 1:06 AM
To: vpp-dev 
Subject: [vpp-dev] route between two vrfs does not work
 
 
Dear all 
 
my test uses two vrfs in vpp:
vrf A: interface(G0) with pulic ip address(172.16.0.73/24) exists,and i  also 
did "nat44 add address xxx tenant-vrf A"/"set interface nat44 out G0 
output-feature"/"nat44 forwarding enable" 
vrf B: there is no public ip address, so need to access the internet through 
vfr A interface G0, so i did "ip route add 172.16.0.47/32 table B via 0.0.0.0 
next-hop-table A",but that does not work.
do I missing something or any suggestion ?
detail configurations shows below: 
vpp# show version 
vpp v20.01-natt~82-g061bec7 built by root on localhost.localdomain at 2022年 03月 
07日 星期一 16:04:34 CST
vpp# 
vpp# 
vpp# show nat
natnat44  nat64  nat66  
vpp# show interface addr 
G0 (up):
  L3 172.16.0.73/24 ip4 table-id 1 fib-idx 1
G1 (up):
  L2 bridge bd-id 1 idx 1 shg 0  
local0 (dn):
loop21 (up):
  L2 bridge bd-id 1 idx 1 shg 0 bvi
  L3 192.168.1.1/24
tap10 (up):
  L3 10.10.1.1/24 ip4 table-id 1 fib-idx 1
tap20 (up):
  L2 bridge bd-id 1 idx 1 shg 0  
vpp# 
vpp# show ip fib   
ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto ] 
locks:[src:plugin-hi:2, src:adjacency:1, src:default-route:1, ]
0.0.0.0/0
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:0 to:[101:8484]]
[0] [@0]: dpo-drop ip4
0.0.0.0/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]]
[0] [@0]: dpo-drop ip4
172.16.0.47/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:33 buckets:1 uRPF:38 
to:[2220:186480]]
[0] [@13]: dst-address,unicast lookup in ipv4-VRF:1
192.168.1.0/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:27 buckets:1 uRPF:32 to:[0:0]]
[0] [@0]: dpo-drop ip4
192.168.1.0/24
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:26 buckets:1 uRPF:31 to:[10:960]]
[0] [@4]: ipv4-glean: loop21: mtu:9000 dead00150806
192.168.1.1/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:29 buckets:1 uRPF:36 to:[10:900]]
[0] [@2]: dpo-receive: 192.168.1.1 on loop21
192.168.1.200/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:30 buckets:1 uRPF:35 to:[5:480] 
via:[22:1848]]
[0] [@5]: ipv4 via 192.168.1.200 loop21: mtu:9000 
8a48fe5830d9dead00150800
192.168.1.255/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:28 buckets:1 uRPF:34 to:[0:0]]
[0] [@0]: dpo-drop ip4
224.0.0.0/4
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]]
[0] [@0]: dpo-drop ip4
240.0.0.0/4
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]]
[0] [@0]: dpo-drop ip4
255.255.255.255/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]]
[0] [@0]: dpo-drop ip4
ipv4-VRF:1, fib_index:1, flow hash:[src dst sport dport proto ] 
locks:[src:CLI:3, src:plugin-low:1, src:adjacency:8, 
src:recursive-resolution:1, ]
0.0.0.0/0
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:9 buckets:1 uRPF:20 to:[10:2415]]
[0] [@5]: ipv4 via 172.16.0.1 G0: mtu:9000 8446fe747dd4a0369f75ba8a0800
0.0.0.0/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:10 buckets:1 uRPF:8 to:[0:0]]
[0] [@0]: dpo-drop ip4
10.10.1.0/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:20 buckets:1 uRPF:22 to:[0:0]]
[0] [@0]: dpo-drop ip4
10.10.1.0/24
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:19 buckets:1 uRPF:21 to:[0:0]]
[0] [@4]: ipv4-glean: tap10: mtu:9000 02fedd9ceb9b0806
10.10.1.1/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:22 buckets:1 uRPF:26 to:[0:0]]
[0] [@2]: dpo-receive: 10.10.1.1 on tap10
10.10.1.100/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:25 buckets:1 

[vpp-dev] route between two vrfs does not work

2022-03-08 Thread haiyan...@ilinkall.cn
0: mtu:9000 1063c8ed8695a0369f75ba8a0800
172.16.0.47/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:31 buckets:1 uRPF:37 
to:[2239:188184]]
[0] [@5]: ipv4 via 172.16.0.47 G0: mtu:9000 ccd39d9eada5a0369f75ba8a0800
172.16.0.65/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:34 buckets:1 uRPF:40 to:[0:0]]
[0] [@5]: ipv4 via 172.16.0.65 G0: mtu:9000 e4aaeab4c36ba0369f75ba8a0800
172.16.0.0/24
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:14 buckets:1 uRPF:13 to:[1:96] 
via:[2:128]]
[0] [@4]: ipv4-glean: G0: mtu:9000 a0369f75ba8a0806
172.16.0.73/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:17 buckets:1 uRPF:18 to:[88:5368] 
via:[17:1428]]
[0] [@2]: dpo-receive: 172.16.0.73 on G0
172.16.0.98/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:24 buckets:1 uRPF:27 
to:[1790:329506]]
[0] [@5]: ipv4 via 172.16.0.98 G0: mtu:9000 309c239595e7a0369f75ba8a0800
172.16.0.255/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:16 buckets:1 uRPF:16 
to:[1017:132666]]
[0] [@0]: dpo-drop ip4
224.0.0.0/4
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:12 buckets:1 uRPF:10 to:[0:0]]
[0] [@0]: dpo-drop ip4
240.0.0.0/4
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:11 buckets:1 uRPF:9 to:[0:0]]
[0] [@0]: dpo-drop ip4
255.255.255.255/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:13 buckets:1 uRPF:11 to:[792:276399]]
[0] [@0]: dpo-drop ip4



haiyan...@ilinkall.cn

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20977): https://lists.fd.io/g/vpp-dev/message/20977
Mute This Topic: https://lists.fd.io/mt/89633305/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] [ip punt redirect] redirect ssh traffic on vpp interface to linux host

2021-11-28 Thread haiyan...@ilinkall.cn
Dear vpp experts,

To perform the subject described, I did as this document said 
https://lists.fd.io/g/vpp-dev/message/17806, but could not redirect ssh traffic 
to linux host, could someone kindly show me the detail configuration?

if I configure linux tap0 interface the same ip/mac address with vpp nic, how 
to configure vpp tap0 interface? 

Thanks.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20547): https://lists.fd.io/g/vpp-dev/message/20547
Mute This Topic: https://lists.fd.io/mt/87372925/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] how to understand vpp "show runtime" command?

2021-11-23 Thread haiyan...@ilinkall.cn

Hi, vpp experts,
 
I test vpp multithread case, each thread with one cpu core, with linux "top" 
command,  I can see used cpu reached 100%. really confused if cpu still can 
process more work. 

someone said that vpp command "show runtime" could do this, but I could not 
fully understand these arguments, is there some documents can be referenced , 
or someone kindly explain it for me, any suggestion will be appreciated.


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20533): https://lists.fd.io/g/vpp-dev/message/20533
Mute This Topic: https://lists.fd.io/mt/87274484/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] how to enable avx512 for all plugins and drivers?

2021-11-07 Thread haiyan...@ilinkall.cn
I'm using vpp 20.01, is there any way that I can enable it manually ?



haiyan...@ilinkall.cn
 
From: Damjan Marion via lists.fd.io
Date: 2021-11-05 22:25
To: haiyan.li
CC: vpp-dev
Subject: Re: [vpp-dev] how to enable avx512 for all plugins and drivers?

Based on your output looks like you are using quite old version of vpp.
In the recent versions of VPP AVX-512 instructions are used automatically if 
CPU supports them…

— 
Damjan

On 05.11.2021., at 10:52, haiyan...@ilinkall.cn wrote:

 

Dear vpp group:

   I changed dpdk-input node to avx512 as this message said 
"vpp-dev@lists.fd.io | A question about enable AVX512 instruction in VPP", but 
others still uses avx2 as below
so how could i enable it for all the plugins and all the drivers? Thanks for 
any reply






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20442): https://lists.fd.io/g/vpp-dev/message/20442
Mute This Topic: https://lists.fd.io/mt/86836650/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] how to enable avx512 for all plugins and drivers?

2021-11-05 Thread haiyan...@ilinkall.cn

Dear vpp group:

   I changed dpdk-input node to avx512 as this message said 
"vpp-dev@lists.fd.io | A question about enable AVX512 instruction in VPP", but 
others still uses avx2 as below
so how could i enable it for all the plugins and all the drivers? Thanks for 
any reply



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20435): https://lists.fd.io/g/vpp-dev/message/20435
Mute This Topic: https://lists.fd.io/mt/86836650/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-