R211x-HP Flexfabric 11900 Layer 3 - IP Routing Command Reference

307
display bgp routing-table ipv4 unicast
Use display bgp routing-table ipv4 unicast to display BGP IPv4 unicast routing information.
Syntax
display bgp routing-table ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ network-address [ { mask
| mask-length } [ longest-match ] ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string
of 1 to 31 characters. If no VPN instance is specified, the command displays the BGP IPv4 unicast routing
information 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.
longest-match: Displays the routing entries selected through the following steps:
1. AND the specified network address with the specified mask.
2. Display the route with the longest mask among the matching routes that have a mask shorter than
or equal to the specified mask.
Usage guidelines
If the network-address, mask, and mask-length arguments are not specified, the command displays
brief information about all BGP IPv4 unicast routes.
If only the network-address argument is specified, the system ANDs the network address with the
mask of a route. If the result matches the network address of the route, the command displays
detailed information about the route.
If the network-address mask or network-address mask-length argument is specified and the
longest-match keyword is not specified, the command displays detailed information about 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 brief information about all BGP IPv4 unicast routes for the public network.
<Sysname> display bgp routing-table ipv4
Total number of routes: 4