HP 7500 Switch Series

Similar documents
HP 6125G & 6125G/XG Blade Switches

H3C S10500 Switch Series

Command Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

HP FlexFabric Switch Series

H3C S5120-SI Switch Series

H3C S5120-HI Switch Series

Table of Contents. 2 Static Route Configuration Commands 2-1 Static Route Configuration Commands 2-1 delete static-routes all 2-1 ip route-static 2-1

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

HP 5920 & 5900 Switch Series

HP A5830 Switch Series Layer 3 - IP Routing. Configuration Guide. Abstract

HP FlexFabric 5700 Switch Series

HP 5920 & 5900 Switch Series

HP FlexFabric 7900 Switch Series

HP A5820X & A5800 Switch Series Layer 3 - IP Routing. Configuration Guide. Abstract

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

HP 5920 & 5900 Switch Series

HPE FlexNetwork 5510 HI Switch Series

H3C S10500 Switch Series

HP FlexFabric 5930 Switch Series

IP Routing Volume Organization

Layer 3 - IP Routing Command Reference

HP FlexFabric 7900 Switch Series

Contents. BGP commands 1

HP A5820X & A5800 Switch Series MPLS. Configuration Guide. Abstract

HPE FlexNetwork HSR6800 Routers

H3C S6300 Switch Series

HPE FlexFabric 5940 Switch Series

H3C S5820X&S5800 Series Ethernet Switches

FSOS IPv6 Routing Command Line Reference

Operation Manual Routing Protocol. Table of Contents

Contents. Configuring a default route 1 Introduction to default routes 1

FiberstoreOS. IPv6 Routing Command Line Reference

H3C S7500E Series Ethernet Switches. Layer 3 - IP Routing. Configuration Guide. Hangzhou H3C Technologies Co., Ltd.

Configuring basic MBGP

OSPFv3 Address Families

H3C MSR Series Routers

FSOS IP Routing Command Line Reference

HP Load Balancing Module

FiberstoreOS V3.3 IPv6 Routing Command Line Reference

FiberstoreOS IP Routing Command Line Reference

HP FlexFabric Switch Series

HP 5120 EI Switch Series

OSPFv3 Address Families

OSPFv3 Address Families

Operation Manual MCE H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Table of Contents 1 OSPF Configuration 1-1

OSPFv3 Commands. address-family (OSPFv3), page 4. authentication (OSPFv3), page 7

Configuring static routing

Protecting an EBGP peer when memory usage reaches level 2 threshold 66 Configuring a large-scale BGP network 67 Configuring BGP community 67

Organization of Product Documentation... xi

HP Routing Switch Series

Table of Contents 1 MBGP Configuration 1-1

Chapter 16 OSPF Version 3 Commands

Configuration prerequisites 45 Configuring BGP community 45 Configuring a BGP route reflector 46 Configuring a BGP confederation 46 Configuring BGP

Operation Manual BGP. Table of Contents

HP MSR Router Series. EVI Configuration Guide(V7) Part number: b Software version: CMW710-R0304 Document version: 6PW

Configuring BGP community 43 Configuring a BGP route reflector 44 Configuring a BGP confederation 44 Configuring BGP GR 45 Enabling Guard route

Logging neighbor state changes 38 Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of

H3C S5130-EI Switch Series

Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of opaque LSAs 40 Configuring OSPF to

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Interior Routing Protocols and High Availability.

FiberstoreOS. IP Routing Command Line Reference

OSPF. About OSPF. CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.4 1

OSPF Commands. adjacency stagger, page 7. authentication-key (OSPF), page 14

HP FlexFabric 5930 Switch Series

Routing Protocol Type Primarily IGP or EGP RIP Distance-Vector IGP EIGRP OSPF IS-IS BGP

ibgp Multipath Load Sharing

Appendix A Command 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

FiberstoreOS IP Routing Configuration Guide

Chapter 15 OSPF Commands

Chapter 17 BGP4 Commands

IPv6 Routing: OSPFv3

OSPF Commands on Cisco ASR 9000 Series Router

Table of Contents. BGP Configuration 1

IPv6 Commands: sn to v

OSPF Commands on Cisco IOS XR Software

debug ip ospf database external default-metric subnet area 0 stub distribute-list in Serial0/1

Juniper.Selftestengine.jn0-694.v by.KIM-HL.52q

HPE FlexFabric 5940 Switch Series

BGP Best External. Finding Feature Information

FiberstoreOS IP Routing Configuration Guide

Operation Manual OSPF. Table of Contents

Chapter 8 Configuring OSPF

FSOS IP Routing Configuration Guide

OSPF. Unless otherwise noted, OSPF refers to OSPFv2 throughout this document.

OSPF Command Reference

H3C S5500-HI Switch Series

HP 5920 & 5900 Switch Series

Configuring OSPF with CLI

Passit4Sure.4A Questions 4A Alcatel-Lucent Interior Routing Protocols and High Availability

L3VPN Configuration. L3VPN Overview. Introduction to L3VPN

Sample Configuration for OSPFv3

BGP Command Reference for Cisco NCS 5500 Series and Cisco NCS 540 Series Routers

CONTENTS. Introduction

Table of Contents 1 Static Routing Configuration 1-1

HP 6125 Blade Switch Series

HP 6125G & 6125G/XG Blade Switches

HP Routing Switch Series

HP 6125G & 6125G/XG Blade Switches

HP 6125 Blade Switch Series

Transcription:

HP 7500 Switch Series Layer 3 - IP Routing Command Reference Part number: 5998-1881 Software version: Release 6701 and later Document version: 6W102-20130226

Legal and notice information Copyright 2013 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.

Contents Basic IP routing commands 1 display ip routing-table 1 display ip routing-table acl 5 display ip routing-table ip-address 8 display ip routing-table ip-prefix 11 display ip routing-table protocol 12 display ip routing-table statistics 14 display ipv6 routing-table 15 display ipv6 routing-table acl 17 display ipv6 routing-table ipv6-address 17 display ipv6 routing-table ipv6-prefix 20 display ipv6 routing-table protocol 21 display ipv6 routing-table statistics 22 l3unicast-optimization 23 reset ip routing-table statistics protocol 24 reset ipv6 routing-table statistics 24 switch-mode { route-iterative route-normal } 25 Static routing configuration commands 26 delete static-routes all 26 ip route-static 26 ip route-static default-preference 29 ip route-static fast-reroute 30 RIP configuration commands 31 checkzero 31 default cost (RIP view) 31 default-route 32 display rip 33 display rip database 35 display rip interface 36 display rip route 37 dscp (RIP view) 39 fast-reroute 39 filter-policy export (RIP view) 40 filter-policy import (RIP view) 42 host-route 43 import-route (RIP view) 44 maximum load-balancing (RIP view) 45 network 45 output-delay 46 peer 47 preference 47 reset rip process 48 reset rip statistics 48 rip 49 rip authentication-mode 50 rip bfd enable 51 rip default-route 51 rip input 52 i

rip metricin 52 rip metricout 53 rip mib-binding 54 rip output 55 rip poison-reverse 55 rip split-horizon 56 rip summary-address 56 rip version 57 silent-interface (RIP view) 58 summary 59 timers 59 validate-source-address 60 version 61 OSPF configuration commands 62 abr-summary (OSPF area view) 62 area (OSPF view) 63 asbr-summary 63 authentication-mode 64 bandwidth-reference (OSPF view) 66 default 67 default-cost (OSPF area view) 67 default-route-advertise (OSPF view) 68 description (OSPF/OSPF area view) 69 display ospf abr-asbr 70 display ospf asbr-summary 71 display ospf brief 73 display ospf cumulative 75 display ospf error 77 display ospf interface 79 display ospf lsdb 81 display ospf nexthop 83 display ospf peer 84 display ospf peer statistics 87 display ospf request-queue 88 display ospf retrans-queue 89 display ospf routing 90 display ospf vlink 92 display router id 93 dscp (OSPF view) 93 enable link-local-signaling 94 enable log 95 enable out-of-band-resynchronization 95 fast-reroute 96 filter 97 filter-policy export (OSPF view) 98 filter-policy import (OSPF view) 99 graceful-restart (OSPF view) 100 graceful-restart help 101 graceful-restart interval (OSPF view) 102 host-advertise 103 import-route (OSPF view) 103 ispf enable 105 log-peer-change 105 lsa-arrival-interval 106 ii

lsa-generation-interval 106 lsdb-overflow-limit 107 maximum load-balancing (OSPF view) 108 network (OSPF area view) 108 nssa 109 opaque-capability enable 110 ospf 111 ospf authentication-mode 111 ospf bfd enable 113 ospf cost 114 ospf dr-priority 114 ospf mib-binding 115 ospf mtu-enable 115 ospf network-type 116 ospf non-stop-routing 117 ospf packet-process prioritized-treatment 118 ospf timer dead 118 ospf timer hello 119 ospf timer poll 120 ospf timer retransmit 120 ospf trans-delay 121 peer 122 preference 122 reset ospf counters 123 reset ospf process 124 reset ospf redistribution 124 rfc1583 compatible 125 router id 125 silent-interface (OSPF view) 126 snmp-agent trap enable ospf 127 spf-schedule-interval 128 stub (OSPF area view) 129 stub-router 130 transmit-pacing 130 vlink-peer (OSPF area view) 131 IS-IS configuration commands 134 area-authentication-mode 134 auto-cost enable 135 bandwidth-reference (IS-IS view) 136 circuit-cost 136 cost-style 137 default-route-advertise (IS-IS view) 138 display isis brief 139 display isis debug-switches 140 display isis graceful-restart status 141 display isis interface 142 display isis lsdb 146 display isis name-table 149 display isis peer 150 display isis route 153 display isis spf-log 156 display isis statistics 157 domain-authentication-mode 160 fast-reroute 161 iii

filter-policy export (IS-IS view) 162 filter-policy import (IS-IS view) 163 flash-flood 164 graceful-restart (IS-IS view) 165 graceful-restart interval (IS-IS view) 165 graceful-restart suppress-sa 166 import-route (IS-IS view) 167 import-route isis level-2 into level-1 168 import-route limit (IS-IS view) 169 isis 169 isis authentication-mode 170 isis bfd enable 171 isis circuit-level 172 isis circuit-type p2p 172 isis cost 173 isis dis-name 174 isis dis-priority 175 isis enable 176 isis mib-binding 176 isis silent 177 isis small-hello 177 isis timer csnp 178 isis timer hello 179 isis timer holding-multiplier 180 isis timer lsp 181 isis timer retransmit 181 is-level 182 is-name 183 is-name map 184 is-snmp-traps enable 184 log-peer-change (IS-IS view) 185 lsp-fragments-extend 185 lsp-length originate 186 lsp-length receive 187 maximum load-balancing (IS-IS view) 187 network-entity 188 preference (IS-IS view) 189 priority high 189 reset isis all 190 reset isis peer 191 set-overload 191 summary (IS-IS view) 192 timer lsp-generation 193 timer lsp-max-age 194 timer lsp-refresh 195 timer spf 196 virtual-system 197 BGP configuration commands 198 aggregate 198 balance (BGP/BGP-VPN instance view) 199 bestroute as-path-neglect (BGP/BGP-VPN instance view) 200 bestroute compare-med (BGP/BGP-VPN instance view) 201 bestroute med-confederation (BGP/BGP-VPN instance view) 201 bgp 202 iv

compare-different-as-med (BGP/BGP-VPN instance view) 202 confederation id 203 confederation nonstandard 204 confederation peer-as 205 dampening (BGP/BGP-VPN instance view) 206 default ipv4-unicast 207 default local-preference (BGP/BGP-VPN instance view) 208 default med (BGP/BGP-VPN instance view) 208 default-route imported (BGP/BGP-VPN instance view) 209 display bgp group 210 display bgp network 211 display bgp paths 212 display bgp peer 213 display bgp peer received ip-prefix 216 display bgp routing-table 217 display bgp routing-table as-path-acl 219 display bgp routing-table cidr 220 display bgp routing-table community 221 display bgp routing-table community-list 222 display bgp routing-table dampened 223 display bgp routing-table dampening parameter 223 display bgp routing-table different-origin-as 224 display bgp routing-table flap-info 225 display bgp routing-table label 226 display bgp routing-table peer 227 display bgp routing-table regular-expression 228 display bgp routing-table statistic 229 display router id 229 ebgp-interface-sensitive 230 filter-policy export (BGP/BGP-VPN instance view) 231 filter-policy import (BGP/BGP-VPN instance view) 232 graceful-restart (BGP view) 233 graceful-restart timer restart 234 graceful-restart timer wait-for-rib 234 group (BGP/BGP-VPN instance view) 235 ignore-first-as 236 import-route (BGP/BGP-VPN instance view) 236 ipv4-family vpn-instance 237 log-peer-change 238 network (BGP/BGP-VPN instance view) 239 network short-cut (BGP/BGP-VPN instance view) 239 peer advertise-community (BGP/BGP-VPN instance view) 240 peer advertise-ext-community (BGP/BGP-VPN instance view) 241 peer allow-as-loop (BGP/BGP-VPN instance view) 242 peer as-number (BGP/BGP-VPN instance view) 243 peer as-path-acl (BGP/BGP-VPN instance view) 244 peer bfd 245 peer capability-advertise conventional 245 peer capability-advertise orf 246 peer capability-advertise orf non-standard 247 peer capability-advertise route-refresh 248 peer capability-advertise suppress-4-byte-as 249 peer connect-interface (BGP/BGP-VPN instance view) 250 peer default-route-advertise (BGP/BGP-VPN instance view) 251 v

peer description (BGP/BGP-VPN instance view) 251 peer dscp (BGP/BGP-VPN instance view) 252 peer ebgp-max-hop (BGP/BGP-VPN instance view) 253 peer enable (BGP/BGP-VPN instance view) 254 peer fake-as (BGP/BGP-VPN instance view) 255 peer filter-policy (BGP/BGP-VPN instance view) 255 peer group (BGP/BGP-VPN instance view) 256 peer ignore (BGP/BGP-VPN instance view) 257 peer ip-prefix 258 peer keep-all-routes (BGP/BGP-VPN instance view) 259 peer log-change (BGP/BGP-VPN instance view) 259 peer next-hop-local (BGP/BGP-VPN instance view) 260 peer password 261 peer preferred-value (BGP/BGP-VPN instance view) 262 peer public-as-only (BGP/BGP-VPN instance view) 263 peer reflect-client (BGP/BGP-VPN instance view) 264 peer route-limit (BGP/BGP-VPN instance view) 265 peer route-policy (BGP/BGP-VPN instance view) 266 peer route-update-interval (BGP/BGP-VPN instance view) 267 peer substitute-as (BGP/BGP-VPN instance view) 268 peer timer (BGP/BGP-VPN instance view) 268 preference (BGP/BGP-VPN instance view) 270 reflect between-clients (BGP view/bgp-vpn instance view) 270 reflector cluster-id (BGP view/bgp-vpn instance view) 271 refresh bgp 272 reset bgp 273 reset bgp dampening 273 reset bgp flap-info 274 reset bgp ipv4 all 274 router id 275 router-id 275 summary automatic 276 synchronization (BGP view) 277 timer (BGP/BGP-VPN instance view) 277 IPv6 static routing configuration commands 280 delete ipv6 static-routes all 280 ipv6 route-static 280 RIPng configuration commands 283 checkzero 283 default cost (RIPng view) 283 display ripng 284 display ripng database 285 display ripng interface 287 display ripng route 288 filter-policy export (RIPng view) 289 filter-policy import (RIPng view) 291 import-route 292 maximum load-balancing (RIPng view) 292 preference 293 reset ripng process 294 reset ripng statistics 294 ripng 295 ripng default-route 296 vi

ripng enable 296 ripng metricin 297 ripng metricout 297 ripng poison-reverse 298 ripng split-horizon 299 ripng summary-address 299 timers 300 OSPFv3 configuration commands 302 abr-summary (OSPFv3 area view) 302 area (OSPFv3 view) 302 bandwidth-reference 303 default cost 304 default-cost (OSPFv3 area view) 304 default-route-advertise 305 display ospfv3 306 display ospfv3 graceful-restart status 308 display ospfv3 interface 309 display ospfv3 lsdb 310 display ospfv3 lsdb statistic 314 display ospfv3 next-hop 315 display ospfv3 peer 316 display ospfv3 peer statistics 318 display ospfv3 request-list 319 display ospfv3 retrans-list 321 display ospfv3 routing 322 display ospfv3 statistics 324 display ospfv3 topology 325 display ospfv3 vlink 326 filter-policy export (OSPFv3 view) 327 filter-policy import (OSPFv3 view) 329 graceful-restart enable 330 graceful-restart helper enable 330 graceful-restart helper strict-lsa-checking 331 graceful-restart interval 331 import-route (OSPFv3 view) 332 log-peer-change 333 maximum load-balancing (OSPFv3 view) 333 nssa (OSPFv3 area view) 334 ospfv3 335 ospfv3 area 336 ospfv3 bfd enable 337 ospfv3 cost 337 ospfv3 dr-priority 338 ospfv3 mtu-ignore 339 ospfv3 network-type 339 ospfv3 peer 340 ospfv3 timer dead 341 ospfv3 timer hello 341 ospfv3 timer retransmit 342 ospfv3 timer poll 343 ospfv3 trans-delay 343 preference 344 router-id 345 silent-interface(ospfv3 view) 345 vii

spf timers 346 stub (OSPFv3 area view) 347 vlink-peer (OSPFv3 area view) 348 IPv6 IS-IS configuration commands 349 display isis route ipv6 349 ipv6 default-route-advertise 351 ipv6 enable 352 ipv6 filter-policy export 353 ipv6 filter-policy import 354 ipv6 import-route 355 ipv6 import-route isisv6 level-2 into level-1 356 ipv6 import-route limit 357 ipv6 maximum load-balancing 358 ipv6 preference 358 ipv6 summary 359 isis ipv6 bfd enable 360 isis ipv6 enable 360 multiple-topology ipv6-unicast 361 IPv6 BGP configuration commands 363 aggregate (IPv6 address family view) 363 balance (IPv6 address family view/ipv6 BGP-VPN instance view) 364 bestroute as-path-neglect (IPv6 address family view) 365 bestroute compare-med (IPv6 address family view) 365 bestroute med-confederation (IPv6 address family view) 366 compare-different-as-med (IPv6 address family view) 366 dampening (IPv6 address family view) 367 default local-preference (IPv6 address family view/ipv6 BGP-VPN instance view) 368 default med (IPv6 address family view/ipv6 BGP-VPN instance view) 369 default-route imported (IPv6 address family view/ipv6 BGP-VPN instance view) 370 display bgp ipv6 group 370 display bgp ipv6 network 372 display bgp ipv6 paths 373 display bgp ipv6 peer 374 display bgp ipv6 peer received ipv6-prefix 378 display bgp ipv6 routing-table 379 display bgp ipv6 routing-table as-path-acl 381 display bgp ipv6 routing-table community 382 display bgp ipv6 routing-table community-list 383 display bgp ipv6 routing-table dampened 384 display bgp ipv6 routing-table dampening parameter 385 display bgp ipv6 routing-table different-origin-as 386 display bgp ipv6 routing-table flap-info 386 display bgp ipv6 routing-table peer 388 display bgp ipv6 routing-table regular-expression 389 display bgp ipv6 routing-table statistic 389 filter-policy export (IPv6 address family view/ipv6 BGP-VPN instance view) 390 filter-policy import (IPv6 address family view/ipv6 BGP-VPN instance view) 391 group (IPv6 address family view) 392 import-route (IPv6 address family view/ipv6 BGP-VPN instance view) 393 ipv6-family 394 network (IPv6 address family view/ipv6 BGP-VPN instance view) 395 peer advertise-community (IPv6 address family view) 396 peer advertise-ext-community (IPv6 address family view) 396 viii

peer allow-as-loop (IPv6 address family view) 397 peer as-number (IPv6 address family view) 398 peer as-number (IPv6 BGP-VPN instance view) 398 peer as-path-acl (IPv6 address family view) 399 peer bfd (IPv6 address family view/ipv6 BGP-VPN instance view) 400 peer capability-advertise orf 400 peer capability-advertise orf non-standard (IPv6 address family view) 402 peer capability-advertise route-refresh 402 peer capability-advertise suppress-4-byte-as (IPv6 address family view) 403 peer capability-advertise suppress-4-byte-as (IPv6 BGP-VPN instance view) 404 peer connect-interface (IPv6 address family view) 405 peer default-route-advertise 405 peer description (IPv6 address family view) 406 peer dscp (IPv6 address family view) 407 peer ebgp-max-hop (IPv6 address family view) 408 peer enable (IPv6 address family view) 408 peer fake-as (IPv6 address family view) 409 peer filter-policy (IPv6 address family view) 410 peer group (IPv6 address family view) 411 peer ignore (IPv6 address family view) 411 peer ipv6-prefix 412 peer keep-all-routes (IPv6 address family view) 413 peer log-change (IPv6 address family view) 413 peer next-hop-local (IPv6 address family view) 414 peer password 415 peer preferred-value (IPv6 address family view) 416 peer preferred-value (IPv6 BGP-VPN instance view) 417 peer public-as-only (IPv6 address family view) 417 peer reflect-client (IPv6 address family view) 418 peer route-limit (IPv6 address family view) 419 peer route-policy (IPv6 address family view) 420 peer route-policy (IPv6 BGP-VPN instance view) 421 peer route-update-interval (IPv6 address family view) 422 peer substitute-as (IPv6 address family view) 422 peer timer (IPv6 address family view) 423 preference (IPv6 address family view/ipv6 BGP-VPN instance view) 424 reflect between-clients (IPv6 address family view) 425 reflector cluster-id (IPv6 address family view) 425 refresh bgp ipv6 426 reset bgp ipv6 427 reset bgp ipv6 dampening 428 reset bgp ipv6 flap-info 428 router-id 429 synchronization (IPv6 address family view) 429 timer (IPv6 address family view) 430 Routing policy configuration commands 432 Common routing policy configuration commands 432 apply as-path 432 apply comm-list delete 433 apply community 433 apply cost 434 apply cost-type 435 apply extcommunity 436 apply ip-precedence 437 ix

apply isis 437 apply local-preference 438 apply mpls-label 439 apply origin 439 apply preference 440 apply preferred-value 441 apply qos-local-id 441 apply tag 442 continue 442 display ip as-path 443 display ip community-list 444 display ip extcommunity-list 445 display route-policy 446 if-match as-path 447 if-match community 447 if-match cost 448 if-match extcommunity 449 if-match interface 449 if-match mpls-label 450 if-match route-type 451 if-match tag 451 ip as-path 452 ip community-list 453 ip extcommunity-list 454 route-policy 455 IPv4 routing policy configuration commands 456 apply fast-reroute 456 apply ip-address next-hop 457 display ip ip-prefix 457 if-match acl 458 if-match ip 459 if-match ip-prefix 460 ip ip-prefix 460 reset ip ip-prefix 461 IPv6 routing policy configuration commands 462 apply ipv6 next-hop 462 display ip ipv6-prefix 463 if-match ipv6 464 ip ipv6-prefix 464 reset ip ipv6-prefix 466 Policy-based routing configuration commands 467 apply ip-address default next-hop 467 apply ip-address next-hop 468 apply ip-precedence 468 display ip policy-based-route 469 display ip policy-based-route setup 470 display policy-based-route 471 if-match acl 472 ip local policy-based-route 473 ip policy-based-route 473 policy-based-route 474 Support and other resources 476 Contacting HP 476 x

Subscription service 476 Related information 476 Documents 476 Websites 476 Conventions 477 Index 479 xi

Basic IP routing commands The term "interface" in the routing features collectively refers to Layer 3 interfaces, including VLAN interfaces and Layer 3 Ethernet interfaces. You can set an Ethernet port as a Layer 3 interface by using the port link-mode route command (see Layer 2 LAN Switching Configuration Guide). display ip routing-table Use display ip routing-table to display brief information about active routes in the routing table. Use display ip routing-table verbose to display detailed information about all routes in the routing table. display ip routing-table [ vpn-instance vpn-instance-name ] [ verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. verbose: Displays detailed information about all routes, including both active and inactive routes. With this keyword absent, the command displays only brief information about active routes. : Filters command output by specifying a regular expression. For more information about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. 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, priority, cost, next hop and output interface. This command displays only the optimal routes in use. This command displays detailed information about all active and inactive routes, including the statistics of the entire routing table and information for each route. # Display brief information about active routes in the routing table. <Sysname> display ip routing-table Routing Tables: Public Destinations : 7 Routes : 7 1

Destination/Mask Proto Pre Cost NextHop Interface 1.1.2.0/24 Direct 0 0 1.1.2.1 Vlan11 1.1.2.1/32 Direct 0 0 127.0.0.1 InLoop0 2.2.2.0/24 OSPF 10 2 1.1.2.2 Vlan12 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 Direct 0 0 192.168.0.1 Vlan1 192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0 Table 1 Command output 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. Preference of the route. Cost of the route. Address of the next hop on the route. Output 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 : 7 Routes : 7 Destination: 1.1.2.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 1.1.2.1 Interface: Vlan-interface11 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 06h46m22s Tag: 0 Destination: 1.1.2.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 127.0.0.1 Interface: InLoopBack0 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0 2

Tunnel ID: 0x0 BKTunnel ID: 0x0 State: Active NoAdv Tag: 0 Label: NULL BKLabel: NULL Age: 06h46m22s Destination: 2.2.2.0/24 Protocol: OSPF Process ID: 1 Preference: 10 Cost: 2 IpPrecedence: QosLcId: NextHop: 1.1.2.2 Interface: Vlan-interface12 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 00h00m53s Tag: 0 Destination: 127.0.0.0/8 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: 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 BKTunnel ID: 0x0 BKLabel: NULL State: Active NoAdv Age: 06h46m36s Tag: 0 Destination: 127.0.0.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: 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 BKTunnel ID: 0x0 BKLabel: NULL State: Active NoAdv Age: 06h46m37s Tag: 0 Destination: 192.168.0.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 192.168.0.1 Interface: Vlan-interface1 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0 3

Tunnel ID: 0x0 BKTunnel ID: 0x0 State: Active Adv Tag: 0 Label: NULL BKLabel: NULL Age: 06h46m35s Destination: 192.168.0.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: 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 BKTunnel ID: 0x0 BKLabel: NULL State: Active NoAdv Age: 06h46m35s Tag: 0 The output displays statistics for the routing table, followed by detailed description of each route (in sequence). Table 2 Command output Field Destination Protocol Preference Cost IpPrecedence QosLcId NextHop Interface BkNextHop BkInterface RelyNextHop Neighbor BKTunnel ID BKLabel Description Destination address/mask length. Protocol that presents the route. Preference of the route. Cost of the route. IP precedence. QoS-local ID. Address of the next hop on the route. Output interface for packets to be forwarded along the route. Backup next hop. Backup output interface. Next hop address obtained through routing recursion. Neighboring address determined by the routing protocol. Backup tunnel ID. Backup label. 4

Field State Age Tag Description Route status: Active Active unicast route. Adv This route can be advertised. Delete This route is deleted. Gateway Indirect route. Holddown Number of holddown routes. Holddown is a route advertisement policy used in some 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 more information, refer to 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 based on policies. NotInstall Among routes to a destination, the route with the highest priority is installed into the core routing table and advertised. A NotInstall route cannot be installed into the core routing table but can be advertised. Reject The packets matching a Reject route are dropped. 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. Length of time the route has been in the routing table in the sequence of hour, minute, and second from left to right. Route tag. display ip routing-table acl Use display ip routing-table acl to display information about routes permitted by a specified basic ACL. display ip routing-table [ vpn-instance vpn-instance-name ] acl acl-number [ verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level 5

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. acl-number: Basic ACL number, in the range of 2000 to 2999. verbose: Displays detailed information about all 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 about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. For more information about routing policy, see Layer 3 IP Routing Configuration Guide. This command is usually used together with routing policy display commands. If the specified ACL does not exist or it has no rules configured, the entire routing table is displayed. # Define basic ACL 2000 and set the route filtering rules. [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule permit source 10.1.0.0 0.0.255.255 [Sysname-acl-basic-2000] rule deny source any # Display brief information about active routes permitted by basic ACL 2000. [Sysname-acl-basic-2000] display ip routing-table acl 2000 Routes Matched by Access list : 2000 Summary Count : 6 Destination/Mask Proto Pre Cost NextHop Interface 10.1.1.0/24 Direct 0 0 10.1.1.2 Vlan1 10.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0 10.1.2.0/24 Direct 0 0 10.1.2.1 Vlan12 10.1.2.1/32 Direct 0 0 127.0.0.1 InLoop0 10.1.3.0/24 Direct 0 0 10.1.3.1 Vlan11 10.1.3.1/32 Direct 0 0 127.0.0.1 InLoop0 For output description, see Table 1. # 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: 6 Destination: 10.1.1.0/24 Protocol: Direct Process ID: 0 6

Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 10.1.1.2 Interface: Vlan-interface1 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h25m32s Tag: 0 Destination: 10.1.1.2/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: 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 BKTunnel ID: 0x0 BKLabel: NULL State: Active NoAdv Age: 1d00h41m34s Tag: 0 Destination: 10.1.2.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 10.1.2.1 Interface: Vlan-interface12 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h05m42s Tag: 0 Destination: 10.1.2.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: 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 BKTunnel ID: 0x0 BKLabel: NULL State: Active NoAdv Age: 1d00h05m42s Tag: 0 Destination: 10.1.3.0/24 Protocol: Direct Process ID: 0 7

Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 10.1.3.1 Interface: Vlan-interface11 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h05m31s Tag: 0 Destination: 10.1.3.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: 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 BKTunnel ID: 0x0 BKLabel: NULL State: Active NoAdv Age: 1d00h05m32s Tag: 0 For output description, see Table 2. display ip routing-table ip-address Use display ip routing-table ip-address to display information about the route to the specified destination address. Use display ip routing-table ip-address1 { mask-length mask } ip-address2 { mask-length mask } to display information about active routes whose destinations and masks fall into the specified address range. display ip routing-table [ vpn-instance vpn-instance-name ] ip-address [ mask mask-length ] [ longer-match ] [ verbose ] [ { begin exclude include } regular-expression ] display ip routing-table [ vpn-instance vpn-instance-name ] ip-address1 { mask mask-length } ip-address2 { mask mask-length } [ verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. ip-address: Specifies a destination IP address, in dotted decimal format. 8

mask mask-length: Specifies the IP address mask, in dotted decimal format or represented by an integer in the range of 0 to 32. longer-match: Displays the route with the longest mask. verbose: Displays detailed information about all 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 about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. Executing the command with different parameters yields different outputs: display ip routing-table ip-address: The system ANDs the input destination IP address with the subnet mask in each route entry. The system ANDs the destination IP address in each route entry with its own 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. The system 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. display ip routing-table ip-address longer-match: The system ANDs the input destination IP address with the subnet mask in each route entry. The system ANDs the destination IP address in each route entry with its own 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. The system 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 the longest mask length is displayed. # Display brief information about the routes with destination IP address 11.0.0.1. <Sysname> display ip routing-table 11.0.0.1 Routing Table : Public Summary Count : 3 Destination/Mask Proto Pre Cost NextHop Interface 11.0.0.0/8 Static 60 0 0.0.0.0 NULL0 9

11.0.0.0/16 Static 60 0 0.0.0.0 NULL0 11.0.0.0/24 Static 60 0 0.0.0.0 NULL0 # Display brief information about the routes with destination IP address 11.0.0.1 and mask length 20. <Sysname> display ip routing-table 11.0.0.1 20 Routing Table : Public Summary Count : 2 Destination/Mask Proto Pre Cost NextHop Interface 11.0.0.0/8 Static 60 0 0.0.0.0 NULL0 11.1.0.0/16 Static 60 0 0.0.0.0 NULL0 # Display brief information about the routes with destination IP address 11.0.0.1 and the longest mask length. <Sysname> display ip routing-table 11.0.0.1 longer-match Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre Cost NextHop Interface 11.0.0.0/24 Static 60 0 0.0.0.0 NULL0 # Display brief information about the routes with destination IP address 11.0.0.1, mask length 20, and the longest mask length. <Sysname> display ip routing-table 11.0.0.1 20 longer-match Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre Cost NextHop Interface 11.0.0.0/16 Static 60 0 0.0.0.0 NULL0 # Display brief information about the routes with destination addresses in the range of 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 Vlan12 3.3.3.1/32 Direct 0 0 127.0.0.1 InLoop0 4.4.4.0/24 Direct 0 0 4.4.4.1 Vlan11 4.4.4.1/32 Direct 0 0 127.0.0.1 InLoop0 For output description, see Table 1. 10

display ip routing-table ip-prefix Use display ip routing-table ip-prefix to display information about routes permitted by a specified prefix list. display ip routing-table [ vpn-instance vpn-instance-name ] ip-prefix ip-prefix-name [ verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. ip-prefix-name: Specifies the IP prefix list name, a string of 1 to 19 characters. verbose: Displays detailed information about all 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 about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. This command is usually used together with routing policy display commands. 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. # Configure a prefix list named test, permitting routes with a prefix of 2.2.2.0 and a mask length between 24 and 32. [Sysname] ip ip-prefix test permit 2.2.2.0 24 less-equal 32 # Display brief information about active routes permitted by the prefix list test. [Sysname] display ip routing-table ip-prefix test Routes Matched by Prefix list : test Summary Count : 2 Destination/Mask Proto Pre Cost NextHop Interface 2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2 2.2.2.1/32 Direct 0 0 127.0.0.1 InLoop0 For output description, see Table 1. # Display detailed information about all routes permitted by IP prefix list test. 11

[Sysname] display ip routing-table ip-prefix test verbose Routes Matched by Prefix list test : Summary Count : 2 Destination: 2.2.2.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 2.2.2.1 Interface: Vlan-interface2 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h20m52s Tag: 0 Destination: 2.2.2.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: 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 BKTunnel ID: 0x0 BKLabel: NULL State: Active NoAdv Age: 1d00h20m52s Tag: 0 For output description, see Table 2. display ip routing-table protocol Use display ip routing-table protocol to display routing information of the specified routing protocol. display ip routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. protocol: Specifies a routing protocol. It can be bgp, direct, isis, nat, ospf, rip,or static. inactive: Displays information about only inactive routes. With this argument absent, the command displays information about all routes. 12

verbose: Displays detailed routing table information. With this argument absent, the command displays brief routing table information. : Filters command output by specifying a regular expression. For more information about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. # 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 InLoop0 192.168.80.0/24 Direct 0 0 192.168.80.10 Vlan11 192.168.80.10/32 Direct 0 0 127.0.0.1 InLoop0 Direct Routing Table Status : <Inactive> Summary Count : 0 # Display brief 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 : 0 Static Routing Table Status : <Inactive> Summary Count : 2 Destination/Mask Proto Pre Cost NextHop Interface 1.2.3.0/24 Static 60 0 1.2.4.5 Vlan10 3.0.0.0/8 Static 60 0 2.2.2.2 Vlan11 For descriptions of the output, see Table 1. 13

display ip routing-table statistics Use display ip routing-table statistics to display the route statistics of the routing table. display ip routing-table [ vpn-instance vpn-instance-name ] statistics [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. : Filters command output by specifying a regular expression. For more information about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. # 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 RIP 0 0 0 0 0 OSPF 0 0 0 0 0 IS-IS 0 0 0 0 0 BGP 0 0 0 0 0 Total 28 5 29 1 0 Table 3 Command output Field Proto route active added deleted freed Total Description Origin of the routes. Number of routes from the origin. Number of active routes from the origin. Number of routes added into the routing table after the router started up or the routing table was last cleared. Number of routes marked as deleted and permanently removed after a period. Number of routes that were permanently removed. Total number. 14

display ipv6 routing-table Use display ipv6 routing-table to display brief IPv6 routing information, including destination IP address and prefix, protocol type, priority, metric, next hop, and output interface. Use display ipv6 routing-table verbose to display detailed information about all IPv6 routes, including both active and inactive routes. display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. verbose: Displays detailed information about all IPv6 routes, including both active and inactive routes. Without this keyword, only brief information about active routes is displayed. : Filters command output by specifying a regular expression. For more information about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. The command displays only active routes (the brief information about the current optimal routes). The output shows the statistics of the entire routing table, and the detailed information of each route. # Display brief routing table information <Sysname> display ipv6 routing-table Routing Table : Public Destinations : 1 Routes : 1 Destination: ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Table 4 Command output Field Destination NextHop Description IPv6 address of the destination network/host. Next hop address. 15

Field Preference Interface Protocol Cost Description Route priority. Output interface. Routing protocol. Route cost. # Display detailed routing table information. <Sysname> display ipv6 routing-table verbose Routing Table : Public Destinations : 1 Routes : 1 Destination : ::1 PrefixLength : 128 NextHop : ::1 Preference : 0 IpPrecedence : QosLcId : RelayNextHop : :: Tag : 0H Neighbor : :: ProcessID : 0 Interface : InLoopBack0 Protocol : Direct State : Active NoAdv Cost : 0 Tunnel ID : 0x0 Label : NULL Age : 22161sec Table 5 Command output Field Destination PrefixLength NextHop Preference IpPrecedence QosLcId RelayNextHop Tag Neighbor Interface Protocol State Cost Age Description IPv6 address of the destination network/host. Prefix length of the address. Next hop. Route preference. IP precedence. QoS-local ID. Recursive next hop. Tag of the route. Neighbor address. Output interface. Routing protocol. State of the route: Active. Inactive. Adv (advertised). NoAdv (not advertised). Cost of the route. Time that has elapsed since the route was generated. 16

display ipv6 routing-table acl Use display ipv6 routing-table acl to display routing information permitted by the IPv6 ACL. display ipv6 routing-table [ vpn-instance vpn-instance-name ] acl acl6-number [ verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. acl6-number: Specifies a basic IPv6 ACL number, in the range of 2000 to 2999. verbose: Displays detailed information about all routes permitted by the ACL. Without this keyword, only brief information about active routes is displayed. : Filters command output by specifying a regular expression. For more information about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. If the specified IPv6 ACL is not available, all routing information is displayed. # Display brief routing information permitted by ACL 2000. <Sysname> display ipv6 routing-table acl 2000 Routes Matched by Access list 2000 : Summary Count : 2 Destination : ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Destination : 1:1::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 For output description, see Table 4. display ipv6 routing-table ipv6-address Use display ipv6 routing-table ipv6-address to display routing information about the route to the specified destination IPv6 address. 17

Use display ipv6 routing-table ipv6-address1 ipv6-address2 to display information about routes whose destinations fall into the specified IPv6 address range. display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address [ prefix-length ] [ longer-match ] [ verbose ] [ { begin exclude include } regular-expression ] display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address1 prefix-length1 ipv6-address2 prefix-length2 [ verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. ipv6-address: Specifies a destination IPv6 address. prefix-length: Specifies the prefix length, in the range of 0 to 128. longer-match: Displays the matched route having the longest prefix length. ipv6-address1/ipv6-address2: Specifies an IPv6 address range from ipv6-address1 to ipv6-address2. prefix-length1/prefix-length2: Specifies the prefix length, in the range of 0 to 128. verbose: Displays detailed information about all routes. Without this keyword, only brief information about active routes is displayed. : Filters command output by specifying a regular expression. For more information about regular expressions, see 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, a case-sensitive string of 1 to 256 characters. Executing the command with different parameters yields different output: display ipv6 routing-table ipv6-address: The system ANDs the input destination IPv6 address with the prefix length in each route entry. The system ANDs the destination IPv6 address in each route entry with the prefix length in each entry. If the two operations yield the same result for an entry and this entry is active, it is displayed. display ipv6 routing-table ipv6-address prefix-length: The system ANDs the input destination IPv6 address with the input prefix length. The system ANDs the destination IPv6 address in each route entry with the input prefix length. If the two operations yield the same result for an entry and the entry is active with a prefix length less than or equal to the input prefix length, the entry is displayed. 18

Only route entries that exactly match the input destination address and prefix length are displayed. display ipv6 routing-table ipv6-address longer-match: The system ANDs the input destination IPv6 address with the prefix length in each route entry. The system ANDs the destination IPv6 address in each route entry with the prefix length in each entry. If the two operations yield the same result for multiple entries, the one that is active with the longest prefix length is displayed. display ipv6 routing-table ipv6-address prefix-length longer-match: The system ANDs the input destination IPv6 address with the input prefix length. The system ANDs the destination IPv6 address in each route entry with the input prefix length. If the two operations yield the same result for multiple entries with a prefix length less than or equal to the input prefix length, the one that is active with the longest prefix length is displayed. # Display brief information about the routes with destination IPv6 address 10::1. <Sysname> display ipv6 routing-table 10::1 Routing Table: Public Summary Count: 3 Destination: 10::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 Destination: 10::/68 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 Destination: 10::/120 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 # Display brief information about the routes with destination IPv6 address 10::1 and prefix length 100. <Sysname> display ipv6 routing-table 10::1 100 Routing Table: Public Summary Count: 2 Destination: 10::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 Destination: 10::/68 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 # Display brief information about the routes with destination IPv6 address 10::1 and the longest prefix length. <Sysname> display ipv6 routing-table 10::1 longer-match Routing Tables: Public Summary Count : 1 19