display bgp network

Function

The display bgp network command displays the routes imported into the BGP routing table using the network command.

Format

display bgp network

display bgp vpnv4 all network

display bgp vpnv4 vpn-instance vpn-instance-name network

display bgp instance instance-name vpnv4 all network

display bgp instance instance-name vpnv4 vpn-instance vpn-instance-name network

display bgp labeled network

Parameters

Parameter Description Value
vpnv4

Displays the VPNv4 routes that are advertised using the network command.

-

all

Displays all the VPNv4 routes that are advertised using the network command.

-

vpn-instance vpn-instance-name

Displays the routes of a specified VPN instance that are advertised using the network command.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

instance instance-name

Specifies a BGP multi-instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

labeled

Specifies a labeled address family.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

To check the routes imported into the BGP routing table using the network command, run the display bgp network command.

Example

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

# Display information about routes that are imported using the network command.
<HUAWEI> display bgp network

BGP Local Router ID is 1.1.1.9
Local AS Number is 10(Public)
Network          Mask            Non-Relay-Tunnel   Route-policy

1.2.0.0          255.255.0.0     false
3.0.0.0          255.0.0.0       false              Policy1
4.4.4.0          255.255.255.0   true
# Display information about BGP VPNv4 routes that are imported using the network command.
<HUAWEI> display bgp vpnv4 all network
BGP Local Router ID is 2.2.2.9
Local AS Number is 100

VPN-Instance vpn1, Router ID 2.2.2.9:
Network          Mask            Route-policy

4.4.4.4          255.255.255.255

VPN-Instance vpn2, Router ID 2.2.2.9:
Network          Mask            Route-policy

5.5.5.5          255.255.255.255
Table 1 Description of the display bgp network command output
Item Description
BGP Local Router ID is

ID of the local BGP device. The ID is in the same format as an IPv4 address.

Local AS Number is

Local AS number.

Router ID

Router ID of the device.

Network

Locally-imported network address.

Mask

Mask of the network address.

Non-Relay-Tunnel

Whether the routes imported by BGP do not recurse to tunnels:

  • true: The routes imported by BGP do not recurse to tunnels.
  • false: The function of not recursing routes imported by BGP to tunnels is not configured.
Route-policy

Used routing policy.

VPN-Instance

VPN-Instance.

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