show ip bgp advertised-routes
Displays the routes in the Adj-RIBs-Out table of the specified peer or peer group. For peers, displays routes that have been previously advertised to the peer and the attributes for the routes before the application of outbound policy.
For peer groups, displays routes that will be advertised to the peer group, but includes the full set of route attributes associated with the routes after the application of outbound policy. This command returns an error message unless you first enable rib-out with the no neighbor rib-out disable command or the no rib-out disable command.
To display routes advertised to a neighbor or peer group in all address families or a particular address family:
show ip bgp [ ipv4 unicast | ipv4 multicast | vpnv4 all | vpnv4 vrf vrfName |
l2vpn [ all ] | route-target signaling ]
{ neighbors { ipAddress | ipv6Address } | peer-group peerGroupName }
advertised-routes [ fields { fieldOptions } ] [ delta ] [ filter ]To display routes advertised to the specified peer group for all VPN address families or for a particular VPN address family after the application of route-target filters advertised by the specified member of the peer group:
show ip bgp [ vpnv4 all | vpnv4 vrf vrfName ] | l2vpn [ all ] | route-target signaling ]
peer-group peerGroupName advertised-routes
route-target-filter neighbor { ipRtfNbrAddress| ipv6RtfNbrAddress }
[ fields { pgfieldOptions } ] [ delta ] [ filter ]To display the route that best matches the specified address for all address families or for a particular address family; not available for the L2VPN address family:
show ip bgp [ ipv4 unicast | ipv4 multicast | vpnv4 all | vpnv4 vrf vrfName ]
{ neighbors { ipAddress | ipv6Address } | peer-group peerGroupName }
advertised-routes network [ networkMask [ longer-prefixes ] ]
[ fields { fieldOptions } ] [ delta ] [ filter ]To display routes advertised to a neighbor or peer group with the specified site ID and block offset in the L2VPN address family:
show ip bgp l2vpn all
{ neighbors { ipAddress | ipv6Address } | peer-group peerGroupName }
advertised-routes site-id siteId block-offset blockOffset
[ fields { fieldOptions } ] [ delta ] [ filter ]To display all routes or the route that best matches the specified address advertised to a neighbor or peer group in only the route-target address family:
show ip bgp route-target signaling
{ neighbors { ipAddress | ipv6Address } | peer-group peerGroupName }
advertised-routes rtfPrefix [ longer-prefixes ]
[ fields { fieldOptions} ] [ delta ] [ filter ]
- ipv4 unicastSpecifies the IPv4 unicast address family and routing table; the default option
- ipv4 multicastSpecifies the IPv4 multicast address family and routing table
- vpnv4 allSpecifies the IPv4 VPN address family and all IPv4 VPN routing and forwarding instances
- vpvn4 vrf vrfNameSpecifies the IPv4 VPN address family and only the IPv4 VPN routing and forwarding instance with the name vrfName
- l2vpn allDisplays information for only the L2VPN address family; the all keyword is optional unless you specify a site ID and block offset
- route-target signalingSpecifies the route-target address family
- ipAddressIP address of a neighbor whose routes the router has learned
- ipv6AddressIPv6 address of a neighbor whose routes the router has learned
- peerGroupNameName of a BGP peer group
- route-target-filter neighborDisplays routes actually advertised to the specified peer group member (neighbor); which routes are advertised is determined by the application of the route-target filter received from that neighbor to routes in the peer group's Adj-RIBs-Out table
- ipRtfNbrAddressIP address of a peer group member that has advertised route-target membership filtering information
- ipv6RtfNbrAddressIPv6 address of a peer group member that has advertised route-target membership filtering information
- networkRoute that best matches this IP address; if no network is specified, displays the fields for all networks
- networkMaskAddress mask to be applied to the network address
- longer-prefixesDisplays all routes with a prefix that is equal to or more specific than the specified prefix
- siteIdNumerical identifier for the site; must be an unsigned 16-bit integer greater than zero that is unique across the VPLS domain
- blockOffsetInteger in the range 165535 that identifies a block offset for which information is displayed
- rtfPrefixPrefix representing the route-target membership NLRI (RT-MEM-NLRI), in the format asNumber:extendedCommunity/prefixLength (for example, 320:320:524/36) where:
- asNumberAS number for origin of route target information, in the range 14294967295
- extendedCommunityTwo-part number in the format number1:number2 that identifies an extended community of VPNs, in the format number1:number2, where:
- number1Autonomous system (AS) number, in the range 14294967295, or an IP address
- number2Unique integer, in the range 14294967295; 32 bits if number1 is a 16-bit AS number; 16 bits if number1 is an IP address or a 32-bit AS number
- fieldsDisplays only the specified fields; the display order of the fields is hard-coded and not affected by the order in which you enter them
- fieldOptionsFields to be displayed, in the format
all | [ afi | aggregator | as-path | atomic-aggregate | best | clusters | communities | extended-communities | imported | intro | in-label | loc-pref | med | next-hop | next-hop-cost | origin | originator-id | out-label | peer | peer-type | rd | safi | stale | unknown-types | weight ]*For peers, all described options are available. For peer groups, all options are available except the following:
best | imported | intro | next-hop-cost | peer | peer-type | stale | weight
- allAll available information; not recommended, because this information for each network does not fit on a single line and is difficult to read
- afiAddress family identifier
- aggregatorAS number and IP address of aggregator
- as-pathAS path through which this route bas been advertised
- atomic-aggregateWhether the atomic aggregate attribute is present
- bestWhether this is the best route for the prefix
- clustersList of cluster IDs through which the route has been advertised
- communitiesCommunity number associated with the route
- extended-communitiesExtended community
- importedWhether the route was imported
- introIntroductory information about the state of various BGP attributes; this information is displayed only if you specify this keyword
- in-labelMPLS label for the route; the label received with incoming MPLS frames; typically, but not always, this is the label advertised to MP-BGP peers
- loc-prefLocal preference for the route
- medMultiexit discriminator for the route
- next-hopIP address of the next router that is used when forwarding a packet to the destination network
- next-hop-costWhether the indirect next hop of the route is unreachable, if not, displays IGP cost to the indirect next hop
- originOrigin of the route
- originator-idRouter ID of the router in the local AS that originated the route
- out-labelMPLS label for the route; the label sent with outgoing MPLS frames; also the label received from MP-BGP peer; typically, but not always, this is the label received from MP-BGP peers
- peerIP address of BGP peer from which route was learned
- peer-typeType of BGP peer: internal, external, or confederation
- rdRoute distinguisher
- safiSubsequent address family identifier
- staleRoute that has gone stale due to peer restart
- unknown-typesAttribute codes for unknown path attributes
- weightWeight of the route
- *Indicates that one or more parameters can be repeated multiple times in a list in the command line
- deltaDisplays baselined statistics
- filterSee Filtering show Commands in About This Guide
Privileged Exec, User Exec
Command introduced before JUNOSe Release 7.1.0.
l2vpn and all keywords added in JUNOSe Release 7.1.0.
site-id keyword and siteId variable added in JUNOSe Release 7.1.0.
block-offset keyword and blockOffset variable added in JUNOSe Release 7.1.0.
ipv6Address variable added in JUNOSe Release 8.0.0.
route-target signaling and route-target-filter neighbor keywords and ipRtfNbrAddress, ipv6RtfNbrAddress, and rtMemNlri variables added in JUNOSe Release 8.2.0.
rtMemNlri variable replaced by rtfPrefix variable in JUNOSe Release 9.1.0.