H3C S5120-EI Series Command Reference Manual

H3C S5120-EI Series Command Reference Manual

Hide thumbs Also See for S5120-EI Series:

Advertisement

Quick Links

H3C S5120-EI Series Ethernet Switches
Layer 3 - IP Routing
Command Reference
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Document Version: 6W102-20100722
Product Version: Release 2202

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S5120-EI Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for H3C S5120-EI Series

  • Page 1 H3C S5120-EI Series Ethernet Switches Layer 3 - IP Routing Command Reference Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Document Version: 6W102-20100722 Product Version: Release 2202...
  • 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 &...
  • Page 6: Table Of Contents

    Table of Contents 1 IP Routing Table Commands····················································································································1-1 IP Routing Table Commands··················································································································1-1 display ip routing-table·····················································································································1-1 display ip routing-table ip-address···································································································1-5 display ip routing-table protocol·······································································································1-7 display ip routing-table statistics······································································································1-8 display ipv6 routing-table·················································································································1-9 display ipv6 routing-table ipv6-address ···························································································1-9 display ipv6 routing-table ipv6-address1 ipv6-address2 ·······························································1-11 display ipv6 routing-table protocol·································································································1-12 display ipv6 routing-table statistics································································································1-12 display ipv6 routing-table verbose·································································································1-13...
  • Page 7: Ip Routing Table Commands

    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 11: Display Ip Routing-Table Ip-Address

    display ip routing-table ip-address Syntax display ip routing-table ip-address [ mask-length | mask ] [ longer-match ] [ verbose ] display ip routing-table ip-address1 { mask-length | mask } ip-address2 { mask-length | mask } [ verbose ] View Any view Default Level 1: Monitor level Parameters...
  • 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>...
  • Page 13: Display Ip Routing-Table Protocol

    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.
  • Page 14: Display Ip Routing-Table Statistics

    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...
  • Page 15: Display Ipv6 Routing-Table

    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.
  • Page 17: Display Ipv6 Routing-Table Ipv6-Address1 Ipv6-Address2

    <Sysname> display ipv6 routing-table 10:: 127 longer-match Routing Tables: Summary Count : 1 Destination: 10::/120 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost Refer to Table 1-4 for description about the above output. display ipv6 routing-table ipv6-address1 ipv6-address2 Syntax display ipv6 routing-table ipv6-address1 prefix-length1 ipv6-address2 prefix-length2 [ verbose ] View...
  • Page 18: Display Ipv6 Routing-Table Protocol

    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.
  • Page 19: Display Ipv6 Routing-Table Verbose

    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...
  • Page 20: Reset Ip Routing-Table Statistics Protocol

    <Sysname> display ipv6 routing-table verbose Routing Table : Destinations : 1 Routes : 1 Destination : ::1 PrefixLength : 128 NextHop : ::1 Preference RelayNextHop : :: : 0H Neighbour : :: ProcessID Interface : InLoopBack0 Protocol : Direct State : Active NoAdv Cost Tunnel ID...
  • Page 21: Reset Ipv6 Routing-Table Statistics

    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.
  • Page 22: Static Routing Configuration Commands

    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.
  • Page 23: Ip Route-Static

    ip route-static Syntax ip route-static dest-address { mask | mask-length } { next-hop-address [ track track-entry-number ] | interface-type interface-number [ next-hop-address ] } [ preference preference-value ] [ description description-text ] undo ip route-static dest-address { mask | mask-length } [ next-hop-address | interface-type interface-number [ next-hop-address ] ] [ preference preference-value ] View System view...
  • Page 24: Ip Route-Static Default-Preference

    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;...
  • Page 25: Ipv6 Static Routing Configuration Commands

    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...
  • Page 26: Ipv6 Route-Static

    ipv6 route-static Syntax ipv6 route-static ipv6-address prefix-length [ interface-type interface-number ] nexthop-address [ preference preference-value ] undo ipv6 route-static ipv6-address prefix-length interface-type interface-number [ nexthop-address ] [ preference preference-value ] View System view Default Level 2: System level Parameters ipv6-address prefix-length: IPv6 address and prefix length. interface-type interface-number: Interface type and interface number of the output interface.
  • Page 27: Index

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

Table of Contents