Only 2 prefix being advertised. Another 2 not


#1

I need help on bgp setting. Appreciate if someone can help
I have a vyos router.

Full BGP table received from peering with ISP1
Partial BGP table received from peering with ISP2

ISP1 advertised-routes

123.123.28.0/22

ISP2 advertised-routes should expect

123.123.28.0/24
123.123.29.0/24
123.123.30.0/24
123.123.31.0/24

But ISP2 advertised-routes show 2 prefix only

123.123.28.0/24
123.123.29.0/24

My prefix:

prefix-list PREFIX-22 {
rule 10 {
action permit
prefix 123.123.28.0/22

prefix-list PREFIX-24 {
rule 10 {
action permit
prefix 123.123.28.0/24
rule 20 {
action permit
prefix 123.123.29.0/24
rule 30 {
action permit
prefix 123.123.30.0/24
rule 40 {
action permit
prefix 123.123.31.0/24

My route-map:

route-map ISP2-EXPORT-ROUTEMAP {
    rule 10 {
        action permit
        match {
            ip {
                address {
                    prefix-list PREFIX-24
                }
            }
        }
        set {
            weight 200
        }
    }
    rule 1000 {
        action deny

BGP:

    neighbor 99.99.99.99 {
        advertisement-interval 30
        description "eBGP ISP Transit"
        maximum-prefix 600000
        remote-as XXXXX
        route-map {
            export ISP2-EXPORT-ROUTEMAP
            import ISP2-IMPORT-ROUTEMAP
        }
        soft-reconfiguration {
            inbound
        }
        weight 200

#2

Since the ip addresses have been munged, we cannot check the math. But my guess is that your /22 does not actually cover the last two /24 blocks.