Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show route advertising-protocol

date_range 19-Nov-23

Syntax

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

Description

Display the routing information as it has been prepared for advertisement to a particular neighbor of 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.

neighbor-address

Address of the neighboring router to which the route entry is being transmitted.

protocol

Protocol transmitting the route:

  • bgp—Border Gateway Protocol

  • dvmrp—Distance Vector Multicast Routing Protocol

  • msdp—Multicast Source Discovery Protocol

  • pim—Protocol Independent Multicast

  • rip—Routing Information Protocol

  • ripng—Routing Information Protocol next generation

Additional Information

Routes displayed are routes that the routing table has exported into the routing protocol and that have been filtered by the associated protocol's export routing policy statements. Starting with Junos OS Release 13.3, you can display the routing instance table foo for any address family, on a VPN route reflector, or a VPN AS boundary router that is advertising local VPN routes. However, If you do not specify the table in the command, the output displays each VRF prefix twice.

Required Privilege Level

view

Output Fields

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

Table 1: show route advertising-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 (routes that are active)

  • holddown (routes that are in the pending state before being declared inactive)

  • hidden (routes that are not used because of a routing policy)

All levels

Prefix

Destination prefix.

brief none

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

BGP group and type

BGP group name and type (Internal or External).

detail extensive

Route Distinguisher

Unique 64-bit prefix augmenting each IP subnet.

detail extensive

Advertised Label

Incoming label advertised by the Label Distribution Protocol (LDP). When an IP packet enters a label-switched path (LSP), the ingress router examines the packet and assigns it a label based on its destination, placing the label in the packet's header. The label transforms the packet from one that is forwarded based on its IP routing information to one that is forwarded based on information associated with the label.

detail extensive

Label-Base, range

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

detail extensive

VPN Label

Virtual private network (VPN) label. Packets are sent between CE and PE routers by advertising VPN labels. VPN labels transit over either a Resource Reservation Protocol (RSVP) or a Label Distribution Protocol (LDP) label-switched path (LSP) tunnel.

detail extensive

Nexthop

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

If the next-hop advertisement to the peer is Self, and the RIB-out next hop is a specific IP address, the RIB-out IP address is included in the extensive output.

All levels

MED

Multiple exit discriminator value included in the route.

brief

Lclpref or Localpref

Local preference value included in the route.

All levels

Queued

When BGP route prioritization is enabled and a route is present in a priority queue, this shows which priority queue the route is in.

All levels except brief

AS path

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 local AS number associated with the AS path if configured on the router, or if AS path prepending is configured.

  • { }—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

Route Labels

Stack of labels carried in the BGP route update.

detail extensive

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 for 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 autonomous system (AS) that originated the route. These values are stored in the Attrset attribute at the originating router.

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 advertising-protocol bgp (Layer 3 VPN)

content_copy zoom_out_map
user@host> show route advertising-protocol bgp 10.255.14.171 
      VPN-A.inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) 
      Prefix             Nexthop                MED    Lclpref AS path 
      10.255.14.172/32   Self                     1        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.181/32   Self                     2        100 I 

show route advertising-protocol bgp (IPv6 unicast address community)

content_copy zoom_out_map
user@host> show route advertising-protocol bgp 10.255.165.220 extensive
       vpn1.inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
	* 128.205.172.129/32 (1 entry, 1 announced)
	BGP group internal type Internal
	Route Distinguisher: 10.255.168.42:8 
	VPN Label: 299808 
	Nexthop: Self 
	Flags: Nexthop Change 
	MED: 1 
	Localpref: 100  
       AS path: [203] I 
       Communities: rte-type:0.0.0.0:1:0 ipv6-origin:<2001:db8:9999::9>:89 
       ipv6-target:<2001:db8:9999::9>:89 ipv6-extended:203:<2001:db8:9999::9>:89 
       ipv6-origin:<2001:db8:9999::9>:137 ipv6-target:<2001:db8:9999::9>:137 
       ipv6-extended:515:<2001:db8:9999::9>:137

show route advertising-protocol bgp detail

content_copy zoom_out_map
user@host> show route advertising-protocol bgp 10.222.1.3 detail
bgp20.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
10.222.1.11/32 (1 entry, 1 announced)
 BGP group pe-pe type Internal
     Route Distinguisher: 10.255.14.11:69
     Advertised Label: 100000
     next hop: Self
     Localpref: 100
     AS path: 2 I
     Communities: target:69:20
     AIGP 210
10.8.0.0/16 (1 entry, 1 announced)
 BGP group pe-pe type Internal
     Route Distinguisher: 10.255.14.11:69
     Advertised Label: 100000
     Next hop: Self
     Localpref: 100
     AS path: 2 I
     Communities: target:69:20
     AIGP 210

show route advertising-protocol bgp detail (Aggregate Extended Community Bandwidth)

content_copy zoom_out_map
user@host> show route advertising-protocol bgp 10.0.4.2 10.0.2.0/30 detail 
inet.0: 20 destinations, 26 routes (20 active, 0 holddown, 0 hidden)
* 10.0.2.0/30 (2 entries, 1 announced)
 BGP group external2 type External
     Nexthop: Self
     AS path: [65000] 65001 I
     Communities: bandwidth:65000:80000000

show route advertising-protocol bgp detail (BGP Multicast)

content_copy zoom_out_map
user@host>show route advertising-protocol bgp 10.4.6.1 detail
bgpmcast.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
* 4:3:0:0:32:10.2.20.20:32:225.1.1.1:10.1.1.1:10.20.20.20/240 (1 entry, 1 announced)
 BGP group ibgp type Internal
     Nexthop: 10.4.6.6
     Localpref: 100
     AS path: [65000] 65001 I
     Communities: target:65000:100
     Tunnel type: AnyEncap, RPF tunnel:, Remote end point: 10.1.2.1
     Tunnel type: AnyEncap, Remote end point: 10.1.4.1

show route advertising-protocol bgp detail (Labeled Unicast)

content_copy zoom_out_map
user@host>show route advertising bgp 10.1.1.3 detail
inet.0: 69 destinations, 70 routes (69 active, 0 holddown, 0 hidden)
* 10.1.1.8/32 (2 entries, 2 announced)
BGP group ibgp type Internal
Route Labels: 1000123(top) 1000124 1000125 1000126
Nexthop: 10.1.1.4
MED: 7
Localpref: 100
AS path: [65005] I
Cluster ID: 10.3.3.3
Originator ID: 10.1.1.1
Entropy label capable
inet6.0: 26 destinations, 28 routes (26 active, 0 holddown, 0 hidden)
* 2001:db8:100::1/128 (2 entries, 1 announced)
BGP group ibgp type Internal
Labels: 1000123(top) 1000124 1000125 1000126
Nexthop: 2001:db8:0:ffff:10.1.1.4
Localpref: 100
AS path: [65005] I
Cluster ID: 10.3.3.3
Originator ID: 10.1.1.1

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

content_copy zoom_out_map
user@host> show route advertising-protocol bgp 192.168.24.1 detail
vpn-a.l2vpn.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
192.168.16.10:1:1:1/96 (1 entry, 1 announced)
 BGP group int type Internal
     Route Distinguisher: 192.168.16.1:1
     Label-base : 32768, range : 3
     Nexthop: Self
     Localpref: 100
     AS path: I
     Communities: target:65412:100 
     AIGP 210
     Layer2-info: encaps:VLAN, control flags:, mtu:

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

content_copy zoom_out_map
user@host> show route advertising-protocol bgp 10.255.14.176 detail
vpna.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
* 10.49.0.0/30 (1 entry, 1 announced)
 BGP group ibgp type Internal
     Route Distinguisher: 10.255.14.174:2
     VPN Label: 101264
     Nexthop: Self
     Localpref: 100
     AS path: I
     Communities: target:10:100
     AIGP 210
     AttrSet AS: 65100
         Localpref: 100
         AS path: I
...

show route advertising-protocol bgp extensive all (Next Hop Self with RIB-out IP Address)

content_copy zoom_out_map
user@host> show route advertising-protocol bgp 10.200.0.2 10.170.1.0/24 extensive all
inet.0: 13 destinations, 19 routes (13 active, 0 holddown, 6 hidden)
  10.170.1.0/24 (2 entries, 1 announced)
 BGP group eBGP-INTEROP type External
     Nexthop: Self (rib-out 10.100.3.2)
     AS path: [64713] 65200 I
...

Release Information

Command introduced before Junos OS Release 7.4.

ipv6-origin, ipv6-target, and ipv6-extended Community output fields supported in Junos OS Release and Junos OS Evolved Release 23.1.

footer-navigation