236
Syntax
display bgp routing-table ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] network-address [ mask |
mask-length ] advertise-info
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31
characters. If no VPN is specified, the command displays advertisement information of BGP IPv4 unicast
routes for the public network.
network-address: Specifies a destination network address.
mask: Specifies a network mask, in dotted decimal notation.
mask-length: Specifies a mask length in the range of 0 to 32.
Usage guidelines
• If the mask and mask-length arguments are not specified, the system ANDs the specified network
address with the mask of a route. If the result matches the network address of the route, the
command displays advertisement information for the route.
• If the mask or mask-length argument is specified, the command displays advertisement information
for the BGP IPv4 unicast route that matches both the specified destination network address and the
mask (or mask length).
The command with the unicast keyword has the same effect as that without the unicast keyword.
Examples
# Display advertisement information of BGP IPv4 unicast routes destined to network 10.2.1.0/24 for the
public network.
<Sysname> display bgp routing-table ipv4 10.2.1.0 24 advertise-info
BGP local router ID: 192.168.100.1
Local AS number: 100
Paths: 1 best
BGP routing table information of 10.2.1.0/24:
Advertised to peers (1 in total):
10.2.1.2
Table 63 Command output
Field Description
Paths Number of optimal routes destined to the specified network.
BGP routing table information of
10.2.1.0/24
Advertisement information of BGP routes destined to network
10.2.1.0/24.