Hello Renato,
"redistribute connected" works along with static label bindings.
Thanks!
But my original plan was to redistribute OSPF to BGP-LU .
Is that supported?
I tried to setup a small OSPF network and to run LDP on top of it.
Result is FRR is learning few labels:
frr# show mpls table
Inbound Outbound
Label Type Nexthop Label
-------- ------- --------------- --------
16 LDP 192.0.2.10 3
17 LDP 192.0.2.10 16
18 LDP 192.0.2.10 3
Known via "ospf", distance 110, metric 111, best
Last update 00:31:08 ago
* 192.0.2.10, via eth1, label 16
frr# show mpls table 17
Local label: 17
type: LDP remote label: 16 distance: 150
via 192.0.2.10 dev eth1
BGP is configured to redistribute connected and OSPF
!
router bgp 64496
no bgp default ipv4-unicast
coalesce-time 1000
neighbor 198.51.100.2 remote-as 64497
!
address-family ipv4 unicast
redistribute connected
redistribute ospf
exit-address-family
!
address-family ipv4 labeled-unicast
neighbor 198.51.100.2 activate
exit-address-family
!
router ospf
passive-interface lo
!
And i see prefixes in RIB:
frr# show bgp ipv4 unicast
BGP table version is 6, local router ID is 192.0.2.1
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Displayed 6 routes and 6 total paths
frr# show bgp ipv4 labeled-unicast
No BGP prefixes displayed, 0 exist
frr#
But the only one that is advertised to
198.51.100.2 is
192.0.2.1/32 (connected) and only when i set static bindings:mpls label global-block 16 1000
Thank you
Regards