background image

 

17 

<Sysname> reset ip routing-table statistics protocol all 

reset ipv6 routing-table statistics 

Syntax 

reset ipv6 routing-table statistics protocol

 { 

protocol

 | 

all

 

View 

User view 

Default level 

2: System level 

Parameters 

protocol

: Clears statistics for the routing protocol, which can be 

direct

 or 

static

all

: Clears statistics for all IPv6 routing protocols. 

Description 

Use the 

reset ipv6 routing-table statistics 

command to clear the route statistics of the routing table. 

Examples 

# Clear statistics for all routing protocols. 

<Sysname> reset ipv6 routing-table statistics protocol all 

Содержание S5120-EI Series

Страница 1: ...H3C S5120 EI Series Ethernet Switches Layer 3 IP Routing Command Reference Hangzhou H3C Technologies Co Ltd http www h3c com Software version Release 2208 Document version 6W100 20101224 ...

Страница 2: ...are Secware Storware NQA VVG V2G VnG 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 Notice The information in this document is subject to change without notice Every effort has been made in the preparation of this document to ensure accuracy of the ...

Страница 3: ...g with the S5120 EI series Added and modified commands None Conventions This section describes the conventions used in this documentation set Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown Italic Italic text represents arguments that you replace with actual values Square brackets enclose syntax choices keywords or ar...

Страница 4: ... that calls attention to essential information NOTE An alert that contains additional or supplementary information TIP An alert that provides helpful information About the H3C S5120 EI documentation set The H3C S5120 EI documentation set includes Category Documents Purposes Marketing brochures Describe product specifications and benefits Technology white papers Provide an in depth description of s...

Страница 5: ...sion history hardware and software compatibility matrix version upgrade information technical support information and software upgrading 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 Documents Technical ...

Страница 6: ...ess1 ipv6 address2 12 display ipv6 routing table protocol 13 display ipv6 routing table statistics 14 display ipv6 routing table verbose 15 reset ip routing table statistics protocol 16 reset ipv6 routing table statistics 17 Static routing configuration commands 18 Static routing configuration commands 18 delete static routes all 18 ip route static 18 ip route static default preference 20 IPv6 sta...

Страница 7: ...pecified regular expression include Displays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1 to 256 characters 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 rou...

Страница 8: ...he 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 Tables Public Destinations 6 Routes 6 Destination 1 1 2 0 24 Protocol Direct Process ID 0 Preference 0 Cost ...

Страница 9: ...ID 0x0 Label NULL State Active NoAdv Age 06h46m37s Tag 0 Destination 192 168 0 0 24 Protocol Direct Process ID 0 Preference 0 Cost 0 NextHop 192 168 0 1 Interface Virtual Template1 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 06h46m35s Tag 0 Destination 192 168 0 1 32 Protocol Direct Process ID 0 Preference 0 Cost 0 NextHop 127 0 ...

Страница 10: ...tance 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 detailed information see 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...

Страница 11: ... mask in dotted decimal format or represented by an integer in the range 0 to 32 longer match Displays the route with the longest mask verbose Displays detailed routing table information including both active and inactive routes With this argument absent the command displays only brief information about active routes Filters command output by specifying a regular expression For more information ab...

Страница 12: ... 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 ...

Страница 13: ...e Table 2 Display route entries for destination addresses in the range 1 1 1 0 to 5 5 5 0 Sysname display ip routing table 1 1 1 0 24 5 5 5 0 24 Routing Table Public Destination Mask Proto Pre Cost NextHop Interface 1 1 1 0 24 Direct 0 0 1 1 1 1 Vlan1 1 1 1 1 32 Direct 0 0 127 0 0 1 InLoop0 2 2 2 0 24 Direct 0 0 2 2 2 1 Vlan2 3 3 3 0 24 Direct 0 0 3 3 3 1 Vlan2 3 3 3 1 32 Direct 0 0 127 0 0 1 InLo...

Страница 14: ...ples Display brief information about direct routes Sysname display ip routing table protocol direct Public Routing Table Direct Summary Count 6 Direct Routing table Status Active Summary Count 6 Destination Mask Proto Pre Cost NextHop Interface 2 2 2 0 24 Direct 0 0 2 2 2 1 Vlan2 2 2 2 2 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 InLo...

Страница 15: ...expression which is a case sensitive string of 1 to 256 characters Description Use the display ip routing table statistics command to display the route statistics of the network routing table Examples Display route statistics in the routing table Sysname display ip routing table statistics Proto route active added deleted freed DIRECT 24 4 25 1 0 STATIC 4 1 4 0 0 Total 28 5 29 1 0 Table 3 Output d...

Страница 16: ...ar expression which is a case sensitive string of 1 to 256 characters 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 the brief information about the current optimal routes Examples Display brief routing ...

Страница 17: ...outing table ipv6 address command to display routing information about the specified destination IPv6 address Executing the command with different parameters yields different output display ipv6 routing table ipv6 address prefix length The system ANDs the input destination IPv6 address with the input prefix length and ANDs the destination IPv6 address in each route entry with the input prefix leng...

Страница 18: ...bose begin exclude include regular expression View Any view Default level 1 Monitor level Parameters 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 Filte...

Страница 19: ...n exclude include regular expression 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 verbose Displays both active and inactive verbose routing information Without this keyword only brief active routing informati...

Страница 20: ...evel 1 Monitor level Parameters Filters command output by specifying a regular expression For more information about regular expressions see the 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 ...

Страница 21: ...ons see the 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 which is a case sensitive string of 1 to 256 character...

Страница 22: ...of the route Active Inactive Adv advertised or NoAdv not advertised Cost Cost of the route Tunnel ID Tunnel ID Label Label Age Time that has elapsed since the route was generated reset ip routing table statistics protocol Syntax reset ip routing table statistics protocol protocol all View User view Default level 2 System level Parameters protocol Clears statistics for the IPv4 routing protocol whi...

Страница 23: ...el 2 System level Parameters protocol Clears statistics for the routing protocol which can be direct or static all Clears statistics for all IPv6 routing protocols Description Use the reset ipv6 routing table statistics command to clear the route statistics of the routing table Examples Clear statistics for all routing protocols Sysname reset ipv6 routing table statistics protocol all ...

Страница 24: ...eting all the static routes Related commands ip route static and display ip routing table Examples Delete all static routes on the router Sysname system view Sysname delete static routes all This will erase all ipv4 static routes and their configurations you must reconfigure all static routes Are you sure Y N Y ip route static Syntax ip route static dest address mask mask length next hop address t...

Страница 25: ...es 1 If the destination IP address and the mask are both 0 0 0 0 or 0 the configured route is a default route The default route will be used for forwarding a packet if no route is available for the packet in the routing table 2 Implement different routing policies by tuning route preference For example to enable multiple routes to the same destination address to share load assign the same preferen...

Страница 26: ... Description Use the ip route static default preference command to configure the default preference for static routes Use the undo ip route static default preference command to restore the default By default the default preference of static routes is 60 If no preference is specified when configuring a static route the default preference is used When the default preference is re configured it appli...

Страница 27: ...te all IPv6 static routes Sysname system view Sysname delete ipv6 static routes all This will erase all ipv6 static routes and their configurations you must reconfigure all static routes Are you sure Y N Y 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 lengt...

Страница 28: ...Pv6 packet does not match any entry in the routing table this default route will be used to forward the packet If the output interface is a broadcast interface such as a VLAN interface the next hop address must be specified If both the output interface and the next hop must be specified the next hop address must be a link local address Related commands delete ipv6 static routes all and display ipv...

Страница 29: ... display ipv6 routing table 10 display ipv6 routing table ipv6 address 1 1 display ipv6 routing table ipv6 address1 ipv6 address2 12 display ipv6 routing table protocol 13 display ipv6 routing table statistics 14 display ipv6 routing table verbose 15 I ip route static 18 ip route static default preference 20 ipv6 route static 21 R reset ip routing table statistics protocol 16 reset ipv6 routing ta...

Отзывы: