Page 2
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V G, V G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. All other trademarks that may be mentioned in this manual are the property of their respective owners.
Page 3
Preface The H3C S5120-EI documentation set includes 10 command references, which describe the commands and command syntax options for the S5120-EI Release 2202. The Layer 3 - IP Routing Command Reference describes routing configuration commands. This preface includes: Audience Document Organization...
Page 4
Means reader be careful. Improper operation may cause data loss or damage to equipment. Means a complementary description. About the H3C S5120-EI Documentation Set The H3C S5120-EI documentation set also includes: Category Documents Purposes Marketing brochures Describe product specifications and benefits.
Page 5
Obtaining Documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support &...
IP Routing Table Commands The term “router” in this document refers to a router in a generic sense or a Layer 3 switch. IP Routing Table Commands display ip routing-table Syntax display ip routing-table [ verbose | | { begin | exclude | include } regular-expression ] View Any view Default Level...
Page 8
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 : 4 Routes : 4...
Page 9
State: Active NoAdv Age: 04h00m30s Tag: 0 Destination: 127.0.0.0/8 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 127.0.0.1 Interface: InLoopBack0 RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 04h00m36s Tag: 0 Destination: 127.0.0.1/32 Protocol: Direct Process ID: 0 Preference: 0...
Page 10
Field Description Route status: Active This is an active unicast route. This route can be advertised. Delete This route is deleted. Gateway This is an indirect route. Holddown Number of holddown routes. The route was discovered by an Interior Gateway Protocol (IGP). The route is not advertised when the router advertises routes based NoAdv on policies.
Page 12
Use the display ip routing-table ip-address1 { mask-length | mask } ip-address2 { mask-length | mask } command to display route entries with destination addresses within a specified range. Examples # Display route entries for the destination IP address 11.1.1.1. <Sysname>...
2.2.2.0/24 Direct 0 2.2.2.1 Vlan2 2.2.2.1/32 Direct 0 127.0.0.1 InLoop0 display ip routing-table protocol Syntax display ip routing-table protocol protocol [ inactive | verbose ] View Any view Default Level 1: Monitor level Parameters protocol: Routing protocol. It can be direct or static. inactive: Displays information about only inactive routes.
Static Routing table Status : < Inactive> Summary Count : 1 Destination/Mask Proto Pre Cost NextHop Interface 1.2.3.0/24 Static 60 1.2.4.5 Vlan10 For detailed description of the above output, see Table 1-1. display ip routing-table statistics Syntax display ip routing-table statistics View Any view Default Level...
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.
Page 16
View Any view Default Level 1: Monitor level Parameters ipv6-address: Destination IPv6 address. prefix-length: Prefix length, in the range 0 to 128. longer-match: Displays the matched route having the longest prefix length. verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.
display ipv6 routing-table protocol Syntax display ipv6 routing-table protocol protocol [ inactive | verbose ] View Any view Default Level 1: Monitor level Parameters protocol: Displays routes of a routing protocol, which can be direct and static. inactive: Displays only inactive routes. Without the keyword, all active and inactive routes are displayed.
Parameters 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. Examples # Display routing statistics. <Sysname> display ipv6 routing-table statistics Protocol route active added deleted freed DIRECT STATIC...
Default Level 2: System level Parameters protocol: Clears statistics for the IPv4 routing protocol, which can be direct or static. all: Clears statistics for all IPv4 routing protocols. Description Use the reset ip routing-table statistics protocol command to clear routing statistics for the routing table.
Static Routing Configuration Commands The term “router” in this document refers to a router in a generic sense or a Layer 3 switch. Static Routing Configuration Commands delete static-routes all Syntax delete static-routes all View System view Default Level 2: System level Parameters None.
To configure track monitoring for an existing static route, simply associate the static route with a track entry. For a non-existent static route, configure it and associate it with a Track entry. If a static route needs route recursion, the associated track entry must monitor the nexthop of the recursive route instead of that of the static route;...
IPv6 Static Routing Configuration Commands Throughout this chapter, the term “router” refers to a router in a generic sense or a Layer 3 switch running routing protocols. IPv6 Static Routing Configuration Commands delete ipv6 static-routes all Syntax delete ipv6 static-routes all View System view Default Level...
Index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z delete ipv6 static-routes all delete static-routes all reset ip routing-table statistics protocol 1-14 display ip routing-table ip-address reset ipv6 routing-table statistics 1-15...
Need help?
Do you have a question about the S5120-EI Series and is the answer not in the manual?
Questions and answers