HPE FlexNetwork 3600 v2 Switch Series
Layer 3—IP Routing
Command Reference
Part number: 5998-7618R
Software version: Release 2111
Document version: 6W100-20160112
© Copyright 2016 Hewlett Packard Enterprise Development LP
The information contained herein is subject to change without notice. The only warranties for Hewlett Packard
Enterprise products and services are set forth in the express warranty statements acco mpanying such
products and services. Nothing herein should be construe d as constituting an additional warranty. Hewlett
Packard Enterprise shall not be liable for technical or editorial errors or omissions co ntained herein.
Confidential computer software. V alid license from Hewlett Packard Enterprise required for possession, use, or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
Documentation, and T e chnical Data for Commercial Items are licensed to the U.S. Government under vendor’s
standard commercial license.
Links to third-party websites take you outside the Hewlett Packard Enterprise website. Hewlett Packard
Enterprise has no control over and is not responsible for information outside the Hewlett Packard Enterprise
website.
Acknowledgments
Intel®, Itanium®, Pentium®, Intel Inside®, and the Intel Inside logo are trademarks of Intel Corporation in the
United States and other countries.
Microsoft® and Windows® are trademarks of the Microsoft group of companies.
Adobe® and Acrobat® are trademarks of Adobe Systems In corporated.
Java and Oracle are registered trademarks of Oracle and/or its affiliates.
UNIX® is a registered trademark of The Open Group.
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 ···························································································· 10
display ip routing-table protocol ···························································································· 12
display ip routing-table statistics ··························································································· 13
display ipv6 routing-table ···································································································· 14
display ipv6 routing-table acl ································································································ 16
display ipv6 routing-table ipv6-address ··················································································· 17
display ipv6 routing-table ipv6-prefix ······················································································ 19
display ipv6 routing-table protocol ························································································· 20
display ipv6 routing-table statistics ························································································ 21
reset ip routing-table statistics protocol··················································································· 22
reset ipv6 routing-table statistics ··························································································· 23
Static routing configuration commands················································ 24
delete static-routes all ········································································································ 24
ip route-static ···················································································································· 24
ip route-static default-preference ·························································································· 27
ip route-static fast-reroute ··································································································· 27
RIP configuration commands ···························································· 29
checkzero ························································································································ 29
default cost (RIP view) ········································································································ 29
default-route ····················································································································· 30
display rip ························································································································ 31
display rip database ··········································································································· 33
display rip interface ············································································································ 34
display rip route ················································································································ 35
dscp (RIP view) ················································································································· 37
fast-reroute ······················································································································ 37
filter-policy export (RIP view) ······························································································· 38
filter-policy import (RIP view) ······························································································· 39
host-route ························································································································ 40
import-route (RIP view) ······································································································· 41
maximum load-balancing (RIP view) ······················································································ 42
network ··························································································································· 43
output-delay ····················································································································· 43
peer································································································································ 44
preference ······················································································································· 44
reset rip process ··············································································································· 45
reset rip statistics ·············································································································· 46
rip ·································································································································· 46
rip authentication-mode ······································································································ 47
rip bfd enable ··················································································································· 48
rip default-route ················································································································· 48
rip input ··························································································································· 49
rip metricin ······················································································································· 49
rip metricout ····················································································································· 50
rip mib-binding ·················································································································· 51
rip output ························································································································· 52
rip poison-reverse ·············································································································· 52
rip split-horizon ················································································································· 53
rip summary-address ········································································································· 53
rip version ························································································································ 54
silent-interface (RIP view) ··································································································· 55
i
summary ························································································································· 55
timers ····························································································································· 56
validate-source-address ······································································································ 57
version ···························································································································· 58
OSPF configuration commands ························································· 59
abr-summary (OSPF area view) ··························································································· 59
area (OSPF view) ·············································································································· 60
asbr-summary ·················································································································· 60
authentication-mode ·········································································································· 61
bandwidth-reference (OSPF view)························································································· 62
default ····························································································································· 62
default-cost (OSPF area view) ····························································································· 63
default-route-advertise (OSPF view) ······················································································ 64
description (OSPF/OSPF area view) ····················································································· 65
display ospf abr-asbr ·········································································································· 65
display ospf asbr-summary ·································································································· 66
display ospf brief ··············································································································· 68
display ospf cumulative ······································································································· 71
display ospf error ··············································································································· 72
display ospf interface ········································································································· 74
display ospf lsdb ··············································································································· 76
display ospf nexthop ·········································································································· 78
display ospf peer ··············································································································· 79
display ospf peer statistics ··································································································· 82
display ospf request-queue ·································································································· 83
display ospf retrans-queue ·································································································· 84
display ospf routing ············································································································ 85
display ospf vlink ··············································································································· 87
display router id ················································································································ 88
dscp (OSPF view) ············································································································· 88
enable link-local-signaling ··································································································· 89
enable log ························································································································ 89
enable out-of-band-resynchronization ···················································································· 90
fast-reroute ······················································································································ 91
filter ································································································································ 92
filter-policy export (OSPF view) ···························································································· 92
filter-policy import (OSPF view) ···························································································· 93
graceful-restart (OSPF view) ································································································ 95
graceful-restart help ··········································································································· 95
graceful-restart interval (OSPF view) ····················································································· 96
host-advertise ··················································································································· 97
import-route (OSPF view) ···································································································· 97
ispf enable ······················································································································· 99
log-peer-change ················································································································ 99
lsa-arrival-interval ············································································································ 100
lsa-generation-interval ······································································································ 100
lsdb-overflow-limit ············································································································ 101
maximum load-balancing (OSPF view) ················································································· 102
maximum-routes ············································································································· 102
network (OSPF area view) ································································································ 103
nssa ····························································································································· 103
opaque-capability enable ·································································································· 104
ospf ······························································································································ 105
ospf authentication-mode ·································································································· 106
ospf bfd enable ··············································································································· 107
ospf cost ························································································································ 108
ospf dr-priority ················································································································ 108
ospf mib-binding ·············································································································· 109
ospf mtu-enable ·············································································································· 109
ospf network-type ············································································································ 110
ospf packet-process prioritized-treatment ············································································· 111
ii
ospf timer dead ··············································································································· 111
ospf timer hello ··············································································································· 112
ospf timer poll ················································································································· 113
ospf timer retransmit ········································································································ 113
ospf trans-delay ·············································································································· 114
peer······························································································································ 114
preference ····················································································································· 115
reset ospf counters ·········································································································· 116
reset ospf process ··········································································································· 116
reset ospf redistribution ···································································································· 117
rfc1583 compatible ·········································································································· 118
router id ························································································································· 118
silent-interface (OSPF view) ······························································································ 119
snmp-agent trap enable ospf ····························································································· 120
spf-schedule-interval ········································································································ 121
stub (OSPF area view) ····································································································· 121
stub-router ····················································································································· 122
transmit-pacing ··············································································································· 123
vlink-peer (OSPF area view) ······························································································ 123
IS-IS configuration commands ························································ 126
area-authentication-mode ································································································· 126
auto-cost enable ············································································································· 127
bandwidth-reference (IS-IS view) ························································································ 128
circuit-cost ····················································································································· 128
cost-style ······················································································································· 129
default-route-advertise (IS-IS view) ····················································································· 130
display isis brief ·············································································································· 130
display isis debug-switches ······························································································· 132
display isis graceful-restart status ······················································································· 132
display isis interface ········································································································· 134
display isis lsdb ··············································································································· 137
display isis name-table ····································································································· 139
display isis peer ·············································································································· 141
display isis route ············································································································· 143
display isis spf-log ··········································································································· 146
display isis statistics ········································································································· 147
domain-authentication-mode ······························································································ 150
fast-reroute ···················································································································· 150
filter-policy export (IS-IS view) ···························································································· 151
filter-policy import (IS-IS view) ···························································································· 153
flash-flood ······················································································································ 154
graceful-restart (IS-IS view) ······························································································· 154
graceful-restart interval (IS-IS view) ····················································································· 155
graceful-restart suppress-sa ······························································································ 155
import-route (IS-IS view) ··································································································· 156
import-route isis level-2 into level-1 ····················································································· 157
import-route limit (IS-IS view) ····························································································· 158
isis ······························································································································· 159
isis authentication-mode ··································································································· 159
isis bfd enable ················································································································ 160
isis circuit-level ··············································································································· 161
isis circuit-type p2p ·········································································································· 162
isis cost ························································································································· 162
isis dis-name ·················································································································· 163
isis dis-priority ················································································································· 164
isis enable ····················································································································· 165
isis mib-binding ··············································································································· 165
isis silent ······················································································································· 166
isis small-hello ················································································································ 166
isis timer csnp ················································································································· 167
isis timer hello ················································································································· 168
iii
isis timer holding-multiplier ································································································ 168
isis timer lsp ··················································································································· 169
isis timer retransmit ·········································································································· 170
is-level ·························································································································· 171
is-name ························································································································· 171
is-name map ·················································································································· 172
is-snmp-traps enable ········································································································ 173
log-peer-change (IS-IS view) ····························································································· 173
lsp-fragments-extend ······································································································· 174
lsp-length originate ·········································································································· 174
lsp-length receive ············································································································ 175
maximum load-balancing (IS-IS view) ·················································································· 175
network-entity ················································································································· 176
non-stop-routing ·············································································································· 177
non-stop-routing interval ··································································································· 177
preference (IS-IS view) ····································································································· 178
priority high ···················································································································· 179
reset isis all ···················································································································· 179
reset isis peer ················································································································· 180
set-overload ··················································································································· 180
summary (IS-IS view) ······································································································· 181
timer lsp-generation ········································································································· 182
timer lsp-max-age ············································································································ 183
timer lsp-refresh ·············································································································· 184
timer spf ························································································································ 184
virtual-system ················································································································· 185
BGP configuration commands ························································· 187
aggregate ······················································································································ 187
balance (BGP/BGP-VPN instance view) ··············································································· 188
bestroute as-path-neglect (BGP/BGP-VPN instance view) ······················································· 189
bestroute compare-med (BGP/BGP-VPN instance view) ·························································· 189
bestroute med-confederation (BGP/BGP-VPN instance view) ··················································· 190
bgp······························································································································· 191
compare-different-as-med (BGP/BGP-VPN instance view) ······················································· 191
confederation id ·············································································································· 192
confederation nonstandard ································································································ 193
confederation peer-as ······································································································ 194
dampening (BGP/BGP-VPN instance view) ··········································································· 194
default ipv4-unicast ·········································································································· 195
default local-preference (BGP/BGP-VPN instance view) ·························································· 196
default med (BGP/BGP-VPN instance view) ·········································································· 197
default-route imported (BGP/BGP-VPN instance view) ···························································· 197
display bgp group ············································································································ 198
display bgp network ········································································································· 200
display bgp paths ············································································································ 201
display bgp peer ·············································································································· 202
display bgp peer received ip-prefix ······················································································ 205
display bgp routing-table ··································································································· 206
display bgp routing-table as-path-acl ··················································································· 207
display bgp routing-table cidr ····························································································· 208
display bgp routing-table community ···················································································· 209
display bgp routing-table community-list ··············································································· 210
display bgp routing-table dampened ···················································································· 211
display bgp routing-table dampening parameter ····································································· 212
display bgp routing-table different-origin-as ··········································································· 213
display bgp routing-table flap-info ······················································································· 214
display bgp routing-table label ···························································································· 215
display bgp routing-table peer ···························································································· 216
display bgp routing-table regular-expression ········································································· 217
display bgp routing-table statistic ························································································ 217
display router id ·············································································································· 218
iv
ebgp-interface-sensitive ···································································································· 218
filter-policy export (BGP/BGP-VPN instance view) ·································································· 219
filter-policy import (BGP/BGP-VPN instance view) ·································································· 220
graceful-restart (BGP view) ······························································································· 221
graceful-restart timer restart ······························································································· 222
graceful-restart timer wait-for-rib ························································································· 222
group (BGP/BGP-VPN instance view) ·················································································· 223
ignore-first-as ················································································································· 224
import-route (BGP/BGP-VPN instance view) ········································································· 224
log-peer-change ·············································································································· 225
network (BGP/BGP-VPN instance view) ··············································································· 226
network short-cut (BGP/BGP-VPN instance view) ·································································· 227
peer advertise-community (BGP/BGP-VPN instance view) ······················································· 227
peer advertise-ext-community (BGP/BGP-VPN instance view) ·················································· 228
peer allow-as-loop (BGP/BGP-VPN instance view) ································································· 229
peer as-number (BGP/BGP-VPN instance view) ···································································· 230
peer as-path-acl (BGP/BGP-VPN instance view) ···································································· 231
peer bfd ························································································································· 231
peer capability-advertise conventional·················································································· 232
peer capability-advertise orf ······························································································· 233
peer capability-advertise orf non-standard ············································································ 234
peer capability-advertise route-refresh ················································································· 235
peer capability-advertise suppress-4-byte-as ········································································· 235
peer connect-interface (BGP/BGP-VPN instance view) ···························································· 236
peer default-route-advertise (BGP/BGP-VPN instance view) ····················································· 237
peer description (BGP/BGP-VPN instance view) ···································································· 238
peer dscp (BGP/BGP-VPN instance view) ············································································ 239
peer ebgp-max-hop (BGP/BGP-VPN instance view) ······························································· 239
peer enable (BGP/BGP-VPN instance view) ·········································································· 240
peer fake-as (BGP/BGP-VPN instance view) ········································································· 241
peer filter-policy (BGP/BGP-VPN instance view) ···································································· 241
peer group (BGP/BGP-VPN instance view) ··········································································· 242
peer ignore (BGP/BGP-VPN instance view) ·········································································· 243
peer ip-prefix ·················································································································· 244
peer keep-all-routes (BGP/BGP-VPN instance view) ······························································· 245
peer log-change (BGP/BGP-VPN instance view) ···································································· 245
peer next-hop-local (BGP/BGP-VPN instance view) ································································ 246
peer password ················································································································ 247
peer preferred-value (BGP/BGP-VPN instance view) ······························································ 248
peer public-as-only (BGP/BGP-VPN instance view) ································································ 249
peer reflect-client (BGP/BGP-VPN instance view) ·································································· 249
peer route-limit (BGP/BGP-VPN instance view) ····································································· 250
peer route-policy (BGP/BGP-VPN instance view) ··································································· 251
peer route-update-interval (BGP/BGP-VPN instance view) ······················································· 252
peer timer (BGP/BGP-VPN instance view) ············································································ 253
preference (BGP/BGP-VPN instance view) ··········································································· 254
reflect between-clients (BGP view/BGP-VPN instance view) ····················································· 255
reflector cluster-id (BGP view/BGP-VPN instance view) ··························································· 255
refresh bgp ···················································································································· 256
reset bgp ······················································································································· 257
reset bgp dampening ······································································································· 257
reset bgp flap-info ············································································································ 258
reset bgp ipv4 all ············································································································· 258
router id ························································································································· 259
router-id ························································································································ 259
summary automatic ········································································································· 260
synchronization (BGP view) ······························································································· 261
timer (BGP/BGP-VPN instance view) ··················································································· 261
IPv6 static routing configuration commands ······································· 263
delete ipv6 static-routes all ································································································ 263
ipv6 route-static ·············································································································· 263
v
RIPng configuration commands ······················································· 265
checkzero ······················································································································ 265
default cost (RIPng view) ·································································································· 265
display ripng ··················································································································· 266
display ripng database ······································································································ 267
display ripng interface ······································································································ 268
display ripng route ··········································································································· 270
enable ipsec-policy (RIPng view) ························································································ 271
filter-policy export (RIPng view) ·························································································· 272
filter-policy import (RIPng view) ·························································································· 273
import-route ··················································································································· 274
maximum load-balancing (RIPng view) ················································································ 275
preference ····················································································································· 275
reset ripng process ·········································································································· 276
reset ripng statistics ········································································································· 276
ripng ····························································································································· 277
ripng default-route ··········································································································· 277
ripng enable ··················································································································· 278
ripng ipsec-policy ············································································································ 279
ripng metricin ·················································································································· 279
ripng metricout ················································································································ 280
ripng poison-reverse ········································································································ 280
ripng split-horizon ············································································································ 281
ripng summary-address ···································································································· 281
timers ··························································································································· 282
OSPFv3 configuration commands ···················································· 284
abr-summary (OSPFv3 area view) ······················································································ 284
area (OSPFv3 view) ········································································································· 284
bandwidth-reference ········································································································ 285
default cost ···················································································································· 286
default-cost (OSPFv3 area view) ························································································ 286
default-route-advertise ······································································································ 287
display ospfv3 ················································································································· 288
display ospfv3 graceful-restart status ··················································································· 290
display ospfv3 interface ···································································································· 291
display ospfv3 lsdb ·········································································································· 293
display ospfv3 lsdb statistic ······························································································· 296
display ospfv3 next-hop ···································································································· 297
display ospfv3 peer ·········································································································· 298
display ospfv3 peer statistics ····························································································· 300
display ospfv3 request-list ································································································· 301
display ospfv3 retrans-list ·································································································· 303
display ospfv3 routing ······································································································· 304
display ospfv3 statistics ···································································································· 306
display ospfv3 topology ···································································································· 307
display ospfv3 vlink ·········································································································· 308
enable ipsec-policy (OSPFv3 area view) ·············································································· 309
filter-policy export (OSPFv3 view) ······················································································· 310
filter-policy import (OSPFv3 view) ······················································································· 311
graceful-restart enable ······································································································ 312
graceful-restart helper enable ···························································································· 313
graceful-restart helper strict-lsa-checking ·············································································· 313
graceful-restart interval ····································································································· 314
import-route (OSPFv3 view) ······························································································ 314
log-peer-change ·············································································································· 315
maximum load-balancing (OSPFv3 view) ············································································· 316
ospfv3 ··························································································································· 316
ospfv3 area ···················································································································· 317
ospfv3 bfd enable ············································································································ 317
ospfv3 cost ···················································································································· 318
vi
ospfv3 dr-priority ············································································································· 319
ospfv3 ipsec-policy ·········································································································· 319
ospfv3 mtu-ignore ············································································································ 320
ospfv3 network-type ········································································································· 320
ospfv3 peer ···················································································································· 321
ospfv3 timer dead ············································································································ 322
ospfv3 timer hello ············································································································ 322
ospfv3 timer retransmit ····································································································· 323
ospfv3 timer poll ·············································································································· 323
ospfv3 trans-delay ··········································································································· 324
preference ····················································································································· 325
router-id ························································································································ 325
silent-interface(OSPFv3 view) ···························································································· 326
spf timers ······················································································································· 327
stub (OSPFv3 area view) ·································································································· 327
vlink-peer (OSPFv3 area view) ··························································································· 328
IPv6 IS-IS configuration commands ················································· 330
display isis route ipv6 ······································································································· 330
ipv6 default-route-advertise ······························································································· 332
ipv6 enable ···················································································································· 333
ipv6 filter-policy export ······································································································ 334
ipv6 filter-policy import ······································································································ 335
ipv6 import-route ············································································································· 336
ipv6 import-route isisv6 level-2 into level-1 ············································································ 337
ipv6 import-route limit ······································································································· 338
ipv6 maximum load-balancing ···························································································· 338
ipv6 preference ··············································································································· 339
ipv6 summary ················································································································· 340
isis ipv6 bfd enable ·········································································································· 340
isis ipv6 enable ··············································································································· 341
multiple-topology ipv6-unicast ···························································································· 342
IPv6 BGP configuration commands ·················································· 343
aggregate (IPv6 address family view) ·················································································· 343
balance (IPv6 address family view/IPv6 BGP-VPN instance view) ············································· 344
bestroute as-path-neglect (IPv6 address family view) ······························································ 345
bestroute compare-med (IPv6 address family view) ································································ 345
bestroute med-confederation (IPv6 address family view) ·························································· 346
compare-different-as-med (IPv6 address family view) ····························································· 346
dampening (IPv6 address family view) ················································································· 347
default local-preference (IPv6 address family view/IPv6 BGP-VPN instance view) ························· 348
default med (IPv6 address family view/IPv6 BGP-VPN instance view) ········································ 348
default-route imported (IPv6 address family view/IPv6 BGP-VPN instance view) ··························· 349
display bgp ipv6 group ······································································································ 350
display bgp ipv6 network ··································································································· 352
display bgp ipv6 paths ······································································································ 353
display bgp ipv6 peer ······································································································· 354
display bgp ipv6 peer received ipv6-prefix ············································································· 358
display bgp ipv6 routing-table ····························································································· 359
display bgp ipv6 routing-table as-path-acl ············································································· 361
display bgp ipv6 routing-table community ············································································· 362
display bgp ipv6 routing-table community-list ········································································· 363
display bgp ipv6 routing-table dampened ·············································································· 364
display bgp ipv6 routing-table dampening parameter ······························································· 364
display bgp ipv6 routing-table different-origin-as ····································································· 365
display bgp ipv6 routing-table flap-info ················································································· 366
display bgp ipv6 routing-table peer ······················································································ 367
display bgp ipv6 routing-table regular-expression ··································································· 368
display bgp ipv6 routing-table statistic ·················································································· 369
filter-policy export (IPv6 address family view/IPv6 BGP-VPN instance view) ································· 370
filter-policy import (IPv6 address family view/IPv6 BGP-VPN instance view) ································· 371
vii
group (IPv6 address family view) ························································································ 372
import-route (IPv6 address family view/IPv6 BGP-VPN instance view) ········································ 372
ipv6-family ····················································································································· 373
network (IPv6 address family view/IPv6 BGP-VPN instance view) ············································· 374
peer advertise-community (IPv6 address family view) ····························································· 375
peer advertise-ext-community (IPv6 address family view) ························································ 375
peer allow-as-loop (IPv6 address family view) ······································································· 376
peer as-number (IPv6 address family view) ··········································································· 377
peer as-number (IPv6 BGP-VPN instance view) ····································································· 377
peer as-path-acl (IPv6 address family view) ·········································································· 378
peer bfd (IPv6 address family view/IPv6 BGP-VPN instance view) ············································· 379
peer capability-advertise orf ······························································································· 379
peer capability-advertise orf non-standard (IPv6 address family view) ········································· 380
peer capability-advertise route-refresh ················································································· 381
peer capability-advertise suppress-4-byte-as (IPv6 address family view) ····································· 382
peer capability-advertise suppress-4-byte-as (IPv6 BGP-VPN instance view) ······························· 382
peer connect-interface (IPv6 address family view) ·································································· 383
peer default-route-advertise ······························································································· 384
peer description (IPv6 address family view) ··········································································· 385
peer dscp (IPv6 address family view) ··················································································· 385
peer ebgp-max-hop (IPv6 address family view) ······································································ 386
peer enable (IPv6 address family view) ················································································ 387
peer fake-as (IPv6 address family view) ··············································································· 387
peer filter-policy (IPv6 address family view) ··········································································· 388
peer group (IPv6 address family view) ················································································· 389
peer ignore (IPv6 address family view) ················································································· 389
peer ipv6-prefix ··············································································································· 390
peer ipsec-policy (IPv6 address family view) ········································································· 391
peer keep-all-routes (IPv6 address family view) ····································································· 391
peer log-change (IPv6 address family view) ·········································································· 392
peer next-hop-local (IPv6 address family view) ······································································ 392
peer password ················································································································ 393
peer preferred-value (IPv6 address family view) ····································································· 394
peer preferred-value (IPv6 BGP-VPN instance view) ······························································· 395
peer public-as-only (IPv6 address family view) ······································································· 395
peer reflect-client (IPv6 address family view) ········································································· 396
peer route-limit (IPv6 address family view) ············································································ 397
peer route-policy (IPv6 address family view) ·········································································· 398
peer route-policy (IPv6 BGP-VPN instance view) ··································································· 398
peer route-update-interval (IPv6 address family view) ····························································· 399
peer substitute-as (IPv6 address family view) ········································································ 400
peer timer (IPv6 address family view) ·················································································· 400
preference (IPv6 address family view/IPv6 BGP-VPN instance view) ·········································· 402
reflect between-clients (IPv6 address family view) ·································································· 402
reflector cluster-id (IPv6 address family view) ········································································ 403
refresh bgp ipv6 ·············································································································· 404
reset bgp ipv6 ················································································································· 404
reset bgp ipv6 dampening ································································································· 405
reset bgp ipv6 flap-info ····································································································· 405
router-id ························································································································ 406
synchronization (IPv6 address family view) ··········································································· 407
timer (IPv6 address family view) ························································································· 407
Routing policy configuration commands ············································ 409
Common routing policy configuration commands ·········································································· 409
apply as-path ·················································································································· 409
apply comm-list delete ······································································································ 409
apply community ············································································································· 410
apply cost ······················································································································ 411
apply cost-type ··············································································································· 412
apply extcommunity ········································································································· 412
apply isis ······················································································································· 413
viii
apply local-preference ······································································································ 414
apply origin ···················································································································· 414
apply preference ············································································································· 415
apply preferred-value ······································································································· 415
apply tag ······················································································································· 416
continue ························································································································ 417
display ip as-path ············································································································ 417
display ip community-list ··································································································· 418
display ip extcommunity-list ······························································································· 419
display route-policy ·········································································································· 419
if-match as-path ·············································································································· 420
if-match community ·········································································································· 421
if-match cost ··················································································································· 422
if-match extcommunity ······································································································ 422
if-match interface ············································································································· 423
if-match route-type ··········································································································· 423
if-match tag ···················································································································· 424
ip as-path ······················································································································ 425
ip community-list ············································································································· 425
ip extcommunity-list ········································································································· 426
route-policy ···················································································································· 427
IPv4 routing policy configuration commands ················································································ 428
apply fast-reroute ············································································································ 428
apply ip-address next-hop ································································································· 429
display ip ip-prefix ············································································································ 429
if-match acl ···················································································································· 430
if-match ip ······················································································································ 431
if-match ip-prefix ············································································································· 432
ip ip-prefix ······················································································································ 432
reset ip ip-prefix ·············································································································· 433
IPv6 routing policy configuration commands ················································································ 434
apply ipv6 next-hop ·········································································································· 434
display ip ipv6-prefix ········································································································ 434
if-match ipv6 ··················································································································· 435
ip ipv6-prefix ··················································································································· 436
reset ip ipv6-prefix ··········································································································· 437
Policy-based routing configuration commands ···································· 438
apply ip-address default next-hop ······················································································· 438
apply ip-address next-hop ································································································· 438
apply ip-precedence ········································································································· 439
display ip policy-based-route ······························································································ 440
display ip policy-based-route setup ····················································································· 441
display policy-based-route ································································································· 442
if-match acl ···················································································································· 443
ip local policy-based-route ································································································· 443
ip policy-based-route ········································································································ 444
policy-based-route ··········································································································· 445
MCE configuration commands ························································ 446
description ····················································································································· 446
display bgp vpnv4 vpn-instance group ················································································· 446
display bgp vpnv4 vpn-instance network··············································································· 448
display bgp vpnv4 vpn-instance paths ·················································································· 449
display bgp vpnv4 vpn-instance peer ··················································································· 450
display bgp vpnv4 vpn-instance routing-table ········································································ 453
display fib vpn-instance ···································································································· 455
display fib vpn-instance ip-address ······················································································ 457
display ip vpn-instance ····································································································· 458
domain-id ······················································································································ 460
export route-policy ··········································································································· 460
ext-community-type ········································································································· 461
ix
filter-policy export ············································································································ 462
filter-policy import ············································································································ 463
import route-policy ··········································································································· 463
ip binding vpn-instance ····································································································· 464
ip vpn-instance ··············································································································· 465
ipv4-family ····················································································································· 465
ipv4-family vpn-instance ··································································································· 466
peer allow-as-loop ··········································································································· 466
refresh bgp vpn-instance ··································································································· 467
reset bgp vpn-instance ····································································································· 467
reset bgp vpn-instance dampening ······················································································ 468
reset bgp vpn-instance flap-info ·························································································· 469
route-distinguisher ··········································································································· 469
routing-table limit ············································································································· 470
vpn-instance-capability simple ···························································································· 471
vpn-target ······················································································································ 471
IPv6 MCE configuration commands ················································· 473
display bgp vpnv6 vpn-instance peer ··················································································· 473
display bgp vpnv6 vpn-instance routing-table ········································································ 475
display ipv6 fib vpn-instance ······························································································ 477
display ipv6 fib vpn-instance ipv6-address ············································································ 478
export route-policy ··········································································································· 479
filter-policy export ············································································································ 480
filter-policy import ············································································································ 481
import route-policy ··········································································································· 482
ipv6-family ····················································································································· 482
ipv6-family vpn-instance ··································································································· 483
refresh bgp ipv6 vpn-instance ···························································································· 484
reset bgp ipv6 vpn-instance ······························································································· 484
routing-table limit ············································································································· 485
vpn-target ······················································································································ 486
Document conventions and icons ···················································· 488
Conventions ························································································································· 488
Network topology icons ··········································································································· 489
Support and other resources ·························································· 490
Accessing Hewlett Packard Enterprise Support ············································································ 490
Accessing updates ················································································································· 490
Websites ······················································································································· 491
Customer self repair ········································································································· 491
Remote support ·············································································································· 491
Documentation feedback ·································································································· 491
Index ························································································· 492
x
Basic IP routing commands
The term "router" in this chapter refers to both routers and Layer 3 switches.
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 ).
HPE FlexNetwork 3600 v2 SI Switch Series does not support OSPF, BGP, IS-IS, OSPFv3, IPv6 BGP,
or IPv6 IS-IS.
display ip routing-table
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] [ verbose ] [ | { begin | exclude |
include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
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 routing table information, including inactive routes. Without this keyword,
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.
Description
Use display ip routing-table to display brief information about active routes in the routing table.
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 outbound interface. This command displays only the optimal routes in use.
Use display ip routing-table verbose to display detailed information about all routes in the routing
table.
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
1
Destinations : 7 Routes : 7
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 Description
Destinations Number of destination addresses
Routes Number of routes
Destination/Mask Destination address/mask length
Proto Protocol that presents the 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 : 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:
2
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
BKTunnel ID: 0x0 BKLabel: NULL
State: Active NoAdv Age: 06h46m22s
Tag: 0
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:
3
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
BKTunnel ID: 0x0 BKLabel: NULL
State: Active Adv Age: 06h46m35s
Tag: 0
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
Displayed first are statistics for the whole routing table, followed by a detailed description of each
route (in sequence).
Table 2 Command output
Field Description
Destination Destination address/mask length.
Protocol Protocol that presents the route.
Process ID Process ID.
Preference Priority of the route.
Cost Cost of the route.
IpPrecedence IP precedence.
QosLcId QoS-local ID.
NextHop Address of the next hop on the route.
Interface Outbound interface for packets to be forwarded along the route.
BkNextHop Backup next hop.
BkInterface Backup outbound interface.
RelyNextHop Next hop address obtained through routing recursion.
Neighbor Neighboring address determined by routing protocol.
Tunnel ID Tunnel ID.
Label Label.
BKTunnel ID Backup tunnel ID.
BKLabel Backup label.
4
Field Description
Route status:
• Active —This is an active unicast route.
• Adv —This route can be advertised.
• Delete —This route is deleted.
• Gateway —This is an indirect route.
• Holddown —Number of holddown routes. Holddown is a route advertisement
policy used in some distance 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 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.
State
• 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 will be dropped. Besides, 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.
Age
Tag Route tag.
Time for which the route has been in the routing table, in the sequence of hour,
minute, and second from left to right.
display ip routing-table acl
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] acl acl-number [ verbose ] [ | { begin
| exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
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.
5
acl-number : Specifies the basic ACL number, in the range of 2000 to 2999.
verbose : Displays detailed routing table information, including inactive routes. Without this
argument, 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.
Description
Use display ip routing-table acl to display information about routes permitted by a specified basic
ACL.
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.
Examples
# 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
[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 command output, 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
Preference: 0 Cost: 0
IpPrecedence: QosLcId:
NextHop: 10.1.1.2 Interface: Vlan-interface1
6
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
Preference: 0 Cost: 0
IpPrecedence: QosLcId:
NextHop: 10.1.3.1 Interface: Vlan-interface11
7
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 command output, see Table 2.
display ip routing-table ip-address
Syntax
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 ]
View
Any view
Default level
1: Monitor level
Parameters
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 the destination IP address, in dotted decimal format.
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 routing table information, including both active and inactive routes.
Without this argument, 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.
8
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.
Description
Use display ip routing-table ip-address 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 :
• display ip routing-table ip-address mask :
• display ip routing-table ip-address longer-match :
• display ip routing-table ip-address mask 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 an entry and this entry is active, it is displayed.
{ 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.
Only route entries that exactly match the input destination address and mask are displayed.
{ 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 the
longest mask length is displayed.
{ 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 longest mask length is displayed.
Use display ip routing-table ip-address1 { mask-length | mask } ip-address2 { mask-length | mask }
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> display ip routing-table 11.1.1.1
Routing Table : Public
Summary Count : 4
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 60 0 0.0.0.0 NULL0
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
11.1.1.0/24 Static 60 0 0.0.0.0 NULL0
# Display route entries by specifying a destination IP address and the longer-match keyword.
<Sysname> display ip routing-table 11.1.1.1 longer-match
Routing Table : Public
Summary Count : 1
9
Destination/Mask Proto Pre Cost NextHop Interface
11.1.1.0/24 Static 60 0 0.0.0.0 NULL0
# Display route entries by specifying a destination IP address and mask.
<Sysname> display ip routing-table 11.1.1.1 24
Routing Table : Public
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
11.1.1.0/24 Static 60 0 0.0.0.0 NULL0
# Display route entries by specifying a destination IP address and mask and the longer-match
keyword.
<Sysname> display ip routing-table 11.1.1.1 24 longer-match
Routing Table : Public
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
11.1.1.0/24 Static 60 0 0.0.0.0 NULL0
# Display route entries for 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 command output, see Table 1.
display ip routing-table ip-prefix
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] ip-prefix ip-prefix-name [ verbose ]
[ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
10
Parameters
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 routing table information, including inactive routes. Without this
argument, 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.
Description
Use display ip routing-table ip-prefix to display information about routes permitted by a specified
prefix list.
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.
Examples
# 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> system-view
[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 command output, see Table 1.
# Display detailed information about both active and inactive routes permitted by IP prefix list test.
[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
11
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 command output, see Table 2.
display ip routing-table protocol
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive |
verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
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 the routing protocol. It can be bgp, direct , isis , nat , ospf , rip , and static .
inactive: Displays information about only inactive routes. Without this argument, the command
displays information about both active and inactive routes.
verbose : Displays detailed routing table information. Without this argument, 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.
Description
Use display ip routing-table protocol to display routing information of a specified routing protocol.
Examples
# Display brief information about direct routes.
12
<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 command output, see Table 1.
display ip routing-table statistics
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] statistics [ | { begin | exclude |
include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
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.
13
| : 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.
Description
Use display ip routing-table statistics to display the route statistics of the 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
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 Description
Proto Origin of the routes
route Number of routes from the origin
active Number of active routes from the origin
added
deleted Number of routes marked as deleted, which will be freed after a period
freed Number of routes that got freed (got removed permanently)
Total Total number
Number of routes added into the routing table since the router started up or the routing
table was last cleared
display ipv6 routing-table
Syntax
display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ verbose ] [ | { begin | exclude |
include } regular-expression ]
View
Any view
Default level
1: Monitor level
14
Parameters
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 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.
Description
Use display ipv6 routing-table to display brief IPv6 routing 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).
Use display ipv6 routing-table verbose to display detailed information about all IPv6 routes,
including both active and inactive routes. The output shows the statistics of the entire routing table,
and then the detailed information of each route.
Examples
# 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
# 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 :
Field Description
Destination IPv6 address of the destination network/host
NextHop Next hop address
Preference Route priority
Interface Outbound interface
Protocol Routing protocol
Cost Route cost
15
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 Description
Destination IPv6 address of the destination network/host
PrefixLength Prefix length of the address
NextHop Next hop
Preference Route priority
IpPrecedence IP precedence
QosLcId QoS-local ID
RelayNextHop Recursive next hop
Tag Tag of the route
Neighbor Neighbor address
ProcessID Process ID
Interface Outbound interface
Protocol Routing protocol
State
Cost Cost of the route
Tunnel ID Tunnel ID
Label Label
Age Time that has elapsed since the route was generated
State of the route, Active, Inactive, Adv (advertised), or NoAdv (not
advertised)
display ipv6 routing-table acl
Syntax
display ipv6 routing-table [ vpn-instance vpn-instance-name ] acl acl6-number [ verbose ] [ |
{ begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
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 the basic IPv6 ACL number, in the range of 2000 to 2999.
16
verbose : Displays both active and inactive verbose routing information permitted by the ACL.
Without this keyword, only brief active routing information 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.
Description
Use display ipv6 routing-table acl to display routing information permitted by the IPv6 ACL.
If the specified IPv6 ACL is not available, all routing information is displayed.
Examples
# 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 command output, see Table 4.
display ipv6 routing-table ipv6-address
Syntax
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 ]
View
Any view
Default level
1: Monitor level
Parameters
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 the 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.
17
ipv6-address1 /ipv6-address2 : Specifies the 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 both active and inactive verbose routing information. Without this keyword, only
brief active routing information 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.
Description
Use display ipv6 routing-table ipv6-address 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 :
• 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 an entry and the entry is active with a prefix length
less than or equal to the input prefix length, the entry is displayed.
{ Only route entries that exactly match the input destination address and prefix length are
displayed.
{ 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.
Use display ipv6 routing-table ipv6-address1 ipv6-address2 to display routes whose destinations
fall into the specified IPv6 address range.
Examples
# Display brief information about the route matching the specified destination IPv6 address.
<Sysname> display ipv6 routing-table 10::1 127
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
18