Junos OS

last person joined: 3 days ago 

Ask questions and share experiences about Junos OS.
Expand all | Collapse all

How to advertise aggregate routes?

  • 1.  How to advertise aggregate routes?

    Posted 02-06-2009 14:15

    hello...I'm trying to advertise a summary route to a BGP peer and here's my config and it doesn't work

    }
    routing-options {
            aggregate {
            route 10.0.0.0/8;
        }
    }

    policy-options {
        policy-statement 10-agg {
            from protocol aggregate;
            then accept;

    protocols {
        bgp {
            preference 20;
            group ATT {
                export 10-agg;
                peer-as 100;
                local-as 200;
                neighbor 10.3.2.1;

     

     

    when i do

    oot# run show route advertising-protocol bgp 10.3.2.1                    

    inet.0: 14 destinations, 18 routes (13 active, 0 holddown, 1 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 10.0.0.0/8              Self                                    {100} I

    can anyone point out what's the issue with this config? Thanks

     



  • 2.  RE: How to advertise aggregate routes?

    Posted 02-06-2009 14:54

    Hello,

     

    What makes you say it does not work ?

    It seems like you are advertising the aggregate to your neighbor...

     

    In any case, the typical reason for not advertising an aggregate is when you have no contributing routes. To check this, do a 'show route x/y exact extensive" (x/y = 10/8 in your case).

     

    Regards,

    /david



  • 3.  RE: How to advertise aggregate routes?

    Posted 02-06-2009 21:14

    It looks like it's sending it but i don't see it on the other side router which is a cisco. So i wasn't sure about the config..i tried

    re-distributing static routes that those are received on the other side , only  the aggregate has issue



  • 4.  RE: How to advertise aggregate routes?

    Posted 02-11-2009 16:07

    This works

     

    static {
        route 10.0.0.0/8 reject;

       }
    }

    policy-options {
        policy-statement 10-agg {
            from protocol static;
            then accept;

    protocols {
        bgp {
            preference 20;
            group ATT {
                export 10-agg;
                peer-as 100;
                local-as 200;
                neighbor 10.3.2.1;

     

     

    and this doesn't - any ideas

     

    routing-options {
            aggregate {
            route 10.0.0.0/8;
        }
    }

    policy-options {
        policy-statement 10-agg {
            from protocol aggregate;
            then accept;

    protocols {
        bgp {
            preference 20;
            group ATT {
                export 10-agg;
                peer-as 100;
                local-as 200;
                neighbor 10.3.2.1;

     

    hiadmin@m7# run show route 10/8 exact extensive

    inet.0: 13 destinations, 16 routes (12 active, 0 holddown, 1 hidden)
    10.0.0.0/8 (2 entries, 1 announced)
    TSI:
    KRT in-kernel 10.0.0.0/8 -> {}
    OSPF area : 0.0.0.0, LSA ID : 10.0.0.0, LSA type : Extern
            *Static Preference: 5
                    Next hop type: Reject
                    Next-hop reference count: 5
                    State: <Active Int Ext>
                    Age: 4:49:31
                    Task: RT
                    Announcement bits (2): 0-KRT 2-OSPF
                    AS path: I
             Aggregate Preference: 130
                    Next hop type: Reject
                    Next-hop reference count: 5
                    State: <Int Ext>
                    Inactive reason: Route Preference
                    Age: 4:49:31
                    Task: Aggregate
                    AS path: {100} I (LocalAgg)
                    Flags:                  Depth: 0        Active
                    AS path list:
                    AS path: 100 I Refcount: 1
                    AS path: I Refcount: 1
                    Contributing Routes (2):
                            10.3.2.0/24 proto Direct
                            10.3.6.0/23 proto BGP



  • 5.  RE: How to advertise aggregate routes?

    Posted 02-12-2009 13:23

    Looks like you have another entry for the 10.0.0.0/8 route that has a lower preference (more preferred) than the aggregate route.

     

    Can you try the following config and provide the output of "show route 10/8 exact extensive"?

     

    routing-options {
            aggregate {
            route 10.0.0.0/8;
        }
    }

    policy-options {
        policy-statement 10-agg {
            from protocol aggregate;
            then accept;

       }

    }



  • 6.  RE: How to advertise aggregate routes?

    Posted 02-12-2009 14:08

    that's what i have exactly what you said and output is there as well for run show route 10/8 exact extensive

     

    routing-options {
            aggregate {
            route 10.0.0.0/8;
        }
    }

    policy-options {
        policy-statement 10-agg {
            from protocol aggregate;
            then accept;



  • 7.  RE: How to advertise aggregate routes?

    Posted 02-12-2009 14:10
    Can you provide the output of "show ospf route" and "show configuration routing-options"?


  • 8.  RE: How to advertise aggregate routes?

    Posted 02-12-2009 15:49

    rhiadmin@m7# run show configuration routing-options                  
    static {
        route 0.0.0.0/0 next-hop 172.19.116.1;
    }
    aggregate {
        route 10.0.0.0/8;
    }

    [edit]
    rhiadmin@m7# run show ospf route                                     
    Topology default Route Table:

    Prefix             Path   Route       NH   Metric  NextHop       Nexthop     
                       Type   Type        Type         Interface     addr/label
    10.3.6.2           Intra  AS BR       IP        2  ge-0/0/0.0    192.168.100.1
    192.168.1.3        Intra  Router      IP        1  ge-0/0/0.0    192.168.100.1
    0.0.0.0/0          Ext2   Network     IP      200  ge-0/0/0.0    192.168.100.1
    5.5.5.0/24         Ext2   Network     IP       10  ge-0/0/0.0    192.168.100.1
    192.168.1.0/24     Intra  Network     IP        2  ge-0/0/0.0    192.168.100.1
    192.168.2.0/24     Ext2   Network     IP      200  ge-0/0/0.0    192.168.100.1
    192.168.100.0/24   Intra  Network     IP        1  ge-0/0/0.0



  • 9.  RE: How to advertise aggregate routes?

    Posted 02-13-2009 07:07

    You have 1 hidden route in "show route 10/8 exact extensive" could you please display it I think with  "show route 10/8 exact extensive | display hidden " or "show route 10/8 exact extensive hidden" ?



  • 10.  RE: How to advertise aggregate routes?

    Posted 02-13-2009 10:42

    rhiadmin@m7# run show route 10/8 exact extensive hidden               

    inet.0: 13 destinations, 15 routes (12 active, 0 holddown, 1 hidden)

    __juniper_private1__.inet.0: 8 destinations, 8 routes (5 active, 0 holddown, 3 hidden)

     

    rhiadmin@m7# run show route hidden

    inet.0: 13 destinations, 15 routes (12 active, 0 holddown, 1 hidden)
    + = Active Route, - = Last Active, * = Both

    127.0.0.1/32        [Direct/0] 1d 23:38:41
                        > via lo0.0

     

     



  • 11.  RE: How to advertise aggregate routes?

    Posted 02-13-2009 11:51
    From the "show route 10/8 exact extensive" output you showed, it looks like there was a static route and aggregate route for 10/8.  Can you verify that have run "commit" after making changes?  Also, please post the full "show route 10/8 extensive" output again.


  • 12.  RE: How to advertise aggregate routes?

    Posted 02-13-2009 12:56

    rhiadmin@m7# run show route 10/8 exact extensive

    inet.0: 13 destinations, 15 routes (12 active, 0 holddown, 1 hidden)
    10.0.0.0/8 (1 entry, 1 announced)
    TSI:
    KRT in-kernel 10.0.0.0/8 -> {}
    OSPF area : 0.0.0.0, LSA ID : 10.0.0.0, LSA type : Extern
    Page 0 idx 0 Type 1 val 8c0ecc0
        Nexthop: Self
        AS path: [200] {100} I (LocalAgg)
        Communities:
    Path 10.0.0.0 Vector len 4.  Val: 0
            *Aggregate Preference: 130
                    Next hop type: Reject
                    Next-hop reference count: 4
                    State: <Active Int Ext>
                    Age: 2d 1:50:51
                    Task: Aggregate
                    Announcement bits (3): 0-KRT 2-OSPF 5-BGP RT Background
                    AS path: {100} I (LocalAgg)
                    Flags:                  Depth: 0        Active
                    AS path list:
                    AS path: 100 I Refcount: 1
                    AS path: I Refcount: 1
                    Contributing Routes (2):
                            10.3.2.0/24 proto Direct
                            10.3.6.0/23 proto BGP

    __juniper_private1__.inet.0: 8 destinations, 8 routes (5 active, 0 holddown, 3 hidden)

    10.0.0.0/8 (1 entry, 0 announced)
            *Direct Preference: 0
                    Next hop type: Interface
                    Next-hop reference count: 1
                    Next hop: via fxp1.0, selected
                    State: <Active Int>
                    Age: 2d 1:50:13
                    Task: IF
                    AS path: I

     

     

    rhiadmin@m7# run show route 10/8 extensive         

    inet.0: 13 destinations, 15 routes (12 active, 0 holddown, 1 hidden)
    10.0.0.0/8 (1 entry, 1 announced)
    TSI:
    KRT in-kernel 10.0.0.0/8 -> {}
    OSPF area : 0.0.0.0, LSA ID : 10.0.0.0, LSA type : Extern
    Page 0 idx 0 Type 1 val 8c0ecc0
        Nexthop: Self
        AS path: [200] {100} I (LocalAgg)
        Communities:
    Path 10.0.0.0 Vector len 4.  Val: 0
            *Aggregate Preference: 130
                    Next hop type: Reject
                    Next-hop reference count: 4
                    State: <Active Int Ext>
                    Age: 2d 1:51:33
                    Task: Aggregate
                    Announcement bits (3): 0-KRT 2-OSPF 5-BGP RT Background
                    AS path: {100} I (LocalAgg)
                    Flags:                  Depth: 0        Active
                    AS path list:
                    AS path: 100 I Refcount: 1
                    AS path: I Refcount: 1
                    Contributing Routes (2):
                            10.3.2.0/24 proto Direct
                            10.3.6.0/23 proto BGP

    10.3.2.0/24 (1 entry, 1 announced)
    TSI:
    OSPF area : 0.0.0.0, LSA ID : 10.3.2.0, LSA type : Extern
    Aggregated into 10.0.0.0/8
            *Direct Preference: 0
                    Next hop type: Interface
                    Next-hop reference count: 1
                    Next hop: via ge-0/1/0.0, selected
                    State: <Active Int>
                    Age: 2d 1:49:53
                    Task: IF
                    Announcement bits (2): 2-OSPF 4-Aggregate
                    AS path: I

    10.3.2.2/32 (1 entry, 0 announced)
            *Local  Preference: 0
                    Next hop type: Local
                    Next-hop reference count: 8
                    Interface: ge-0/1/0.0
                    State: <Active NoReadvrt Int>
                    Age: 2d 1:49:59
                    Task: IF
                    AS path: I

    10.3.6.0/23 (1 entry, 1 announced)
    TSI:
    KRT in-kernel 10.3.6.0/23 -> {10.3.2.1}
    OSPF area : 0.0.0.0, LSA ID : 10.3.6.0, LSA type : Extern
    Aggregated into 10.0.0.0/8
            *BGP    Preference: 20/-101
                    Next hop type: Router, Next hop index: 529
                    Next-hop reference count: 6
                    Source: 10.3.2.1
                    Next hop: 10.3.2.1 via ge-0/1/0.0, selected
                    State: <Active Ext>
                    Peer AS:   100
                    Age: 1d 21:03:07        Metric: 0
                    Task: BGP_100_200.10.3.2.1+179
                    Announcement bits (3): 0-KRT 2-OSPF 4-Aggregate
                    AS path: 100 I
                    Accepted
                    Localpref: 100
                    Router ID: 5.5.5.5



  • 13.  RE: How to advertise aggregate routes?

    Posted 02-13-2009 13:34

    Ok, looks better.  The 10/8 route should be exported with BGP now.  Can you post the following commands:

     

    on the m7:

     

    show route advertising-protocol bgp 10.3.2.1 detail

     

    on your peer (cisco?):

     

    show ip bgp neighbors <m7ip> received-routes

     

    What might be happening is that when you configure an aggregate route and one of the contributing routes is learned via eBGP (  10.3.6.0/23 in your case), the as-path in the aggregate route shows all the ASes of the contributing routes, called as-set notation.  Is there any as-path filtering on the cisco?  One way to test would be to turn off the as-set summarization:

     

    set routing-options aggregate route 10.0.0.0/8 brief as-path origin igp

    Message Edited by rali on 02-13-2009 01:34 PM


  • 14.  RE: How to advertise aggregate routes?

    Posted 02-13-2009 13:44

    on cisco side---no as path filetring here..

     

    00000r1#sh ip bgp neighbors 10.3.2.2 received-routes

    Total number of prefixes 0

     

    rhiadmin@m7# run show route advertising-protocol bgp 10.3.2.1

    inet.0: 13 destinations, 15 routes (12 active, 0 holddown, 1 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 10.0.0.0/8              Self                                    {100} I

    Message Edited by IOS2JunOS on 02-13-2009 01:44 PM


  • 15.  RE: How to advertise aggregate routes?

    Posted 02-13-2009 14:45

    Can you provide the bgp configuration on both routers?

     

    show configuration protocols bgp

     

    show running-config | begin router bgp 



  • 16.  RE: How to advertise aggregate routes?

    Posted 02-13-2009 15:48

    fixed.

     

    did "set aggragate brief" under routing-options.....thaks for your help

     

    one of the contributing route to 10/8 was learned via BGP from cisco, so when juniper sent 10/8 back out it had the AS number of the cisco as well, so cisco rejected it after seeing it's own AS..

    Message Edited by IOS2JunOS on 02-14-2009 08:37 AM


  • 17.  RE: How to advertise aggregate routes?

    Posted 02-14-2009 04:24

    Hi,

     

    Can I know how you resolve seeing self problem?

     

     



  • 18.  RE: How to advertise aggregate routes?

    Posted 02-14-2009 08:35

    rhiadmin@m7# run show route 10/8 extensive         

    inet.0: 13 destinations, 15 routes (12 active, 0 holddown, 1 hidden)
    10.0.0.0/8 (1 entry, 1 announced)
    TSI:
    KRT in-kernel 10.0.0.0/8 -> {}
    OSPF area : 0.0.0.0, LSA ID : 10.0.0.0, LSA type : Extern
    Page 0 idx 0 Type 1 val 8c0ecc0
        Nexthop: Self
        AS path: [200] {100} I (LocalAgg)

     

    look in the as path. As 100 is the remote side..so when this router send this aggragate out with this AS list, the remote route drops this when it sees it's own AS in the as path