Hi Folks,
I was able to get the VPP tap interface working and FRR/BGP session got
established through the tap interface. This path seems working. Though I
couldn't get the VPP netlink sync working with to get the external routes
synced from Kernel routing table to the VPP FIB PD table.
I am guessing the external BGP route points to dev vpp interface this netlink
sync won't work, is that correct assumption? How to make this working, is the
default gw needs to be accessed through one of the VPP interface?
* 172.22.1.0/24 via 10.176.192.1 dev eno1 proto zebra metric 20
vpp# show in
inacl init-function interface
vpp# show interface
Name Idx State MTU (L3/IP4/IP6/MPLS)
Counter Count
TenGigabitEthernet7/0/0 1 up 9000/0/0/0 drops
237
tx-error
240
TenGigabitEthernet7/0/1 2 up 9000/0/0/0 drops
434
tx-error
437
local0 0 down 0/0/0/0 drops
6
loop0 3 up 9000/0/0/0 tx packets
862
tx bytes
76100
drops
103
ip4
334
ip6
94
vpp# show tap
tap tap-inject
vpp# show tap-inject
loop0 -> vpp2
TenGigabitEthernet7/0/0 -> vpp0
TenGigabitEthernet7/0/1 -> vpp1
vpp#
vpp0 Link encap:Ethernet HWaddr 90:e2:ba:7c:cf:c8
inet addr:10.176.196.100 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::92e2:baff:fe7c:cfc8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:25236 (25.2 KB)
vpp1 Link encap:Ethernet HWaddr 90:e2:ba:7c:cf:c9
inet addr:10.176.190.4 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::92e2:baff:fe7c:cfc9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:434 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:38332 (38.3 KB)
vpp2 Link encap:Ethernet HWaddr de:ad:00:00:00:00
inet addr:172.16.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: fe80::dcad:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:329 errors:0 dropped:1 overruns:0 frame:0
TX packets:430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27169 (27.1 KB) TX bytes:38008 (38.0 KB)
root@Sanjeev:~# ifconfig | grep vpp
vpp0 Link encap:Ethernet HWaddr 90:e2:ba:7c:cf:c8
vpp1 Link encap:Ethernet HWaddr 90:e2:ba:7c:cf:c9
vpp2 Link encap:Ethernet HWaddr de:ad:00:00:00:00
root@Sanjeev:~#
root@Sanjeev:~# ip route
default via 10.176.192.1 dev eno1 onlink
10.176.190.0/24 dev ens1f0 proto kernel scope link src 10.176.190.3 linkdown
10.176.190.0/24 dev vpp1 proto kernel scope link src 10.176.190.4
10.176.192.0/20 dev eno1 proto kernel scope link src 10.176.196.83
10.176.196.0/24 dev ens1f1 proto kernel scope link src 10.176.196.102
linkdown
10.176.196.0/24 dev vpp0 proto kernel scope link src 10.176.196.100
169.254.0.0/16 dev eno1 scope link metric 1000
172.16.21.0/24 via 10.176.192.1 dev eno1
172.22.1.0/24 via 10.176.192.1 dev eno1 proto zebra metric 20
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
linkdown
root@Sanjeev:~# ip route | grep vpp
10.176.190.0/24 dev vpp1 proto kernel scope link src 10.176.190.4
10.176.196.0/24 dev vpp0 proto kernel scope link src 10.176.196.100
root@Sanjeev:~# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.176.192.1 0.0.0.0 UG 0 0 0 eno1
10.176.190.0 0.0.0.0 255.255.255.0 U 0 0 0 ens1f0
10.176.190.0 0.0.0.0 255.255.255.0 U 0 0 0 vpp1
10.176.192.0 0.0.0.0 255.255.240.0 U 0 0 0 eno1
10.176.196.0 0.0.0.0 255.255.255.0 U 0 0 0 ens1f1
10.176.196.0 0.0.0.0 255.255.255.0 U 0 0 0 vpp0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eno1
172.16.21.0 10.176.192.1 255.255.255.0 UG 0 0 0 eno1
172.22.1.0 10.176.192.1 255.255.255.0 UG 0 0 0 eno1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
root@Sanjeev:~#
router bgp 65010
bgp router-id 10.176.196.100
bgp log-neighbor-changes
timers bgp 2 6
neighbor 172.16.21.109 remote-as 65010
!
address-family ipv4 unicast
network 172.23.1.0/24
exit-address-family
vnc defaults
response-lifetime 3600
exit-vnc
!
Sanjeev# sh ip bgp summary
IPv4 Unicast Summary:
BGP router identifier 10.176.196.100, local AS number 65010 vrf-id 0
BGP table version 10
RIB entries 3, using 408 bytes of memory
Peers 1, using 21 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
172.16.21.109 4 65010 1098 1103 0 0 0 00:26:12
1
Total number of neighbors 1
Sanjeev# sh ip bgp
BGP table version is 10, local router ID is 10.176.196.100
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i172.22.1.0/24 172.16.21.109 0 100 0 i
*> 172.23.1.0/24 0.0.0.0 0 32768 i
Displayed 2 routes and 2 total paths
Sanjeev#
Thanks,
Kausik
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15710): https://lists.fd.io/g/vpp-dev/message/15710
Mute This Topic: https://lists.fd.io/mt/71842458/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-