Você está na página 1de 26

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Table of Contents

Table of Contents
Chapter 1 Routing Overview Commands.................................................................................... 1-1 1.1 Routing Overview Commands ........................................................................................... 1-1 1.1.1 display ip routing-table ............................................................................................ 1-1 1.1.2 display ip routing-table acl....................................................................................... 1-5 1.1.3 display ip routing-table ip-address .......................................................................... 1-7 1.1.4 display ip routing-table ip-address1 ip-address2 .................................................... 1-9 1.1.5 display ip routing-table ip-prefix ............................................................................ 1-10 1.1.6 display ip routing-table protocol ............................................................................ 1-12 1.1.7 display ip routing-table statistics ........................................................................... 1-14 1.1.8 display ipv6 routing-table ...................................................................................... 1-15 1.1.9 display ipv6 routing-table acl................................................................................. 1-16 1.1.10 display ipv6 routing-table ipv6-address ............................................................... 1-17 1.1.11 display ipv6 routing-table ipv6-address1 ipv6-address2 ..................................... 1-18 1.1.12 display ipv6 routing-table ipv6-prefix................................................................... 1-19 1.1.13 display ipv6 routing-table protocol....................................................................... 1-20 1.1.14 display ipv6 routing-table statistics...................................................................... 1-21 1.1.15 display ipv6 routing-table verbose....................................................................... 1-22 1.1.16 reset ip routing-table statistics protocol............................................................... 1-23 1.1.17 reset ipv6 routing-table statistics protocol........................................................... 1-24

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Chapter 1 Routing Overview Commands

Chapter 1 Routing Overview Commands

Note:

The term router in this document refers to a router in a generic sense or a Layer 3 switch running a routing protocol. Verify that the system already operates in IPv4/IPv6 dual-stack mode before displaying the information about IPv6 routing. For dual-stack mode configuration, see the part covering dual-stack in the IPv6 Configuration module.

1.1 Routing Overview Commands


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

View
Any view

Parameter
verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only summary information about active routes. |: Uses a regular expression to filter output information. begin: Displays routing table entries starting from the one specified by the regular expression. include: Displays routing table entries specified by the regular expression. exclude: Displays routing table entries other than those specified by the regular expression. regular-expression: Regular expression, a string of 1 to 256 characters.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-1

Chapter 1 Routing Overview Commands

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Table 1-1 Special characters for regular expressions Character Meaning Remarks If it is not the first character in a regular expression, it can appear as many times as the command line length permits. If it is the first character in a regular expression, it can be followed with up to four underscores. If it appears intermittently in a regular expression, only the first group takes effect. ( Left parenthesis, represents a stack push operation in a program. Full stop, a wildcard that matches any character, including a space. Asterisk, indicates that the character(s) to its left can appear 0 or more times. Plus, indicates that the character(s) to its left can appear one or more times. It is not recommended to use this character in a regular expression.

Underscore, functions similarly as a wildcard and matches one of the following: _ (^|$|[,(){}]) or a space, the beginning of a string, the end of a string.

zo* matches z and zoo.

zo+ matches zo and zoo, but not z.

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

Example
# Display brief information about active routes in the routing table.
<Sysname> display ip routing-table Routing Tables: Public Destinations : 4 Routes : 4

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

127.0.0.0/8 127.0.0.1/32

Direct 0 Direct 0

0 0

127.0.0.1 127.0.0.1

InLoop0 InLoop0

1-2

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


192.168.0.0/16 192.168.0.52/32 Direct 0 Direct 0 0 0

Chapter 1 Routing Overview Commands


192.168.0.52 127.0.0.1 Vlan1 InLoop0

Table 1-2 Description on the fields of the display ip routing-table command Field Destinations Routes Destination/Mask Proto Pre Cost Nexthop Interface Description Number of destination addresses Number of routes Destination address/mask length Protocol that presents the route Priority of the route Cost of the route Address of the next hop on the route 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 Preference: 60 NextHop: 192.168.3.1 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Inactive Adv WaitQ Tag: 0 Process ID: 0 Cost: 0 Interface: Neighbour: 0.0.0.0 Label: NULL Age: 1d19h58m11s

Destination: 127.0.0.0/8 Protocol: Direct Preference: 0 NextHop: 127.0.0.1 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active NoAdv Tag: 0 Process ID: 0 Cost: 0 Interface: InLoopBack0 Neighbour: 0.0.0.0 Label: NULL Age: 1d19h58m14s

Destination: 127.0.0.1/32 Protocol: Direct Process ID: 0

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-3

Chapter 1 Routing Overview Commands


Preference: 0 NextHop: 127.0.0.1 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active NoAdv Tag: 0

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


Cost: 0 Interface: InLoopBack0 Neighbour: 0.0.0.0 Label: NULL Age: 1d19h58m14s

Destination: 192.168.0.0/24 Protocol: Direct Preference: 0 NextHop: 192.168.0.52 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active Adv Tag: 0 Process ID: 0 Cost: 0 Interface: Vlan-interface1 Neighbour: 0.0.0.0 Label: NULL Age: 1d19h58m10s

Destination: 192.168.0.52/32 Protocol: Direct Preference: 0 NextHop: 127.0.0.1 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active NoAdv Tag: 0 Process ID: 0 Cost: 0 Interface: InLoopBack0 Neighbour: 0.0.0.0 Label: NULL Age: 1d19h58m13s

Displayed first are statistics for the whole routing table, followed by detailed description of each route (in sequence). Table 1-3 Description on the fields of the display ip routing-table verbose command Field Destination Protocol Process ID Preference Cost NextHop Interface RelyNextHop Neighbour Tunnel ID Description Destination address/mask length Protocol that presents the route Process ID Priority of the route Cost of the route Address of the next hop on the route Outbound interface for packets to be forwarded along the route The next hop address obtained through routing stack. Neighboring address determined by Routing Protocol Tunnel ID

1-4

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Chapter 1 Routing Overview Commands

Field Label State Age Tag Label

Description

Status of the route, which could be Active, Inactive, Adv, or NoAdv. Time that the route has been in the routing table, in the sequence of hour, minute, and second from left to right. Route tag

1.1.2 display ip routing-table acl


Syntax
display ip routing-table acl acl-number [ verbose ]

View
Any view

Parameter
acl-number: Basic ACL number, in the range of 2000 to 2999. verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only brief information about active routes.

Description
Use the display ip routing-table acl command to display information about routes permitted by a specified basic ACL. This command is intended for the follow-up display of routing policies.

Note: If the specified ACL does not exit or it has no rules configured, the entire routing table is displayed.

Example
# Define basic ACL 2000 and set the route filtering rules.
<Sysname > system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule permit source 10.1.0.0 0.0.255.255

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-5

Chapter 1 Routing Overview Commands


[Sysname-acl-basic-2000] quit

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

# Display brief information about active routes permitted by basic ACL 2000.
[Sysname] display ip routing-table acl 2000 Routes Matched by Access list : 2000 Summary Count : 3

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

10.1.1.0/24 10.1.1.2/32 10.1.2.1/32

Direct 0 Direct 0 Direct 0

0 0 0

10.1.1.2 127.0.0.1 127.0.0.1

Vlan1 InLoop0 InLoop0

For detailed description of the above output, see Table 1-2. # Display detailed information about both active and inactive routes permitted by basic ACL 2000.
[Sysname] display ip routing-table acl 2000 verbose Routes Matched by Access list : 2000 Summary Count : 3

Destination: 10.1.1.0/24 Protocol: Direct Preference: 0 NextHop: 10.1.1.2 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active Adv Tag: 0 Process ID: 0 Cost: 0 Interface: Vlan-interface1 Neighbour: 0.0.0.0 Label: NULL Age: 02h13m21s

Destination: 10.1.1.2/32 Protocol: Direct Preference: 0 NextHop: 127.0.0.1 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active NoAdv Tag: 0 Process ID: 0 Cost: 0 Interface: InLoopBack0 Neighbour: 0.0.0.0 Label: NULL Age: 02h13m21s

Destination: 10.1.2.1/32 Protocol: Direct Preference: 0 NextHop: 127.0.0.1 RelyNextHop: 0.0.0.0 Process ID: 0 Cost: 0 Interface: InLoopBack0 Neighbour: 0.0.0.0

1-6

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


Tunnel ID: 0x0 State: Active Adv Tag: 0

Chapter 1 Routing Overview Commands


Label: NULL Age: 00h03m13s

For detailed description of the above output, see Table 1-3.

1.1.3 display ip routing-table ip-address


Syntax
display ip routing-table ip-address [ mask-length | mask ] [ longer-match ] [ verbose ]

View
Any view

Parameter
ip-address: Destination IP address, in dotted decimal format. mask-length: IP address mask length. mask: IP address mask in dotted decimal format. longer-match: Displays the route with the longer mask. verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only summary information about active routes.

Description
Use the display ip routing-table ip-address command to display information about routes to a specified destination address. Executing the command with different parameters yields different output:

display ip routing-table ip-address

The system ANDs the input destination IP address with the subnet mask in each route entry; and ANDs the destination IP address in each route entry with its corresponding subnet mask. If the two operations yield the same result for an entry and this entry is active, it is displayed.

display ip routing-table ip-address mask

The system ANDs the input destination IP address with the input subnet mask; and ANDs the destination IP address in each route entry with the input subnet mask. If the two operations yield the same result for an entry and the entry is active with a subnet mask less than or equal to the input subnet mask, the entry is displayed.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-7

Chapter 1 Routing Overview Commands

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Only route entries that exactly match the input destination address and mask are displayed.

display ip routing-table ip-address longer-match

The system ANDs the input destination IP address with the subnet mask in each route entry; and ANDs the destination IP address in each route entry with its corresponding subnet mask. If the two operations yield the same result for multiple entries that are active, the one with longest mask length is displayed.

display ip routing-table ip-address mask longer-match

The system ANDs the input destination IP address with the input subnet mask; and ANDs the destination IP address in each route entry with the input subnet mask. If the two operations yield the same result for multiple entries with a mask less than or equal to the input subnet mask, the one that is active with longest mask length is displayed.

Example
# Display brief information about active routes in the routing table..
<Sysname> display ip routing-table Routing Tables: Public Destinations : 13 Routes : 13

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

10.1.2.0/24 10.1.2.16/28 10.1.2.32/28 10.1.3.0/24 10.1.4.0/24 127.0.0.0/8 127.0.0.1/32 192.168.0.0/24 192.168.0.52/32 192.168.100.1/32 192.168.200.0/24 192.168.220.0/24 192.168.220.0/28

Static 60 Static 60 Static 60 Static 60 Static 60 Direct 0 Direct 0 Direct 0 Direct 0 Direct 0 Static 60 Static 60 Static 60

0 0 0 0 0 0 0 0 0 0 0 0 0

0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 127.0.0.1 127.0.0.1 192.168.0.52 127.0.0.1 127.0.0.1 192.168.0.36 192.168.0.236 192.168.0.25

NULL0 NULL0 NULL0 NULL0 NULL0 InLoop0 InLoop0 Vlan1 InLoop0 InLoop0 Vlan1 Vlan1 Vlan1

# Display route entries for the destination IP address 192.168.0.220.


<Sysname> display ip routing-table 192.168.220.0 Routing Table : Public Summary Count : 2

1-8

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


Destination/Mask Proto Pre Cost

Chapter 1 Routing Overview Commands


NextHop Interface

192.168.220.0/24 192.168.220.0/28

Static 60 Static 60

0 0

192.168.0.236 192.168.0.25

Vlan1 Vlan1

For detailed description about the output, see Table 1-2. # Display route entries by specifying a destination IP address and the longer-match keyword.
<Sysname> display ip routing-table 192.168.220.0 longer-match Routing Table : Public Summary Count : 1

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

192.168.220.0/28

Static 60

192.168.0.25

Vlan1

# Display route entries by specifying a destination IP address and mask.


<Sysname> display ip routing-table 192.168.220.0 32 Routing Table : Public Summary Count : 2

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

192.168.220.0/24 192.168.220.0/28

Static 60 Static 60

0 0

192.168.0.236 192.168.0.25

Vlan1 Vlan1

# Display route entries by specifying a destination IP address and mask and the longer-match keyword.
<Sysname> display ip routing-table 192.168.220.0 32 longer-match Routing Table : Public Summary Count : 1

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

192.168.220.0/28

Static 60

192.168.0.25

Vlan1

For detailed description of the above output, see Table 1-3.

1.1.4 display ip routing-table ip-address1 ip-address2


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

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-9

Chapter 1 Routing Overview Commands

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

View
Any view

Parameter
ip-address1, ip-address2: Destination IP address, in dotted decimal notation. ip-address1/mask1 and ip-address2/mask2 combine to determine an address range. The system ANDs ip-address1 with mask1 for the starting address of the address range and ANDs ip-address2 with mask2 for the ending address of the address range. mask1, mask2: IP address mask, address length in dotted decimal notation or expressed as an integer. mask-length1 mask-length2: IP address mask length. verbose: Displays detailed routing table information, including that for both active and inactive routes. With this argument absent, the command displays summary information about active routes only.

Description
Use the display ip routing-table ip-address1 ip-address2 command to display information about the routes to the specified range of destination addresses.

Example
# Display information about the routes to the destination addresses ranging from 10.1.4.0 to 200.0.0.0.
<Sysname> display ip routing-table 10.1.4.0 28 200.0.0.0 24 Routing Table : Public

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

10.1.4.0/24 127.0.0.0/8 127.0.0.1/32 192.168.0.0/24 192.168.0.52/32 192.168.100.1/32 192.168.200.0/24

Static 60 Direct 0 Direct 0 Direct 0 Direct 0 Direct 0 Static 60

0 0 0 0 0 0 0

0.0.0.0 127.0.0.1 127.0.0.1 192.168.0.52 127.0.0.1 127.0.0.1 192.168.0.36

NULL0 InLoop0 InLoop0 Vlan1 InLoop0 InLoop0 Vlan1

For detailed description of the above output, see Table 1-2.

1.1.5 display ip routing-table ip-prefix


Syntax
display ip routing-table ip-prefix ip-prefix-name [ verbose ]

1-10

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Chapter 1 Routing Overview Commands

View
Any view

Parameter
ip-prefix-name: IP Prefix list name, a string of 1 to 19 characters. verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only brief information about active routes.

Description
Use the display ip routing-table ip-prefix command to display information about routes permitted by a specified prefix list. This command is intended for the follow-up display of routing policies. If the specified prefix list is not configured, detailed information about all routes (with the verbose keyword) or brief information about all active routes (without the verbose keyword) is displayed.

Example
# Configure a prefix list named abc, permitting routes with a prefix of 192.168.0.0 and a mask length between 16 and 32.
<Sysname> system-view [Sysname] ip ip-prefix abc permit 192.168.0.0 16 less-equal 32

# Display brief information about active routes permitted by the prefix list abc.
<Sysname> display ip routing-table ip-prefix abc Routes Matched by Prefix list : abc Summary Count : 3

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

192.168.0.0/16 192.168.0.52/32 192.168.100.1/32

Direct 0 Direct 0 Direct 0

0 0 0

192.168.0.52 127.0.0.1 127.0.0.1

Vlan1 InLoop0 InLoop0

For detailed description of the above output, see Table 1-2. # Display detailed information about both active and inactive routes permitted by IP prefix list abc.
<Sysname> display ip routing-table ip-prefix abc verbose Routes Matched by Prefix list Summary Count : 3 abc :

Destination: 192.168.0.0/16

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-11

Chapter 1 Routing Overview Commands


Protocol: Direct Preference: 0 NextHop: 192.168.0.52 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active Adv Tag: 0

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


Process ID: 0 Cost: 0 Interface: Vlan-interface1 Neighbour: 0.0.0.0 Label: NULL Age: 02h24m34s

Destination: 192.168.0.52/32 Protocol: Direct Preference: 0 NextHop: 127.0.0.1 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active NoAdv Tag: 0 Process ID: 0 Cost: 0 Interface: InLoopBack0 Neighbour: 0.0.0.0 Label: NULL Age: 02h24m34s

Destination: 192.168.100.1/32 Protocol: Direct Preference: 0 NextHop: 127.0.0.1 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active Adv Tag: 0 Process ID: 0 Cost: 0 Interface: InLoopBack0 Neighbour: 0.0.0.0 Label: NULL Age: 00h14m26s

For detailed description of the above output, see Table 1-3.

1.1.6 display ip routing-table protocol


Syntax
display ip routing-table protocol protocol [ inactive | verbose ]

View
Any view

Parameter
protocol: Routing protocol. It can be BGP, DIRECT, ISIS, OSPF, RIP, or STATIC. inactive: Displays information about only inactive routes. With this argument absent, the command displays information about both active and inactive routes. verbose: Displays detailed routing table information. With this argument absent, the command displays brief routing table information.

1-12

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Chapter 1 Routing Overview Commands

Description
Use the display ip routing-table protocol command to display routing information of a specified routing protocol.

Example
# Display brief information about direct routes.
<Sysname> display ip routing-table protocol direct Public Routing Table : Direct Summary Count : 5

Direct Routing table Status : < Active> Summary Count : 5

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

127.0.0.0/8 127.0.0.1/32 192.168.0.0/24 192.168.0.52/32 192.168.100.1/32

Direct 0 Direct 0 Direct 0 Direct 0 Direct 0

0 0 0 0 0

127.0.0.1 127.0.0.1 192.168.0.52 127.0.0.1 127.0.0.1

InLoop0 InLoop0 Vlan1 InLoop0 InLoop0

Direct Routing table Status : < Inactive> Summary Count : 0

# Display summary information about static routes.


<Sysname> display ip routing-table protocol static Public Routing Table : Static Summary Count : 2

Static Routing table Status : < Active> Summary Count : 1

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

192.168.200.0/24

Static 60

192.168.0.36

Vlan1

Static Routing table Status : < Inactive> Summary Count : 1

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

192.168.120.0/24

Static 60

192.168.2.1

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-13

Chapter 1 Routing Overview Commands

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

For detailed description of the above output, see Table 1-2.

1.1.7 display ip routing-table statistics


Syntax
display ip routing-table statistics

View
Any view

Parameter
None

Description
Use the display ip routing-table statistics command to display statistics about the public network routing table.

Example
# Display statistics about the routes in the routing table.
<Sysname> display ip routing-table statistics Proto DIRECT STATIC RIP OSPF IS-IS BGP Total route 4 1 0 0 0 0 5 active 4 1 0 0 0 0 5 added 4 1 0 0 0 0 5 deleted 0 0 0 0 0 0 0 freed 0 0 0 0 0 0 0

Table 1-4 Description on the fields of display ip routing-table statistics Field Proto route active added Description Origin of the routes. Possible values include O_ASE for OSPF_ASE routes, O_NSSA for OSPF NSSA, and AGGRE for aggregated routes. Number of routes from the origin Number of active routes from the origin Number of routes added into the routing table since the router starts up or the last routing table reset operation Number of routes marked as deleted, which will be freed after a period.

deleted

1-14

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Chapter 1 Routing Overview Commands

Field freed Total

Description Number of routes that got freed, that is, got removed permanently Sums for the numerical items above

1.1.8 display ipv6 routing-table


Syntax
display ipv6 routing-table

View
Any view

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

Example
# Display brief routing table information
<Sysname> display ipv6 routing-table Routing Table : Destinations : 5 Routes : 5

Destination: ::1/128 NextHop Interface : ::1 : InLoop0

Protocol

: Direct

Preference: 0 Cost : 0

Destination: 1::/64 NextHop Interface : 10::2 : Vlan1

Protocol

: Static

Preference: 60 Cost : 0

Destination: 10::/64 NextHop Interface : 10::1 : Vlan1

Protocol

: Direct

Preference: 0 Cost : 0

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-15

Chapter 1 Routing Overview Commands


Destination: 10::1/128 NextHop Interface : ::1 : InLoop0

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


Protocol : Direct

Preference: 0 Cost : 0

Destination: FE80::/10 NextHop Interface : :: : NULL0

Protocol

: Direct

Preference: 0 Cost : 0

Table 1-5 Description on the fields of the display ipv6 routing-table command Field Destinations Routes Destination NextHop Preference Interface Protocol Cost Description Number of destination addresses Number of routes Destination IPv6 address Next hop Routing preference Outbound interface Routing protocol of the route Routing cost

1.1.9 display ipv6 routing-table acl


Syntax
display ipv6 routing-table acl acl6-number [ verbose ]

View
Any view

Parameter
acl6-number: Basic IPv6 ACL number, in the range 2000 to 2999. verbose: Displays both active and inactive verbose routing information permitted by the ACL. Without this keyword, only brief active routing information is displayed.

Description
Use the display ipv6 routing-table acl command to display routing information permitted by the IPv6 ACL. Note that all the routing information will be displayed if the specified IPv6 ACL does not exist or no rule is defined in that ACL.

1-16

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Chapter 1 Routing Overview Commands

Example
# Display brief routing information permitted by ACL 2000.
<Sysname> display ipv6 routing-table acl 2000 Routes Matched by Access list Summary Count : 4 2000 :

Destination: ::1/128 NextHop Interface : ::1 : InLoop0

Protocol

: Direct

Preference: 0 Cost : 0

Destination: 3009::/64 NextHop Interface : 3009::1235 : Vlan1

Protocol

: Direct

Preference: 0 Cost : 0

Destination: 3009::1235/128 NextHop Interface : ::1 : InLoop0

Protocol

: Direct

Preference: 0 Cost : 0

Destination: FE80::/10 NextHop Interface : :: : NULL0

Protocol

: Direct

Preference: 0 Cost : 0

Refer to Table 1-5 for description about the above output.

1.1.10 display ipv6 routing-table ipv6-address


Syntax
display ipv6 routing-table ipv6-address prefix-length [ longer-match ] [ verbose ]

View
Any view

Parameter
ipv6-address: Destination IPv6 address. prefix-length: Prefix length, in the range 0 to 128. longer-match: Displays routes matching the specified prefix. verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.

Description
Use the display ipv6 routing-table ipv6-address command to display routing information about the specified destination IPv6 address.
Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd 1-17

Chapter 1 Routing Overview Commands

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Example
# Display brief information about the route matching the specified destination IPv6 address.
<Sysname> display ipv6 routing-table 10::1 64 Routing Table : Summary Count : 1

Destination: 10::/64 NextHop Interface : 10::1 : Vlan1

Protocol

: Direct

Preference: 0 Cost : 0

# Display brief information about routes with destinations falling into the specified destination.
<Sysname> display ipv6 routing-table 10::1 64 longer-match Routing Table : Summary Count : 2

Destination: 10::/64 NextHop Interface : 10::1 : Vlan1

Protocol

: Direct

Preference: 0 Cost : 0

Destination: 10::1/128 NextHop Interface : ::1 : InLoop0

Protocol

: Direct

Preference: 0 Cost : 0

Refer to Table 1-5 for description about the above output.

1.1.11 display ipv6 routing-table ipv6-address1 ipv6-address2


Syntax
display ipv6 routing-table ipv6-address1 prefix-length1 ipv6-address2 prefix-length2 [ verbose ]

View
Any view

Parameter
ipv6-address1/ipv6-address2: An IPv6 address range from IPv6 address1 to IPv6 address2. prefix-length1/prefix-length2: Prefix length, in the range 0 to 128. verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.

1-18

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Chapter 1 Routing Overview Commands

Description
Use the display ipv6 routing-table ipv6-address1 ipv6-address2 command to display routes with destinations falling into the specified IPv6 address range.

Example
# Display routes with destinations falling into the IPv6 address range.
<Sysname> display ipv6 routing-table 3:: 32 4:4:: 64 Routing Table : Summary Count : 3

Destination: 3::/32 NextHop Interface : :: : NULL0

Protocol

: Static

Preference: 60 Cost : 0

Destination: 4::/64 NextHop Interface : :: : NULL0

Protocol

: Static

Preference: 60 Cost : 0

Destination: 4:4::/64 NextHop Interface : :: : NULL0

Protocol

: Static

Preference: 60 Cost : 0

Refer to Table 1-5 for description about the above output.

1.1.12 display ipv6 routing-table ipv6-prefix


Syntax
display ipv6 routing-table ipv6-prefix ipv6-prefix-name [ verbose ]

View
Any view

Parameter
ipv6-prefix-name: Name of the IPv6 prefix list, in the range 1 to 19 characters. verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.

Description
Use the display ipv6 routing-table ipv6-prefix command to display routes permitted by the IPv6 prefix list.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-19

Chapter 1 Routing Overview Commands

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Example
# Display brief active routing information permitted by the IPv6 prefix list abc.
<Sysname> display ipv6 routing-table ipv6-prefix abc Routes Matched by Prefix list Summary Count : 1 abc :

Destination: 100::/64 NextHop Interface : :: : NULL0

Protocol

: Static

Preference: 60 Cost : 0

Refer to Table 1-5 for description about the above output.

1.1.13 display ipv6 routing-table protocol


Syntax
display ipv6 routing-table protocol protocol [ inactive | verbose ]

View
Any view

Parameter
protocol: Displays routes of a routing protocol, which can be bgp4+, isisv6, ospfv3, direct, ripng and static. inactive: Displays only inactive routes. Without the keyword, all active and inactive routes are displayed. verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.

Description
Use the display ipv6 routing-table protocol command to display routes of a specified routing protocol.

Example
# Display brief information about all direct routes.
<Sysname> display ipv6 routing-table protocol direct Direct Routing Table : Summary Count : 4

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

Destination: ::1/128

Protocol

: Direct

1-20

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


NextHop Interface : ::1 : InLoop0

Chapter 1 Routing Overview Commands


Preference: 0 Cost : 0

Destination: 3009::/64 NextHop Interface : 3009::1235 : Vlan1

Protocol

: Direct

Preference: 0 Cost : 0

Destination: 3009::1235/128 NextHop Interface : ::1 : InLoop0

Protocol

: Direct

Preference: 0 Cost : 0

Destination: FE80::/10 NextHop Interface : :: : NULL0

Protocol

: Direct

Preference: 0 Cost : 0

Direct Routing Table's Status : < Inactive > Summary Count : 0

Refer to Table 1-5 for description about the above output.

1.1.14 display ipv6 routing-table statistics


Syntax
display ipv6 routing-table statistics

View
Any view

Parameter
None

Description
Use the display ipv6 routing-table statistics command to display routing statistics, including total route number, added route number and deleted route number.

Example
# Display routing statistics.
<Sysname> display ipv6 routing-table statistics Protocol DIRECT STATIC RIPng OSPFv3 route 6 3 0 0 active 6 1 0 0 added 8 3 0 0 deleted 2 0 0 0 freed 2 0 0 0

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-21

Chapter 1 Routing Overview Commands


IS-ISv6 BGP4+ Total 0 0 9 0 0 7 0 0 11

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


0 0 2 0 0 2

Table 1-6 Description on the fields of the display ipv6 routing-table statistics command Field Protocol route active added deleted freed Total Routing protocol Route number of the protocol Active route number Routes added after the last startup of the router Deleted routes, which will be released after a specified time Released (totally removed from the routing table) route number Total route number Description

1.1.15 display ipv6 routing-table verbose


Syntax
display ipv6 routing-table verbose

View
Any view

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

Example
# Display detailed information about all active and inactive routes.
<Sysname> display ipv6 routing-table verbose Routing Table : Destinations : 1 Routes : 1

1-22

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches


Destination NextHop : ::1 : ::1

Chapter 1 Routing Overview Commands


PrefixLength : 128 Preference Tag ProcessID Protocol Cost Label : 0 : 0H : 0 : Direct : 0 : NULL

RelayNextHop : :: Neighbour Interface State Tunnel ID Age : :: : InLoopBack0 : Active NoAdv : 0x0 : 17073sec

Table 1-7 Description on the fields of the display ipv6 routing-table verbose command Field Destination PrefixLength Nexthop Preference RelayNextHop Tag Neighbour ProcessID Interface Protocol State Cost Tunnel ID Label Age Description Destination IPv6 address Prefix length of the address Next hop Routing preference Relay next hop Tag of the route Neighbor address Process ID Outbound interface Routing protocol State of the route, Active, Inactive, (advertised), or NoAdv (not advertised) Cost of the route Tunnel ID Label Time that has elapsed since the route was generated Adv

1.1.16 reset ip routing-table statistics protocol


Syntax
reset ip routing-table statistics protocol { all | protocol }

View
User view
Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd 1-23

Chapter 1 Routing Overview Commands

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Parameter
all: All protocols. protocol: Routing protocol. It can be BGP, ISIS, OSPF, DIRECT, RIP, or STATIC.

Description
Use the reset ip routing-table statistics protocol command to clear routing statistics for the routing table.

Example
# You can use the display ip routing-table statistics command to display the routing statistics before configure the reset ip routing-table statistics protocol command.
<Sysname>display ip routing-table statistics Proto DIRECT STATIC RIP OSPF IS-IS BGP Total route 4 0 0 0 0 0 4 active 4 0 0 0 0 0 4 added 4 0 0 0 0 0 4 deleted 0 0 0 0 0 0 0 freed 0 0 0 0 0 0 0

# Clear all routing statistics in the routing table.


<Sysname> reset ip routing-table statistics protocol all

# After running the reset ip routing-table statistics protocol command, all the statistics for routing table have been cleared.
<Sysname> display ip routing-table statistics Proto DIRECT STATIC RIP OSPF IS-IS BGP Total route 4 0 0 0 0 0 4 active 4 0 0 0 0 0 4 added 0 0 0 0 0 0 0 deleted 0 0 0 0 0 0 0 freed 0 0 0 0 0 0 0

1.1.17 reset ipv6 routing-table statistics protocol


Syntax
reset ipv6 routing-table statistics protocol { all | protocol }

1-24

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual Routing Overview Quidway S3500-EA Serials Ethernet Switches

Chapter 1 Routing Overview Commands

View
User view

Parameter
all: Clears all route statistics in the routing table. protocol: Clears route statistics of a specified protocol, bgp4+,isisv6,ospfv3,direct, ripng, or static.

Description
Use the reset ipv6 routing-table statistics protocol command to clear the routing table statistics.

Example
# You can use the display ipv6 routing-table statistics command to display the routing statistics before configure the reset ipv6 routing-table statistics protocol command.
<Sysname> display ipv6 routing-table statistics Protocol DIRECT STATIC RIPng OSPFv3 IS-ISv6 BGP4+ Total route 6 3 0 0 0 0 9 active 6 1 0 0 0 0 7 added 8 3 0 0 0 0 11 deleted 2 0 0 0 0 0 2 freed 2 0 0 0 0 0 2

# Clear all routing statistics in the routing table.


<Sysname> reset ipv6 routing-table statistics protocol all

# After running the reset ipv6 routing-table statistics protocol command, all the statistics for routing table have been cleared.
<Sysname> display ipv6 routing-table statistics Protocol DIRECT STATIC RIPng OSPFv3 IS-ISv6 BGP4+ Total route 6 3 0 0 0 0 9 active 6 1 0 0 0 0 7 added 0 0 0 0 0 0 0 deleted 0 0 0 0 0 0 0 freed 0 0 0 0 0 0 0

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-25

Você também pode gostar