display bgp sr-policy routing-table peer

Function

The display bgp sr-policy routing-table peer command displays information about routes in a BGP IPv4 SR-Policy address family.

The display bgp sr-policy routing-table peer statistics command displays statistics about routes in a BGP IPv4 SR-Policy address family.

Format

display bgp sr-policy routing-table [ peer ipv4-address { advertised-routes | received-routes } ] [ sr-policy-prefix ]

display bgp sr-policy routing-table peer ipv4-address { advertised-routes | received-routes } statistics

Parameters

Parameter Description Value
peer ipv4-address

Specifies an IPv4 peer address.

The value is in dotted decimal notation.

advertised-routes

Displays routes advertised to the remote peer.

-

received-routes

Displays routes received from the remote peer.

-

sr-policy-prefix

Displays information about the route with a specified SR-Policy prefix.

The value is a string case-sensitive characters, spaces not supported. The format is [distinguisher][policycolor][endpoint]([x][x][x.x.x.x]).

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

To check information about desired SR-Policy routes, run the display bgp sr-policy routing-table peer command with specified parameters.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about advertised routes in a BGP IPv4 SR-Policy address family.
<HUAWEI> display bgp sr-policy routing-table peer 10.1.1.2 advertised-routes [10][10][10.10.10.10]
BGP local router ID : 10.1.1.1
 Local AS number : 100
 Paths:   1 available, 1 best, 1 select, 0 best-external, 0 add-path
 BGP routing table entry information of [10][10][10.10.10.10]:
 From: 0.0.0.0 (0.0.0.0) 
 Route Duration: 0d03h00m33s
 Relay IP Nexthop: 0.0.0.0
 Original nexthop: 127.0.0.1
 Qos information : 0x0
 AS-path Nil, origin incomplete, MED 0, pref-val 0, valid, local, best, pre 255
 Tunnel Encaps Attribute (23):
 Tunnel Type: SR-MPLS TE Policy (15)
  Binding SID: 1111, s-flag(1), i-flag(1)
  Preference: no present
   Segment List
    Weight: no present
    Segment: type:1, Label:1111
 Advertised to such 1 peers:
    10.1.1.2
Table 1 Description of the display bgp sr-policy routing-table peer command output
Item Description
BGP local router ID

Local router ID of BGP.

BGP routing table entry information of [10][10][10.10.10.10]

Information about the SR-Policy route [10][10][10.10.10.10].

Local AS number

Local AS number.

Route Duration

Duration of the route.

Relay IP Nexthop

Recursive next hop.

Original nexthop

Original next-hop IP address.

AS-path

AS_Path attribute (Nil indicates that the attribute value is null.).

Tunnel Encaps Attribute

Tunnel Encaps Attribute information of the BGP SR-Policy route, including:

  • Tunnel Type: tunnel type.
  • Binding SID: binding SID (BSID). The backup path of each SR-Policy tunnel corresponds to one BSID. Different backup paths of the same SR-Policy tunnel have the same BSID.
  • Preference: preference of a backup path.
  • Segment List: SID list.
  • Weight: weight of a path in load balancing mode.
  • Segment: network segment.
  • type: segment type.
  • Label: MPLS label.
Tunnel Type

Tunnel Type.

Binding SID

Binding SID.

Advertised to such 1 peers

Peer to which a route is advertised.

From

IP address of the device that advertises the route.

Origin

Origin of the route:

  • IGP: indicates that the route is added to the BGP routing table using the network (BGP) command.
  • EGP: indicates that the route is learned through the EGP.
  • Incomplete: indicates that the origin of the route cannot be identified. For example, if a route is imported using the import-route (BGP) command, its origin is Incomplete.
Paths

Information about paths.

Preference

The priority of the route.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >