[FROG] import vrf works in running config, but not after write mem and frr restart

Don Slice dslice at cumulusnetworks.com
Wed Dec 23 20:13:29 UTC 2020


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.

Don

On Wed, Dec 23, 2020 at 2:19 PM 0xbabaf00l <0xbabaf00l at gmail.com> wrote:

> Hi list,
>
> I'm trying to import routes from one VRF into my default VRF.
>
> This is my sample config:
>
> debian# show running-config
> Building configuration...
>
> Current configuration:
> !
> frr version 7.4
> frr defaults traditional
> hostname debian
> log syslog informational
> no ip forwarding
> no ipv6 forwarding
> service integrated-vtysh-config
> !
> router bgp 11111
>  !
>  address-family ipv4 unicast
>   network 1.1.1.0/24
>  exit-address-family
> !
> router bgp 22222 vrf red
>  !
>  address-family ipv4 unicast
>   network 2.2.2.0/24
>  exit-address-family
> !
> line vty
> !
> end
>
>
> Now I add the import:
>
> debian# conf t
> debian(config)# router bgp 11111
> debian(config-router)# address-family ipv4 unicast
> debian(config-router-af)# import vrf red
> debian(config-router-af)# end
>
>
> Everything works fine. ‘show running-configuration’ shows the correct
> config.
>
> Then I save the config and restart frr:
>
> debian# write mem
> Note: this version of vtysh never writes vtysh.conf
> Building Configuration...
> Integrated configuration saved to /etc/frr/frr.conf
> [OK]
> debian# exit
> root at debian:~# systemctl restart frr
> root at debian:~# vtysh
>
> Hello, this is FRRouting (version 7.4).
> Copyright 1996-2005 Kunihiro Ishiguro, et al.
>
> debian# sh ru
> Building configuration...
>
> Current configuration:
> !
> frr version 7.4
> frr defaults traditional
> hostname debian
> log syslog informational
> no ip forwarding
> no ipv6 forwarding
> service integrated-vtysh-config
> !
> router bgp 11111
>  !
>  address-family ipv4 unicast
>   network 1.1.1.0/24
>   import vrf red
>  exit-address-family
> !
> router bgp 11111 vrf red
> !
> line vty
> !
> end
>
>
> Why is the router bgp 22222 vrf red block now missing?
>
> As I said, this configuration worked fine until I saved it and restarted
> frr.
>
>
> Cheers,
> Sascha
>
> _______________________________________________
> frog mailing list
> frog at lists.frrouting.org
> https://lists.frrouting.org/listinfo/frog
>
-- 
Don Slice
Cumulus Networks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/frog/attachments/20201223/7342fcc2/attachment.htm>


More information about the frog mailing list