Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show route receive-protocol

    Syntax

    show route receive-protocol protocol neighbor-address <brief | detail | extensive | terse><logical-system (all | logical-system-name)

    Syntax (EX Series Switches)

    show route receive-protocol protocol neighbor-address <brief | detail | extensive | terse>

    Release Information

    Command introduced before Junos OS Release 7.4.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    Description

    Display the routing information as it was received through a particular neighbor using a particular dynamic routing protocol.

    Options

    brief | detail | extensive | terse
    —

    (Optional) Display the specified level of output.

    logical-system (all | logical-system-name)
    —

    (Optional) Perform this operation on all logical systems or on a particular logical system.

    protocol neighbor-address
    —

    Protocol transmitting the route (bgp, dvmrp, msdp, pim, rip, or ripng) and address of the neighboring router from which the route entry was received.

    Additional Information

    The output displays the selected routes and the attributes with which they were received, but does not show the effects of import policy on the routing attributes.

    Required Privilege Level

    view

    List of Sample Output

    show route receive-protocol bgp
    show route receive-protocol bgp extensive
    show route receive-protocol bgp table extensive
    show route receive-protocol bgp logical-system extensive
    show route receive-protocol bgp detail (Layer 2 VPN)
    show route receive-protocol bgp extensive (Layer 2 VPN)
    show route receive-protocol bgp (Layer 3 VPN)
    show route receive-protocol bgp detail (Layer 3 VPN)
    show route receive-protocol bgp extensive (Layer 3 VPN)

    Output Fields

    Table 1 describes the output fields for the show route receive-protocol command. Output fields are listed in the approximate order in which they appear.

    Table 1: show route receive-protocol Output Fields

    Field Name

    Field Description

    Level of Output

    routing-table-name

    Name of the routing table—for example, inet.0.

    All levels

    number destinations

    Number of destinations for which there are routes in the routing table.

    All levels

    number routes

    Number of routes in the routing table and total number of routes in the following states:

    • active
    • holddown (routes that are in pending state before being declared inactive)
    • hidden (routes that are not used because of a routing policy)

    All levels

    Prefix

    Destination prefix.

    none brief

    MED

    Multiple exit discriminator value included in the route.

    none brief

    destination-prefix (entry, announced)

    Destination prefix. The entry value is the number of routes for this destination, and the announced value is the number of routes being announced for this destination.

    detail extensive

    Route Distinguisher

    64-bit prefix added to IP subnets to make them unique.

    detail extensive

    Label-Base, range

    First label in a block of labels and label block size. A remote PE routing device uses this first label when sending traffic toward the advertising PE routing device.

    detail extensive

    VPN Label

    Virtual private network (VPN) label. Packets are sent between CE and PE routing devices by advertising VPN labels. VPN labels transit over either an RSVP or an LDP label-switched path (LSP) tunnel.

    detail extensive

    Next hop

    Next hop to the destination. An angle bracket (>) indicates that the route is the selected route.

    All levels

    Localpref or Lclpref

    Local preference value included in the route.

    All levels

    AS path

    Autonomous system (AS) path through which the route was learned. The letters at the end of the AS path indicate the path origin, providing an indication of the state of the route at the point at which the AS path originated:

    • I—IGP.
    • E—EGP.
    • ?—Incomplete; typically, the AS path was aggregated.

    When AS path numbers are included in the route, the format is as follows:

    • [ ]—Brackets enclose the number that precedes the AS path. This number represents the number of ASs present in the AS path, when calculated as defined in RFC 4271. This value is used the AS-path merge process, as defined in RFC 4893.
    • [ ]—If more than one AS number is configured on the router, or if AS path prepending is configured, brackets enclose the local AS number associated with the AS path.
    • { }—Braces enclose AS sets, which are groups of AS numbers in which the order does not matter. A set commonly results from route aggregation. The numbers in each AS set are displayed in ascending order.
    • ( )—Parentheses enclose a confederation.
    • ( [ ] )—Parentheses and brackets enclose a confederation set.

    Note: In Junos OS Release 10.3 and later, the AS path field displays an unrecognized attribute and associated hexadecimal value if BGP receives attribute 128 (attribute set) and you have not configured an independent domain in any routing instance.

    All levels

    Cluster list

    (For route reflected output only) Cluster ID sent by the route reflector.

    detail extensive

    Originator ID

    (For route reflected output only) Address of routing device that originally sent the route to the route reflector.

    detail extensive

    Communities

    Community path attribute for the route. See the Output Field table in the show route detail command for all possible values for this field.

    detail extensive

    AIGP

    Accumulated interior gateway protocol (AIGP) BGP attribute.

    detail extensive

    Attrset AS

    Number, local preference, and path of the AS that originated the route. These values are stored in the Attrset attribute at the originating routing device.

    detail extensive

    Layer2-info: encaps

    Layer 2 encapsulation (for example, VPLS).

    detail extensive

    control flags

    Control flags: none or Site Down.

    detail extensive

    mtu

    Maximum transmission unit (MTU) of the Layer 2 circuit.

    detail extensive

    Sample Output

    show route receive-protocol bgp

    user@host> show route receive-protocol bgp 10.255.245.215
    inet.0: 28 destinations, 33 routes (27 active, 0 holddown, 1 hidden)
    Prefix                   Next hop              MED     Lclpref    AS path
    10.22.1.0/24             10.255.245.215       0       100        I
    10.22.2.0/24             10.255.245.215       0       100        I
    

    show route receive-protocol bgp extensive

    user@host> show route receive-protocol bgp 10.255.245.63 extensive
    inet.0: 244 destinations, 244 routes (243 active, 0 holddown, 1 hidden)
    Prefix             Next hop                MED    Lclpref AS path
    1.1.1.0/24 (1 entry, 1 announced)
         Next hop: 10.0.50.3
         Localpref: 100
         AS path: I <Orginator>
         Cluster list:  10.2.3.1
         Originator ID: 10.255.245.45
    165.3.0.0/16 (1 entry, 1 announced)
         Next hop: 111.222.5.254
         Localpref: 100
         AS path: I <Originator>
         Cluster list:  10.2.3.1
         Originator ID: 10.255.245.68 
    165.4.0.0/16 (1 entry, 1 announced)
         Next hop: 111.222.5.254
         Localpref: 100
         AS path: I <Originator>
         Cluster list:  10.2.3.1
         Originator ID: 10.255.245.45
    195.1.2.0/24 (1 entry, 1 announced)
         Next hop: 111.222.5.254
         Localpref: 100
         AS path: I <Originator>
         Cluster list:  10.2.3.1
         Originator ID: 10.255.245.68
    inet.2: 63 destinations, 63 routes (63 active, 0 holddown, 0 hidden)
    Prefix             Next hop                MED    Lclpref AS path
    inet.3: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
    Prefix             Next hop                MED    Lclpref AS path
    iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Prefix             Next hop                MED    Lclpref AS path
    mpls.0: 48 destinations, 48 routes (48 active, 0 holddown, 0 hidden)
    

    show route receive-protocol bgp table extensive

    user@host> show route receive-protocol bgp 207.17.136.192 table inet.0 66.117.68.0/24 extensive
    inet.0: 227315 destinations, 227316 routes (227302 active, 0 holddown, 13 hidden)
    * 66.117.63.0/24 (1 entry, 1 announced)
         Nexthop: 207.17.136.29
         Localpref: 100
         AS path: AS2 PA[6]: 14203 2914 3356 29748 33437 AS_TRANS
         AS path: AS4 PA[2]: 33437 393219
         AS path: Merged[6]: 14203 2914 3356 29748 33437 393219 I
         Communities: 2914:420
    

    show route receive-protocol bgp logical-system extensive

    user@host> show route receive-protocol bgp 10.0.0.9 logical-system PE4 extensive
    inet.0: 12 destinations, 13 routes (12 active, 0 holddown, 0 hidden)
    * 10.0.0.0/30 (1 entry, 1 announced)
         Accepted
         Route Label: 3
         Nexthop: 10.0.0.9
         AS path: 13979 I
    
    * 10.0.0.4/30 (1 entry, 1 announced)
         Accepted
         Route Label: 3
         Nexthop: 10.0.0.9
         AS path: 13979 I
    
      10.0.0.8/30 (2 entries, 1 announced)
         Accepted
         Route Label: 3
         Nexthop: 10.0.0.9
         AS path: 13979 I
    
    * 10.9.9.1/32 (1 entry, 1 announced)
         Accepted
         Route Label: 3
         Nexthop: 10.0.0.9
         AS path: 13979 I
    
    * 10.100.1.1/32 (1 entry, 1 announced)
         Accepted
         Route Label: 3
         Nexthop: 10.0.0.9
         AS path: 13979 I
    
    * 44.0.0.0/24 (1 entry, 1 announced)
         Accepted
         Route Label: 300096
         Nexthop: 10.0.0.9
         AS path: 13979 I
         AIGP: 203
    
    * 55.0.0.0/24 (1 entry, 1 announced)
         Accepted
         Route Label: 300112
         Nexthop: 10.0.0.9
         AS path: 13979 7018 I
         AIGP: 25
    
    * 66.0.0.0/24 (1 entry, 1 announced)
         Accepted
         Route Label: 300144                
         Nexthop: 10.0.0.9
         AS path: 13979 7018 I
    
    * 99.0.0.0/24 (1 entry, 1 announced)
         Accepted
         Route Label: 300160
         Nexthop: 10.0.0.9
         AS path: 13979 7018 I

    show route receive-protocol bgp detail (Layer 2 VPN)

    user@host> show route receive-protocol bgp 10.255.14.171 detail
    inet.0: 68 destinations, 68 routes (67 active, 0 holddown, 1 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    inet.3: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    mpls.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    frame-vpn.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0
    hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    10.255.245.35:1:5:1/96 (1 entry, 1 announced)
         Route Distinguisher: 10.255.245.35:1
         Label-base : 800000, range : 4, status-vector : 0x0
         Nexthop: 10.255.245.35
         Localpref: 100
         AS path: I
         Communities: target:65299:100 Layer2-info: encaps:FRAME RELAY, 
         control flags: 0, mtu: 0
    bgp.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    10.255.245.35:1:5:1/96 (1 entry, 0 announced)
         Route Distinguisher: 10.255.245.35:1
         Label-base : 800000, range : 4, status-vector : 0x0
         Nexthop: 10.255.245.35
         Localpref: 100
         AS path: I
         Communities: target:65299:100 Layer2-info: encaps:FRAME RELAY, 
         control flags:0, mtu: 0
    

    show route receive-protocol bgp extensive (Layer 2 VPN)

    user@host> show route receive-protocol bgp 10.255.14.171 extensive
    inet.0: 68 destinations, 68 routes (67 active, 0 holddown, 1 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    inet.3: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    mpls.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    frame-vpn.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    10.255.245.35:1:5:1/96 (1 entry, 1 announced)
         Route Distinguisher: 10.255.245.35:1
         Label-base : 800000, range : 4, status-vector : 0x0
         Nexthop: 10.255.245.35
         Localpref: 100
         AS path: I
         Communities: target:65299:100 Layer2-info: encaps:FRAME RELAY, 
         control flags:0, mtu: 0
    bgp.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Prefix             Nexthop                MED    Lclpref AS path
    10.255.245.35:1:5:1/96 (1 entry, 0 announced)
         Route Distinguisher: 10.255.245.35:1
         Label-base : 800000, range : 4, status-vector : 0x0
         Nexthop: 10.255.245.35
         Localpref: 100
         AS path: I
         Communities: target:65299:100 Layer2-info: encaps:FRAME RELAY, 
         control flags:0, mtu: 0

    show route receive-protocol bgp (Layer 3 VPN)

    user@host> show route receive-protocol bgp 10.255.14.171
          inet.0: 33 destinations, 33 routes (32 active, 0 holddown, 1 hidden) 
          Prefix             Nexthop                MED    Lclpref AS path 
          inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) 
          Prefix             Nexthop                MED    Lclpref AS path 
          VPN-A.inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) 
          Prefix             Nexthop                MED    Lclpref AS path 
          10.255.14.175/32   10.255.14.171                     100 2 I 
          10.255.14.179/32   10.255.14.171            2        100 I 
          VPN-B.inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) 
          Prefix             Nexthop                MED    Lclpref AS path 
          10.255.14.175/32   10.255.14.171                     100 2 I 
          10.255.14.177/32   10.255.14.171                     100 I 
          iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) 
          Prefix             Nexthop                MED    Lclpref AS path 
          mpls.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden) 
          Prefix             Nexthop                MED    Lclpref AS path 
          bgp.l3vpn.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden) 
          Prefix             Nexthop                MED    Lclpref AS path 
          10.255.14.171:300:10.255.14.177/32 
                             10.255.14.171                     100 I 
          10.255.14.171:100:10.255.14.179/32 
                             10.255.14.171            2        100 I 
          10.255.14.171:200:10.255.14.175/32 
                             10.255.14.171                     100 2 I 
    

    show route receive-protocol bgp detail (Layer 3 VPN)

    user@host> show route receive-protocol bgp 10.255.14.174 detail
    inet.0: 16 destinations, 17 routes (15 active, 0 holddown, 1 hidden)
    inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    vpna.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
    * 10.49.0.0/30 (1 entry, 1 announced)
         Route Distinguisher: 10.255.14.176:2
         VPN Label: 101264
         Nexthop: 10.255.14.174
         Localpref: 100
         AS path: I
         Communities: target:200:100
         AttrSet AS: 100
             Localpref: 100
             AS path: I
    * 10.255.14.172/32 (1 entry, 1 announced)
         Route Distinguisher: 10.255.14.176:2
         VPN Label: 101280
         Nexthop: 10.255.14.174
         Localpref: 100
         AS path: I
         Communities: target:200:100
         AttrSet AS: 100
             Localpref: 100
             AS path: I
    iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
    bgp.l3vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    * 10.255.14.174:2:10.49.0.0/30 (1 entry, 0 announced)
         Route Distinguisher: 10.255.14.174:2
         VPN Label: 101264
         Nexthop: 10.255.14.174
         Localpref: 100
         AS path: I
         Communities: target:200:100
         AttrSet AS: 100
             Localpref: 100
             AS path: I
    * 10.255.14.174:2:10.255.14.172/32 (1 entry, 0 announced)
         Route Distinguisher: 10.255.14.174:2
         VPN Label: 101280
         Nexthop: 10.255.14.174
         Localpref: 100
         AS path: I
         Communities: target:200:100
         AttrSet AS: 100
             Localpref: 100
             AS path: I
    inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    

    show route receive-protocol bgp extensive (Layer 3 VPN)

    user@host> show route receive-protocol bgp 10.255.245.63 extensive
    inet.0: 244 destinations, 244 routes (243 active, 0 holddown, 1 hidden)
         Prefix             Nexthop                MED    Lclpref AS path
         1.1.1.0/24 (1 entry, 1 announced)
              Nexthop: 10.0.50.3
              Localpref: 100
              AS path: I <Originator>
              Cluster list:  10.2.3.1
              Originator ID: 10.255.245.45
         165.3.0.0/16 (1 entry, 1 announced)
              Nexthop: 111.222.5.254
              Localpref: 100
              AS path: I <Originator>
              Cluster list:  10.2.3.1
              Originator ID: 10.255.245.68 
         165.4.0.0/16 (1 entry, 1 announced)
              Nexthop: 111.222.5.254
              Localpref: 100
              AS path: I <Originator>
              Cluster list:  10.2.3.1
              Originator ID: 10.255.245.45
         195.1.2.0/24 (1 entry, 1 announced)
              Nexthop: 111.222.5.254
              Localpref: 100
              AS path: I <Originator>
              Cluster list:  10.2.3.1
              Originator ID: 10.255.245.68
         inet.2: 63 destinations, 63 routes (63 active, 0 holddown, 0 hidden)
         Prefix             Nexthop                MED    Lclpref AS path
         inet.3: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
         Prefix             Nexthop                MED    Lclpref AS path
         iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
         Prefix             Nexthop                MED    Lclpref AS path
         mpls.0: 48 destinations, 48 routes (48 active, 0 holddown, 0 hidden)
    

    Published: 2013-08-15