233
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 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
BGP local router ID is 192.168.100.1
Status codes: * - valid, > - best, d - damped, h - history,
s - suppressed, S - Stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
> 10.2.1.0/24 10.2.1.1 0 0 i
e 10.2.1.2 0 0 200i
> 192.168.1.0 192.168.1.135 0 0 i
* e 10.2.1.2 0 0 200i