<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On 23. Dec 2020, at 21:13, Don Slice <dslice@cumulusnetworks.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="auto">Do you need to use different ASNs for the different VRFs?  If not, change to the same ASN and see if you have better luck. There is work under way to support different ASNs for VRFs and default instance but not yet completed. </div></div></blockquote><div><br></div><div>At this point I‘m in the testing phase. I‘ve build a demo setup with Cumulus VX and some Linux VMs running frr. We plan to go live on real hardware In Q2/Q3 2021. So there is some time left to figure out.</div><div><br></div><div>We have to connect to two tenants. Each party expects us to use a private ASN in a certain range (both different).</div><div>My (maybe naive) approach was to create a VRF for each tenant with the required ASNs and import all routes from both VRFs into my default VRF and vice versa.</div><div><br></div><div>I discovered that frr does read the configuration correctly when first defining all the router bgp blocks with all the settings but without the imports and repeat the router bgp blocks at the bottom with only the import vrf commands.</div><div>We doing this, I cannot use vtysh to modify the config, because frr combines the settings, but when only modifying the frr.conf externally this seems to work.</div><div><br></div><div><br></div><div>Cheers,</div><div>Sascha </div><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div dir="auto"><br></div><div dir="auto">Don</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 23, 2020 at 2:19 PM 0xbabaf00l <<a href="mailto:0xbabaf00l@gmail.com">0xbabaf00l@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi list,<br>
<br>
I'm trying to import routes from one VRF into my default VRF.<br>
<br>
This is my sample config:<br>
<br>
debian# show running-config<br>
Building configuration...<br>
<br>
Current configuration:<br>
!<br>
frr version 7.4<br>
frr defaults traditional<br>
hostname debian<br>
log syslog informational<br>
no ip forwarding<br>
no ipv6 forwarding<br>
service integrated-vtysh-config<br>
!<br>
router bgp 11111<br>
 !<br>
 address-family ipv4 unicast<br>
  network <a href="http://1.1.1.0/24" rel="noreferrer" target="_blank">1.1.1.0/24</a><br>
 exit-address-family<br>
!<br>
router bgp 22222 vrf red<br>
 !<br>
 address-family ipv4 unicast<br>
  network <a href="http://2.2.2.0/24" rel="noreferrer" target="_blank">2.2.2.0/24</a><br>
 exit-address-family<br>
!<br>
line vty<br>
!<br>
end<br>
<br>
<br>
Now I add the import:<br>
<br>
debian# conf t<br>
debian(config)# router bgp 11111<br>
debian(config-router)# address-family ipv4 unicast<br>
debian(config-router-af)# import vrf red<br>
debian(config-router-af)# end<br>
<br>
<br>
Everything works fine. ‘show running-configuration’ shows the correct config.<br>
<br>
Then I save the config and restart frr:<br>
<br>
debian# write mem<br>
Note: this version of vtysh never writes vtysh.conf<br>
Building Configuration...<br>
Integrated configuration saved to /etc/frr/frr.conf<br>
[OK]<br>
debian# exit<br>
root@debian:~# systemctl restart frr<br>
root@debian:~# vtysh<br>
<br>
Hello, this is FRRouting (version 7.4).<br>
Copyright 1996-2005 Kunihiro Ishiguro, et al.<br>
<br>
debian# sh ru<br>
Building configuration...<br>
<br>
Current configuration:<br>
!<br>
frr version 7.4<br>
frr defaults traditional<br>
hostname debian<br>
log syslog informational<br>
no ip forwarding<br>
no ipv6 forwarding<br>
service integrated-vtysh-config<br>
!<br>
router bgp 11111<br>
 !<br>
 address-family ipv4 unicast<br>
  network <a href="http://1.1.1.0/24" rel="noreferrer" target="_blank">1.1.1.0/24</a><br>
  import vrf red<br>
 exit-address-family<br>
!<br>
router bgp 11111 vrf red<br>
!<br>
line vty<br>
!<br>
end<br>
<br>
<br>
Why is the router bgp 22222 vrf red block now missing?<br>
<br>
As I said, this configuration worked fine until I saved it and restarted frr.<br>
<br>
<br>
Cheers,<br>
Sascha<br>
<br>
_______________________________________________<br>
frog mailing list<br>
<a href="mailto:frog@lists.frrouting.org" target="_blank">frog@lists.frrouting.org</a><br>
<a href="https://lists.frrouting.org/listinfo/frog" rel="noreferrer" target="_blank">https://lists.frrouting.org/listinfo/frog</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Don Slice<div>Cumulus Networks</div></div></div>
</div></blockquote></body></html>