RE: MBGP Peer route generate

From: Julian Eccli (je@juniper.net)
Date: Wed Jan 30 2002 - 15:18:12 EST


You didn't put the route in the inet.2 table.

*** As of 5.1 you can do it this way:

Under routing-options, make sure you have a rib group to import routes
into both inet.0 and inet.2.

rib-groups {
    stat-rg {
        import-rib [ inet.0 inet.2 ];
    }

Under routing-options static, apply the rib-group.

static {
    rib-group stat-rg;

*** Pre 5.1 it's done this way:

* first place all statics into a group as follows

[edit groups]
inject-statics {
    routing-options {
        rib <inet.*> {
            static {
                route 172.16.1.0/24 discard;
                route 172.16.2.0/24 discard;
                route 172.16.3.0/24 discard;
                route 172.16.4.0/24 discard;
                route 172.16.5.0/24 discard;
            }
        }
    }
}

* Now apply groups to the inet.0 and inet.2 RIB's to import all statics

[edit routing-options]
rib inet.0 {
    apply-groups inject-statics;
}
rib inet.2 {
    apply-groups inject-statics;
}

lab@router# run show route protocol static

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

0.0.0.0/0 *[Static/5] 4d 23:08:29
> to 172.29.1.254 via fxp0.0
172.16.1.0/24 *[Static/5] 00:00:11, metric 0
                     Discard
172.16.2.0/24 *[Static/5] 00:00:11, metric 0
                     Discard
172.16.3.0/24 *[Static/5] 00:00:11, metric 0
                     Discard
172.16.4.0/24 *[Static/5] 00:00:11, metric 0
                     Discard
172.16.5.0/24 *[Static/5] 00:00:11, metric 0
                     Discard

inet.2: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

172.16.1.0/24 *[Static/5] 00:00:11, metric 0
                     Discard
172.16.2.0/24 *[Static/5] 00:00:11, metric 0
                     Discard
172.16.3.0/24 *[Static/5] 00:00:11, metric 0
                     Discard
172.16.4.0/24 *[Static/5] 00:00:11, metric 0
                     Discard
172.16.5.0/24 *[Static/5] 00:00:11, metric 0
                     Discard

-Julian

> -----Original Message-----
> From: Lyric Ji [mailto:lyricji@hotmail.com]
> Sent: Tuesday, January 29, 2002 10:08 PM
> To: juniper-nsp@puck.nether.net
> Subject: MBGP Peer route generate
>
>
> Hi, All
>
> Can i generate a unicast and mulicast route from Junos with
> the following
> config? But i failed to do so, only route in inet.0 was advertised.
>
> And also, i tried the command: export Mnetwork family inet
> any, but didn't
> work either.
>
> [edit protocols bgp]
>
> group IBGP {
> neighbor *.*.*.* { //MBGP neighbor
> family inet {
> any;
> }
> export Mnetwork;
> }
>
> Junos# run show policy Mnetwork
> Policy Mnetwork:
> Term unnamed:
> from protocal Static
> Route filter:
> 17.1.1.1/32
> then accept
>
> Junos# run show route protocol static
>
> inet.0: 48 destinations, 48 routes (47 active, 0 holddown, 1 hidden)
> + = Active Route, - = Last Active, * = Both
>
> 17.1.1.1/32 *[Static/10] 17:28:05, metric 10
> Reject
>
> inet.2:
> ...no route
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>



This archive was generated by hypermail 2b29 : Mon Aug 05 2002 - 10:42:38 EDT