Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

How To: Check the BGP AS-path and Weight for BGP routes from peer

0

0

Article ID: KB5960 KB Last Updated: 02 Jul 2010Version: 3.0
Summary:
How To: Check the BGP AS-path and Weight for BGP routes from peer
Symptoms:
NetScreen-204 ScreenOS 4.0.0r3 BGP AS-Path AS-Path prepending Can't check the BGP AS-path and Weight for BGP routes from peer Command syntax:

ns204-> get vrouter trust protocol bgp prefix-rib-in <IP address/netmask>
' or
ns204(trust-vr)->
get protocol bgp prefix-rib-in <IP address/netmask>
' or
ns204(trust-vr/bgp)-> get prefix-rib-in <IP address/netmask>


Solution:

In order to view BGP AS-path and Weight for specific routes from peer, use "get prefix-rib-in" command on the CLI, and it will show  the BGP specific RIB (routing information base) entry from peer.

Example:

ns204-> get vrouter trust protocol bgp prefix-rib-in 36.36.36.0/24
Prefix: 36.36.36.0/24
Nexthop: 12.12.12.12, color="blue">Weight: 100, Local Pref: 0, MED: 0, Flag: 88, Orig: INCOMP
LETE
AS segment type: AS_SEQUENCE, color="blue">AS path:20
 
Prefix: 36.36.36.0/24


Here is the problem or goal:

  • Can't check the BGP AS-path and Weight for BGP routes from peer
  • How to check the BGP AS-path and Weight for BGP routes from peer

Problem Environment:

  • NetScreen-204
  • ScreenOS 4.0.0r3
  • BGP AS-Path
  • AS-Path prepending

Additional Information:

Command syntax:

ns204->
get vrouter trust protocol bgp prefix-rib-in
 or
ns204(trust-vr)->

get protocol bgp prefix-rib-in
 or
ns204(trust-vr/bgp)-> get prefix-rib-in

Applicable Products:

  • NetScreen-5XT
  • NetScreen-25
  • NetScreen-50
  • NetScreen-204
  • NetScreen-208
  • NetScreen- 500
  • NetScreen-5200

Applicable ScreenOS:

  • 4.0.0


Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search