[j-nsp] Matching communities in 'show route receive-protocol bgp' command

Stacy W. Smith stacy at acm.org
Wed Jul 6 11:50:55 EDT 2011


I just tried to replicate your problem (on an old version of JunOS), and the community knob works as expected for me.

root at j6300> show version 
Hostname: j6300
Model: j6300
JUNOS Software Release [9.3S9]

root at j6300> show route receive-protocol bgp 192.168.0.1 detail table R1.inet.0                  

R1.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
* 192.168.200.0/25 (1 entry, 1 announced)
     Accepted
     Nexthop: 192.168.0.1
     AS path: 1 I
     Communities: 1:1

root at j6300> show route receive-protocol bgp 192.168.0.1 community 1:1               

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)

__juniper_private1__.inet.0: 4 destinations, 4 routes (2 active, 0 holddown, 2 hidden)

R1.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
  Prefix		  Nexthop	       MED     Lclpref    AS path
* 192.168.200.0/25        192.168.0.1                             1 I

 
What version of JunOS are you using? What platform?

Can you also provide us with the output 'show route ams-ix.net extensive table World.inet.0'?

Thanks,
--Stacy

On Jul 6, 2011, at 8:29 AM, Alexander Shikoff wrote:

> Hello,
> 
> I have a problem with matching communities in 'show route receive-protocol bgp' command.
> For example, I have a route:
> 
> minotaur at br1-gdr.ki> show route ams-ix.net receive-protocol bgp 77.88.200.133 detail table World.inet.0         
> 
> World.inet.0: 362279 destinations, 720396 routes (358851 active, 9 holddown, 3907 hidden)
> * 91.200.16.0/22 (2 entries, 1 announced)
>     Accepted
>     Nexthop: 77.88.200.133
>     AS path: 21011 1200 I
>     AS path: Recorded
>     Communities: 21011:400 21011:6777 21011:64528 31445:400
> 
> Now I'm trying to filter all routes from 77.88.200.133 peer with 21011:64528
> community:
> 
> minotaur at br1-gdr.ki> show route receive-protocol bgp 77.88.200.133 community 21011:64528          
> 
> And output is empty.
> 
> Then I tried to match community via policy: 
> minotaur at br1-gdr.ki> show configuration policy-options community Netherlands 
> members 21011:64528;
> 
> minotaur at br1-gdr.ki> show route receive-protocol bgp 77.88.200.133 community-name Netherlands
> 
> And output is empty again.
> 
> Could please someone give an example of right command?
> Thanks in advance!
> 
> -- 
> MINO-RIPE
> _______________________________________________
> 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