04-Layer 3 Command Reference

HomeSupportReference GuidesCommand ReferencesH3C WA Series Access Points Command References(R1507P09)-6W10104-Layer 3 Command Reference
01-Basic IP Routing Commands
Title Size Download
01-Basic IP Routing Commands 67.88 KB

display ip routing-table

Use display ip routing-table to display brief information about active routes in the routing table.

Use display ip routing-table verbose to display detailed information about all routes in the routing table.

Syntax

display ip routing-table [ verbose ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

verbose: Displays detailed information about all routes, including both active and inactive routes. Without this keyword, the command displays only brief information about active routes.

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

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

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

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

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

Usage guidelines

This command displays brief information about a routing table, with a routing entry contained in one line. The information displayed includes destination IP address/mask length, protocol, priority, cost, next hop and output interface. This command displays only the optimal routes in use.

This command displays detailed information about all active and inactive routes, including the statistics of the entire routing table and information for each route.

Examples

# Display brief information about active routes in the routing table.

<Sysname> display ip routing-table

Routing Tables:

         Destinations : 5       Routes : 5

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

1.1.2.0/24          Direct 0    0            1.1.2.1         Vlan1

1.1.2.1/32          Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

192.168.0.1/32      Direct 0    0            127.0.0.1       InLoop0

Table 1 Command output

Field

Description

Destinations

Number of destination addresses.

Routes

Number of routes.

Destination/Mask

Destination address/mask length.

Proto

Protocol that installed the route.

Pre

Preference of the route.

Cost

Cost of the route.

NextHop

Next hop address of the route.

Interface

Output interface for packets to be forwarded along the route.

 

# Display detailed information about all routes in the routing table.

<Sysname> display ip routing-table verbose

Routing Tables:

         Destinations : 7       Routes : 7

 

  Destination: 1.1.2.0/24

     Protocol: Direct         

   Preference: 0                     Cost: 0

      NextHop: 1.1.2.1          Interface: Vlan-interface1

        State: Active Adv             Age: 06h46m22s

 

  Destination: 1.1.2.1/32

     Protocol: Direct         

   Preference: 0                     Cost: 0

      NextHop: 127.0.0.1        Interface: InLoopBack0

        State: Active NoAdv           Age: 06h46m22s

 

  Destination: 127.0.0.0/8

     Protocol: Direct         

   Preference: 0                     Cost: 0

      NextHop: 127.0.0.1        Interface: InLoopBack0

        State: Active NoAdv           Age: 06h46m36s

 

  Destination: 127.0.0.1/32

     Protocol: Direct         

   Preference: 0                     Cost: 0

      NextHop: 127.0.0.1        Interface: InLoopBack0

        State: Active NoAdv           Age: 06h46m37s

 

  Destination: 192.168.0.0/24

     Protocol: Direct         

   Preference: 0                     Cost: 0

      NextHop: 192.168.0.1      Interface: Virtual-Template1

        State: Active Adv             Age: 06h46m35s

 

  Destination: 192.168.0.1/32

     Protocol: Direct         

   Preference: 0                     Cost: 0

      NextHop: 127.0.0.1        Interface: InLoopBack0

        State: Active NoAdv           Age: 06h46m35s

Displayed first are statistics for the whole routing table, followed by detailed description of each route (in sequence).

Table 2 Command output

Field

Description

Destination

Destination address/mask length.

Protocol

Protocol that installed the route.

Preference

Preference of the route.

Cost

Cost of the route.

NextHop

Next hop address of the route.

Interface

Output interface for packets to be forwarded along the route.

State

Route status:

·         Active—This is an active unicast route.

·         Adv—This route can be advertised.

·         Delete—This route is deleted.

·         Gateway—This is an indirect route.

·         Holddown—Number of holddown routes. Holddown is a route advertisement policy used in some routing protocols, such as RIP, to avoid the propagation of some incorrect routes. It distributes a Holddown route during a period regardless of whether a new route to the same destination is found. For more information, refer to relevant routing protocols.

·         Int—The route was discovered by an Interior Gateway Protocol (IGP).

·         NoAdv—The route is not advertised when the router advertises routes based on policies.

·         NotInstall—Among routes to a destination, the route with the highest priority is installed into the core routing table and advertised. A NotInstall route cannot be installed into the core routing table but can be advertised.

·         Reject—The packets matching a Reject route are dropped. The router sends ICMP unreachable messages to the sources of the dropped packets. The Reject routes are usually used for network testing.

·         Static—A static route is not lost when you perform the save operation and then restart the router. Routes configured manually are marked as static.

·         Unicast—Unicast routes.

·         Inactive—Inactive routes.

·         Invalid—Invalid routes.

·         WaitQ—The route is the WaitQ during route recursion.

·         TunE—Tunnel.

·         GotQ—The route is in the GotQ during route recursion.

Age

Time for which the route has been in the routing table, in the sequence of hour, minute, and second from left to right.

 

display ipv6 routing-table

Use display ipv6 routing-table to display brief IPv6 routing table information, including destination IP address and prefix, protocol type, priority, metric, next hop and output interface.

Use display ipv6 routing-table verbose to display detailed information about all IPv6 routes, including both active and inactive routes.

Syntax

display ipv6 routing-table [ verbose ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

verbose: Displays detailed information about all IPv6 routes, including both active and inactive routes. Without this keyword, the command displays only brief information about active routes.

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

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

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

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

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

Usage guidelines

The display ipv6 routing-table command displays only active routes (the brief information about the current optimal routes).

The display ipv6 routing-table verbose command output shows the statistics of the entire routing table, and the detailed information of each route.

Examples

# Display brief routing table information

<Sysname> display ipv6 routing-table

Routing Table :

        Destinations : 1        Routes : 1

Destination: ::1/128                           Protocol  : Direct

NextHop    : ::1                               Preference: 0

Interface  : InLoop0                           Cost      : 0

Table 3 Command output

Field

Description

Destination

IPv6 address of the destination network/host.

NextHop

Next hop address of the route.

Preference

Preference of the route.

Interface

Output interface.

Protocol

Protocol that installed the route.

Cost

Cost of the route.

 

# Display detailed routing table information.

<Sysname> display ipv6 routing-table verbose

Routing Table :

         Destinations : 1        Routes : 1

 

 Destination  : ::1                                     PrefixLength : 128

 NextHop      : ::1                                     Preference   : 0

 Interface    : InLoopBack0                             Protocol     : Direct

 State        : Active NoAdv                            Cost         : 0

 Age          : 22161sec

Table 4 Command output

Field

Description

Destination

IPv6 address of the destination network/host.

PrefixLength

Prefix length of the address.

NextHop

Next hop address of the route.

Preference

Preference of the route.

Interface

Output interface.

Protocol

Routing protocol.

State

State of the route:

·         Active.

·         Inactive.

·         Adv (advertised)

·         NoAdv (not advertised)

Cost

Cost of the route.

Age

Time that has elapsed since the route was generated.

 

 

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