display fib ip-address

Syntax

display fib [ vpn-instance vpn-instance-name ] ip-address [ mask | mask-length ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance vpn-instance-name: Displays the FIB entries of the specified VPN. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. Without this option specified, FIB entries of the public network are displayed.

ip-address: Destination IP address in dotted decimal notation.

mask: IP address mask.

mask-length: Length of IP address mask.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display fib ip-address to display FIB entries that match the specified destination IP address.

If no mask or mask length is specified, the command displays the longest matching FIB entry. If the mask or mask length is specified, the command displays the exact matching FIB entry.

Examples

# Display the FIB entry that matches the destination IP address of 10.2.1.1 and has the longest mask.

<Sysname> display fib 10.2.1.1
Destination count: 1    FIB entry count: 1

Flag:
  U:Useable   G:Gateway   H:Host   B:Blackhole   D:Dynamic   S:Static
  R:Relay

Destination/Mask  Nexthop     Flag     OutInterface  InnerLabel Token
10.2.1.1/32       127.0.0.1   UH       InLoop0       Null       Invalid

For the output description, see Table 23