display bgp sr-policy ipv6 routing-table peer

Function

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

Format

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

display bgp sr-policy ipv6 routing-table peer remoteIpv6Addr { advertised-routes | received-routes } statistics

Parameters

Parameter Description Value
remoteIpv6Addr

IPv6 peer address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

advertised-routes

Displays the routes advertised to a specified peer.

-

received-routes

Displays the routes received from a specified peer.

-

sr-policy-prefix

The prefix of IPv6 SR-Policy routes.

The value is a string case-sensitive characters, spaces not supported.

statistics

Displays statistics about routes advertised to or received from a specified peer.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

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

To check information about desired IPv6 SR-Policy routes, you can specify parameters as required.

Example

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

# Display statistics about routes in the BGP IPv6 SR-Policy address family.
<HUAWEI> display bgp sr-policy ipv6 routing-table peer 1::1 received-routes statistics

 Received routes total: 1
# Display information about routes in the BGP IPv6 SR-Policy address family.
<HUAWEI> display bgp sr-policy ipv6 routing-table peer 1::1 received-routes [46][46][8::8]


 BGP local router ID : 2.2.2.2
 Local AS number : 100
 Paths:   1 available, 1 best, 1 select, 0 best-external, 0 add-path
 BGP routing table entry information of [46][46][8::8]:
 From: 1::1 (192.168.1.1) 
 Route Duration: 0d00h01m30s
 Relay IP Nexthop: 1::1
 Relay IP Out-Interface:Ethernet0/1/16
 Original nexthop: 1::1
 Qos information : 0x0
 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, best, select, pre 255
 Tunnel Encaps Attribute (23):
 Tunnel Type: SR Policy (15)
  Preference: 123
  Binding SID: 1::2, s-flag(0), i-flag(0)
  Segment List
    Weight: 55
    Segment: type:13, SID: 28:1:8::2, Flags:0x10
    SID Structure: LB length:48, LN length:16, Func length:16, Args length:0
 Not advertised to any peer yet
Table 1 Description of the display bgp sr-policy ipv6 routing-table peer command output
Item Description
Received routes total

Number of routes received from the peer.

BGP local router ID

Router ID of the local BGP device.

BGP routing table entry information

The following information is about IPv6 SR-Policy routes.

Local AS number

Local AS number.

Route Duration

Duration of the route.

Relay IP Nexthop

Next hop of IP recursion.

Relay IP Out-Interface

Outbound interface of IP recursion.

Original nexthop

Original next hop.

Qos information

QoS information.

AS-path

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

MED

Route MED: This attribute is applicable only to the routes of EBGP peers, not IBGP peers.

pref-val

Preferred value (PrefVal) of a protocol.

Tunnel Encaps Attribute

Tunnel Encaps Attribute of the BGP IPv6 SR-Policy route:

  • Tunnel Type: indicates the type of a tunnel.
  • Binding SID: Each backup path of an IPv6 SR-Policy tunnel corresponds to a BSID. Multiple backup paths of an IPv6 SR-Policy tunnel have the same BSID.
  • Preference: indicates the priority of the backup path.
  • Segment List: SID list.
  • Weight: specifies the weight of a path for load balancing.
  • Segment: network segment.
  • type: segment type.
  • SID: SRv6 SID value.
  • SID structure: block length and G-SID length of the compressed SID.
Tunnel Type

Tunnel type.

Binding SID

Bound SID.

Not advertised to any peer yet

The route has not advertised to any peer yet.

From

IP address of the device that sends the route.

Origin

Origin of the route:

  • IGP: If a route is added to the BGP routing table using the network (BGP) command, the Origin attribute of the route is IGP.
  • EGP: indicates that the route is learned through 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.
valid

The BGP route is a valid route.

internal

Internal route.

best

Optimal route.

Preference

BGP route preference.

/no-xpath-for-item/

Local preference. This attribute is applicable only to the routes learned from IBGP peers, but not to the routes learned from EBGP peers.

/no-xpath-for-item/

Route flag that contains the character string.

/no-xpath-for-item/

Reason why the route is not selected.

/no-xpath-for-item/

List of peers to which routes are sent.

/no-xpath-for-item/

Advertise nexthop.

/no-xpath-for-item/

VPN name of a BGP instance.

/no-xpath-for-item/

Remote peer address.

/no-xpath-for-item/

SR PBR prefix.

/no-xpath-for-item/

ID of the routing table to which routes are imported.

/no-xpath-for-item/

Timestamp of a route.

/no-xpath-for-item/

Community attribute of an RPD route.

/no-xpath-for-item/

Extended community attribute.

/no-xpath-for-item/

Router ID of the route initiator (cluster).

/no-xpath-for-item/

List of clusters to which RPD routes belong.

/no-xpath-for-item/

Router ID of the peer.

/no-xpath-for-item/

Large community attribute information.

/no-xpath-for-item/

Name of the outbound interface of a route.

/no-xpath-for-item/

Name of the outbound interface of a route.

Paths

Path information.

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