debugging bgp packet update sr-policy ipv6

Function

The debugging bgp packet update sr-policy ipv6 command enables debugging of BGP IPv6 SR-Policy's update packets.

The undo debugging bgp packet update sr-policy ipv6 command disables debugging of BGP IPv6 SR-Policy's update packets.

By default, debugging of BGP IPv6 SR-Policy update packets is disabled.

Format

debugging bgp packet update sr-policy ipv6 [ peer ipv6-address ] [ receive | send ]

undo debugging bgp packet update sr-policy ipv6 [ peer ipv6-address ] [ receive | send ]

Parameters

Parameter Description Value
peer ipv6-address

IPv6 peer address.

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

receive

Outputs debugging information about the specified packet receiving direction.

-

send

Outputs debugging information about the specified packet sending direction.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
bgp debug

Usage Guidelines

Usage Scenario

The debugging bgp packet command enables debugging of BGP IPv6 SR-Policy address family update packets so that you can view the information during BGP update packet receiving and sending.

Follow-up Procedure

Run the undo debugging bgp packet update sr-policy ipv6 command to disable debugging.

Precautions

Debugging information is output on the screen. Do not output too much information for other purposes than debugging so that the performance is not affected.

Example

# Enable debugging of BGP IPv6 SR-Policy's update packets.
<HUAWEI> debugging bgp packet update sr-policy ipv6 receive

Aug  2 2019 07:23:54.651 HUAWEI %%01BGP/3/DEBUG_INFO(d):CID=0x816504ba;
 BGP.RM(VPN 0): Received UPDATE from 1::1, SourceIfIndex: 8, Length: 55,
 Address family: IPv6-srpolicy

Aug  2 2019 07:23:54.651 HUAWEI %%01BGP/3/DEBUG_INFO(d):CID=0x816504ba;
         Mp_unreach   : AFI/SAFI IPv6-srpolicy
 SRPOLICY NLRI: Distinguisher[46], PolicyColor[46], Endpoint[8::8].
,


Aug  2 2019 07:24:00.945 HUAWEI %%01BGP/3/DEBUG_INFO(d):CID=0x816504ba;
 BGP.RM(VPN 0): Received UPDATE from 1::1, SourceIfIndex: 8, Length: 149,
 Address family: IPv6-srpolicy
         Origin       : incomplete
         AS-path      : NIL
         Nexthop      : 1::1
         MED          : 0
         Localpref    : 100
 Tunnel Encaps Attribute (23):
 Tunnel Type: SR Policy (15)
  Preference: 100
  Segment List
    Weight: 55
    Segment: type:2, SID: 1::2
  Template ID: 66
 

Aug  2 2019 07:24:00.945 HUAWEI %%01BGP/3/DEBUG_INFO(d):CID=0x816504ba;
         Mp_reach     : AFI/SAFI IPv6-srpolicy Next hop 1::1
 SRPOLICY NLRI: Distinguisher[46], PolicyColor[46], Endpoint[8::8].
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >