I found an annoying issue in the Jun 3 -current bgpd.

The interface address for em1 never gets propagated into
rt 686:3 via BGP if configured in this order:

# ifconfig em1 192.168.1.1/24 rdomain 1 
# ifconfig mpe1 172.20.254.1 mplslabel 111 rdomain 1
# /etc/rc.d/ldpd start
# /etc/rc.d/bgpd start

Now, if I simply execute this command again:

# ifconfig em1 192.168.1.1/24 rdomain 1

then the 192.168.1.0/24 network gets propagated via BGP
l3vpn target 686:3 and everything looks normal.

The issue seems to be bgpd reliably finding existing
connected routes in rdomains ?

bgpd.conf:

 AS 686
 router-id 172.20.254.1
 listen on 172.20.254.1
 rdomain 1 { 
        descr "test-vrf"
        rd 686:3
        import-target rt 686:3
        export-target rt 686:3
        depend on mpe1
        network inet connected
        network inet static
 }
 group INTERNAL {
        announce IPv4 unicast 
        announce IPv4 vpn 
        remote-as 686
        local-address 172.20.254.1
        neighbor 172.20.254.2
 }

Reply via email to