[j-nsp] BGP community question

Eric Van Tol eric at atlantech.net
Sat Aug 25 14:58:18 EDT 2007


Yup, that was it.  I knew I was missing something.

Thanks!
evt


> -----Original Message-----
> From: Harry Reynolds [mailto:harry at juniper.net] 
> Sent: Saturday, August 25, 2007 2:27 PM
> To: Eric Van Tol; juniper-nsp at puck.nether.net
> Subject: RE: [j-nsp] BGP community question
> 
> Hey Eric, been awhile for me, but some poking indicates that 
> perhaps you
> lack a set of "()" to group the or function at the end:
> 
> [edit routing-options static]
> lab at hops# run show route community
> "^5500:(1[0-2][0-9]0)|(5500)|(90)|(120)|(0)$" detail    
> 
> inet.0: 489 destinations, 489 routes (489 active, 0 holddown, 
> 0 hidden)
> 129.1.0.0/16 (1 entry, 1 announced)
>         *Static Preference: 5
>                 Next hop type: Discard
>                 Next-hop reference count: 960
>                 State: <Active Int Ext>
>                 Local AS:    34 
>                 Age: 19:27 
>                 Task: RT
>                 Announcement bits (2): 0-KRT 2-BGP RT Background 
>                 AS path: 11537 3112 3112 I
>                 Communities: 64600:12001
> 
> 129.2.0.0/16 (1 entry, 1 announced)
>         *Static Preference: 5
>                 Next hop type: Discard
>                 Next-hop reference count: 960
>                 State: <Active Int Ext>
>                 Local AS:    34 
>                 Age: 2:05 
>                 Task: RT
>                 Announcement bits (2): 0-KRT 2-BGP RT Background 
>                 AS path: 11537 10886 27 I
>                 Communities: 5500:1190
> 
> __juniper_private1__.inet.0: 2 destinations, 2 routes (2 active, 0
> holddown, 0 hidden)
> 
> 
> << Extra parenths added
> 
> 
> [edit routing-options static]
> lab at hops# run show route community
> "^5500:((1[0-2][0-9]0)|(5500)|(90)|(120)|(0))$" detail    
> 
> inet.0: 489 destinations, 489 routes (489 active, 0 holddown, 
> 0 hidden)
> 129.2.0.0/16 (1 entry, 1 announced)
>         *Static Preference: 5
>                 Next hop type: Discard
>                 Next-hop reference count: 960
>                 State: <Active Int Ext>
>                 Local AS:    34 
>                 Age: 2:14 
>                 Task: RT
>                 Announcement bits (2): 0-KRT 2-BGP RT Background 
>                 AS path: 11537 10886 27 I
>                 Communities: 5500:1190
> 
> __juniper_private1__.inet.0: 2 destinations, 2 routes (2 active, 0
> holddown, 0 hidden)
> 
>  
> 
> > -----Original Message-----
> > From: juniper-nsp-bounces at puck.nether.net 
> > [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of 
> Eric Van Tol
> > Sent: Saturday, August 25, 2007 10:25 AM
> > To: juniper-nsp at puck.nether.net
> > Subject: [j-nsp] BGP community question
> > 
> > Hi all,
> > I'm beating my head against the wall trying to figure out why 
> > a route is matching a specific community-name:
> > 
> > comm1 members "^5500:(1[0-2][0-9]0)|(5500)|(90)|(120)|(0)$"
> > 
> > Here's the detailed route info:
> > 
> > lab# run show route 172.16.52.0/24 detail active-path 
> > 
> > inet.0: 222841 destinations, 445525 routes (222840 active, 0 
> > holddown, 1
> > hidden)
> > Restart Complete
> > 172.16.52.0/24 (2 entries, 1 announced)
> >         *BGP    Preference: 170/-101
> >                 Next-hop reference count: 6
> >                 Source: 192.168.1.5
> >                 Next hop: 192.168.150.2 via fe-0/0/0.0, selected
> >                 Next hop: 192.168.150.3 via fe-0/0/2.0
> >                 Protocol next hop: 192.168.150.10
> >                 Indirect next hop: 89f5444 262229
> >                 State: <Active Int Ext>
> >                 Local AS:  1 Peer AS:  2
> >                 Age: 6w1d 10:24:31      Metric: 0       Metric2: 13 
> >                 Announcement bits (3): 0-KRT 4-BGP RT 
> > Background 5-Resolve tree 1 
> >                 Communities: 64600:12001
> >                 Localpref: 100
> > 
> > Now, as far as I can tell, 64600:12001 does *not* match the 
> > defined community 'comm1', but the route always shows up when 
> > doing a 'show route community-name comm1'.
> > 
> > What am I missing here?
> > 
> > Thanks,
> > evt
> > _______________________________________________
> > juniper-nsp mailing list juniper-nsp at puck.nether.net 
> > https://puck.nether.net/mailman/listinfo/juniper-nsp
> > 
> 


More information about the juniper-nsp mailing list