-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BGP for 6VPE with FRR version 7.3 #6382
Comments
This issue is resolved in BGP and ZEBRA. The output of the BGP table and RIB table is attached below. The BGP update issue is also resolved for 6VPE . 6VPE_bgp_update_packet.pcapng.zip Thanks, |
Regarding the issue brought up in the meeting today, linux does indeed support ipv6 with ipv4 nexthops via encoding the ipv4 inside a ipv6 nexthop. Looking at your ouput it seems somewhat correct?
i.e. linux supports this An issue you could also be running into though from the looks of it, is nexthop resolution is not properly re-encoding the nexthop it resolved to back into an ipv6 addresss. Now... all this assumes that the kernel mpls implementation ALSO supports this encoding... |
BUG No. FRRouting#6341 and FRRouting#6382 lib : Added a macro to validate the IPv4 Mapped IPv6 address. bgp : Modifications done for bgp receive and while sending updates for IPv4 Mapped IPv6 address. zebra : Modifications done for installing IPv4 Mapped IPv6 address as nexthop in RIB. Minor correction done in fpm while sending the routes for nexthop as IPv4 Mapped IPv6 address.
BUG No. FRRouting#6341 and FRRouting#6382 lib : Added a macro to validate the IPv4 Mapped IPv6 address. bgp : Modifications done for bgp receive and while sending updates for IPv4 Mapped IPv6 address. zebra : Modifications done for installing IPv4 Mapped IPv6 address as nexthop in RIB. Minor correction done in fpm while sending the routes for nexthop as IPv4 Mapped IPv6 address. Signed-off-by: Kaushik <kaushik@niralnetworks.com>
BUG No. FRRouting#6341 and FRRouting#6382 lib : Added a macro to validate the IPv4 Mapped IPv6 address. bgp : Modifications done for bgp receive and while sending updates for IPv4 Mapped IPv6 address. zebra : Modifications done for installing IPv4 Mapped IPv6 address as nexthop in RIB. Minor correction done in fpm while sending the routes for nexthop as IPv4 Mapped IPv6 address. Signed-off-by: Kaushik <kaushik@niralnetworks.com>
Closing this issue. It is fixed by PR #6821 |
Hi, by testing master, I fail to make this setup work.
I found out that if FRR is programmed to insert a V6 route to a V6 nexthop under the form of ipv4 mapped ipv6 address, and the ipv4 mapped ipv6 address is filled in in appropriate interface, it works for a connected route. |
Hi, has there been any progress on this? I have the exact same issue, I'm receiving routes via BGP and the nexthop is learned via IGP:
However, when I use the command |
@KaushikNiral , it would be nice that you share frr and your linux setup. |
FRR version 7.3
commit Id: c0038fc
We have been trying to use FRR as BGP for 6VPE. The BGP sessions were up and also received 6VPE routes from PE routers (Cisco router), however the FRR didn't show these received routes as valid and best path.
The topology diagram :-
On the PE routers, we configured MP-BGP to exchange IPv6 prefixes and the LSP (Label Switched Path) is based on IPv4.
The BGP configuration used in FRR router (PE 2) is :-
router bgp 234
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 234
neighbor 2.2.2.2 update-source 4.4.4.4
!
address-family ipv6 vpn
neighbor 2.2.2.2 activate
exit-address-family
!
router bgp 234 vrf vrfipv6
no bgp default ipv4-unicast
neighbor 3333::5 remote-as 5
!
address-family ipv6 unicast
redistribute connected
neighbor 3333::5 activate
label vpn export 107
rd vpn export 234:1
rt vpn both 1:1
export vpn
import vpn
exit-address-family
!
Expected behavior
The routes received from PE router should be installed on the bgp table and rib table.
The BGP update sent from FRR router (PE 2) must have nexthop as IPv4 mapped IPv6 address.
Screenshots
Please find the screenshot attached for
show bgp vrf <vrf-name>
Versions
The text was updated successfully, but these errors were encountered: