<div dir="ltr">Hello Renato,<div><br></div><div>"redistribute connected" works along with static label bindings.</div><div>Thanks!</div><div><br></div><div>But my original plan was to redistribute OSPF to BGP-LU .</div><div>Is that supported?</div><div><br></div><div>I tried to setup a small OSPF network and to run LDP on top of it.</div><div>Result is FRR is learning few labels:</div><div><br></div><div><div>frr# show mpls table </div><div> Inbound Outbound</div><div> Label Type Nexthop Label</div><div>-------- ------- --------------- --------</div><div> 16 LDP 192.0.2.10 3</div><div> 17 LDP 192.0.2.10 16</div><div> 18 LDP 192.0.2.10 3</div><div><br></div><div><div>frr# show ip route <a href="http://192.0.2.3/32">192.0.2.3/32</a></div><div>Routing entry for <a href="http://192.0.2.3/32">192.0.2.3/32</a></div><div> Known via "ospf", distance 110, metric 111, best</div><div> Last update 00:31:08 ago</div><div> * 192.0.2.10, via eth1, label 16</div><div><br></div><div><div>frr# show mpls table 17</div><div>Local label: 17</div><div> type: LDP remote label: 16 distance: 150</div><div> via 192.0.2.10 dev eth1</div></div></div></div><div><br></div><div><br></div><div>BGP is configured to redistribute connected and OSPF</div><div><div>!</div><div>router bgp 64496</div><div> no bgp default ipv4-unicast</div><div> coalesce-time 1000</div><div> neighbor 198.51.100.2 remote-as 64497</div><div> !</div><div> address-family ipv4 unicast</div><div> redistribute connected</div><div> redistribute ospf</div><div> exit-address-family</div><div> !</div><div> address-family ipv4 labeled-unicast</div><div> neighbor 198.51.100.2 activate</div><div> exit-address-family</div><div>!</div><div>router ospf</div><div> passive-interface lo</div><div>!</div></div><div><br></div><div>And i see prefixes in RIB:</div><div><div>frr# show bgp ipv4 unicast </div><div>BGP table version is 6, local router ID is 192.0.2.1</div><div>Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,</div><div> i internal, r RIB-failure, S Stale, R Removed</div><div>Origin codes: i - IGP, e - EGP, ? - incomplete</div><div><br></div><div> Network Next Hop Metric LocPrf Weight Path</div><div>*> <a href="http://192.0.2.1/32">192.0.2.1/32</a> 0.0.0.0 0 32768 ?</div><div>*> <a href="http://192.0.2.2/32">192.0.2.2/32</a> 192.0.2.10 101 32768 ?</div><div>*> <a href="http://192.0.2.3/32">192.0.2.3/32</a> 192.0.2.10 111 32768 ?</div><div>*> <a href="http://192.0.2.8/30">192.0.2.8/30</a> 0.0.0.0 0 32768 ?</div><div>*> <a href="http://192.0.2.12/30">192.0.2.12/30</a> 192.0.2.10 110 32768 ?</div><div>*> <a href="http://198.51.100.0/30">198.51.100.0/30</a> 0.0.0.0 0 32768 ?</div><div><br></div><div>Displayed 6 routes and 6 total paths</div><div>frr# show bgp ipv4 labeled-unicast </div><div>No BGP prefixes displayed, 0 exist</div><div>frr#</div></div><div><br></div><div>But the only one that is advertised to <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">198.51.100.2</span> is <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a href="http://192.0.2.1/32">192.0.2.1/32</a> (connected) and only when i set static bindings:</span></div><div><div>mpls label bind <a href="http://192.0.2.1/32">192.0.2.1/32</a> 100</div><div>mpls label global-block 16 1000</div></div><div><br></div><div>Thank you</div><div><br></div><div>Regards</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 23, 2018 at 10:01 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">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>> 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>> wrote:<br>
>>> > Dear members of the group,<br>
>>> ><br>
>>> > I've noticed neither "redistribute" nor "network" commands are 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 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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Marco</div>