No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
IP Routing Basic Configuration Commands

IP Routing Basic Configuration Commands

display fib

Function

The display fib command displays information about the FIB table.

Format

display fib [ slot-id ] [ vpn-instance vpn-instance-name ] [ verbose ]

Parameters

Parameter Description Value
slot-id

Displays information about the FIB table with a specified slot ID.

The value is an integer and the value range depends on the device configuration.
vpn-instance vpn-instance-name Displays information about the FIB table of a specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
verbose Displays detailed information about the FIB table. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display fib command displays information about the FIB table. Each row represents a route.

NOTE:
If there are lots of routes, using wildcard (|, begin, exclude, include, regular-expression) to display information or details lasts a long time. You can press Ctrl+C to terminate information display.

Example

# Display brief information about the FIB table.

<Huawei> display fib
Route Flags: G - Gateway Route, H - Host Route,    U - Up Route                 
             S - Static Route,  D - Dynamic Route, B - Black Hole Route         
             L - Vlink Route
------------------------------------------------------------------------------  
 FIB Table:
 Total number of Routes : 4
Destination/Mask   Nexthop         Flag TimeStamp     Interface       TunnelID
127.0.0.1/32       127.0.0.1       HU   t[49]         InLoop0         0x0
127.0.0.0/8        127.0.0.1       U    t[49]         InLoop0         0x0
127.255.255.255/32 127.0.0.1       HU   t[49]         InLoop0         0x0
255.255.255.255/32 127.0.0.1       HU   t[49]         InLoop0         0x0

# Display information starting with the line that contains 127.0.0.0.

<Huawei> display fib | begin 127.0.0.0

Destination/Mask   Nexthop         Flag TimeStamp     Interface       TunnelID
127.0.0.0/8        127.0.0.1       U    t[49]         InLoop0         0x0
127.255.255.255/32 127.0.0.1       HU   t[49]         InLoop0         0x0
255.255.255.255/32 127.0.0.1       HU   t[49]         InLoop0         0x0

# Display information about all the lines that contain HU.

<Huawei> display fib | include HU

Destination/Mask   Nexthop         Flag TimeStamp     Interface       TunnelID
127.0.0.1/32       127.0.0.1       HU   t[49]         InLoop0         0x0
127.255.255.255/32 127.0.0.1       HU   t[49]         InLoop0         0x0
255.255.255.255/32 127.0.0.1       HU   t[49]         InLoop0         0x0

# Display information about all the lines that do not contain HU.

<Huawei> display fib | exclude HU

Destination/Mask   Nexthop         Flag TimeStamp     Interface       TunnelID
127.0.0.0/8        127.0.0.1       U    t[49]         InLoop0         0x0

# Display detailed information about the FIB table.

<Huawei> display fib verbose
Route Flags: G - Gateway Route, H - Host Route,    U - Up Route                 
             S - Static Route,  D - Dynamic Route, B - Black Hole Route         
             L - Vlink Route
------------------------------------------------------------------------------  
 FIB Table:
 Total number of Routes : 23

 Destination: 10.0.0.255          Mask     : 255.255.255.255
 Nexthop    : 127.0.0.1           OutIf    : InLoopBack0
 LocalAddr  : 127.0.0.1           LocalMask: 0.0.0.0
 Flags      : HU                  Age      : 445874sec
 ATIndex    : 0                   Slot     : 0
 LspFwdFlag : 0                   LspToken : 0x0
 InLabel    : NULL                OriginAs : 0
 BGPNextHop : 0.0.0.0             PeerAs   : 0
 QosInfo    : 0x0                 OriginQos: 0x0
 NexthopBak : 0.0.0.0             OutIfBak : [No Intf]
 LspTokenBak: 0x0                 InLabelBak : NULL
 LspToken_ForInLabelBak     : 0x0
 EntryRefCount : 0
 VlanId : 0x0
 BgpKey : 0
 BgpKeyBak : 0
 LspType         : 0              Label_ForLspTokenBak   : 0
 MplsMtu         : 0              Gateway_ForLspTokenBak : 0
 NextToken       : 0x0            IfIndex_ForLspTokenBak : 0
 Label_NextToken : 0              Label : 0
 LspBfdState     : 0

 Destination: 10.0.0.1            Mask     : 255.255.255.255
 Nexthop    : 127.0.0.1           OutIf    : InLoopBack0
 LocalAddr  : 127.0.0.1           LocalMask: 0.0.0.0
 Flags      : HU                  Age      : 445874sec
 ATIndex    : 0                   Slot     : 0
 LspFwdFlag : 0                   LspToken : 0x0
 InLabel    : NULL                OriginAs : 0
 BGPNextHop : 0.0.0.0             PeerAs   : 0
 QosInfo    : 0x0                 OriginQos: 0x0
 NexthopBak : 0.0.0.0             OutIfBak : [No Intf]
 LspTokenBak: 0x0                 InLabelBak : NULL
 LspToken_ForInLabelBak     : 0x0
 EntryRefCount : 0
 VlanId : 0x0
 BgpKey : 0
 BgpKeyBak : 0
 LspType         : 0              Label_ForLspTokenBak   : 0
 MplsMtu         : 0              Gateway_ForLspTokenBak : 0
 NextToken       : 0x0            IfIndex_ForLspTokenBak : 0
 Label_NextToken : 0              Label : 0
 LspBfdState     : 0

 Destination: 10.0.0.255           Mask     : 255.255.255.255
 Nexthop    : 127.0.0.1           OutIf    : InLoopBack0
 LocalAddr  : 127.0.0.1           LocalMask: 0.0.0.0
 Flags      : HU                  Age      : 445874sec
 ATIndex    : 0                   Slot     : 0
 LspFwdFlag : 0                   LspToken : 0x0
 InLabel    : NULL                OriginAs : 0
 BGPNextHop : 0.0.0.0             PeerAs   : 0
 QosInfo    : 0x0                 OriginQos: 0x0
 NexthopBak : 0.0.0.0             OutIfBak : [No Intf]
 LspTokenBak: 0x0                 InLabelBak : NULL
 LspToken_ForInLabelBak     : 0x0
 EntryRefCount : 0
 VlanId : 0x0
 BgpKey : 0
 BgpKeyBak : 0
 LspType         : 0              Label_ForLspTokenBak   : 0
 MplsMtu         : 0              Gateway_ForLspTokenBak : 0
 NextToken       : 0x0            IfIndex_ForLspTokenBak : 0
 Label_NextToken : 0              Label : 0
 LspBfdState     : 0

 Destination: 10.0.0.1             Mask     : 255.255.255.255
 Nexthop    : 127.0.0.1           OutIf    : InLoopBack0
 LocalAddr  : 127.0.0.1           LocalMask: 0.0.0.0
 Flags      : HU                  Age      : 445874sec
 ATIndex    : 0                   Slot     : 0
 LspFwdFlag : 0                   LspToken : 0x0
 InLabel    : NULL                OriginAs : 0
 BGPNextHop : 0.0.0.0             PeerAs   : 0
 QosInfo    : 0x0                 OriginQos: 0x0
 NexthopBak : 0.0.0.0             OutIfBak : [No Intf]
 LspTokenBak: 0x0                 InLabelBak : NULL
 LspToken_ForInLabelBak     : 0x0
 EntryRefCount : 0
 VlanId : 0x0
 BgpKey : 0
 BgpKeyBak : 0
 LspType         : 0              Label_ForLspTokenBak   : 0
 MplsMtu         : 0              Gateway_ForLspTokenBak : 0
 NextToken       : 0x0            IfIndex_ForLspTokenBak : 0
 Label_NextToken : 0              Label : 0
 LspBfdState     : 0
Table 8-167  Description of the display fib command output

Item

Description

FIB Table

FIB table.

Total number of Routes

Total number of routes.

Destination/Mask

Destination address or mask length.

Nexthop

Next hop of a route.

Flag

Flag of a route, which is the combination of G, H, U, S, D, and B.
  • G: indicates that the next hop is a gateway.

  • H: indicates that the route is a host route.

  • U: indicates that the route status is Up.

  • S: indicates a static route.

  • D: indicates a dynamic route.

  • B: indicates a blackhole route of which the next hop is a null interface.

  • L: indicates a Vlink route.

TimeStamp

How long an entry has been in the FIB table, in seconds.

Interface

Outbound interface to the destination address.

TunnelID

Index of a forwarding entry. If the value is not 0, packets matching the entry are forwarded by the tunnel. If the value is 0, packets matching the entry are not forwarded by the tunnel.

Table 8-168  Description of the display fib verbose command output

Item

Description

Destination

Destination address.

Mask

Mask length.

Nexthop

Next hop of a route.

OutIf

Outbound interface.

LocalAddr

Local IP address.

LocalMask

Mask of the local IP address.

Flags

Flag of a route, which is the combination of G, H, U, S, D, and B.

  • G: indicates that the next hop is a gateway.
  • H: indicates that the route is a host route.
  • U: indicates that the route status is Up.
  • S: indicates a static route.
  • D: indicates a dynamic route.
  • B: indicates a blackhole route of which the next hop is a null interface.
  • L: indicates a Vlink route.

Age

How long a route has been in the FIB table, in seconds.

ATIndex

Index of the virtual link between the local end and the gateway.

Slot

Slot ID of the outbound interface.

LspFwdFlag

LSP forwarding flag.

LspToken

LSP forwarding ID.

InLabel

Inner label of a VPN LSP.

OriginAs

Original AS number.

BGPNextHop

BGP next-hop address.

PeerAs

Peer AS number.

QosInfo

QoS information.

OriginQos

Original QoS information.

NexthopBak

Backup next hop.

OutIfBak

Backup outbound interface.

LspTokenBak

ID of the backup LSP.

InLabelBak

Backup inner label of a VPN LSP.

LspToken_ForInLabelBak

Backup LSP ID in the backup inner label of a VPN LSP.

EntryRefCount

Number of times an entry has been referenced.

VlanId

VLAN ID.

BgpKey

Index allocated by BGP.

BgpKeyBak

Backup index allocated by BGP.

LspType

LSP type.

Label_ForLspTokenBak

Backup label of the LSP.

MplsMtu

MTU of MPLS packets.

Gateway_ForLspTokenBak

Next hop of the backup LSP.

NextToken

Token of the tunnel.

IfIndex_ForLspTokenBak

Backup outbound interface of the LSP.

Label_NextToken

Label of the tunnel.

Label

Label of the current LSP.

LspBfdState

Status of the BFD session that detects an LSP.

display fib acl

Function

The display fib acl command displays information about FIB entries that match a specified ACL rule.

Format

display fib [ vpn-instance vpn-instance-name ] acl acl-number [ verbose ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays information about the FIB table of a specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
acl-number Displays information about the FIB table with a specified ACL rule. The value is an integer that ranges from 2000 to 2999.
verbose Displays detailed information about the FIB table. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display FIB entries that match an ACL rule.

<Huawei> display fib acl 2010
Route Entry matched by access-list 2010
 Summary Counts: 1
Destination/Mask Nexthop  Flag TimeStamp Interface     TunnelID
127.0.0.0/8     127.0.0.1 U    t[0]      InLoop0       0x0
Table 8-169  Description of the display fib acl command output

Item

Description

Route Entry matched by access-list

FIB entries that match an ACL rule.

Summary Counts

Total number of the FIB entries.

Destination/Mask

Destination address or mask length.

Nexthop

Next hop.

Flag

Current flag, which is the combination of G, H, U, S, D, B and T.
  • G (gateway route): indicates that the next hop is a gateway.

  • H (host route): indicates that the route is a host route.

  • U (available route): indicates that the route status is Up.

  • S: indicates a static route.

  • D: indicates a dynamic route.

  • B (blackhole route): indicates that the next hop is a null interface.

  • T: indicates ingress TOKEN_SETBYLSPM nodes.

TimeStamp

Timestamp, which indicates the lifetime of an entry, in seconds.

Interface

Outbound interface to the destination address.

TunnelID

Index of a forwarding entry. It is used in packet forwarding between the upstream and downstream boards. If the value is not 0, packets matching the entry are forwarded through the MPLS tunnel. If the value is 0, packets matching the entry are not forwarded through the MPLS tunnel.

display fib interface

Function

The display fib interface command displays information about FIB entries with a specified outbound interface.

Format

display fib [ vpn-instance vpn-instance-name ] interface interface-type interface-number

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays information about the FIB table of a specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
interface-type interface-number Specifies the type and number of the outbound interface to a specified destination address. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display FIB entries with a specified outbound interface.

<Huawei> display fib interface vlanif10
Destination/Mask   Nexthop    Flag TimeStamp   Interface        TunnelID
10.1.1.0/24        10.1.1.2    U    t[115]     Vlanif10           0x0
100.1.1.1/32       100.1.1.1   HU   t[115]     Vlanif10           0x0
Table 8-170  Description of the display fib interface command output

Item

Description

Destination/Mask

Destination address or mask length.

Nexthop

Next hop.

Flag

Current flag, which is the combination of G, H, U, S, D, and B.
  • G (gateway route): indicates that the next hop is a gateway.

  • H (host route): indicates that the route is a host route.

  • U (available route): indicates that the route status is Up.

  • S: indicates a static route.

  • D: indicates a dynamic route.

  • B (blackhole route): indicates that the next hop is a null interface.

TimeStamp

Timestamp, which indicates the lifetime of an entry, in seconds.

Interface

Outbound interface to the destination address.

TunnelID

Index of a forwarding entry. It is used in packet forwarding between the upstream and downstream boards. If the value is not 0, packets matching the entry are forwarded through the MPLS tunnel. If the value is 0, packets matching the entry are not forwarded through the MPLS tunnel.

display fib ip-prefix

Function

The display fib ip-prefix command displays information about the FIB table.

Format

display fib [ vpn-instance vpn-instance-name ] ip-prefix prefix-name [ verbose ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays the FIB table of a specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
prefix-name Specifies the name of an IP prefix list. The value is a string of 1 to 169 characters.
verbose Displays detailed information about the FIB table. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The command displays FIB entries that match a specified IP prefix list.

If 0 FIB entries match, the command output displays that zero FIB entries match.

If the name of an IP prefix list is not found, all FIB entries are displayed.

Example

# Display FIB entries matching the IP prefix list abc0.

<Huawei> display fib ip-prefix abc0
Route Entry matched by prefix-list abc0
 Summary Counts: 4
Destination/Mask  Nexthop  Flag  TimeStamp  Interface   TunnelID
127.0.0.0/8      127.0.0.1 U     t[0]       InLoop0       0x0
127.0.0.1/32     127.0.0.1 U     t[0]       InLoop0       0x0
172.16.0.0/8     10.1.1.1  SU    t[0]       Vlanif10      0x0
172.16.0.0/15    10.1.1.1  SU    t[0]       Vlanif10      0x0
Table 8-171  Description of the display fib ip-prefix command output

Item

Description

Destination/Mask

Destination address or mask length.

Nexthop

Next hop.

Flag

Current flag, which is the combination of G, H, U, S, D, and B.
  • G (gateway route): indicates that the next hop is a gateway.

  • H (host route): indicates that the route is a host route.

  • U (available route): indicates that the route status is Up.

  • S: indicates a static route.

  • D: indicates a dynamic route.

  • B (blackhole route): indicates that the next hop is a null interface.

TimeStamp

Timestamp, which indicates the lifetime of an entry, in seconds.

Interface

Outbound interface to the destination address.

TunnelID

Index of a forwarding entry. It is used in packet forwarding between the upstream and downstream boards. If the value is not 0, packets matching the entry are forwarded through the MPLS tunnel. If the value is 0, packets matching the entry are not forwarded through the MPLS tunnel.

display fib longer

Function

The display fib longer command displays FIB entries that match a specified parameter.

The display fib [ slot-id ] destination-address command displays FIB entries that match a specified destination IP address. If the specified destination IP address matches an FIB entry in the natural mask range, all the subnets are displayed. Otherwise, FIB entries are displayed based on the longest matching principle.

The display fib [ slot-id ] destination-address destination-mask command displays FIB entries that accurately match the destination address and mask.

The display fib [ slot-id ] destination-address longer command displays all FIB entries that match destination IP addresses in the natural mask range.

The display fib [ slot-id ] destination-address destination-mask longer command displays all FIB entries that match destination IP addresses in a specified mask range.

The display fib [ slot-id ] destination-address1 destination-mask1 destination-address2 destination-mask2 command displays FIB entries that match destination IP addresses in the range of desination-address1 desination-mask1 to desitination-address2 destination-mask2.

If slot-id is specified, FIB entries on the specified LPU are displayed.

Format

display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 [ destination-mask1 ] [ longer ] [ verbose ]

display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 destination-mask1 destination-address2 destination-mask2 [ verbose ]

Parameters

Parameter Description Value
slot-id Displays information about the FIB table with a specified slot ID. The value is an integer and the value range depends on the device configuration.
vpn-instance vpn-instance-name Displays information about the FIB table of a specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
destination-address1 Indicates destination IP address 1. The value is in dotted decimal notation.
destination-mask1 Indicates subnet mask 1. The value is in dotted decimal notation or an integer that ranges from 0 to 32.
destination-address2 Indicates destination IP address 2. The value is in dotted decimal notation.
destination-mask2 Indicates subnet mask 2. The value is in dotted decimal notation or an integer that ranges from 0 to 32.
longer

Displays FIB entries matching a specified network segment or mask.

-

verbose

Displays detailed information about the FIB table.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display FIB entries that match destination address 172.16.0.0 in the natural mask range or based on the longest match principle.

<Huawei> display fib 172.16.0.0
  Route Entry Count: 1 
Destination/Mask  Nexthop  Flag  TimeStamp  Interface  TunnelID
172.16.0.0/16     10.1.1.1 U     t[0]       Vlanif10     0x0

# Display the FIB entries with the destination addresses in the range of 72.16.0.0/16 to 172.16.0.6/16.

<Huawei> display fib 172.16.0.0 255.255.0.0 172.16.0.6 255.255.0.0
  Route Entry Count: 1 
Destination/Mask  Nexthop  Flag  TimeStamp  Interface  TunnelID
172.16.0.1/8      10.1.1.1  U     t[0]       Vlanif10     0x0
Table 8-172  Description of the display fib longer command output

Item

Description

Destination/Mask

Destination address or mask length.

Nexthop

Next hop.

Flag

Current flag, which is the combination of G, H, U, S, D, and B.
  • G (gateway route): indicates that the next hop is a gateway.

  • H (host route): indicates that the route is a host route.

  • U (available route): indicates that the route status is Up.

  • S: indicates a static route.

  • D: indicates a dynamic route.

  • B (blackhole route): indicates that the next hop is a null interface.

TimeStamp

Timestamp, which indicates the lifetime of an entry, in seconds.

Interface

Outbound interface to the destination address.

TunnelID

Index of a forwarding entry. It is used in packet forwarding between the upstream and downstream boards. If the value is not 0, packets matching the entry are forwarded through the MPLS tunnel. If the value is 0, packets matching the entry are not forwarded through the MPLS tunnel.

display fib next-hop

Function

The display fib next-hop command displays FIB entries that match a specified next-hop IP address.

Format

display fib [ vpn-instance vpn-instance-name ] next-hop ip-address

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays information about the FIB table of a specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
ip-address Specifies the next-hop IP address. The value is in dotted decimal notation.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display FIB entries that match a specified next-hop IP address.

<Huawei> display fib next-hop 10.1.1.1
Destination/Mask   Nexthop         Flag TimeStamp     Interface      TunnelID
10.1.1.1/32        10.1.1.1        HU   t[115]        Vlanif10         0x0
Table 8-173  Description of the display fib next-hop command output

Item

Description

Destination/Mask

Destination address or mask length.

Nexthop

Next hop.

Flag

Current flag, which is the combination of G, H, U, S, D, and B.
  • G (gateway route): indicates that the next hop is a gateway.

  • H (host route): indicates that the route is a host route.

  • U (available route): indicates that the route status is Up.

  • S: indicates a static route.

  • D: indicates a dynamic route.

  • B (blackhole route): indicates that the next hop is a null interface.

TimeStamp

Timestamp, which indicates the lifetime of an entry, in seconds.

Interface

Outbound interface to the destination address.

TunnelID

Index of a forwarding entry. It is used in packet forwarding between the upstream and downstream boards. If the value is not 0, packets matching the entry are forwarded through the MPLS tunnel. If the value is 0, packets matching the entry are not forwarded through the MPLS tunnel.

display fib statistics

Function

The display fib statistics command displays the total number of IPv4 FIB entries.

Format

display fib [ slot-id ] [ vpn-instance vpn-instance-name ] statistics

display fib statistics all

Parameters

Parameter Description Value
slot-id

Displays status information about a specified IPv4 FIB module.

The value is an integer and the value range depends on the device configuration.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

all

Displays all FIB entries statistics.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the total number of FIB entries on the LPU in slot 0.

<Huawei> display fib 0 statistics
Route Entry Count : 30
Route Prefix Count : 30 

# Display statistics about all FIB entries on the SRU.

<Huawei> display fib statistics all
IPv4 FIB Total Route Prefix Count : 24; Entry Count : 24                        
                                                                                
IPv4 FIB Public Route Prefix Count : 22; Entry Count : 22                       
           
Table 8-174  Description of the display fib statistics command output

Item

Description

Route Entry Count

Total number of FIB entries.

Route Prefix Count

Total number of route prefix entries.

IPv4 FIB Total Route Prefix Count: Entry Count:

Numbers of route prefix entries and FIB entries.

IPv4 FIB Public Route Prefix Count: Entry Count:

Numbers of IP route prefix entries and FIB entries on a public network.

display ip routing-table

Function

The display ip routing-table command displays information about an IPv4 routing table.

Format

display ip routing-table [ vpn-instance vpn-instance-name ] [ verbose ]

display ip routing-table [ vpn-instance vpn-instance-name ] ip-address [ mask | mask-length ] [ longer-match ] [ verbose ]

display ip routing-table [ vpn-instance vpn-instance-name ] ip-address { mask | mask-length } nexthop nexthop-address [ verbose ]

display ip routing-table [ vpn-instance vpn-instance-name ] ip-address1 { mask1 | mask-length1 } ip-address2 { mask2 | mask-length2 } [ verbose ]

display ip routing-table [ vpn-instance vpn-instance-name ] acl { acl-number | acl-name } [ verbose ]

display ip routing-table [ vpn-instance vpn-instance-name ] ip-prefix ip-prefix-name [ verbose ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Specifies the name of an VPN instance of an enabled IPv4 address family. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
verbose Displays detailed information about active routes and inactive routes. If this keyword is not specified, only brief information about active routes is displayed. -
ip-address Displays the routes with the specified destination address. The value is in dotted decimal notation.
nexthop nexthop-address Displays the routes with the specified next-hop address. The value is in dotted decimal notation.
longer-match Displays the routes with the specified destination address and mask. -
mask Specifies the mask of the destination IP address. The value is in dotted decimal notation.
mask-length Specifies the mask length of the destination IP address. The value is an integer that ranges from 0 to 32.
ip-address1 Specifies the start IP address in an IP address range. ip-address1 and ip-address2 determine an IP address range. Only the routes in the IP address range are displayed. The value is in dotted decimal notation.
ip-address2 Specifies the end IP address in an IP address range. ip-address1 and ip-address2 determine an IP address range. Only the routes in the IP address range are displayed. The value is in dotted decimal notation.
mask1 Specifies the subnet mask of the start IP address. The value is in dotted decimal notation.
mask-length1 Specifies the mask length of the start IP address. The value is an integer that ranges from 0 to 32.
mask2 Specifies the subnet mask of the end IP address. The value is in dotted decimal notation.
mask-length2 Specifies the mask length of the end IP address. The value is an integer that ranges from 0 to 32.
acl acl-number Displays the routes that match the ACL with the specified ACL number. If the specified ACL does not exist, information about all active routes is displayed. The value is an integer that ranges from 2000 to 2999.
acl acl-name Displays the routes that match the ACL with the specified ACL name. If the specified ACL does not exist, information about all active routes is displayed. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ip-prefix ip-prefix-name Displays the routes that match the specified IP prefix list. If the specified IP prefix list does not exist, information about all active routes is displayed. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If the verbose keyword is not specified in the display ip routing-table command, each line in the command output indicates a route, including the destination address, mask length, protocol, preference, cost, flag, next hop, and outbound interface of the route.

NOTE:

An iterated route is counted as one route regardless of how many outbound interfaces and next hops the route finds.

Matching rules vary with parameters in the command:

  • If the display ip routing-table ip-address command is used, the routes that longest match the destination address are displayed.

  • If the display ip routing-table ip-address mask command is used, the routes that accurately match the destination address and mask are displayed.

  • If the display ip routing-table ip-address longer-match command is used, all the routes that match the IP address specified by the destination address and the natural mask are displayed.

  • If the display ip routing-table ip-address mask longer-match command is used, all the routes that match the IP address specified by the destination address and the input mask are displayed.

  • If the display ip routing-table ip-address1 mask1 ip-address2 mask2 command is used, the routes whose destination address ranges from ip-address1 mask1 to ip-address2 mask2 are displayed.

Example

# Display brief information about the current IPv4 routing table. The command output shows that there are two static routes with the same destination address 10.1.1.1/32 but different next hops.

<Huawei> display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 8        Routes : 9

   Destination/Mask  Proto  Pre  Cost  Flags   NextHop   Interface

        10.1.1.1/32   Static  60     0     D    0.0.0.0    NULL0
                     Static  60     0     D    192.168.0.2  GigabitEthernet0/0/1
      192.168.0.0/24   Direct   0     0     D    192.168.0.1  GigabitEthernet0/0/1
      192.168.0.1/32   Direct   0     0     D    127.0.0.1  GigabitEthernet0/0/1
    192.168.0.255/32   Direct   0     0     D    127.0.0.1  GigabitEthernet0/0/1
      127.0.0.0/8    Direct   0     0     D    127.0.0.1  InLoopBack0
      127.0.0.1/32   Direct   0     0     D    127.0.0.1  InLoopBack0
127.255.255.255/32   Direct   0     0     D    127.0.0.1  InLoopBack0
255.255.255.255/32   Direct   0     0     D    127.0.0.1  InLoopBack0
Table 8-175  Description of the display ip routing-table command output

Item

Description

Route Flags

Flag of a route:
  • R: indicates that the route is an iterated route.

  • D: indicates that the route is delivered to the FIB table.

Routing Table: Public

The routing table is a public routing table. If the routing table is a private routing table, a private network name is displayed, for example, Routing Tables: ABC.

Destinations

Total number of destination networks or hosts.

Routes

Total number of routes.

Destination/Mask

Address and mask length of the destination network or host.

Proto

Routing protocol that learns a route.

Pre

Preference of a route.

Cost

Cost of a route.

Flags

Route flags in the heading of the routing table.

NextHop

Next-hop address of a route.

Interface

Outbound interface through which the next hop of a route is reachable.

# Display the summary of the routing table of the IPv4 VPN instance named vpn1.

<Huawei> display ip routing-table vpn-instance vpn1
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Table: vpn1
         Destinations : 5        Routes : 5

Destination/Mask    Proto  Pre  Cost     Flags NextHop         Interface

       10.1.1.0/24  Direct 0    0           D  10.1.1.1         Vlanif10
       10.1.1.1/32  Direct 0    0           D  127.0.0.1        Vlanif10
     10.1.1.255/32  Direct 0    0           D  127.0.0.1        Vlanif10
       10.5.5.0/24  Static 60   0          RD  10.1.1.2         Vlanif10
255.255.255.255/32  Direct 0    0           D  127.0.0.1       InLoopBack0
Table 8-176  Description of the display ip routing-table vpn-instance command output

Item

Description

Route Flags

Route flag:
  • R: indicates an iterated route.

  • D: indicates that the route is downloaded to the FIB table.

Routing Table: vpn1

VPN routing table named vpn1.

Destinations

Total number of destination networks or hosts.

Routes

Total number of routes.

Destination/Mask

Address and mask length of the destination network or host.

Proto

Routing protocol.

Pre

Preference.

Cost

Route cost.

Flags

Route flag, that is, Route Flags in the heading of the routing table.

NextHop

Next hop.

Interface

Outbound interface through which the next hop is reachable.

# Display brief information about the current routing table. Route 2.2.2.2/32 is a static route with next hop 1.1.1.1. This route is an iterated route and has two outbound interfaces because 1.1.1.1 has two outbound interfaces.

<Huawei> display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 9        Routes : 11

   Destination/Mask  Proto   Pre  Cost Flags  NextHop    Interface

        1.1.1.1/32   Static  60   0      D    0.0.0.0    NULL0
                     Static  60   0      D    100.0.0.2  GigabitEthernet0/0/1
        2.2.2.2/32   Static  60   0     RD    1.1.1.1    NULL0
                     Static  60   0     RD    1.1.1.1    GigabitEthernet0/0/1
      100.0.0.0/24   Direct   0   0      D    100.0.0.1  GigabitEthernet0/0/1
      100.0.0.1/32   Direct   0   0      D    127.0.0.1  GigabitEthernet0/0/1
    100.0.0.255/32   Direct   0   0      D    127.0.0.1  GigabitEthernet0/0/1
      127.0.0.0/8    Direct   0   0      D    127.0.0.1  InLoopBack0
      127.0.0.1/32   Direct   0   0      D    127.0.0.1  InLoopBack0
127.255.255.255/32   Direct   0   0      D    127.0.0.1  InLoopBack0
255.255.255.255/32   Direct   0   0      D    127.0.0.1  InLoopBack0

# Display detailed information about the IPv4 routing table.

<Huawei> display ip routing-table verbose
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 8        Routes : 8


Destination: 10.0.0.36/32
     Protocol: Direct           Process ID: 0
   Preference: 0                      Cost: 0
      NextHop: 127.0.0.1         Neighbour: 0.0.0.0
        State: Active Adv              Age: 01h03m56s
          Tag: 0                  Priority: high
        Label: NULL                QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0           Interface: InLoopBack0
     TunnelID: 0x0                   Flags:  D

Destination: 10.10.36.0/24
     Protocol: Direct           Process ID: 0
   Preference: 0                      Cost: 0
      NextHop: 10.10.36.2        Neighbour: 0.0.0.0
        State: Active Adv              Age: 00h26m36s
          Tag: 0                  Priority: high
        Label: NULL                QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0           Interface: GigabitEthernet1/0/0
     TunnelID: 0x0                   Flags:  D

Destination: 10.10.36.2/32
     Protocol: Direct           Process ID: 0
   Preference: 0                      Cost: 0
      NextHop: 127.0.0.1         Neighbour: 0.0.0.0
        State: Active Adv              Age: 00h26m46s
          Tag: 0                  Priority: high
        Label: NULL                QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0           Interface: GigabitEthernet1/0/0
     TunnelID: 0x0                   Flags:  D

Destination: 10.10.36.255/32
     Protocol: Direct           Process ID: 0
   Preference: 0                      Cost: 0
      NextHop: 127.0.0.1         Neighbour: 0.0.0.0
        State: Active Adv              Age: 00h26m46s
          Tag: 0                  Priority: high
        Label: NULL                QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0           Interface: GigabitEthernet1/0/0
     TunnelID: 0x0                   Flags:  D

Destination: 127.0.0.0/8                                                        
     Protocol: Direct           Process ID: 0                                   
   Preference: 0                      Cost: 0                                   
      NextHop: 127.0.0.1         Neighbour: 0.0.0.0                             
        State: Active NoAdv            Age: 3d01h20m39s                         
          Tag: 0                  Priority: high                                
        Label: NULL                QoSInfo: 0x0                                 
   IndirectID: 0x0                                                              
 RelayNextHop: 0.0.0.0           Interface: InLoopBack0                         
     TunnelID: 0x0                   Flags:  D                                  
                                                                                
Destination: 127.0.0.1/32                                                       
     Protocol: Direct           Process ID: 0                                   
   Preference: 0                      Cost: 0                                   
      NextHop: 127.0.0.1         Neighbour: 0.0.0.0                             
        State: Active NoAdv            Age: 3d01h20m39s                         
          Tag: 0                  Priority: high                                
        Label: NULL                QoSInfo: 0x0                                 
   IndirectID: 0x0                                                              
 RelayNextHop: 0.0.0.0           Interface: InLoopBack0                         
     TunnelID: 0x0                   Flags:  D                                  
                                                                                
Destination: 127.255.255.255/32                                                 
     Protocol: Direct           Process ID: 0                                   
   Preference: 0                      Cost: 0                                   
      NextHop: 127.0.0.1         Neighbour: 0.0.0.0                             
        State: Active NoAdv            Age: 3d01h20m46s                         
          Tag: 0                  Priority: high                                
        Label: NULL                QoSInfo: 0x0                                 
   IndirectID: 0x0                                                              
 RelayNextHop: 0.0.0.0           Interface: InLoopBack0                         
     TunnelID: 0x0                   Flags:  D 

Destination: 255.255.255.255/32                                                 
     Protocol: Direct           Process ID: 0                                   
   Preference: 0                      Cost: 0                                   
      NextHop: 127.0.0.1         Neighbour: 0.0.0.0                             
        State: Active NoAdv            Age: 3d01h20m54s                         
          Tag: 0                  Priority: high                                
        Label: NULL                QoSInfo: 0x0                                 
   IndirectID: 0x0                                                              
 RelayNextHop: 0.0.0.0           Interface: InLoopBack0                         
     TunnelID: 0x0                   Flags:  D  
Table 8-177  Description of the display ip routing-table verbose command output

Item

Description

Route Flags

Flag of a route:
  • R: indicates that the route is an iterated route.

  • D: indicates that the route is delivered to the FIB table.

Destinations

Total number of destination networks or hosts.

Routes

Total number of active routes and inactive routes.

Destination

Address and mask length of the destination network or host.

Protocol

Routing protocol of a route.

Process ID

Routing protocol process ID of a route.

Preference

Preference of a route.

Cost

Cost of a route.

NextHop

Next-hop address of a route.

Neighbour

Neighbor address of a route.

State

Status of a route:
  • Active: active route

  • Invalid: invalid route

  • Inactive: inactive route

  • NoAdv: route that cannot be advertised

  • Adv: route that can be advertised

  • Del: route to be deleted

  • Relied: route iterated to an outbound interface and a next hop or route iterated to a tunnel

  • Stale: route that is marked Stale and used in GR

Age

Lifetime of a route.

Tag

Routing management tag. The value is an integer that ranges from 0 to 4294967295.

Priority

Convergence priority of route:

  • low

  • medium

  • high

  • critical

Label

VPN label.

QoSInfo

QoS information. The value 0x0 indicates that QoS information is empty.

IndirectID

ID of indirect next hop.

RelayNextHop

Iterated next-hop address.

Interface

Outbound interface.

TunnelID

Tunnel ID.

Flags

Route flags in the heading of the routing table.

display ip routing-table limit

Function

The display ip routing-table limit command displays the maximum number of routes and prefixes.

Format

display ip routing-table limit [ all-vpn-instance | vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
all-vpn-instance Indicates all IPv4 VPN instances. -
vpn-instance vpn-instance-name Specifies the name of a IPv4 VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The command displays limits on the number of IPv4 routes and prefixes.
  • The display ip routing-table limit command displays limits on the number of IPv4 public routes and prefixes.
  • The display ip routing-table limit all-vpn-instance command displays the limit on the number of routes and prefixes of all IPv4 VPN instances.
  • The display ip routing-table limit vpn-instance vpn-instance-name command displays the limit on the number of routes and prefixes of a specified IPv4 VPN instance.

Example

# Display the limits on the number of IPv4 public routes and prefixes.
<Huawei> display ip routing-table limit
Public Instance:                                                                
Limit-Object Limit-Type     Upper-Limit  Warning    Current    Log-Interval     
Route         Default        -            -          32         5               
Prefix        Default        -            -          31         5

# Display limits on the numbers of routes and prefixes of all IPv4 VPN instances.

<Huawei> display ip routing-table limit all-vpn-instance
Limit-Object     Limit-Type    Upper-Limit     Warning     Current    Log-Interval
----------------------------------------------------------------------------------
VPN Instance Name: vpn1
Route            Simply-Alert   5000           -            4223      5
Prefix           Alert-Percent  1000           800          760       5
-----------------------------------------------------------------------------------
VPN Instance Name: vpn2
Route            Alert-Percent  2000           1000         823       5
Prefix           Default        -              -            760       5

# Display limits on the numbers of routes and prefixes of the IPv4 VPN instance named vpn1.

<Huawei> display ip routing-table limit vpn-instance vpn1
VPN Instance Name: vpn1
Limit-Object     Limit-Type      Upper-Limit    Warning    Current    Log-Interval
Route            Simply-Alert    5000           -          4223       5
Prefix           Alert-Percent   1000           800        760        5
Table 8-178  Description of the display ip routing-table limit command output

Item

Description

Limit-Object

Object whose total number is limited:
  • Prefix

  • Route

Limit-Type

Limit type for the routes and prefixes in the routing table:
  • Simply-Alert: indicates that only alarms are generated when the number of routes or prefixes exceeds the upper limit.

  • Alert-Percent: indicates the percentage of the alarm threshold of routes.

  • Default: indicates that the number of routes or prefixes is not limited by default.

Upper-Limit

Upper limit of routes or prefixes in the current routing table.

Warning

Alarm threshold of routes or prefixes in the current routing table.

Current

Number of routes or prefixes in the current routing table.

Log-Interval

Frequency of displaying logs when the number of routes or prefixes in the current routing table exceeds the upper limit, in seconds.

The default value is 5s. The value is set by using the limit-log-interval command.

display ip routing-table protocol

Function

The display ip routing-table protocol command displays routing information about a specified routing protocol.

Format

display ip routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive | verbose ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Specifies the name of an VPN instance of an enabled IPv4 address family. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
protocol Displays routing information about the specified routing protocol:
  • direct: displays direct routes.

  • static: displays static routes.

  • bgp: displays BGP routes.

  • isis: displays IS-IS routes.

  • ospf: displays OSPF routes.

  • rip: displays RIP routes.

  • unr: displays user network routes.

-
inactive Displays brief information about inactive routes only. -
verbose Displays detailed information about active routes and inactive routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If neither verbose nor inactive is specified, brief information about all the routes of each routing protocol is displayed.

Example

# Display brief information about all direct routes.

<Huawei> display ip routing-table protocol direct
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Direct
         Destinations : 7        Routes : 7  

Direct routing table status : <Active>
         Destinations : 7        Routes : 7  

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

   10.137.216.0/23  Direct  0    0           D   10.137.217.210  GigabitEthernet0/0/1
 10.137.217.210/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
 10.137.217.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

Direct routing table status : <Inactive>
         Destinations : 0        Routes : 0  
Table 8-179  Description of the display ip routing-table protocol command output

Item

Description

Route Flags

Flag of a route:
  • R: indicates that the route is an iterated route.

  • D: indicates that the route is delivered to the FIB table.

Public routing table

Contents of a public routing table.

Direct routing table status

Status of direct routes:
  • Inactive: inactive routes in the routing table

  • Active: active routes in the routing table

Destinations

Total number of destination addresses.

Routes

Total number of routes in the routing table.

Destination/Mask

Destination address or mask length.

Proto

Routing protocol of a route.

Pre

Routing protocol preference of a route.

Cost

Cost of a route.

Flags

Route flags in the heading of the routing table.

Nexthop

Next-hop address of a route.

Interface

Outbound interface of a route.

# Display detailed information about all OSPF routes.

<Huawei> display ip routing-table protocol ospf verbose
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 3        Routes : 3


Destination: 1.1.1.1/32
     Protocol: OSPF            Process ID: 1
   Preference: 10                    Cost: 1
      NextHop: 10.11.1.1        Neighbour: 0.0.0.0
        State: Active Adv             Age: 21h23m44s
          Tag: 0                 Priority: medium
        Label: NULL               QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0          Interface: GigabitEthernet0/0/1
     TunnelID: 0x0                  Flags:  D

Destination: 30.1.1.1/32
     Protocol: OSPF            Process ID: 1
   Preference: 10                    Cost: 1
      NextHop: 10.11.1.1        Neighbour: 0.0.0.0
        State: Active Adv             Age: 21h23m44s
          Tag: 0                 Priority: medium
        Label: NULL               QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0          Interface: GigabitEthernet0/0/1
     TunnelID: 0x0                  Flags:  D

Destination: 40.1.1.1/32
     Protocol: OSPF            Process ID: 1
   Preference: 10                    Cost: 1
      NextHop: 10.11.1.1        Neighbour: 0.0.0.0
        State: Active Adv             Age: 21h23m44s
          Tag: 0                 Priority: medium
        Label: NULL               QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0          Interface: GigabitEthernet0/0/1
     TunnelID: 0x0                  Flags:  D
Table 8-180  Description of the display ip routing-table protocol verbose command output

Item

Description

Routing Tables: Public

The routing table is a public routing table.

Destination

Address and mask length of the destination network or host.

Protocol

Routing protocol of a route.

Process ID

Routing protocol process ID of a route.

Preference

Routing protocol preference of a route.

Cost

Cost of a route.

NextHop

Next-hop address of a route.

Neighbour

Neighbor address of a route.

State

Status of a route:
  • Active: active route

  • Invalid: invalid route

  • Inactive: inactive route

  • NoAdv: route that cannot be advertised

  • Adv: route that can be advertised

  • Del: route to be deleted

  • Relied: route iterated to an outbound interface and a next hop or route iterated to a tunnel

  • Stale: route that is marked Stale and used in GR

Age

Lifetime of a route.

Tag

Routing management tag. The value is an integer that ranges from 0 to 4294967295.

Priority

Convergence priority of route:

  • low

  • medium

  • high

  • critical

Label

Label allocated by MPLS.

QoSInfo

QoS information. The value 0x0 indicates that QoS information is empty.

IndirectID

ID of indirect next hop.

RelayNextHop

Iterated next-hop address.

Interface

Outbound interface.

TunnelID

Tunnel ID.

Flags

Route flags in the heading of the routing table.

# Display all the direct routes of the VPN instance named vpn1.

<Huawei> display ip routing-table vpn-instance vpn1 protocol direct
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
vpn4 routing table : Direct
         Destinations : 4           Routes : 4

Direct routing table status : <Active>
         Destinations : 4           Routes : 4

Destination/Mask    Proto  Pre  Cost     Flags NextHop         Interface

        1.1.1.0/24  Direct 0    0           D  1.1.1.1         Vlanif30
        1.1.1.1/32  Direct 0    0           D  127.0.0.1       Vlanif30
      1.1.1.255/32  Direct 0    0           D  127.0.0.1       Vlanif30
255.255.255.255/32  Direct 0    0           D  127.0.0.1       InLoopBack0
Direct routing table status : <Inactive>
         Destinations : 0           Routes : 0
Table 8-181  Description of the display ip routing-table vpn-instance protocol command output

Item

Description

Active

Active routes.

Inactive

Iinactive routes.

display ip routing-table statistics

Function

The display ip routing-table statistics command displays statistics about routes in an IPv4 routing table.

Format

display ip routing-table [ vpn-instance vpn-instance-name ] statistics

display ip routing-table[ all-vpn-instance ] statistics

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays statistics about routes in the routing table of a specified VPN instance. If neither vpn-instance vpn-instance-name nor all-vpn-instance is specified, statistics about routes in a public routing table are displayed. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
all-vpn-instance Displays statistics about routes in the routing tables of all VPN instances. If neither vpn-instance vpn-instance-name nor all-vpn-instance is specified, statistics about routes in a public routing table are displayed. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Route statistics include:
  • Total number of routes that are added or deleted through routing protocols
  • Number of active or inactive routes that are labeled for deletion but are not deleted

Example

# Display statistics about routes in an IPv4 routing table.

<Huawei> display ip routing-table statistics
Summary Prefixes: 9
Proto   total   active  added      deleted     freed
        routes  routes  routes     routes      routes
DIRECT   6        6      42          36         36
STATIC   3        3      21          18         18
RIP      0        0       0           0          0
OSPF     0        0       0           0          0
IS-IS    0        0       0           0          0
BGP      0        0       0           0          0
UNR      0        0       0           0          0
Total    9        9      63          54         54
Table 8-182  Description of the display ip routing-table statistics command output

Item

Description

Summary Prefixes

Total number of prefixes in the current routing table.

Proto

Routing protocol type

total routes

Total number of routes that a routing protocol learns in the routing table, including active and inactive routes.

active routes

Number of active routes that a routing protocol learns in the routing table.

added routes

Number of active and inactive routes that are added to the routing table through a routing protocol.

deleted routes

Number of routes to be deleted from the routing table.

freed routes

Number of routes that are permanently deleted from the routing table.

# Display statistics about routes in routing tables of all VPN instances.
<Huawei> display ip routing-table all-vpn-instance statistics
Summary prefixes: 9
Proto   total   active  added      deleted     freed
        routes  routes  routes     routes      routes
DIRECT   6        6      42          36         36
STATIC   3        3      21          18         18
RIP      0        0       0           0          0
OSPF     0        0       0           0          0
IS-IS    0        0       0           0          0
BGP      0        0       0           0          0
UNR      0        0       0           0          0
Total    9        9      63          54         54

display ip routing-table time-range

Function

The display ip routing-table time-range command displays information about routes generated in a specified time range in an IP routing table.

Format

display ip routing-table [ vpn-instance vpn-instance-name ] time-range min-age max-age [ verbose ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays information about routes generated in a specified time range in the IP routing table of the specified VPN instance. If you do not specify this parameter, the display ip routing-table time-range command displays information about routes generated in a specified time range in the public IP routing table.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

min-age Specifies the end time of the period when routes are generated.
The value is in xxdxxhxxmxxs format.
  • d indicates days. The value is an integer that ranges from 0 to 10000.
  • h indicates hours. The value is an integer that ranges from 0 to 23.
  • m indicates minutes. The value is an integer that ranges from 0 to 59.
  • s indicates seconds. The value is an integer that ranges from 0 to 59.
For example, you can enter 5d4h30m20s to specify 5 days, 4 hours, 30 minutes, and 20 seconds.
NOTE:

If the value of d is 10000, the values of h, m, and s can only be 0.

max-age Specifies the start time of the period when routes are generated.
The value is in xxdxxhxxmxxs format.
  • d indicates days. The value is an integer that ranges from 0 to 10000.
  • h indicates hours. The value is an integer that ranges from 0 to 23.
  • m indicates minutes. The value is an integer that ranges from 0 to 59.
  • s indicates seconds. The value is an integer that ranges from 0 to 59.
For example, you can enter 5d4h30m20s to specify 5 days, 4 hours, 30 minutes, and 20 seconds.
NOTE:

If the value of d is 10000, the values of h, m, and s can only be 0.

verbose Displays detailed information about active and inactive routes. If you do not specify this parameter, the display ip routing-table time-range command displays only brief information about active routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If route flapping occurs on a network, you can run the display ip routing-table time-range command and specify a small time range for the command. You can then find the flapping route rapidly and accelerate fault location.

Precautions

max-age must be larger than min-age. Otherwise, the display ip routing-table time-range command does not display any information.

If max-age is larger than min-age but no route was generated within this time range, the display ip routing-table time-range command displays only the table heading.

Example

# Display information about public network routes generated in the last 20 minutes.

<Huawei> display ip routing-table time-range 0 20m
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 2        Routes : 2

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.3.3.3/32  Direct  0    0           D   127.0.0.1       LoopBack1
       10.4.4.0/24  Static  60   0           D   0.0.0.0         NULL0

Table 8-183  Description of the display ip routing-table time-range command output

Item

Description

Route Flags

Route flags:
  • R: The route is an iterated route.

  • D: The route is sent to the FIB table.

Routing Tables: Public

The routing table is a public routing table.

Destinations

Number of destination networks and hosts.

Routes

Number of routes.

Destination/Mask

Address and mask length of the destination network and host.

Proto

Protocol used to learn routes.

Pre

Route preference.

Cost

Route cost.

Flags

Route flags in the heading of the routing table.

NextHop

Next hop.

Interface

Outbound interface in a route with a reachable next hop.

# Display detailed information about public network routes generated in the last 20 minutes.

<Huawei> display ip routing-table time-range 0 20m verbose
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 3        Routes : 3


Destination: 10.3.3.3/32
     Protocol: Direct           Process ID: 0
   Preference: 0                      Cost: 0
      NextHop: 127.0.0.1         Neighbour: 0.0.0.0
        State: Active Adv              Age: 00h14m06s
          Tag: 0                  Priority: high
        Label: NULL                QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0           Interface: LoopBack1
     TunnelID: 0x0                   Flags:  D

Destination: 10.4.4.0/24
     Protocol: Static           Process ID: 0
   Preference: 60                     Cost: 0
      NextHop: 0.0.0.0           Neighbour: 0.0.0.0
        State: Active Adv              Age: 00h01m38s
          Tag: 0                  Priority: medium
        Label: NULL                QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0           Interface: NULL0
     TunnelID: 0x0                   Flags:  D

Destination: 10.4.4.4/32
     Protocol: Static           Process ID: 0
   Preference: 60                     Cost: 0
      NextHop: 10.4.4.0          Neighbour: 0.0.0.0
        State: Invalid Adv Relied      Age: 00h01m38s
          Tag: 0                  Priority: medium
        Label: NULL                QoSInfo: 0x0
   IndirectID: 0x80000002
 RelayNextHop: 0.0.0.0           Interface: NULL0
     TunnelID: 0x0                   Flags: R
Table 8-184  Description of the display ip routing-table time-range verbose command output

Item

Description

Process ID

Process ID of the routing protocol.

Preference

Route preference.

Cost

Route cost.

NextHop

Next hop.

Neighbour

IP address of a neighbor. 0.0.0.0 indicates that the route is generated by a local device.

State

Route status:
  • Active: an active route

  • Invalid: an invalid route

  • Inactive: an inactive route

  • NoAdv: a route that cannot be advertised

  • Adv: a route that can be advertised

  • Del: a route to be deleted

  • Relied: a route that is iterated to the next hop and outbound interface or a tunnel

  • Stale: a route with the Stale flag and used in GR

Age

Time after the route is generated.

Tag

Administrative tag of the route. The value is an integer that ranges from 0 to 4294967295.

Priority

Convergence priority of the route:

  • low: The convergence priority of a route is low.

  • medium: The convergence priority of a route is medium.

  • high: The convergence priority of a route is high.

  • critical: The convergence priority of a route is critical.

Label

Label allocated by MPLS.

QoSInfo

QoS information. 0x0 indicates QoS information is empty.

IndirectID

ID of the indirect next hop.

RelayNextHop

Iterated next hop.

Interface

Iterated outbound interface.

Tunnel ID

Tunnel ID:
  • The value 0x0 indicates that the route does not use a tunnel or the tunnel fails to be set up.
  • If the value is not 0x0, the route is iterated to a tunnel.

Flags

Route flags in the heading of the routing table.

display ipv6 fib

Function

The display ipv6 fib command displays FIB entries on the device.

Format

display ipv6 fib [ slot-id ] [ vpn-instance vpn-instance-name ] [ ipv6-address [ prefix-length ] ] [ verbose ]

Parameters

Parameter Description Value
slot-id Specifies the slot ID of an LPU. -
ipv6-address Specifies the prefix of an IPv6 address. The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X.
vpn-instance vpn-instance-name Displays FIB entries of the specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
prefix-length Specifies the prefix length of an IPv6 address. The value is an integer that ranges from 1 to 128.
verbose Displays detailed information about FIB entries. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display all FIB entries on the device.

<Huawei> display ipv6 fib
 IPv6 FIB Table:                                                                 
 Total number of Routes : 4                                                     
                                                                                
Destination:  ::1                                     PrefixLength : 128
Nexthop    :  ::1                                     Flag         : HU
Interface  :  InLoopBack0                             Tunnel ID    : 0x0
TimeStamp  :  Date- 16:12:2010, Time- 15:1:54
                                                                                
Destination:  FE80::                                  PrefixLength : 10
Nexthop    :  ::                                      Flag         : BU
Interface  :  NULL0                                   Tunnel ID    : 0
TimeStamp  :  Date- 16:12:2010, Time- 15:1:54
                                                                                
Destination:  2001::2                                 PrefixLength : 128
NextHop    :  ::1                                     Flag         : HU
Interface  :  InLoopBack0                             Tunnel ID    : 0x0
TimeStamp  :  Date- 16:12:2010, Time- 15:1:54
                                                                                
Destination:  2001::                                  PrefixLength : 64
NextHop    :  2001::2                                 Flag         : U
Interface  :  NULL0                                   Tunnel ID    : 0
TimeStamp  :  Date- 16:12:2010, Time- 15:1:54
                                                                                
Table 8-185  Description of the display ipv6 fib command output

Item

Description

Destination

Destination IPv6 address of a route.

PrefixLength

Prefix length of the destination IPv6 address.

NextHop

Next hop that forwards packets to the destination address.

Flag

Description of route characteristics using S/U/G/H/B/D:
  • S: static

  • U: Up

  • G: gateway

  • H: host

  • B. blackhole

  • D: dynamic

Interface

Outbound interface through which packets are forwarded.

Tunnel ID

ID of the tunnel. If packets are forwarded to the next hop using MPLS forwarding, the tunnel ID of the packets cannot be 0. If packets are forwarded using IP forwarding, the tunnel ID of the packets is 0.

TimeStamp

Time taken to generate a route in the FIB table.

# Display detailed information about FIB entries.

<Huawei> display ipv6 fib verbose
IPv6 FIB Table:
 Total number of Routes : 1

Destination:  ::1                                     PrefixLength : 128
Nexthop    :  ::1                                     Flag         : HU
Interface  :  InLoopBack0                             Tunnel ID    : 0x0
TimeStamp  :  Date- 13:5:2010, Time- 9:42:54          ATIndex      : 0x0
Slot       :  0                                       InLabel      : NULL
IP6Token   :  0x0                                     VlanId       : 0
RefCount   :  0                                       BgpKey       : 0
NexthopBak :  ::                                      IP6TokenBak  : 0x0
IfIndexBak :  [No Intf]                               Tunnel ID Bak: 0x0
BgpKeyBak  :  0                                       InLabelBak   : NULL
TokenForLabelBak  :  0x0                              UnrType      : 0
NexthopForLabelBak:  ::
IfIndexForLabelBak:  [No Intf]                        OriginAs     : 0
BgpNexthop :  ::                                      PeerAs       : 0
Table 8-186  Description of the display ipv6 fib verbose command output

Item

Description

Destination

Destination IPv6 address of a route.

PrefixLength

Prefix length of the destination IPv6 address.

Nexthop

Next-hop router that forwards packets to the destination address.

Flag

Description of route characteristics using S/U/G/H/B/D:
  • S: static

  • U: Up

  • G: gateway

  • H: host

  • B. blackhole

  • D: dynamic

Interface

Outbound interface through which packets are forwarded.

Tunnel ID

ID of the tunnel. If packets are forwarded to the next hop using MPLS forwarding, the tunnel ID of the packets cannot be 0. If packets are forwarded using IP forwarding, the tunnel ID of the packets is 0.

TimeStamp

Time taken to generate a route in the FIB table.

ATIndex

AT index.

Slot

Slot ID of the LPU where the outbound interface is located.

InLabel

Private network label.

IP6Token

Index of the ND entry allocated by the system for an adaptation module when the route is destined for a gateway.

The value of this field is 0 when the route is not destined for a gateway.

VlanId

VLAN ID.

RefCount

Number of times a route is referenced.

BgpKey

Key value of a BGP route.

NexthopBak

Backup next hop.

IP6TokenBak

Backup ND token.

IfIndexBak

Backup outbound interface.

Tunnel ID Bak

Backup tunnel ID.

BgpKeyBak

Backup key value of the BGP route.

InLabelBak

Inner private network label.

TokenForLabelBak

Backup of the private network token.

UnrType

Route of the UNR type.

NexthopForLabelBak

Backup next hop for the private network token and route.

IfIndexForLabelBak

Backup outbound interface for the private network token and route.

OriginAs

Original AS number.

BgpNexthop

BGP next-hop address.

PeerAs

Peer AS number.

display ipv6 fib statistics

Function

The display ipv6 fib statistics command displays IPv6 FIB statistics. The statistics include the LPU capacity and number of forwarding entries in each forwarding instance.

Format

display ipv6 fib [ slot-id ] statistics [ all ]

display ipv6 fib [ slot-id ] [ vpn-instance vpn-instance-name ] [ verbose ] statistics

Parameters

Parameter Description Value
slot-id Displays statistics about IPv6 FIB entries on an LPU in a specified slot. If this parameter is not specified, statistics about all IPv6 FIB entries on the MPU are displayed.
all Displays all information. -
vpn-instance vpn-instance-name Displays FIB entries of the specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
verbose Displays detailed information about FIB entries. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When you run the display ipv6 fib statistics command:
  • If the slot ID is specified, you can view the IPv6 FIB route prefix capacity on a specified LPU and the number of forwarding entries in each forwarding instance.
  • If the slot ID is not specified, statistics about all IPv6 FIB entries on the MPU are displayed.

Example

# Display statistics about IPv6 FIB entries on the LPU in slot 2.

<Huawei> display ipv6 fib 2 statistics all
IPv6 FIB Total Route Prefix Count: 1 ; Entry Count : 1

IPv6 FIB Public Route Prefix Count :1 ; Entry Count : 1
Table 8-187  Description of the display ipv6 fib statistics all command output

Item

Description

IPv6 FIB Total Route Prefix Count : Entry Count :

Total number of IPv6 route prefix entries and total number of IPv6 forwarding entries.

IPv6 FIB Public Route Prefix Count : Entry Count :

Total number of IPv6 route prefix entries and total number of IPv6 public forwarding entries.

display ipv6 routing-table

Function

The display ipv6 routing-table command displays information about an IPv6 routing table.

Format

display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ verbose | brief ]

display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address [ prefix-length ] [ longer-match ] [ verbose ]

display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address1 [ prefix-length1 ] ipv6-address2 prefix-length2 [ verbose ]

display ipv6 routing-table [ vpn-instance vpn-instance-name ] acl { acl6-number | acl6-name } [ verbose ]

display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-prefix ipv6-prefix-name [ verbose ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Specifies the name of a VPN instance of an enabled IPv6 address family. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
verbose Displays detailed information about all the routes in the current routing table, including active and inactive routes. -
ipv6-address Displays the routes with the specified IPv6 destination address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the prefix length of an IPv6 destination address. The value is an integer that ranges from 0 to 128.
longer-match Displays the routes with the specified destination address and mask. -
ipv6-address1 Specifies the start IPv6 address in an IP address range. ipv6-address1 and ipv6-address2 determine an IP address range. Only the routes in the IP address range are displayed. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
ipv6-address2 Specifies the end IPv6 address in an IP address range. ipv6-address1 and ipv6-address2 determine an IP address range. Only the routes in the IP address range are displayed. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length1 Specifies the mask length of the start IPv6 address. The value is an integer that ranges from 0 to 128.
prefix-length2 Specifies the mask length of the end IPv6 address. The value is an integer that ranges from 0 to 128.
acl acl6-number Displays the routes that match the ACL6 with the specified ACL number. If the specified ACL6 does not exist, information about all active routes is displayed. The value is an integer that ranges from 2000 to 2999.
acl acl6-name Displays the routes that match the ACL6 with the specified ACL name. If the specified ACL6 does not exist, information about all active routes is displayed. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ipv6-prefix ipv6-prefix-name Displays the routes that match the specified IPv6 prefix list. If the specified IPv6 prefix list does not exist, information about all active routes is displayed. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If the verbose keyword is not specified, the command output includes the destination address, prefix length, protocol type, preference, cost, next hop, outbound interface, tunnel ID, flag, and status of a route.

NOTE:

An iterated route is counted as one route regardless of how many outbound interfaces and next hops the route finds.

Example

# Display brief information about the current IPv6 routing table.

<Huawei> display ipv6 routing-table
Routing Table : Public
         Destinations : 4        Routes : 4

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : FC00:0:0:112::                  PrefixLength : 64
 NextHop      : FC00:0:0:112::2                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    :GigabitEthernet1/0/0           Flags        : D

 Destination  : FC00:0:0:112::2                 PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    :GigabitEthernet1/0/0           Flags        : D

 Destination  : FE80::                          PrefixLength : 10
 NextHop      : ::                              Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D
Table 8-188  Description of the display ipv6 routing-table command output

Item

Description

Routing Tables : Public

The routing table is a public routing table.

Destinations

Total number of destination networks or hosts.

Routes

Total number of routes.

Destination

IP address of the destination network or host of a route.

PrefixLength

Prefix length of a route.

NextHop

Next-hop IPv6 address of a route.

Preference

Preference of a route.

Cost

Cost of a route.

Protocol

Routing protocol of a route.

RelayNextHop

Iterated next-hop address.

TunnelID

Tunnel ID. The value 0x0 indicates that no tunnel is used or the tunnel fails to be established.

Interface

Outbound interface through which the next hop of a route can be reached.

Flags

Flag of a route:
  • R: The route is an iterated route.

  • D: The route is delivered to the FIB table.

# Display detailed information about the IPv6 routing table.

<Huawei> display ipv6 routing-table verbose
Routing Table : Public
         Destinations : 2        Routes : 2

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Direct
 State        : Active NoAdv                    Cost         : 0
 Entry ID     : 1                               EntryFlags   : 0x80010050
 Reference Cnt: 1                               Tag          : 0
 Priority     : high                            Age          : 84410sec
 IndirectID   : 0x0
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : FC00:0:0:1::1                   PrefixLength : 128
 NextHop      : FC00:0:0:2::2                   Preference   : 60
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Static
 State        : Active Adv Relied               Cost         : 0
 Entry ID     : 2                               EntryFlags   : 0x80020140
 Reference Cnt: 1                               Tag          : 0
 Priority     : high                            Age          : 79036sec
 IndirectID   : 0x80000001
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : RD
Table 8-189  Description of the display ipv6 routing-table verbose command output

Item

Description

Neighbour

IPv6 address of a neighbor interface.

ProcessID

Routing protocol process ID of a route.

Label

Label carried in a route.

State

Status of a route:

  • Active: active route

  • Invalid: invalid route

  • Inactive: inactive route

  • NoAdv: route that cannot be advertised

  • Adv: route that can be advertised

  • Del: route to be deleted

  • Relied: route iterated to an outbound interface and a next hop or route iterated to a tunnel

  • Stale: route that is marked Stale and used in GR

Entry ID

ID of a routing entry in the routing table.

EntryFlags

Flag of a routing entry.

Reference Cnt

Number of times a route is referenced.

Tag

Routing management tag. The value is an integer that ranges from 0 to 4294967295.

Priority

Convergence priority of a route:

  • low

  • medium

  • high

  • critical

IndirectID

ID of indirect next hop.

Age

Time a route is generated.

# Display brief information about the routes with the specified IPv6 destination address.

<Huawei> display ipv6 routing-table 111::1 64
Routing Table :Public
Summary Count : 1

 Destination  : FC00:0:0:111::                  PrefixLength : 64
 NextHop      : FC00:0:0:111::2                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet1/0/0                    Flags        : D

# Display the routes within the specified IPv6 address range.

<Huawei> display ipv6 routing-table 111::1 64 111::2 128
Routing Table :
Summary Count : 2

 Destination  : FC00:0:0:111::                  PrefixLength : 64
 NextHop      : FC00:0:0:111::2                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet1/0/0                   Flags        : D

 Destination  : FC00:0:0:111::2                 PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet1/0/0                   Flags        : D      

# Display brief information about the active routes that match IPv6 prefix list abc2.

<Huawei> display ipv6 routing-table ipv6-prefix abc2
Routes Matched by Prefix-list : abc2
Summary Count: 3

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : FC00:0:0:112::                  PrefixLength : 64
 NextHop      : FC00:0:0:112::1                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Ethernet3/0/0                   Flags        : D

 Destination  : FC00:0:0:112::1                 PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet1/0/0                   Flags        : D                

display ipv6 routing-table limit

Function

The display ipv6 routing-table limit command displays limits on the numbers of routes and prefixes.

Format

display ipv6 routing-table limit [ all-vpn-instance | vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
all-vpn-instance Indicates all IPv6 VPN instances. -
vpn-instance vpn-instance-name Specifies the name of an IPv6 VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The command displays limits on the number of IPv6 routes and prefixes.
  • The display ipv6 routing-table limit command displays limits on the number of IPv6 public routes and prefixes.
  • The display ipv6 routing-table limit all-vpn-instance command displays the limit on the number of routes and prefixes of all IPv6 VPN instances.
  • The display ipv6 routing-table limit vpn-instance vpn-instance-name command displays the limit on the number of routes and prefixes of a specified IPv6 VPN instance.

Example

# Display limits on the numbers of routes and prefixes of all IPv6 VPN instances.

# Display limits on the numbers of routes and prefixes of the IPv6 VPN instance named vpn1.

<Huawei> display ipv6 routing-table limit vpn-instance vpn1
IPv6 VPN Instance Name: vpn1
Limit-Object     Limit-Type      Upper-Limit    Warning    Current    Log-Interval
Route            Simply-Alert    5000           -          4223       5
Prefix           Alert-Percent   1000           800        760        5

# Display the limits on the number of IPv6 public routes and prefixes.

<Huawei> display ipv6 routing-table limit
Public Instance:                                                                
Limit-Object Limit-Type     Upper-Limit  Warning    Current    Log-Interval     
Route         Default        -            -          1          5               
Prefix        Default        -            -          1          5
Table 8-190  Description of the display ipv6 routing-table limit command output

Item

Description

Limit-Object

Indicates the object whose total number is limited:
  • Prefix

  • Route

Limit-Type

Indicates the limit mode for the routes and prefixes in the current routing table:
  • Simply-Alert: indicates that only alarms are generated after the number of routes or prefixes exceeds the upper limit.

  • Alert-Percent: indicates the percentage of the alarm threshold of routes.

  • Default: indicates that the number of routes or prefixes is not limited by default.

Upper-Limit

Indicates the upper limit of routes or prefixes in the current routing table.

Warning

Indicates the alarm threshold of routes or prefixes in the current routing table.

Current

Indicates the number of routes or prefixes in the current routing table.

Log-Interval

Indicates the frequency of displaying logs when the number of routes or prefixes in the current routing table exceeds the upper limit, in seconds.

Related Topics

display ipv6 routing-table protocol

Function

The display ipv6 routing-table protocol command displays routing information about a specified IPv6 routing protocol.

Format

display ipv6 routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive | verbose | brief ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Specifies the name of a VPN instance of an enabled IPv6 address family. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
protocol Displays routing information about the specified routing protocol:
  • direct: displays direct IPv6 routes.

  • static: displays static IPv6 routes.

  • bgp: displays BGP4+ routes.

  • ripng: displays RIPng routes.

  • isis: displays IS-IS IPv6 routes.

  • ospfv3: displays OSPFv3 routes.

  • unr: displays user network routes.

-
inactive Displays information about inactive routes. If this parameter is not specified, information about all active and inactive routes is displayed. -
verbose Displays detailed information about active and inactive routes. If this keyword is not specified, only brief information about active routes is displayed. -
brief Displays brief information about active and inactive routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display brief information about all IPv6 direct routes.

<Huawei> display ipv6 routing-table protocol direct
Public Routing Table : Direct
Summary Count : 2

Direct Routing Table's Status : < Active >
Summary Count : 2

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : FE80::                          PrefixLength : 10
 NextHop      : ::                              Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D

Direct Routing Table's Status : < Inactive >
Summary Count : 0 
Table 8-191  Description of the display ipv6 routing-table protocol command output

Item

Description

Public Routing Table

Contents of a public routing table:
  • Direct: direct IPv6 route

  • Static: static IPv6 route

  • bgp: BGP4+ route

  • ripng: RIPng route

  • isis: IS-IS IPv6 route

  • ospfv3: OSPFv3 route

  • unr: user network route

Summary Count

Number of prefixes of routes.

Direct Routing Table's Status

Status of direct routes:
  • active: information about active routes
  • inactive: information about inactive routes

Destination

IP address of the destination network or host of a route.

PrefixLength

Prefix length of a route.

NextHop

Next-hop address of a route.

Preference

Routing protocol preference of a route.

Cost

Cost of a route.

Protocol

Routing protocol that learns a route.

RelayNextHop

Iterated next-hop address.

TunnelID

Tunnel ID. The value 0x0 indicates that no tunnel is used or the tunnel fails to be established.

Interface

Outbound interface through which the next hop of a route can be reached.

Flags

Flag of a route:
  • R: The route is an iterated route.

  • D: The route is delivered to the FIB table.

display ipv6 routing-table statistics

Function

The display ipv6 routing-table statistics command displays statistics about routes in an IPv6 routing table.

Format

display ipv6 routing-table [ vpn-instance vpn-instance-name | all-vpn-instance ] statistics

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays statistics about routes in the routing table of a specified VPN instance. If neither vpn-instance-name nor all-vpn-instance is specified, statistics about routes in a public routing table are displayed. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
all-vpn-instance Displays statistics about routes in the routing tables of all VPN instances. If neither vpn-instance-name nor all-vpn-instance is specified, statistics about routes in a public routing table are displayed. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Route statistics include the total number of routes, number of added routes, and number of deleted routes.

Example

# Display statistics about routes in an IPv6 routing table.

<Huawei> display ipv6 routing-table statistics
Summary Prefixes: 1
Protocol    route       active      added       deleted     freed
DIRECT      1           1           1           0           0
STATIC      0           0           0           0           0
RIPng       0           0           0           0           0
OSPFv3      0           0           0           0           0
IS-IS       0           0           0           0           0
BGP         0           0           0           0           0
UNR         0           0           0           0           0
Total       1           1           1           0           0
Table 8-192  Description of the display ipv6 routing-table statistics command output

Item

Description

Summary Prefixes

Total number of prefixes in the current routing table.

Protocol

Routing protocol type:
  • direct: direct IPv6 route

  • static: static IPv6 route

  • bgp: BGP4+ route

  • ripng: RIPng route

  • isis: IS-IS IPv6 route

  • ospfv3: OSPFv3 route

  • unr: user network route

route

Total number of routes that a routing protocol learns in the routing table, including active and inactive routes.

active

Number of active routes of a routing protocol in the routing table.

added

Number of active and inactive routes that are added to the routing table through a routing protocol.

deleted

Number of routes that are deleted from the routing table.

freed

Number of routes that are permanently deleted from the routing table.

display ipv6 routing-table time-range

Function

The display ipv6 routing-table time-range command displays information about routes generated in a specified time range in an IPv6 routing table.

Format

display ipv6 routing-table [ vpn-instance vpn-instance-name ] time-range min-age max-age [ verbose | brief ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays information about routes generated in a specified time range in the IPv6 routing table of the specified VPN instance. If this parameter is not specified, the display ipv6 routing-table time-range command displays information about routes generated in a specified time range in the public IPv6 routing table.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

min-age Specifies the end time of the period when routes are generated.
The value is in xxdxxhxxmxxs format.
  • d indicates days. The value is an integer that ranges from 0 to 10000.
  • h indicates hours. The value is an integer that ranges from 0 to 23.
  • m indicates minutes. The value is an integer that ranges from 0 to 59.
  • s indicates seconds. The value is an integer that ranges from 0 to 59.
For example, enter 5d4h30m20s to specify 5 days, 4 hours, 30 minutes, and 20 seconds.
NOTE:

If the value of d is 10000, the values of h, m, and s can only be 0.

max-age Specifies the start time of the period when routes are generated.
The value is in xxdxxhxxmxxs format.
  • d indicates days. The value is an integer that ranges from 0 to 10000.
  • h indicates hours. The value is an integer that ranges from 0 to 23.
  • m indicates minutes. The value is an integer that ranges from 0 to 59.
  • s indicates seconds. The value is an integer that ranges from 0 to 59.
For example, enter 5d4h30m20s to specify 5 days, 4 hours, 30 minutes, and 20 seconds.
NOTE:

If the value of d is 10000, the values of h, m, and s can only be 0.

verbose Displays detailed information about active and inactive routes. If this parameter is not specified, the display ipv6 routing-table time-range command displays only brief information about active routes. -
brief Displays brief information about active and inactive routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If route flapping occurs on a network, to find the flapping route rapidly and accelerate fault location, run the display ipv6 routing-table time-range command and specify a small time range.

Precautions

max-age must be larger than min-age. Otherwise, the display ipv6 routing-table time-range command does not display any information.

If max-age is larger than min-age but no route is generated within this time range, the display ipv6 routing-table time-range command displays only the table heading.

Example

# Display information about public network IPv6 routes generated in the last 2 hours, 20 minutes, and 10 seconds.

<Router> display ipv6 routing-table time-range 0 2h20m10s
Routing Table : Public
         Destinations : 4        Routes : 4

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : FC00:0:0:1::1                   PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : LoopBack2                       Flags        : D

 Destination  : FC00:0:0:1::2                   PrefixLength : 128
 NextHop      : ::                              Preference   : 60
 Cost         : 0                               Protocol     : Static
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D

 Destination  : FE80::                          PrefixLength : 10
 NextHop      : ::                              Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D

Table 8-193  Description of the display ipv6 routing-table time-range command output

Item

Description

Routing Tables: Public

The routing table is a public routing table.

Destinations

Number of destination networks or hosts.

Routes

Number of routes.

Destination

IP addresses of the destination network or host.

PrefixLength

Prefix length of a route.

NextHop

Next-hop IPv6 address.

Preference

Route preference.

Cost

Route cost.

Protocol

Name of the routing protocol.

RelayNextHop

Iterated next hop.

TunnelID

Tunnel ID:
  • The value 0x0 indicates that the route does not use a tunnel or the tunnel fails to be set up.
  • If the value is not 0x0, the route is iterated to a tunnel.

Interface

Outbound interface through which the next hop of a route can be reached.

Flags

Route flag:
  • R: The route is an iterated route.

  • D: The route is delivered to the FIB table.

# Display detailed information about public network routes generated in the last 20 minutes.

<Router> display ipv6 routing-table time-range 0 20m verbose
Routing Table : Public
         Destinations : 4        Routes : 5

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Direct
 State        : Active NoAdv                    Cost         : 0
 Entry ID     : 262551588                       EntryFlags   : 0x80010050
 Reference Cnt: 2                               Tag          : 0
 Priority     : high                            Age          : 7694sec
 IndirectID   : 0x0
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : FC00:0:0:1::1                   PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Direct
 State        : Active Adv                      Cost         : 0
 Entry ID     : 262552100                       EntryFlags   : 0x80010040
 Reference Cnt: 2                               Tag          : 0
 Priority     : high                            Age          : 101sec
 IndirectID   : 0x0
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : LoopBack2                       Flags        : D

 Destination  : FC00:0:0:1::1                   PrefixLength : 128
 NextHop      : FC00:0:0:1::2                   Preference   : 60
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Static
 State        : Inactive Adv Relied             Cost         : 0
 Entry ID     : 262551716                       EntryFlags   : 0x20140
 Reference Cnt: 2                               Tag          : 0
 Priority     : medium                          Age          : 7668sec
 IndirectID   : 0x80000001
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : R

 Destination  : FC00:0:0:1::2                   PrefixLength : 128
 NextHop      : ::                              Preference   : 60
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Static
 State        : Active Adv                      Cost         : 0
 Entry ID     : 262551844                       EntryFlags   : 0x80000040
 Reference Cnt: 2                               Tag          : 0
 Priority     : medium                          Age          : 7670sec
 IndirectID   : 0x0
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D

 Destination  : FE80::                          PrefixLength : 10
 NextHop      : ::                              Preference   : 0
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Direct
 State        : Active NoAdv                    Cost         : 0
 Entry ID     : 262551972                       EntryFlags   : 0x80010010
 Reference Cnt: 2                               Tag          : 0
 Priority     : high                            Age          : 104sec
 IndirectID   : 0x0
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D

Table 8-194  Description of the display ipv6 routing-table time-range verbose command output

Item

Description

Neighbour

IP address of a neighboring interface. :: indicates that the route is generated by a local device.

ProcessID

Process ID of the routing protocol.

Label

Label carried in a route.

State

Status of the route:

  • Active: an active route

  • Invalid: an invalid route

  • Inactive: an inactive route

  • NoAdv: a route that cannot be advertised

  • Adv: a route that can be advertised

  • Del: a route to be deleted

  • Relied: a route that is iterated to the next hop and outbound interface or a tunnel

  • Stale: a route with the Stale flag and used in GR

Entry ID

ID of a route in the routing table.

EntryFlags

Flag of a route.

Reference Cnt

Number of times the route is referenced.

Tag

Administrative tag of the route. The value is an integer that ranges from 0 to 4294967295.

Priority

Convergence priority of the route:

  • low

  • medium

  • high

  • critical

IndirectID

ID of the indirect next hop.

Age

Time when the route is generated.

display rm bfd-session

Function

The display rm bfd-session command displays the BFD session configuration in routing management (RM).

Format

display rm bfd-session [ vpn-instance vpn-instance-name ] [ destination destination-address ] [ source source-address ] [ interface interface-type interface-number ] [ protocol { bgp | isis-l1 | isis-l2 | isis-l1l2 | ospf | rip | pim }]

display rm bfd-session all

Parameters

Parameter Description Value
all Displays all the BFD session configurations in RM, including the BFD session configurations of the public and private networks. If all is not specified, only the BFD session configuration on the public network is displayed. -
vpn-instance vpn-instance-name Displays the configurations of BFD sessions of the specified VPN instance in RM. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
destination destination-address Displays the configurations of BFD sessions with the specified destination address in RM. The value is in dotted decimal notation.
source source-address Displays the configurations of BFD sessions with the specified source address in RM. The value is in dotted decimal notation.
interface interface-type interface-number Displays the configurations of BFD sessions with the specified outbound interface type and number in RM. -
protocol Displays the configurations of BFD sessions of the specified routing protocol in RM:
  • bgp: BGP

  • isis-l1: IS-IS Level-1

  • isis-l2: IS-IS Level-2

  • isis-l1l2: IS-IS Level-1-2

  • ospf: OSPF

  • rip: RIP

  • pim: PIM

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use this command to view the configuration of BFD sessions dynamically created by routing protocols. The command output includes the global BFD status, number of BFD sessions, and BFD session configuration, such as VPN instance, destination address, source address, interface, and status.

Example

# Display the BFD configuration in RM.

<Huawei> display rm bfd-session
BFD Global Status: ON
BFD Session Total Number: 1

BFD Session: 1
  Interface: GigabitEthernet 1/0/0
  Destination     Source          Session-State Create-State
  10.8.1.2        10.8.1.1        Up            Established
  Route-Protocol  Rx-Interval(ms) Tx-Interval(ms) Multiplier
  ISIS_Level2     1000            1000            5
Table 8-195  Description of the display rm bfd-session command output

Item

Description

BFD Global Status

Global BFD status:
  • ON: BFD is enabled globally.

  • OFF: BFD is disabled globally.

To set the global BFD status, run the bfd command.

BFD Session Total Number

Total number of BFD sessions.

BFD Session

Number of the BFD session.

Interface

Local physical interface bound to the BFD session.

Destination

Peer IP address bound to the BFD session.

Source

Source IP address bound to the BFD session.

Session-State

Status of the BFD session:
  • AdminDown: indicates that the BFD session is in AdminDown state when the shutdown (BFD session view) command is run.

  • Down: indicates that the BFD session in Down state.

  • Init: indicates that the BFD session is in Init state.

  • Up: indicates that the BFD session is in Up state.

Create-State

BFD session setup status in RM:
  • Creating: indicates that the routing protocol notifies RM of the session, but RM does not instruct BFD to set up a session.

  • Established: indicates that RM notifies BFD to set up a BFD session. You can view the Session-State field to check whether a BFD session is set up.

Route-Protocol

Routing protocol enabled with BFD:
  • BGP

  • IS-IS Level-1

  • IS-IS Level-2

  • IS-IS Level-1-2

  • OSPF

  • RIP

  • PIM

Rx-Interval(ms)

Configured receiving interval, in milliseconds.

Tx-Interval(ms)

Configured sending interval, in milliseconds.

Multiplier

Configured local detection multiplier.

display rm interface

Function

The display rm interface command displays routing management (RM) information on an interface.

Format

display rm interface [ interface-type interface-number ]

display rm interface [ vpn-instance vpn-instance-name ] [ ip-address ip-address ]

Parameters

Parameter Description Value
interface-type interface-number Displays RM information on the specified interface. -
vpn-instance vpn-instance-name Displays RM information on the interface of the specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
ip-address ip-address Displays RM information on the interface with the specified destination address. The value is in dotted decimal notation.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use this command to view IPv4 RM information on an interface, including information about physical and logical interfaces of the interface. This information helps locate routing problems.

Example

# Display RM information on GE1/0/0.

<Huawei> display rm interface gigabitethernet 1/0/0
Name: GigabitEthernet1/0/0
Physical IF Info:                                                                                                                   
 IfnetIndex: 0x4                                                                                                                    
 State: UP BCA MULT OSI                                                                                                             
 Hardware Address: 0819-A6D0-269C                                                                                                   
 Slot: 0(Logic Slot: 1)                                                                                                             
 IntType: 36, PriLog: 5, MTU: 1500, Reference Count 2                                                                               
 Bandwidth: 0, 1000000000                                                                                                           
 Baudrate: 0, 1000000000                                                                                                            
 Delay: 0, Reliability: 0, Load: 0                                                                                                  
 LDP-ISIS sync capability: disabled                                                                                                 
 LDP-OSPF sync capability: disabled                                                                                                 
 InstanceID: 0, Instance Name: Public                                                                                               
 Age: 17973sec                                                                                                                      
Logical IF Info:                                                                                                                    
 IfnetIndex: 0x4, PhyIndex: 4 Logical Index : 5,                                                                                    
 Dest: 30.1.1.2, Mask: 255.255.255.0                                                                                                
 State: UP PRM BCA MULT , Reference Count 1                                                                                         
 Age: 17977sec                

# Display RM information on interfaces.

<Huawei> display rm interface

Name: InLoopBack0
Physical IF Info:
 IfnetIndex: 0x1
 State: UP LOOP MULT
 Slot: 0(Logic Slot: 0)
 IntType: 26, PriLog: 1, MTU: 1500, Reference Count 4
 Bandwidth: 0, 0
 Baudrate: 0, 0
 Delay: 0, Reliability: 0, Load: 0
 LDP-ISIS sync capability: disabled
 LDP-OSPF sync capability: disabled
 InstanceID: 0, Instance Name: Public
 Age: 470sec
Logical IF Info:
 IfnetIndex: 0x1, PhyIndex: 1 Logical Index : 1,
 Dest: 127.0.0.1, Mask: 255.0.0.0
 State: UP LOOP PRM MULT , Reference Count 3
 Age: 470sec

Name: NULL0
Physical IF Info:
 IfnetIndex: 0x2
 State: UP NBMA MULT
 Slot: 0(Logic Slot: 0)
 IntType: 27, PriLog: 2, MTU: 1500, Reference Count 1
 Bandwidth: 0, 0
 Baudrate: 0, 0
 Delay: 0, Reliability: 0, Load: 0
 LDP-ISIS sync capability: disabled
 LDP-OSPF sync capability: disabled
 InstanceID: 0, Instance Name: Public
 Age: 470sec
Logical IF Info:
 IfnetIndex: 0x2, PhyIndex: 2 Logical Index : 2,
 Dest: 0.0.0.0, Mask: 255.255.255.255
 State: UP PRM NBMA MULT , Reference Count 0
 Age: 472sec

Name: Serial0/0/0
Physical IF Info:
 IfnetIndex: 0x4
 State: DOWN P2P MULT
 Slot: 0(Logic Slot: 0)
 IntType: 3, PriLog: 0, MTU: 1500, Reference Count 1
 Bandwidth: 0, 64000
 Baudrate: 0, 64000
 Delay: 0, Reliability: 0, Load: 0
 LDP-ISIS sync capability: disabled
 LDP-OSPF sync capability: disabled
 InstanceID: 0, Instance Name: Public
 Age: 472sec

Name: LoopBack1
Physical IF Info:
 IfnetIndex: 0xC
 State: UP LOOP P2P MULT
 Slot: 0(Logic Slot: 0)
 IntType: 26, PriLog: 3, MTU: 1500, Reference Count 1
 Bandwidth: 0, 0
 Baudrate: 0, 0
 Delay: 0, Reliability: 0, Load: 0
 LDP-ISIS sync capability: disabled
 LDP-OSPF sync capability: disabled
 InstanceID: 0, Instance Name: Public
 Age: 39sec
Logical IF Info:
 IfnetIndex: 0xC, PhyIndex: 7 Logical Index : 3,
 Dest: 1.1.1.9, Mask: 255.255.255.255
 State: UP LOOP PRM P2P MULT , Reference Count 0
 Age: 32sec

Name: Tunnel0/0/1
Physical IF Info:
 IfnetIndex: 0xD
 State: DOWN P2P MULT
 Slot: 0(Logic Slot: 0)
 IntType: 32, PriLog: 0, MTU: 1500, Reference Count 1
 Bandwidth: 0, 64000
 Baudrate: 0, 64000
 Delay: 0, Reliability: 0, Load: 0
 LDP-ISIS sync capability: disabled
 LDP-OSPF sync capability: disabled
 InstanceID: 0, Instance Name: Public
 Age: 20sec
Table 8-196  Description of the display rm interface command output

Item

Description

Name

Name of the interface.

Physical IF Info

Physical interface information.

IfnetIndex

Network segment index of the interface.

State

Current interface status.

Hardware Address

MAC address of the interface.

Slot

Slot ID of the interface.

IntType

Type of the interface.

PriLog

Index of the primary logical interface.

MTU

Maximum transmission unit (MTU) of the interface.

Reference Count

Number of times the interface is referenced.

Bandwidth

Bandwidth of the interface.

Baudrate

Baud rate of the interface.

Delay

Link delay.

Reliability

Link reliability.

Load

Link load.

LDP-ISIS sync capability

Whether synchronization between LDP and IS-IS is enabled:
  • enabled: indicates that synchronization is enabled.
  • disabled: indicates that synchronization is disabled.

LDP-OSPF sync capability

Whether synchronization between LDP and OSPF is enabled:
  • enabled: indicates that synchronization is enabled.
  • disabled: indicates that synchronization is disabled.

InstanceID

Instance ID.

Instance Name

Instance name.

Logical IF Info

Logical interface information.

PhyIndex

Physical interface index.

Logical Index

Logical interface index.

Dest

Destination address.

Mask

Mask of the destination address.

Age

Lifetime of the displayed information.

display rm ipv6 interface

Function

The display rm ipv6 interface command displays IPv6 routing management (RM) information on an interface.

Format

display rm ipv6 interface [ interface-type interface-number ]

display rm ipv6 interface [ vpn-instance vpn-instance-name ] [ ipv6-address ipv6-address ]

Parameters

Parameter Description Value
interface-type interface-number Displays IPv6 RM information on the specified interface. -
vpn-instance vpn-instance-name Displays IPv6 RM information in a specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
ipv6-address ipv6-address Displays IPv6 RM information with the specified destination IPv6 address. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use this command to view IPv6 RM information on an interface, including information about physical and logical interfaces of the interface. This information helps locate routing problems.

Example

# Display IPv6 RM information on all interfaces.

<Huawei> display rm ipv6 interface

Name: InLoopBack0
Physical IF Info:
 IfnetIndex: 0x1
 State: UP LOOP MULT
 Slot: 0(Logic Slot: 0)
 IntType: 26, PriLog: 1, MTU: 1500, Ref: 1
 Bandwidth: 0, 0
 Baudrate: 0, 0
 Delay: 0, Reliability: 0, Load: 0
 Age: 1635sec

Logical IF Info:
 IfnetIndex: 0x1, PhyIndex: 1, LogiIndex: 1
 Dest: ::1, Mask: 128
 State: UP LOOP PRM MULT , Ref 1
 Age: 1635sec

Name: NULL0
Physical IF Info:
 IfnetIndex: 0x2
 State: UP NBMA MULT
 Slot: 0(Logic Slot: 0)
 IntType: 27, PriLog: 2, MTU: 1500, Ref: 0
 Bandwidth: 0, 0
 Baudrate: 0, 0
 Delay: 0, Reliability: 0, Load: 0
 Age: 1635sec

Logical IF Info:
 IfnetIndex: 0x2, PhyIndex: 2, LogiIndex: 2
 Dest: ::, Mask: 128
 State: UP PRM NBMA MULT , Ref: 0
 Age: 1635sec
Table 8-197  Description of the display rm ipv6 interface command output

Item

Description

Name

Name of an interface.

Physical IF Info

Physical interface information.

IfnetIndex

Network segment index of the interface.

State

Interface status.

IntType

Interface type.

Slot

Slot ID.

PriLog

Index of the primary logical interface.

MTU

Maximum transmission unit (MTU) of the interface.

Ref

Number of times the interface is referenced.

Bandwidth

Bandwidth of the interface.

Baudrate

Baud rate of the interface.

Delay

Link delay.

Reliability

Link reliability.

Load

Link load.

Age

Lifetime of the displayed information.

Logical IF Info

Logical interface information.

PhyIndex

Physical index.

LogiIndex

Logical index.

Dest

Destination IPv6 address.

Mask

Prefix length of the destination IPv6 address.

display router id

Function

The display router id command displays the configured router ID.

Format

display router id [ vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays the configured router ID of the specified VPN instance. If this parameter is not specified, the configured router ID of the public network is displayed. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the configured router ID.

<Huawei> display router id
RouterID:10.1.1.1

# Display the configured router ID of VPN instance vpna.

<Huawei> display router id vpn-instance vpna
RouterID:10.1.1.1

display route resource

Function

The display route resource command displays the total number of IPv4 and IPv6 route prefixes in the IP routing table on the device.

Format

display route resource

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display route resource command displays the total number of IPv4 and IPv6 route prefixes in the IP routing table on the device.

Example

# Display the total number of IPv4 and IPv6 route prefixes in the IP routing table on the device.

<Huawei> display route resource
 Total number of IPv4 Prefixes: 16
 Total number of IPv6 Prefixes: 13
Table 8-198  Description of the display route resource command output

Item

Description

Total number of IPv4 Prefixes

Current number of IPv4 route prefixes.

Total number of IPv6 Prefixes

Current number of IPv6 route prefixes.

fib regularly-refresh

Function

The fib regularly-refresh command specifies an interval at which FIB entries are refreshed and the number of FIB entries refreshed per circle.

The undo fib regularly-refresh command restores the default configuration.

The default interval and number are 1 second and 100, respectively.

Format

fib regularly-refresh { interval interval [ entry-number entry-number ] | entry-number entry-number }

undo fib regularly-refresh { interval interval [ entry-number entry-number ] | entry-number entry-number }

Parameters

Parameter Description Value
interval interval Specifies an interval at which FIB entries are refreshed. The value is an integer ranging from 1 to 300.
entry-number entry-number Specifies the number of FIB entries refreshed per circle. The value is an integer ranging from 20 to 2000.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Regular FIB entry refreshing occupies system resources, including CPU and memory resources. A longer interval and smaller number result in less impact on other services. You can flexibly configure the interval and number based on system resources. By default, CPU usage during regular FIB entry refreshing is not 10% greater than the original CPU usage.

Prerequisites

Regular FIB entry refreshing has been enabled using the undo fib regularly-refresh disable command in the system view.

Example

# Set an interval at which FIB entries are refreshed to 5 seconds and the number of FIB entries refreshed per circle to 200.

<Huawei> system-view
[Huawei] fib regularly-refresh interval 5 entry-number 200

fib regularly-refresh disable

Function

The fib regularly-refresh disable command disables an FIB from being refreshed every 24 hours.

The undo fib regularly-refresh disable command enables an FIB to be refreshed every 24 hours.

By default, an FIB is not refreshed every 24 hours.

NOTE:
By default, an FIB is refreshed every 24 hours in V200R007C01 and later versions.

Format

fib regularly-refresh disable

undo fib regularly-refresh disable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To avoid high CPU usage and CPU performance deterioration caused by FIB refreshment, you can use the fib regularly-refresh disable command to disable an FIB from being refreshed every 24 hours temporarily.

Precautions

Disabling FIB refreshment may result in that some hardware errors cannot be corrected timely. Exercise caution when using this command.

Example

# Disable the FIB from being refreshed every 24 hours.

<Huawei> system-view
[Huawei] fib regularly-refresh disable
Warning: This operation will disable the function of the FIB regularly refresh,
Confirm?[Y/N]:y
Info: The function of the FIB regularly refresh is disabled.  

fib regularly-refresh start-time

Function

Using the fib regularly-refresh start-time command, you can set the time at which an FIB is refreshed.

Using the undo fib regularly-refresh start-time command, you can restore the default value of the time at which an FIB is refreshed.

By default, an FIB is refreshed at 1 every 24 hours.

Format

fib regularly-refresh start-time start-time

undo fib regularly-refresh start-time

Parameters

Parameter Description Value
start-time Time at which an FIB is refreshed The value ranges from 0 to 23, in hours.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Usually, a device refreshes an FIB at 1 o'clock every 24 hours. When the FIB is refreshed, a large amount of routing information is delivered, causing high usage of CPU. If refreshment is performed at the traffic peak period, the CPU performance may deteriorate. You can use the fib regularly-refresh start-time command to choose any time between 0 to 23 to refresh FIB entries, so as to prevent FIB entries from being refreshed during the traffic peak period.

Prerequisites

Ensure that the FIB every-24-hour refreshment function is enabled.

Precautions

If the system time changes, the FIB every-24-hour refreshment function fails to change the interval at which an FIB entry is refreshed accordingly. To correct the interval, run the fib regularly-refresh start-time command.

Example

# Set the FIB to be refreshed every 4 o'clock.

<Huawei> system-view
[Huawei] fib regularly-refresh start-time 4
Warning: This operation will reset the start time of the FIB regularly refresh,Confirm?[Y/N]:y
Info: System will start the FIB regularly refresh at 4 o'clock.

ip frr (system view)

Function

The ip frr command enables IP FRR for public routes.

The undo ip frr command disables IP FRR for public routes.

By default, IP FRR is disabled for public routes.

NOTE:

AR502G-L-D-H, AR502GR-L-D-H do not support this commands.

NOTE:

AR550 series do not support this commands.

Format

ip frr route-policy route-policy-name

undo ip frr [ all ]

Parameters

Parameter Description Value
route-policy route-policy-name Enables IP FRR for public routes matching the specified route-policy. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
all Disables IP FRR for all public and private routes. If this parameter is not specified, IP FRR is disabled for all public routes. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

However, under traditional forwarding modes, when multiple routes to the same destination exist, industrial switch router selects the optimal route, which is delivered to FIB table to direct data forwarding. When the optimal link is faulty, industrial switch router waits for the completion of route convergence, then selects another optimal route, and then deliver the route to the FIB table. Then the service is recovered. This process leads to a long-time service interruption and cannot meet service requirements.

Using the ip frr command, you can enable IP FRR of the public network. IP FRR can specify a backup next hop and a backup interface and set backup forwarding information for IPv4 routes. When the active link is faulty, the system can switch the traffic immediately to the backup link. This process is irrelevant to route convergence and therefore services are interrupted for short time.

Pre-configuration Tasks

The ip frr command should be used with the apply backup-interface command and the apply backup-nexthop command. It is recommended to use the route-policy command to create Route-Policy at first, in which the apply backup-interface command and the apply backup-nexthop command are used to set a backup outbound interface and a backup next hop for IPv4 route of the public network.

Precautions

Only one policy can be used at one time. New configuration will replace the previous one if another policy is configured. Configuration in the system view and that in the VPN instance IPv4 address family view will not interfere each other.

Using the undo ip frr all command, IP FRR of all the public network and the private networks is disabled. Use it with caution.

Example

# Specify a backup outbound interface and a backup next hop in route-policy ip_frr_rp and enable IP FRR for public routes in the system view.

<Huawei> system-view
[Huawei] route-policy ip_frr_rp permit node 10
[Huawei-route-policy] apply backup-interface gigabitethernet 0/0/1
[Huawei-route-policy] apply backup-nexthop 192.168.20.2
[Huawei-route-policy] quit
[Huawei] ip frr route-policy ip_frr_rp 

ip load-balance hash

Function

The ip load-balance hash command configures the UCMP and ECMP load balancing algorithms.

The undo ip load-balance hash command restores the default load balancing mode.

By default, IP packets are load balanced based on the source IP address and destination IP address. TCP packets or UDP packets are load balanced based on the source IP address, destination IP address, source port number, and destination port number.

Format

ip load-balance hash { src-ip | dst-ip | src-dst-ip }

undo ip load-balance hash

Parameters

Parameter

Description

Value

src-ip

Indicates that the load balancing is based on the source IP address.

-

dst-ip

Indicates that the load balancing is based on the destination IP address.

-

src-dst-ip

Indicates that the load balancing is based on the source IP address and destination IP address.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The industrial switch router supports the multi-route mode. You can configure multiple routes to the same destination and with the same priority. If a routing protocol discovers multiple routes to the same destination and they have the same cost, the industrial switch router performs load balancing among the routes.

In network applications, the industrial switch router often uses load balancing to improve link utilization and increase network bandwidth. By default, IP packets are forwarded based on the source IP address and destination IP address. IP packets with the same source IP address and destination IP address are forwarded through the same route. IP packets with different source IP addresses and destination IP addresses are forwarded through different equal-cost routes. In practical applications, packets need to be forwarded using different methods to properly use link resources. Flexible load balancing algorithms can meet requirements in different scenarios.
  • If the src-ip parameter is configured, the load balancing is based on the source IP address. In a scenario that has multiple equal-cost uplink routes, traffic from different users is load balanced among different equal-cost routes.
  • If the dst-ip parameter is configured, the load balancing is based on the destination IP address. In a scenario that has multiple equal-cost uplink routes, traffic from different users to the same destination IP address is forwarded through the same link.

Example

# Configure the load balancing based on the source IP address.

<Huawei> system-view
[Huawei] ip load-balance hash src-ip

ip prefix-limit

Function

The ip prefix-limit command configures a limit on the number of IPv4 public route prefixes.

The undo ip prefix-limit command restores the default configuration.

By default, the maximum number of IPv4 public route prefixes is not limited.

Format

ip prefix-limit number { alert-percent [ route-unchanged ] | simply-alert }

undo ip prefix-limit

Parameters

Parameter Description Value
number

Specifies the maximum number of IPv4 public route prefixes.

The value is an integer, and the minimum value is 1. The maximum number is determined by the license file.
alert-percent

Specifies the percentage of the maximum number of IPv4 public route prefixes. If you specify alert-percent in the command, when the number of IPv4 public route prefixes exceeds the value calculated by (number x alert-percent) /100, an alarm is generated. Additional IPv4 public route prefixes can still be added to the routing table until the number of IPv4 public route prefixes reaches number. Subsequent route prefixes are discarded.

The value is an integer ranging from 1 to 100.
route-unchanged
Indicates that the routing table remains unchanged. If you decrease alert-percent after the number of IPv4 public route prefixes exceeds number, whether the routing table remains unchanged is determined by route-unchanged.
  • If you specify route-unchanged in the command, the routing table remains unchanged.

  • If you do not specify route-unchanged in the command, the system deletes the routes from the routing table and re-adds routes.

By default, the system deletes the routes from the routing table and re-adds routes.

-
simply-alert

Indicates the following function: If you specify simply-alert in the command, new IPv4 public route prefixes can still be added to the routing table and only an alarm is generated after the number of IPv4 public route prefixes exceeds number. However, when the total number of private and public route prefixes reaches the limit on the number of unicast route prefixes specified in the PAF file, subsequent IPv4 public route prefixes are discarded.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the industrial switch router imports a large number of routes, system performance may be affected when processing services because the routes consume a lot of system resources. To improve system security and reliability, you can run the ip prefix-limit command to configure a limit on the number of IPv4 public route prefixes. When the number of IPv4 public route prefixes exceeds the limit, an alarm is generated, prompting you to check whether unneeded IPv4 public route prefixes exist.

Configuration Impact

After the ip prefix-limit command is run, the industrial switch router may discard unneeded IPv4 public route prefixes.

Precautions

If you run the ip prefix-limit command for several times, the last configuration overrides previous configurations.

After the number of IPv4 public route prefixes exceeds the limit, note the following rules:
  • If you run the ip prefix-limit command to increase number or the undo ip prefix-limit command to delete the limit, the industrial switch router relearns IPv4 public route prefixes.
  • Direct and static routes can still be added to the IP routing table.

Example

# Configure simply-alert so that only an alarm is generated when the industrial switch router imports more than 10000 IPv4 public route prefixes.

<Huawei> system-view
[Huawei] ip prefix-limit 10000 simply-alert

ip prefix-limit log-interval

Function

The ip prefix-limit log-interval command configures an interval at which logs are generated after the number of IPv4 public route prefixes exceeds the limit.

The undo ip prefix-limit log-interval command restores the default configuration.

By default, the system generates logs at an interval of 5s after the number of IPv4 public route prefixes exceeds the limit.

Format

ip prefix-limit log-interval interval

undo ip prefix-limit log-interval

Parameters

Parameter Description Value
interval Specifies an interval at which logs are generated after the number of IPv4 public route prefixes exceeds the limit. The value is an integer ranging from 1 to 60, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The system generates logs at an interval of 5s after the number of IPv4 public route prefixes exceeds the limit. You can run the ip prefix-limit log-interval command to set a larger value for the interval to decrease the frequency at which these logs are generated.

The maximum number of IPv4 public route prefixes supported by the routing table can be adjusted using the ip prefix-limit command.

Precautions

If a log is generated to record the event that the number of IPv4 public route prefixes reaches the limit, no more routes can be added to the routing table, and subsequent routes are discarded.

Example

# Set the interval at which logs are generated after the number of IPv4 public route prefixes exceeds the limit to 30s.

<Huawei> system-view
[Huawei] ip prefix-limit log-interval 30
Related Topics

ip route prefix-priority-scheduler

Function

The ip route prefix-priority-scheduler command sets the priority-based scheduling weight of IPv4 routes.

The undo ip route prefix-priority-scheduler command restores the default priority-based scheduling weight of IPv4 routes.

By default, the priority-based scheduling weight of IPv4 routes is 8:4:2:1.

Format

ip route prefix-priority-scheduler critical-weight high-weight medium-weight low-weight

undo ip route prefix-priority-scheduler

Parameters

Parameter Description Value
critical-weight Sets the scheduling weight of a critical queue. The value is an integer that ranges from 1 to 10.
high-weight Sets the scheduling weight of a high queue. The value is an integer that ranges from 1 to 10.
medium-weight Sets the scheduling weight of a medium queue. The value is an integer that ranges from 1 to 10.
low-weight Sets the scheduling weight of a low queue. The value is an integer that ranges from 1 to 10.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The integration of network services urgently requires differentiated services. Routes for key services, such as Voice over IP (VoIP), video conferences, and multicast services, need to be converged rapidly, while routes for common services can be converged relatively slowly. In this case, the system needs to converge routes based on their convergence priorities to improve network reliability.

Different routes can be set with different convergence priorities, which can be critical, high, medium, and low listed in descending order. Critical is the highest convergence priority; low is the lowest convergence priority. The system converges routes based on the convergence priorities and convergence rules, that is, schedules the convergence of routes of different convergence priorities in proportion, to guide service forwarding.

When the system is processing a large number of high-priority routes, low-priority routes may fail to be processed for a long time. In this case, to prevent system performance from being affected, run the ip route prefix-priority-scheduler command to adjust the priority-based scheduling weight of IPv4 routes.

Follow-up Procedure

In most cases, convergence priorities of routes are determined by route types. On an OSPF network, you can run the prefix-priority (OSPF) command to adjust the convergence priority of OSPF routes. On an IS-IS network, you can run the prefix-priority (IS-IS) command to adjust the convergence priority of IS-IS routes.

Example

# Set the priority-based scheduling weight of IPv4 routes to 10:2:1:1.

<Huawei> system-view
[Huawei] ip route prefix-priority-scheduler 10 2 1 1

ipv6 fib-loadbalance-type hash-based

Function

The ipv6 fib-loadbalance-type hash-based command configures packets sent from a specified source to a specified destination to be forwarded using the same route.

The undo ipv6 fib-loadbalance-type hash-based command restores the default configuration.

By default, flow-based load balancing is used.

Format

ipv6 fib-loadbalance-type hash-based

undo ipv6 fib-loadbalance-type hash-based

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

NOTE:

This command takes effect only when the FIB cache fails.

Example

# Configure packets sent from a specified source to a specified destination to be forwarded using the same route.

<Huawei> system-view
[Huawei] ipv6 fib-loadbalance-type hash-based

ipv6 fib regularly-refresh entry-number

Function

The ipv6 fib regularly-refresh entry-number command configures the number of entries refreshed each time for the IPv6 FIB.

The undo ipv6 fib regularly-refresh entry-number command restores the default number of entries refreshed each time for the IPv6 FIB.

By default, the number of entries refreshed each time for the IPv6 FIB is 100.

Format

ipv6 fib regularly-refresh entry-number entry-number

undo ipv6 fib regularly-refresh entry-number [ entry-number ]

Parameters

Parameter Description Value
entry-number Specifies the number of IPv6 FIB entries refreshed each time. The value is an integer ranging from 20 to 2000.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

IPv6 FIB 24-hour refresh occupies system resources, including CPU and memory resources. The less the number of entries refreshed is configured, the minor negative impacts it has on other services. Users can configure the number of entries refreshed flexibly based on system resources.

To reduce the system resource usage, run the ipv6 fib regularly-refresh entry-number command and the ipv6 fib regularly-refresh interval command to adjust the interval at which IPv6 FIB entries are refreshed and the number of IPv6 FIB entries refreshed each time.

Prerequisites

IPv6 FIB 24-hour refresh has been enabled. By default, this function has been enabled. If not, run the undo ipv6 fib regularly-refresh disable command in the system view to enable it.

Precautions

If the number of entries refreshed is too small, the lower layer hardware entries cannot be refreshed periodically, and this affects IPv6 route forwarding.

Example

# Configure the number of entries refreshed each time for the IPv6 FIB to 200.

<Huawei> system-view
[Huawei] undo ipv6 fib regularly-refresh disable
Warning: This operation will enable the function of the FIB regularly refresh,Confirm?[Y/N]:y 
Info: The function of the FIB regularly refresh is enabled. 
[Huawei] ipv6 fib regularly-refresh entry-number 200

ipv6 fib regularly-refresh disable

Function

The ipv6 fib regularly-refresh disable command disables IPv6 FIB 24-hour refresh.

The undo ipv6 fib regularly-refresh disable command enables IPv6 FIB 24-hour refresh.

By default, IPv6 FIB 24-hour refresh is enabled.

Format

ipv6 fib regularly-refresh disable

undo ipv6 fib regularly-refresh disable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

During peak hours, refreshing the IPv6 FIB can cause over-high CPU usage and affect service reliability. To resolve this problem, run the ipv6 fib regularly-refresh disable command to disable IPv6 FIB 24-hour refresh. After the CPU usage restores to a normal state, run the undo ipv6 fib regularly-refresh disable command to restore IPv6 FIB 24-hour refresh.

Precautions

Disabling IPv6 FIB 24-hour refresh may prevent the rectification of certain hardware forwarding entry faults. Exercise caution when running the ipv6 fib regularly-refresh disable command.

Example

# Disable IPv6 FIB 24-hour refresh.

<Huawei> system-view
[Huawei] ipv6 fib regularly-refresh disable
Warning: This operation will disable the function of the FIB regularly refresh,Confirm?[Y/N]:y
Info: The function of the FIB regularly refresh is disabled.

ipv6 fib regularly-refresh interval

Function

The ipv6 fib regularly-refresh interval command configures a refresh interval each time for the IPv6 FIB.

The undo ipv6 fib regularly-refresh interval command restores the default refresh interval each time for the IPv6 FIB.

By default, the refresh interval each time for the IPv6 FIB is 1s.

Format

ipv6 fib regularly-refresh interval interval

undo ipv6 fib regularly-refresh interval [ interval ]

Parameters

Parameter Description Value
interval Specifies an interval at which IPv6 FIB entries are refreshed. The value is an integer ranging from 1 to 300, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

IPv6 FIB 24-hour refresh occupies system resources, including CPU and memory resources. The longer a refresh interval is configured, the minor negative impacts it has on other services. You can configure a refresh interval flexibly based on system resources.

To reduce the system resource usage, run the ipv6 fib regularly-refresh entry-number command and the ipv6 fib regularly-refresh interval command to adjust the interval at which IPv6 FIB entries are refreshed and the number of IPv6 FIB entries refreshed each time.

Prerequisites

IPv6 FIB 24-hour refresh has been enabled. By default, this function has been enabled. If not, run the undo ipv6 fib regularly-refresh disable command in the system view to enable it.

Precautions

If the configured refresh interval is too long, the lower layer hardware entries cannot be refreshed periodically, and this affects IPv6 route forwarding.

Example

# Configure the refresh interval each time to 5s.

<Huawei> system-view
[Huawei] undo ipv6 fib regularly-refresh disable
Warning: This operation will enable the function of the FIB regularly refresh,Confirm?[Y/N]:y 
Info: The function of the FIB regularly refresh is enabled. 
[Huawei] ipv6 fib regularly-refresh interval 5

ipv6 fib regularly-refresh start-time

Function

The ipv6 fib regularly-refresh start-time command configures a start time for IPv6 FIB 24-hour refresh.

The undo ipv6 fib regularly-refresh start-time command restores the default start time for IPv6 FIB 24-hour refresh.

By default, the start time for IPv6 FIB 24-hour refresh is 00:00 a.m.

Format

ipv6 fib regularly-refresh start-time start-time

undo ipv6 fib regularly-refresh start-time [ start-time ]

Parameters

Parameter Description Value
start-time Specifies a start time for IPv6 FIB 24-hour refresh. The value is an integer ranging from 0 to 23.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

During the refresh, the IPv6 FIB table delivers enormous route messages, which causes high CPU usage in a short period. If the periodic refresh also starts during peak hours, it may affect service reliability. To refresh the IPv6 FIB entries in off-peak hours, run the ipv6 fib regularly-refresh start-time command to configure a start time for IPv6 FIB 24-hour refresh flexibly.

Prerequisites

IPv6 FIB 24-hour refresh has been enabled. By default, this function has been enabled. If not, run the undo ipv6 fib regularly-refresh disable command in the system view to enable it.

Precautions

If the system time changes, the 24-hour refresh timer will not adjust the latest timeout interval automatically. You need to configure a new start time to adjust the timeout interval for the refresh timer.

Example

# Configure the start time for IPv6 FIB 24-hour refresh to 4:00.

<Huawei> system-view
[Huawei] undo ipv6 fib regularly-refresh disable
Warning: This operation will enable the function of the FIB regularly refresh,Confirm?[Y/N]:y 
Info: The function of the FIB regularly refresh is enabled. 
[Huawei] ipv6 fib regularly-refresh start-time 4
Warning: This operation will reset the start time of the FIB regularly refresh,Confirm?[Y/N]:y
Info: System will start the FIB regularly refresh at 4 o'clock. 

ipv6 prefix-limit

Function

The ipv6 prefix-limit command configures a limit on the number of IPv6 public route prefixes.

The undo ipv6 prefix-limit command restores the default configuration.

By default, the maximum number of IPv6 public route prefixes is not limited.

Format

ipv6 prefix-limit number { alert-percent [ route-unchanged ] | simply-alert }

undo ipv6 prefix-limit

Parameters

Parameter Description Value
number

Specifies the maximum number of IPv6 public route prefixes.

The value is an integer, and the minimum value is 1. The maximum number is determined by the license file.
alert-percent

Specifies the percentage of the maximum number of IPv6 public route prefixes. If you specify alert-percent in the command, when the number of IPv6 public route prefixes exceeds the value calculated by (number x alert-percent) /100, an alarm is generated. Additional IPv6 public route prefixes can still be added to the routing table until the number of IPv6 public route prefixes reaches number. Subsequent route prefixes are discarded.

The value is an integer ranging from 1 to 100.
route-unchanged
Indicates that the routing table remains unchanged. If you decrease alert-percent after the number of IPv6 public route prefixes exceeds number, whether the routing table remains unchanged is determined by route-unchanged.
  • If you specify route-unchanged in the command, the routing table remains unchanged.

  • If you do not specify route-unchanged in the command, the system deletes the routes from the routing table and re-adds routes.

By default, the system deletes the routes from the routing table and re-adds routes.

-
simply-alert

Indicates the following function: If you specify simply-alert in the command, new IPv6 public route prefixes can still be added to the routing table and only an alarm is generated after the number of IPv6 public route prefixes exceeds number. However, when the total number of private and public route prefixes reaches the limit on the number of unicast route prefixes specified in the PAF file, subsequent IPv6 public route prefixes are discarded.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the industrial switch router imports a large number of routes, system performance may be affected when processing services because the routes consume a lot of system resources. To improve system security and reliability, you can run the ipv6 prefix-limit command to configure a limit on the number of IPv6 public route prefixes. When the number of IPv6 public route prefixes exceeds the limit, an alarm is generated, prompting you to check whether unneeded IPv6 public route prefixes exist.

Configuration Impact

After the ipv6 prefix-limit command is run, the industrial switch router may discard unneeded IPv6 public route prefixes.

Precautions

If you run the ipv6 prefix-limit command for several times, the last configuration overrides previous configurations.

After the number of IPv6 public route prefixes exceeds the limit, note the following rules:
  • If you run the ipv6 prefix-limit command to increase number or the undo ipv6 prefix-limit command to delete the limit, the industrial switch router relearns IPv6 public route prefixes.
  • Direct and static routes can still be added to the IPv6 routing table.

Example

# Configure simply-alert so that only an alarm is generated when the industrial switch router imports more than 10000 IPv6 public route prefixes.

<Huawei> system-view
[Huawei] ipv6 prefix-limit 10000 simply-alert

ipv6 prefix-limit log-interval

Function

The ipv6 prefix-limit log-interval command configures an interval at which logs are generated after the number of IPv6 public route prefixes exceeds the limit.

The undo ipv6 prefix-limit log-interval command restores the default configuration.

By default, the system generates logs at an interval of 5s after the number of IPv6 public route prefixes exceeds the limit.

Format

ipv6 prefix-limit log-interval interval

undo ipv6 prefix-limit log-interval

Parameters

Parameter Description Value
interval Specifies an interval at which logs are generated after the number of IPv6 public route prefixes exceeds the limit. The value is an integer ranging from 1 to 60, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The system generates logs at an interval of 5s after the number of IPv6 public route prefixes exceeds the limit. You can run the ip prefix-limit log-interval command to set a larger value for the interval to decrease the frequency at which these logs are generated.

The maximum number of IPv6 public route prefixes supported by the routing table can be adjusted using the ipv6 prefix-limit command.

Precautions

If a log is generated to record the event that the number of IPv6 public route prefixes reaches the limit, no more routes can be added to the routing table, and subsequent routes are discarded.

Example

# Set the interval at which logs are generated after the number of IPv6 public route prefixes exceeds the limit to 30s.

<Huawei> system-view
[Huawei] ipv6 prefix-limit log-interval 30
Related Topics

ipv6 route prefix-priority-scheduler

Function

The ipv6 route prefix-priority-scheduler command sets the priority-based scheduling weight of IPv6 routes.

The undo ipv6 route prefix-priority-scheduler command restores the default priority-based scheduling weight of IPv6 routes.

By default, the priority-based scheduling weight of IPv6 routes is 8:4:2:1.

Format

ipv6 route prefix-priority-scheduler critical-weight high-weight medium-weight low-weight

undo ipv6 route prefix-priority-scheduler

Parameters

Parameter Description Value
critical-weight Sets the scheduling weight of a critical queue. The value is an integer that ranges from 1 to 10.
high-weight Sets the scheduling weight of a high queue. The value is an integer that ranges from 1 to 10.
medium-weight Sets the scheduling weight of a medium queue. The value is an integer that ranges from 1 to 10.
low-weight Sets the scheduling weight of a low queue. The value is an integer that ranges from 1 to 10.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The integration of network services urgently requires differentiated services. IPv6 routes for key services, such as Voice over IP (VoIP), video conferences, and multicast services, need to be converged rapidly, while routes for common services can be converged relatively slowly. In this case, the system needs to converge IPv6 routes based on their convergence priorities to improve network reliability.

Different IPv6 routes can be set with different convergence priorities, which can be critical, high, medium, and low listed in descending order. Critical is the highest convergence priority; low is the lowest convergence priority. The system converges IPv6 routes based on the convergence priorities and convergence rules, that is, schedules the convergence of IPv6 routes of different convergence priorities in proportion, to guide service forwarding.

When the system is processing a large number of high-priority IPv6 routes, low-priority IPv6 routes may fail to be processed for a long time. In this case, to prevent system performance from being affected, run the ipv6 route prefix-priority-scheduler command to adjust the priority-based scheduling weight of IPv6 routes.

Follow-up Procedure

In most cases, convergence priorities of IPv6 routes are determined by route types. On an ISISv6 network, run the ipv6 prefix-priority (IS-IS) command to adjust the convergence of ISISv6 routes.

Example

# Set the priority-based scheduling weight of IPv6 routes to 10:2:1:1 (critical:high:medium:low).

<Huawei> system-view
[Huawei] ipv6 route prefix-priority-scheduler 10 2 1 1

refresh fib

Function

The refresh fib command delivers IPv4 FIB policies and forwarding entries.

Format

refresh fib slot slot-id

Parameters

Parameter Description Value
slot slot-id Specifies the slot ID of an LPU that needs to update IPv4 FIB policies. The value is determined based on the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the IPv4 FIB policy changes, you must run the refresh fib command to update the LPU to make the configuration take effect.

After the refresh fib command is executed, you can view the FIB table to check whether the update succeeds.

Precautions

If the FIB module is in overload state and the LPU works in overload suspension mode, the IPv4 and IPv6 modules need to be updated.

Example

# Refresh IPv4 FIB module on the LPU in slot 2.

<Huawei> system-view
[Huawei] refresh fib slot 2

refresh ipv6 fib

Function

The refresh ipv6 fib command delivers IPv6 FIB policies and forwarding entries.

Format

refresh ipv6 fib slot slot-id

Parameters

Parameter Description Value
slot slot-id Specifies the slot ID of an LPU that needs to update IPv6 FIB policies. The value is determined based on the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After the IPv6 FIB policy changes, you must run the refresh ipv6 fib command to update the LPU to make the configuration take effect.

After the refresh ipv6 fib command is executed, you can view the FIB table to check whether the update succeeds.

NOTE:

If the FIB module is in overload state and the LPU works in overload suspension mode, the IPv4 and IPv6 modules need to be updated.

Example

# Update the IPv6 FIB module on the LPU in slot 2.

<Huawei> system-view
[Huawei] refresh ipv6 fib slot 2

reset ip routing-table statistics protocol

Function

The reset ip routing-table statistics protocol command clears route statistics in an IPv4 routing table.

Format

reset ip routing-table statistics protocol [ vpn-instance vpn-instance-name ] { all | protocol }

reset ip routing-table all-vpn-instance statistics protocol { all | protocol }

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Clears route statistics in an IPv4 routing table of the specified VPN instance. If this parameter is not specified, route statistics in an IPv4 routing table of the public network are cleared. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
all Clear route statistics of all routing protocols in an IPv4 routing table. -
protocol Clears route statistics of the specified routing protocol in an IPv4 routing table. This parameter can be one of the following: direct, bgp, isis, ospf, rip, , static , and unr. -
all-vpn-instance Clears the statistics in the IPv4 routing tables of all VPN instances. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can use this command to clear route statistics in an IPv4 routing table, including statistics about the routes added, deleted, and released by each routing protocol. Subsequently, the system can recollect route statistics of each routing protocol again to monitor route changes and locate network faults.

Precautions

IPv4 route statistics cannot be restored after being cleared. Exercise caution when you use this command.

Example

# Clear route statistics of all routing protocols in an IPv4 routing table.

<Huawei> reset ip routing-table statistics protocol all

reset ipv6 routing-table statistics protocol

Function

The reset ipv6 routing-table statistics protocol command clears route statistics in an IPv6 routing table.

Format

reset ipv6 routing-table [ vpn-instance vpn-instance-name ] statistics protocol { all | protocol }

reset ipv6 routing-table all-vpn-instance statistics protocol { all | protocol }

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Specifies the name of an IPv6 VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
all Clear route statistics of all routing protocols in an IPv6 routing table. -
protocol Clears route statistics of the specified routing protocol in an IPv6 routing table. This parameter can be one of the following: bgp, direct, isis, ospfv3unr, ripng, and static. -
all-vpn-instance Clears the statistics in the IPv6 routing tables of all VPN instances. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can use this command to clear route statistics of each routing protocol in an IPv6 routing table. Subsequently, the industrial switch router can recollect route statistics of each routing protocol to monitor route changes and locate network faults.

Precautions

IPv6 route statistics cannot be restored after being cleared. Exercise caution when you use this command.

Example

# Clear route statistics of all routing protocols in an IPv6 routing table.

<Huawei> reset ipv6 routing-table statistics protocol all

router id

Function

The router id command sets the router ID in RM.

The undo router id command deletes the configured router ID.

By default, the router ID in RM is 0.0.0.0 when no IPv4 interface address is configured.

Format

router id router-id

undo router id

Parameters

Parameter Description Value
router-id Sets a router ID in the IPv4 address format. The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Some dynamic routing protocols require that a router ID uniquely identify a device. If no router ID is specified when these protocols are started on a device, the router ID in RM is used by default.

The rules for selecting a router ID are as follows:

  1. If you set a router ID using the router id command, the configured router ID is used.

  2. If no router ID is set, the router ID is selected according to the following rules:

    • If loopback interfaces configured with IP addresses exist, the largest IP address among the IP addresses of the loopback interfaces is selected as the router ID.

    • If there is no loopback interface configured with an IP address, the highest IP address among the IP addresses of other interfaces is selected as the router ID, regardless of whether the interface is Up or Down.

    NOTE:
    The router ID is reselected only when the interface address that is selected as the router ID is deleted or changed. The router ID is not reselected in any of the following situations:
    • The interface is Down.
    • A loopback interface is configured when the IP address of a non-loopback interface is selected as the router ID.
    • A larger interface address is configured later.

    You can run the display router id command to view the router ID.

  3. Each VPN instance selects the router ID from the IP addresses of the interfaces in the VPN instance based on rules 1 and 2.

  4. When active and standby MPUs are installed, the system backs up the router ID set through the router id command and selects the router ID from IP addresses of interfaces. After the active/standby switchover is performed, the system checks the validity of the router ID selected from interface addresses. If the router ID is invalid, the system reselects a router ID.

After the router ID is changed, manually run the reset command for each routing protocol to make the new router ID take effect.

Precautions

The IP address of the interface whose configuration is restored the first is used as the router ID after the restart.

NOTE:

To enhance network reliability, configure the address of a loopback interface as the router ID.

Example

# Set the router ID in RM to 10.10.10.1.

<Huawei> system-view
[Huawei] router id 10.10.10.1
Related Topics
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 47608

Downloads: 102

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next