The display bgp link-state unicast routing-table command displays BGP-LS route information.
Parameter | Description | Value |
---|---|---|
peer ipv4-address |
Specifies the address of the IPv4 peer to be displayed. |
The value is in dotted decimal notation. |
ipv6-address |
Specifies the address of the IPv6 peer to be displayed. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
received-routes |
Displays BGP-LS routes received from the specified peer. |
- |
advertised-routes |
Displays BGP-LS routes advertised to the specified peer. |
- |
bgp-ls-prefix |
Specifies a BGP-LS route prefix. |
The BGP-LS route prefix format is complex. To facilitate your query, run the display bgp link-state unicast routing-table command to check all BGP-LS routes, and copy the prefix of the route whose information is to be queried when specifying prefix. |
Usage Scenario
To check BGP-LS route information, run the display bgp link-state unicast routing-table command. BGP-LS routes carry topology information and are classified into five types of routes that carry node, link, route prefix, TE Policy and SRv6-sid information, respectively. Theses routes collaborate in carrying topology information.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bgp link-state unicast routing-table [NODE][ISIS-LEVEL-1][IDENTIFIER0][LOCAL[as100][bgp-ls-identifier3.3.3.3][ospf-area-id0.0.0.0][igp-router-id0000.0000.0002.00]]
BGP local router ID : 1.1.1.1
Local AS number : 200
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of [NODE][ISIS-LEVEL-1][IDENTIFIER0][LOCAL[as100][bgp-ls-identifier3.3.3.3][ospf-area-id0.0.0.0][igp-router-id0000.0000.0002.00]]:
From: 100.0.0.2 (189.118.23.24)
Route Duration: 0d00h00m03s
Direct Out-interface: Ethernet0/1/19
Original nexthop: 12.1.1.2
AS-path 100, origin incomplete, MED 0, pref-val 0, valid, external, best, select, pre 255
Link-state Route Type: NODE
Protocol: ISIS-LEVEL-1
Identifier: 0
Local Node Descriptor:
AS Number: 100
BGP Identifier: 3.3.3.3
OSPF Area ID: 0.0.0.0
IGP Router ID: 0000.0000.0002.00
Link-state attribute:
MT ID: 0
Node Flag Bits: 0x0
Opaque Node Properties:
Node name:
IS-IS Area Identifier: 0x00
IPv4 Router ID of Local Node:
IPv6 Router ID of Local Node: 2::2
SID/Label Binding:
SR Capabilities(Flags/[Range Size, Sid Value]): <0xc0/[16001,16000]>
SR Local Block(Flags/[Range Size, Sid Value]):
SR Algorithm:
SRv6 Capabilities(Flags):
MSD([MSD Type, MSD Value]): [1,10]
Flexible Algorithm Definition Count: 1
Advertised to such 1 peers:
10.1.1.2
<HUAWEI> display bgp link-state unicast routing-table [LINK][ISIS-LEVEL-2][IDENTIFIER0][LOCAL[as100][bgp-ls-identifier3.3.3.3][ospf-area-id0.0.0.0][igp-router-id0000.0000.0002.00]][REMOTE[as100][bgp-ls-identifier3.3.3.3][ospf-area-id0.0.0.0][igp-router-id0000.0000.0003.01]][LINK[if-address100.0.0.2][peer-address0.0.0.0][if-address::][peer-address::]][index1]
BGP local router ID : 1.1.1.1
Local AS number : 200
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of [LINK][ISIS-LEVEL-2][IDENTIFIER0][LOCAL[as100][bgp-ls-identifier3.3.3.3][ospf-area-id0.0.0.0][igp-router-id0000.0000.0002.00]][REMOTE[as100][bgp-ls-identifier3.3.3.3][ospf-area-id0.0.0.0][igp-router-id0000.0000.0003.01]][LINK[if-address100.0.0.2][peer-address0.0.0.0][if-address::][peer-address::]]:
From: 100.0.0.2 (189.118.23.24)
Route Duration: 0d00h00m05s
Direct Out-interface: Ethernet0/1/19
Original nexthop: 12.1.1.2
AS-path 100, origin incomplete, MED 0, pref-val 0, valid, external, best, select, pre 255
Link-state Route Type: LINK
Protocol: ISIS-LEVEL-2
Identifier: 0
Local Node Descriptor:
AS Number: 100
BGP Identifier: 3.3.3.3
OSPF Area ID: 0.0.0.0
IGP Router ID: 0000.0000.0002.00
Remote Node Descriptor:
AS Number: 100
BGP Identifier: 3.3.3.3
OSPF Area ID: 0.0.0.0
IGP Router ID: 0000.0000.0003.01
Link Descriptor:
IPv4 interface address: 100.0.0.2
IPv4 neighbor address: 0.0.0.0
IPv6 interface address: ::
IPv6 neighbor address: ::
Link-state attribute:
Link Local Identifier: 47
IPv4 Router ID of Local Node:
IPv6 Router ID of Local Node: 2::2
IPv4 Router ID of Remote Node:
IPv6 Router ID of Remote Node:
Administrative group: 0x0
Maximum link bandwidth(kbits/sec): 0
Maximum reservable link bandwidth(kbits/sec): 0
Maximum Unreserved bandwidth(kbits/sec): 0 0 0 0 0 0 0 0
TE Default Metric: 0
Link Protection Type: Null
MPLS Protocol Mask: 0x0
IGP Metric: 10
Shared Risk Link Group:
Min/Max Unidirectional Link Delay(microseconds): 0/0
Opaque link Properties:
Link Name:
Adjacency Segment Identifier(Flags/Weight/SID):
LAN Adjacency Segment Identifier(Flags/Weight/System-ID/SID):
SRv6 End.X SID(EndPoint Function/Flags/Algorithm/Weight/SID):
SRv6 LAN End.X SID(EndPoint Function/Flags/Algorithm/Weight/Neighbor ID/SID):
Application Specific Link Attributes:
SABML/UDABML/SABM/UDABM: <4/0/0x00000010></4>
TE Default Metric: 200
Min/Max Unidirectional Link Delay(Flags/Min Delay(us)/Max Delay(us)): <0/300/300>
Advertising Extended Administrative Groups: 0x00000002
Advertised to such 1 peers:
10.1.1.2
<HUAWEI> display bgp link-state unicast routing-table [IPV4-PREFIX][ISIS-LEVEL-2][IDENTIFIER0][LOCAL[as100][bgp-ls-identifier3.3.3.3][ospf-area-id0.0.0.0][igp-router-id0000.0000.0003.00]][PREFIX[ospf-route-type0][prefix3.3.3.3/32]][index1]
BGP local router ID : 1.1.1.1
Local AS number : 200
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of [IPV4-PREFIX][ISIS-LEVEL-2][IDENTIFIER0][LOCAL[as100][bgp-ls-identifier3.3.3.3][ospf-area-id0.0.0.0][igp-router-id0000.0000.0003.00]][PREFIX[ospf-route-type0][prefix3.3.3.3/32]]:
From: 100.0.0.2 (189.118.23.24)
Route Duration: 0d00h00m01s
Direct Out-interface: Ethernet0/1/19
Original nexthop: 12.1.1.2
AS-path 100, origin incomplete, MED 0, pref-val 0, valid, external, best, select, pre 255
Link-state Route Type: IPV4-PREFIX
Protocol: ISIS-LEVEL-2
Identifier: 0
Local Node Descriptor:
AS Number: 100
BGP Identifier: 3.3.3.3
OSPF Area ID: 0.0.0.0
IGP Router ID: 0000.0000.0003.00
Prefix Descriptor:
OSPF Route Type: Null
IP Prefix: 3.3.3.3/32
Link-state attribute:
IGP Flags: 0x0
Route Tag:
Extended Tag:
Prefix Metric: 10
OSPF Forwarding Address: 0.0.0.0
Opaque Prefix Attribute: 0.0.0.0
Prefix SID(Flags/Algorithm/SID): <0xa0/128/1002>
Flex Algorithm Prefix Metric Count: 2
Advertised to such 1 peers:
10.1.1.2
Item | Description |
---|---|
BGP local router ID | Local router ID of BGP. |
BGP routing table entry information of | Routing entry information. |
BGP Identifier | BGP identifier. |
Local AS number | Local AS number. |
Local Node Descriptor | Description of the local node:
|
AS Number | AS number. |
select | Preferred route. |
Route Duration | Duration of the route. |
Route Tag | Route label. |
Direct Out-interface | Directly connected outbound interface. |
Original nexthop | Original next hop. |
AS-path | AS_Path attribute. Nil indicates that the attribute value is null. |
origin | Origin attribute of a BGP route It is classified into the following types:
|
MED | Multi-Exit-Discriminator (MED): determines the optimal route for traffic entering an AS. If the other attributes of routes are the same, the route with the smallest MED value is selected as the optimal route. |
pref-val | Local preference of a BGP route. |
pre | BGP route preference. |
Link-state Route Type | BGP-LS route type, which can be node, link, or route prefix. |
Link-state attribute | Link status attribute:
|
OSPF Area ID | OSPF area ID. |
OSPF Route Type | OSPF route type. |
OSPF Forwarding Address | OSPF forwarding address. |
IGP Router ID | IGP route ID. |
IGP Metric | IGP metric. |
IGP Flags | IGP flag. |
Opaque link Properties | Opaque link attribute. |
Opaque Prefix Attribute | Opaque prefix attribute. |
IPv4 interface address | IPv4 address of the interface. |
IPv4 neighbor address | IPv4 peer address. |
IPv4 Router ID of Remote Node | IPv4 router ID of the remote node. |
IPv6 interface address | IPv6 address of an interface. |
IPv6 neighbor address | IPv6 peer address. |
IPv6 Router ID of Remote Node | IPv6 router ID of the remote node. |
SRv6 Capabilities(Flags) | SRv6 function (function flag). |
SRv6 End.X SID(EndPoint Function/Flags/Algorithm/Weight/SID) | SRv6 End.X SID (endpoint function/flag/algorithm/weight/SID). |
SRv6 LAN End.X SID(EndPoint Function/Flags/Algorithm/Weight/Neighbor ID/SID) | SRv6 LAN End.X SID (endpoint function/flag/algorithm/weight/neighbor ID/SID). |
Flexible Algorithm Definition Count | Number of attributes defined by the flexible algorithm. |
Remote Node Descriptor | Remote node route descriptor. |
Link Descriptor | Link route descriptor. |
Link Local Identifier | Local identifier of a link route. |
Link Protection Type | Link protection type. |
Link Name | Link name. |
Administrative group | Management group. |
Maximum link bandwidth(kbits/sec) | Maximum link bandwidth, in kbit/s. |
Maximum reservable link bandwidth(kbits/sec) | Maximum reservable link bandwidth (kbit/s/sec). |
Maximum Unreserved bandwidth(kbits/sec) | Maximum unreserved bandwidth (kbit/s/sec). |
TE Default Metric | Default TE metric value. |
MPLS Protocol Mask | Mask of the MPLS protocol. |
Protocol | IGP that collects topology information. |
Shared Risk Link Group | Shared risk link group (SRLG). |
Min/Max Unidirectional Link Delay(microseconds) | Minimum/Maximum unidirectional link delay, in microseconds. |
Min/Max Unidirectional Link Delay(Flags/Min Delay(us)/Max Delay(us)) | Minimum/Maximum unidirectional link delay (link delay flag/minimum delay (microsecond)/maximum delay (microsecond)). |
Adjacency Segment Identifier(Flags/Weight/SID) | Adjacency segment identifier (critical segment identifier/weight/SID). |
LAN Adjacency Segment Identifier(Flags/Weight/System-ID/SID) | LAN adjacency identifier (LAN adjacency identifier/weight/system ID/SID). |
Application Specific Link Attributes | Semantic attribute of a specific application link. |
Advertising Extended Administrative Groups | Broadcast extended management group. |
Extended Tag | Extended label. |
Prefix Descriptor | Prefix descriptor. |
Prefix Metric | Prefix metric. |
Prefix SID(Flags/Algorithm/SID) | Prefix SID (flag/algorithm/SID). |
IP Prefix | IP address prefix. |
Flex Algorithm Prefix Metric Count | Number of flexible algorithm prefix metrics. |
Paths | Route selection result. |
From | IP address of the device that sends the route. |
valid | Valid route. |
external | External route. |
best | Optimal route. |
Identifier | BGP-LS identifier of the protocol that collects topology information. |
MSD([MSD Type, MSD Value]) | MSD ([MSD type, MSD value]). |
SABML/UDABML/SABM/UDABM | SABML/UDABML/SABM/UDABM. |