Layer 3 - IP Routing Command Reference

HomeSupportWLANH3C WA2200 Series WLAN Access PointsReference GuidesCommand ReferencesH3C WA Series WLAN Access Points Command Reference-6W100Layer 3 - IP Routing Command Reference
02-IP Routing Basics Commands
Title Size Download
02-IP Routing Basics Commands 42.15 KB

l          The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.

l          Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.

l          The interface types and the number of interfaces vary by AP model.

 

 

l          The term router in this document refers to both routers and APs configured with routing capabilities.

l          Support for IPv6 depends on the AP model.

 

IP Routing Basics Configuration Commands

display ip routing-table

Syntax

display ip routing-table [ verbose ]

View

Any view

Default Level

1: Monitor level

Parameters

verbose: Displays detailed routing table information, including that for inactive routes. With this keyword absent, the command displays only summary information about active routes.

Description

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

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, preference, cost, next hop and outbound interface. This command only displays the routes currently in use, that is, the optimal routes.

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

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

         Destinations : 3        Routes : 3

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

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.0/24      Static 60   0            0.0.0.0         NULL0  

 

Table 1-1 display ip routing-table command output description

Field

Description

Destinations

Number of destination addresses

Routes

Number of routes

Destination/Mask

Destination address/mask length

Proto

Protocol that presents the route

Pre

Priority of the route

Cost

Cost of the route

Nexthop

Address of the next hop on the route

Interface

Outbound 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 Table : Public

         Destinations : 5        Routes : 5

  Destination: 0.0.0.0/0

     Protocol: Static          Process ID: 0

   Preference: 60                    Cost: 0

      NextHop: 1.1.4.2          Interface:

    BkNexthop: 0.0.0.0        BkInterface:

  RelyNextHop: 0.0.0.0          Neighbor : 0.0.0.0

    Tunnel ID: 0x0                  Label: NULL

        State: Inactive Adv WaitQ     Age: 05h37m52s

          Tag: 0

  Destination: 1.1.1.0/24

     Protocol: Static          Process ID: 0

   Preference: 60                    Cost: 0

      NextHop: 2.2.2.2          Interface:

    BkNexthop: 0.0.0.0        BkInterface:

  RelyNextHop: 0.0.0.0          Neighbor : 0.0.0.0

    Tunnel ID: 0x0                  Label: NULL

        State: Inactive Adv WaitQ     Age: 05h04m52s

          Tag: 0

  Destination: 127.0.0.0/8

     Protocol: Direct          Process ID: 0

   Preference: 0                     Cost: 0

      NextHop: 127.0.0.1        Interface: InLoopBack0

    BkNexthop: 0.0.0.0        BkInterface:

  RelyNextHop: 0.0.0.0          Neighbor : 0.0.0.0

    Tunnel ID: 0x0                  Label: NULL

        State: Active NoAdv           Age: 1d19h42m41s

          Tag: 0

  Destination: 127.0.0.1/32

     Protocol: Direct          Process ID: 0

   Preference: 0                     Cost: 0

      NextHop: 127.0.0.1        Interface: InLoopBack0

    BkNexthop: 0.0.0.0        BkInterface:

  RelyNextHop: 0.0.0.0          Neighbor : 0.0.0.0

    Tunnel ID: 0x0                  Label: NULL

        State: Active NoAdv           Age: 1d19h42m43s

          Tag: 0

  Destination: 192.168.0.0/24

     Protocol: Static          Process ID: 0

   Preference: 60                    Cost: 0

      NextHop: 0.0.0.0          Interface: NULL0

    BkNexthop: 0.0.0.0        BkInterface:

  RelyNextHop: 0.0.0.0          Neighbor : 0.0.0.0

    Tunnel ID: 0x0                  Label: NULL

        State: Active Adv             Age: 00h00m33s

          Tag: 0

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

Table 1-2 display ip routing-table verbose command output description

Field

Description

Destination

Destination address/mask length

Protocol

Protocol that presents the route

Process ID

Process ID

Preference

Priority of the route

Cost

Cost of the route

NextHop

Address of the next hop on the route

Interface

Outbound interface for packets to be forwarded along the route

BkNexthop

Address of the backup next hop

BkInterface

Backup interface

RelyNextHop

The next hop address obtained through routing stack.

Neighbour

Neighboring address determined by Routing Protocol

Tunnel ID

Tunnel ID

Label

Label

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 distance vector (D-V) 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 details, refer to corresponding 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

Normally, among routes to a destination, the route with the highest preference is installed into the core routing table and advertised, while a NotInstall route cannot be installed into the core routing table but may be advertised.

Reject

The packets matching a Reject route will be dropped. Besides, 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.

Tag

Route tag

 

display ipv6 routing-table

Syntax

display ipv6 routing-table

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

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

The command displays only active routes, namely, the brief information about the current optimal routes.

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 1-3 display ipv6 routing-table command output description

Field

Description

Destination

IPv6 address of the destination network/host

NextHop

Nexthop address

Preference

Route preference

Interface

Outbound interface

Protocol

Routing protocol

Cost

Route cost

 

display ipv6 routing-table verbose

Syntax

display ipv6 routing-table verbose

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display ipv6 routing-table verbose command to display detailed information about all active and inactive routes, including the statistics of the entire routing table and information for each route.

Examples

# Display detailed information about all active and inactive routes.

<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                                  Cost         : 0

 

 Age          : 21659sec 

Table 1-4 display ipv6 routing-table verbose command output description

Field

Description

Destination

Destination IPv6 address

PrefixLength

Prefix length of the address

Nexthop

Next hop

Preference

Routing preference

Interface

Outbound interface

Protocol

Routing protocol

State

State of the route, Active, Inactive, Adv (advertised), or NoAdv (not advertised)

Cost

Cost of the route

Age

Time that has elapsed since the route was generated

 

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