<div dir="ltr">Hello,<div><br></div><div>Thanks, for filing the issue.</div><div><br></div><div>I've sumbitted a "feature request".</div><div>URL: <a href="https://github.com/FRRouting/frr/issues/2750">https://github.com/FRRouting/frr/issues/2750</a></div><div><br></div><div>Thank you agaiin</div><div><br></div><div>Regards</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 24, 2018 at 3:50 PM Renato Westphal <<a href="mailto:renato@opensourcerouting.org">renato@opensourcerouting.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, this is the expected behavior since our BGP-LU implementation<br>
doesn't support dynamically assigned labels yet. I'll file an issue to<br>
keep track of this problem.<br>
<br>
Regards,<br>
Renato.<br>
<br>
On Tue, Jul 24, 2018 at 5:43 AM, Marco Marzetti <<a href="mailto:marco@lamehost.it" target="_blank">marco@lamehost.it</a>> wrote:<br>
> Hello Renato,<br>
><br>
> "redistribute connected" works along with static label bindings.<br>
> Thanks!<br>
><br>
> But my original plan was to redistribute OSPF to BGP-LU .<br>
> Is that supported?<br>
><br>
> I tried to setup a small OSPF network and to run LDP on top of it.<br>
> Result is FRR is learning few labels:<br>
><br>
> frr# show mpls table<br>
>  Inbound                            Outbound<br>
>    Label     Type          Nexthop     Label<br>
> --------  -------  ---------------  --------<br>
>       16      LDP       192.0.2.10         3<br>
>       17      LDP       192.0.2.10        16<br>
>       18      LDP       192.0.2.10         3<br>
><br>
> frr# show ip route <a href="http://192.0.2.3/32" rel="noreferrer" target="_blank">192.0.2.3/32</a><br>
> Routing entry for <a href="http://192.0.2.3/32" rel="noreferrer" target="_blank">192.0.2.3/32</a><br>
>   Known via "ospf", distance 110, metric 111, best<br>
>   Last update 00:31:08 ago<br>
>   * 192.0.2.10, via eth1, label 16<br>
><br>
> frr# show mpls table 17<br>
> Local label: 17<br>
>  type: LDP remote label: 16 distance: 150<br>
>   via 192.0.2.10 dev eth1<br>
><br>
><br>
> BGP is configured to redistribute connected and OSPF<br>
> !<br>
> router bgp 64496<br>
>  no bgp default ipv4-unicast<br>
>  coalesce-time 1000<br>
>  neighbor 198.51.100.2 remote-as 64497<br>
>  !<br>
>  address-family ipv4 unicast<br>
>   redistribute connected<br>
>   redistribute ospf<br>
>  exit-address-family<br>
>  !<br>
>  address-family ipv4 labeled-unicast<br>
>   neighbor 198.51.100.2 activate<br>
>  exit-address-family<br>
> !<br>
> router ospf<br>
>  passive-interface lo<br>
> !<br>
><br>
> And i see prefixes in RIB:<br>
> frr# show bgp ipv4 unicast<br>
> BGP table version is 6, local router ID is 192.0.2.1<br>
> Status codes: s suppressed, d damped, h history, * valid, > best, =<br>
> multipath,<br>
>               i internal, r RIB-failure, S Stale, R Removed<br>
> Origin codes: i - IGP, e - EGP, ? - incomplete<br>
><br>
>    Network          Next Hop            Metric LocPrf Weight Path<br>
> *> <a href="http://192.0.2.1/32" rel="noreferrer" target="_blank">192.0.2.1/32</a>     0.0.0.0                  0         32768 ?<br>
> *> <a href="http://192.0.2.2/32" rel="noreferrer" target="_blank">192.0.2.2/32</a>     192.0.2.10             101         32768 ?<br>
> *> <a href="http://192.0.2.3/32" rel="noreferrer" target="_blank">192.0.2.3/32</a>     192.0.2.10             111         32768 ?<br>
> *> <a href="http://192.0.2.8/30" rel="noreferrer" target="_blank">192.0.2.8/30</a>     0.0.0.0                  0         32768 ?<br>
> *> <a href="http://192.0.2.12/30" rel="noreferrer" target="_blank">192.0.2.12/30</a>    192.0.2.10             110         32768 ?<br>
> *> <a href="http://198.51.100.0/30" rel="noreferrer" target="_blank">198.51.100.0/30</a>  0.0.0.0                  0         32768 ?<br>
><br>
> Displayed  6 routes and 6 total paths<br>
> frr# show bgp ipv4 labeled-unicast<br>
> No BGP prefixes displayed, 0 exist<br>
> frr#<br>
><br>
> But the only one that is advertised to 198.51.100.2 is <a href="http://192.0.2.1/32" rel="noreferrer" target="_blank">192.0.2.1/32</a><br>
> (connected) and only when i set static bindings:<br>
> mpls label bind <a href="http://192.0.2.1/32" rel="noreferrer" target="_blank">192.0.2.1/32</a> 100<br>
> mpls label global-block 16 1000<br>
><br>
> Thank you<br>
><br>
> Regards<br>
><br>
><br>
> On Mon, Jul 23, 2018 at 10:01 PM Renato Westphal<br>
> <<a href="mailto:renato@opensourcerouting.org" target="_blank">renato@opensourcerouting.org</a>> wrote:<br>
>><br>
>> You need to configure static MPLS bindings for the connected routes.<br>
>><br>
>> Please try this:<br>
>>   mpls label global-block 16 1000<br>
>>   mpls label bind <a href="http://192.0.2.8/32" rel="noreferrer" target="_blank">192.0.2.8/32</a> 101<br>
>>   mpls label bind <a href="http://192.0.2.2/30" rel="noreferrer" target="_blank">192.0.2.2/30</a> 102<br>
>><br>
>> On Mon, Jul 23, 2018 at 4:59 PM, Renato Westphal<br>
>> <<a href="mailto:renato@opensourcerouting.org" target="_blank">renato@opensourcerouting.org</a>> wrote:<br>
>> > You need to configure static MPLS bindings for the connected routes.<br>
>> > Please try this:<br>
>> ><br>
>> ><br>
>> > On Mon, Jul 23, 2018 at 4:54 PM, Marco Marzetti <<a href="mailto:marco@lamehost.it" target="_blank">marco@lamehost.it</a>><br>
>> > wrote:<br>
>> >> Hello Renato,<br>
>> >><br>
>> >> Are you sure about that?<br>
>> >><br>
>> >> Configuration is:<br>
>> >> !<br>
>> >> interface eth0<br>
>> >>  ip address <a href="http://192.0.2.2/30" rel="noreferrer" target="_blank">192.0.2.2/30</a><br>
>> >> !<br>
>> >> interface lo<br>
>> >>  ip address <a href="http://192.0.2.8/32" rel="noreferrer" target="_blank">192.0.2.8/32</a><br>
>> >> !<br>
>> >> router bgp 64497<br>
>> >>  no bgp default ipv4-unicast<br>
>> >>  coalesce-time 1000<br>
>> >>  neighbor 192.0.2.1 remote-as 64496<br>
>> >>  !<br>
>> >>  address-family ipv4 unicast<br>
>> >>   network <a href="http://192.0.2.8/32" rel="noreferrer" target="_blank">192.0.2.8/32</a><br>
>> >>   redistribute connected<br>
>> >>  exit-address-family<br>
>> >>  !<br>
>> >>  address-family ipv4 labeled-unicast<br>
>> >>   neighbor 192.0.2.1 activate<br>
>> >>  exit-address-family<br>
>> >> !<br>
>> >><br>
>> >> And 192.0.2.1 is not receiving any routes<br>
>> >><br>
>> >> Regards<br>
>> >><br>
>> >> Marco<br>
>> >><br>
>> >> On Mon, Jul 23, 2018 at 6:18 PM Renato Westphal<br>
>> >> <<a href="mailto:renato@opensourcerouting.org" target="_blank">renato@opensourcerouting.org</a>> wrote:<br>
>> >>><br>
>> >>> Hi Marco,<br>
>> >>><br>
>> >>> In the FRR BGP-LU implementation, both the unicast and labeled-unicast<br>
>> >>> SAFIs share the same routing table. So if you use the "network" and<br>
>> >>> "redistribute" commands under "address-family ipv4 unicast", the<br>
>> >>> redistributed routes will be assigned a local label if one is<br>
>> >>> configured in zebra (BGP-LU doesn't support dynamic labels yet).<br>
>> >>><br>
>> >>> Example:<br>
>> >>>   address-family ipv4 unicast<br>
>> >>>    network <a href="http://1.1.1.1/32" rel="noreferrer" target="_blank">1.1.1.1/32</a><br>
>> >>>    no neighbor 10.0.1.2 activate<br>
>> >>>   exit-address-family<br>
>> >>>   !<br>
>> >>>   address-family ipv4 labeled-unicast<br>
>> >>>    neighbor 10.0.1.2 activate<br>
>> >>>    exit-address-family<br>
>> >>>   !<br>
>> >>><br>
>> >>> Unfortunately we don't have documentation for BGP-LU yet since it's a<br>
>> >>> relatively new feature. In case it helps, here's my BGP-LU test<br>
>> >>> topology:<br>
>> >>> <a href="https://gist.github.com/rwestphal/9707df2ff6c2073c8b46a23e7d603859" rel="noreferrer" target="_blank">https://gist.github.com/rwestphal/9707df2ff6c2073c8b46a23e7d603859</a><br>
>> >>><br>
>> >>> Regards,<br>
>> >>> Renato.<br>
>> >>><br>
>> >>> On Fri, Jul 20, 2018 at 5:08 AM, Marco Marzetti <<a href="mailto:marco@lamehost.it" target="_blank">marco@lamehost.it</a>><br>
>> >>> wrote:<br>
>> >>> > Dear members of the group,<br>
>> >>> ><br>
>> >>> > I've noticed neither "redistribute" nor "network" commands are<br>
>> >>> > supported<br>
>> >>> > by<br>
>> >>> > bgpd for AFI/SAFI ipv4 labeled-unicast.<br>
>> >>> ><br>
>> >>> > I took a look at github and i can't find the features in any of the<br>
>> >>> > milestones.<br>
>> >>> > Is there an underlying reason i can't spot or is it just the dev<br>
>> >>> > team<br>
>> >>> > hasn't<br>
>> >>> > found time yet?<br>
>> >>> ><br>
>> >>> > Thank you for your help.<br>
>> >>> ><br>
>> >>> > Regards<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>
>> >>> ><br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> --<br>
>> >>> Renato Westphal<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Marco<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Renato Westphal<br>
>><br>
>><br>
>><br>
>> --<br>
>> Renato Westphal<br>
><br>
><br>
><br>
> --<br>
> Marco<br>
<br>
<br>
<br>
-- <br>
Renato Westphal<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Marco</div>