[FROG] import vrf <vrf_name> vs route-map match source-vrf <vrf_name>

Bing.S at dell.com Bing.S at dell.com
Thu Nov 14 13:39:42 EST 2019


Thanks Donald.

For the cmds under address-family, what is the significance of using "vpn", for example in option 1, 
route-map vpn import myMap,

Also for a VRF to import/export routes with its remote peers, is rd&rt (rd vpn export, rt vpn import/export) a must configuration?

Thanks,
Bing

-----Original Message-----
From: Donald Sharp <sharpd at cumulusnetworks.com> 
Sent: Thursday, November 14, 2019 4:26 AM
To: Sun, Bing
Cc: frog
Subject: Re: [FROG] import vrf <vrf_name> vs route-map match source-vrf <vrf_name>


[EXTERNAL EMAIL] 

the command `import vrf XXX` under the address family in bgp tells bgp to take the routes in vrf X that are in that afi safi and to import them into this bgp vrf afi safi.

the `match source-vrf XXX` command allows you to look at the originating vrf for when you are making a route-map decision.

donald

On Wed, Nov 13, 2019 at 9:19 PM <Bing.S at dell.com> wrote:
>
> Hi,
>
>
>
> Is there any difference between “import vrf <vrf_name>” and “match source-vrf <vrf_name>”
>
>
>
> For example
>
> route-map myMap permit 1
>
>         match ip address prefix-list p1
>
>
>
> option1:
>
>     having “match source-vrf” in the same myMap
>
>
>
>    route-map myMap permit 1
>
>         match ip address prefix-list p1
>
>         match source-vrf Vrf_red
>
>
>
>   for vrf_blue:
>
>        address-familiy ipv4 unicast
>
>                route-map vpn import myMap
>
>                rt vpn import 1111:11
>
>                import vpn
>
>
>
> option2:
>
>     do not have “match source-vrf” in the myMap
>
>
>
>        route-map myMap permit 1
>
>             match ip address prefix-list p1
>
>
>
>     for vrf_blue:
>
>
>
>         address-family ipv4 unicast
>
>                import vrf route-map myMap
>
>                import vrf Vrf_red
>
>
>
> What is the  difference in terms of routes filtering between the 2 options?
>
>
>
> Thanks,
>
> Bing
>
> _______________________________________________
> frog mailing list
> frog at lists.frrouting.org
> https://lists.frrouting.org/listinfo/frog


More information about the frog mailing list