04-Layer 3 Command Reference

HomeSupportReference GuidesCommand ReferencesH3C WA Series Access Points Command References(R1507P09)-6W10104-Layer 3 Command Reference
12-IP Forwarding Basics Commands
Title Size Download
12-IP Forwarding Basics Commands 60.99 KB

display fib

Use display fib to display FIB entries. If no parameters are specified, all FIB entries are displayed.

Syntax

display fib [ acl acl-number | ip-prefix ip-prefix-name ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

acl acl-number: Displays FIB entries matching a specified ACL numbered from 2000 to 2999. If the specified ACL does not exist, all FIB entries are displayed.

ip-prefix ip-prefix-name: Displays FIB entries matching a specified IP prefix list, a string of 1 to 19 characters. If the specified IP prefix list does not exist, all FIB entries are displayed.

|: 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.

Examples

# Display all FIB entries.

<Sysname> display fib

Destination count: 4    FIB entry count: 4

 

Flag:

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

  R:Relay

 

Destination/Mask  Nexthop     Flag    OutInterface  InnerLabel Token

10.2.0.0/16       10.2.1.1    U       Vlan1         Null       Invalid

10.2.1.1/32       127.0.0.1   UH      InLoop0       Null       Invalid

127.0.0.0/8       127.0.0.1   U       InLoop0       Null       Invalid

127.0.0.1/32      127.0.0.1   UH      InLoop0       Null       Invalid

# Display FIB entries matching ACL 2000.

<Sysname> system-view

[Sysname] acl number 2000

[Sysname-acl-basic-2000] rule permit source 10.2.0.0 0.0.255.255

[Sysname-acl-basic-2000] display fib acl 2000

Destination count: 2    FIB entry count: 2

 

 Flag:

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

  R:Relay

 

Destination/Mask  Nexthop     Flag    OutInterface  InnerLabel Token

10.2.0.0/16       10.2.1.1    U       Vlan1         Null       Invalid

10.2.1.1/32       127.0.0.1   UH      InLoop0       Null       Invalid

# Display the first FIB entry that contains 127 and all subsequent entries.

<Sysname> display fib | begin 127

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

127.0.0.0/8       127.0.0.1   U       InLoop0       Null       Invalid

127.0.0.1/32      127.0.0.1   UH      InLoop0       Null       Invalid

# Display FIB information matching the IP prefix list abc0.

<Sysname> system-view

[Sysname] ip ip-prefix abc0 permit 10.2.0.0 16

[Sysname] display fib ip-prefix abc0

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.0.0/16      10.2.1.1    U       Vlan1         Null       Invalid

Table 1 Command output

Field

Description

Destination count

Total number of destination addresses.

FIB entry count

Total number of FIB entries.

Destination/Mask

Destination address/length of mask.

Nexthop

Next hop address.

Flag

Flags of routes:

·         U—Usable route.

·         G—Gateway route.

·         H—Host route.

·         B—Blackhole route.

·         D—Dynamic route.

·         S—Static route.

·         R—Recursive route.

OutInterface

Outbound interface.

InnerLabel

Inner label.

Token

Label switched path index number.

 

display fib ip-address

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

Syntax

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

Views

Any view

Default command level

1: Monitor level

Parameters

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.

Usage guidelines

If no mask or mask length is specified, the FIB entry that matches the destination IP address and has the longest mask is displayed. If the mask or mask length is specified, the FIB entries that exactly match the specified destination IP address and mask are displayed.

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 1.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网