• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

05-三层技术-IP路由命令参考

目录

10-OSPFv3命令

本章节下载 10-OSPFv3命令  (416.03 KB)

10-OSPFv3命令

  录

1 OSPFv3

1.1 OSPFv3配置命令

1.1.1 abr-summary (OSPFv3 area view)

1.1.2 asbr-summar (OSPFv3 view)

1.1.3 area

1.1.4 bandwidth-reference (OSPFv3 view)

1.1.5 default tag

1.1.6 default-cost (OSPFv3 area view)

1.1.7 default-route-advertise (OSPFv3 view)

1.1.8 display ospfv3

1.1.9 display ospfv3 abr-asbr

1.1.10 display ospfv3 abr-summary

1.1.11 display ospfv3 asbr-summary

1.1.12 display ospfv3 graceful-restart

1.1.13 display ospfv3 interface

1.1.14 display ospfv3 lsdb

1.1.15 display ospfv3 nexthop

1.1.16 display ospfv3 non-stop-routing

1.1.17 display ospfv3 peer

1.1.18 display ospfv3 request-queue

1.1.19 display ospfv3 retrans-queue

1.1.20 display ospfv3 routing

1.1.21 display ospfv3 spf-tree

1.1.22 display ospfv3 statistics

1.1.23 display ospfv3 vlink

1.1.24 enable ipsec-profile

1.1.25 filter (OSPFv3 area view)

1.1.26 filter-policy export (OSPFv3 View)

1.1.27 filter-policy import (OSPFv3 View)

1.1.28 graceful-restart enable

1.1.29 graceful-restart helper enable

1.1.30 graceful-restart helper strict-lsa-checking

1.1.31 graceful-restart interval

1.1.32 import-route (OSPFv3 view)

1.1.33 log-peer-change

1.1.34 lsa-generation-interval

1.1.35 maximum load-balancing (OSPFv3 view)

1.1.36 non-stop-routing

1.1.37 nssa (OSPFv3 area view)

1.1.38 ospfv3

1.1.39 ospfv3 area

1.1.40 ospfv3 bfd enable

1.1.41 ospfv3 cost

1.1.42 ospfv3 dr-priority

1.1.43 ospfv3 ipsec-profile

1.1.44 ospfv3 mib-binding

1.1.45 ospfv3 mtu-ignore

1.1.46 ospfv3 network-type

1.1.47 ospfv3 peer

1.1.48 ospfv3 prefix-suppression

1.1.49 ospfv3 timer dead

1.1.50 ospfv3 timer hello

1.1.51 ospfv3 timer poll

1.1.52 ospfv3 timer retransmit

1.1.53 ospfv3 trans-delay

1.1.54 preference

1.1.55 prefix-suppression

1.1.56 reset ospfv3 process

1.1.57 reset ospfv3 redistribution

1.1.58 reset ospfv3 statistics

1.1.59 router-id

1.1.60 snmp-agent trap enable ospfv3

1.1.61 snmp context-name

1.1.62 snmp trap rate-limit

1.1.63 silent-interface (OSPFv3 view)

1.1.64 spf-schedule-interval

1.1.65 stub (OSPFv3 area view)

1.1.66 stub-router

1.1.67 transmit-pacing

1.1.68 vlink-peer (OSPFv3 area view)

 


1 OSPFv3

1.1  OSPFv3配置命令

1.1.1  abr-summary (OSPFv3 area view)

abr-summary命令用来配置ABR路由聚合。

undo abr-summary命令用来取消该配置。

【命令】

abr-summary ipv6-address prefix-length [ not-advertise ] [ cost value ]

undo abr-summary ipv6-address prefix-length

【缺省情况】

ABR不对路由进行聚合。

【视图】

OSPFv3区域视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

ipv6-address:聚合路由的目的IPv6地址。

prefix-length:聚合路由的目的IPv6地址前缀长度,取值范围为0~128。它指定地址中有多少连续的位组成IPv6网络前缀,即IPv6地址中的网络地址部分。

not-advertise:不通告聚合的IPv6路由。如果未指定本参数,则通告聚合的IPv6路由。

cost value:聚合路由的开销,取值范围为1~16777215,缺省值为所有被聚合的路由中最大的开销值。

【使用指导】

本命令只适用于ABR,用来对当前区域进行路由聚合。对于落入该聚合网段的路由,ABR向其它区域只发送一条聚合后的路由。一个区域可配置多条聚合网段,这样OSPFv3可对多个网段进行聚合。

当配置了undo abr-summary命令后,原来被聚合的路由将重新被发布。

【举例】

# 将OSPFv3区域1中两条路由2000:1:1:1::/64、2000:1:1:2::/64的路由聚合成一条前缀2000:1:1::/48向其它区域发送。

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] area 1

[Sysname-ospfv3-1-area-0.0.0.1] abr-summary 2000:1:1:: 48

1.1.2  asbr-summar (OSPFv3 view)

asbr-summary命令用来配置ASBR路由聚合。

undo asbr-summary命令用来取消该配置。

【命令】

asbr-summary ipv6-address prefix-length [ cost cost | not-advertise | nssa-only | tag tag ] *

undo asbr-summary ipv6-address prefix-length

【缺省情况】

ASBR不对路由进行聚合。

【视图】

OSPFv3视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

ipv6-address:聚合路由的目的IPv6地址。

prefix-length:聚合路由的目的IPv6地址前缀长度,取值范围为0~128。它指定地址中有多少连续的位组成IPv6网络前缀,即IPv6地址中的网络地址部分。

cost cost:聚合路由的开销,取值范围为1~16777214。如果未指定本参数,cost取所有被聚合的路由中最大的开销值作为聚合路由的开销;如果是Type-7 LSA转化成的Type-5 LSA描述的路由匹配聚合、且是Type2外部路由,则cost取所有被聚合的路由中最大的开销值加1作为聚合路由的开销。

not-advertise:不通告聚合路由。如果未指定本参数,将通告聚合路由。

nssa-only设置Type-7 LSA的P比特位为不置位,即在对端路由器上不能转为Type-5 LSA。缺省时,Type-7 LSA的P比特位被置位,即在对端路由器上可以转为Type-5 LSA(如果本地路由器是ABR,则会检查骨干区域是否存在FULL状态的邻居,当FULL状态的邻居存在时,产生的Type-7 LSA中P比特位不置位)。

tag tag:聚合路由的标记,取值范围为0~4294967295。

【使用指导】

如果本地路由器是ASBR,对引入的聚合地址范围内的Type-5 LSA描述的路由进行聚合;当配置了NSSA区域时,对引入的聚合地址范围内的Type-7 LSA描述的路由进行聚合。

如果本地路由器同时是ASBR和ABR,并且是NSSA区域的转换路由器,则对由Type-7 LSA转化成的Type-5 LSA描述的路由进行聚合处理;如果不是NSSA区域的转换路由器,则不进行聚合处理。

配置asbr-summary命令后,对处于聚合地址范围内的外部路由,本地路由器只向邻居路由器发布一条聚合后的路由;配置undo asbr-summary命令后,原来被聚合的外部路由将重新被发布。

【举例】

# 配置OSPFv3进程1对引入的路由进行聚合,聚合路由为2000::/16,开销值为100,标记为2。

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] asbr-summary 2000:: 16 cost 100 tag 2

1.1.3  area

area命令用来创建OSPFv3区域,并进入区域视图。

undo area命令用来删除指定的OSPFv3区域。

【命令】

area area-id

undo area area-id

【缺省情况】

没有创建OSPFv3区域。

【视图】

OSPFv3视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

area-id:区域的标识,可以是十进制整数(取值范围为0~4294967295,系统会将其处理成IPv4地址格式)或IPv4地址格式。

【举例】

# 进入OSPFv3区域0视图。

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] area 0

[Sysname-ospfv3-1-area-0.0.0.0]

1.1.4  bandwidth-reference (OSPFv3 view)

bandwidth-reference命令用来配置计算链路开销时所依据的带宽参考值。

undo bandwidth-reference命令用来恢复缺省情况。

【命令】

bandwidth-reference value

undo bandwidth-reference

【缺省情况】

计算链路开销时所依据的带宽参考值为100Mbps

【视图】

OSPFv3视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

value:计算链路开销时所依据的带宽参考值,取值范围为1~4294967,单位为Mbps。

【使用指导】

OSPFv3有两种方式来配置接口的开销值,第一种方法是在接口视图下直接配置开销值;第二种方法是配置接口的带宽参考值,OSPFv3根据带宽参考值自动计算接口的开销值,计算公式为:接口开销=带宽参考值÷接口带宽,当计算出来的开销值大于65535,开销取最大值65535;当计算出来的开销值小于1时,开销取最小值1。

如果没有在接口视图下显式的配置此接口的开销值,OSPFv3会根据该接口的带宽自动计算其开销值.

【举例】

# 配置计算链路开销时所依据的带宽参考值为1000Mbps。

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] bandwidth-reference 1000

1.1.5  default tag

default tag命令用来配置引入外部路由的全局标记。

undo default tag命令用来恢复缺省情况。

【命令】

default tag tag

undo default tag

【缺省情况】

引入外部路由的全局标记为1

【视图】

OSPFv3视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

tag:外部路由的全局标记,取值范围为0~4294967295。

【使用指导】

如果在配置相关命令时没有指定标记,则缺省使用本命令配置的全局标记。

【举例】

# 配置OSPFv3引入外部路由的标记为2。

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] default tag 2

【相关命令】

·     default-route-advertise (OSPFv3 view)

l     import-route

l     route-tag(MPLS命令参考/MPLS L3VPN)

1.1.6  default-cost (OSPFv3 area view)

default-cost命令用来配置发送到Stub区域或NSSA区域的缺省路由的开销。

undo default-cost命令用来恢复缺省情况。

【命令】

default-cost cost

undo default-cost

【缺省情况】

发送到Stub区域或NSSA区域的缺省路由的开销为1。

【视图】

OSPFv3区域视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

cost:发送到Stub区域或NSSA区域的缺省路由的开销,取值范围为0~16777214。

【使用指导】

该命令只有在Stub区域的ABR或NSSA区域的ABR/ASBR上配置才能生效。

【举例】

# 将OSPFv3区域1设置为Stub区域,使发送到该Stub区域的缺省路由开销为60。

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] area 1

[Sysname-ospfv3-1-area-0.0.0.1] stub

[Sysname-ospfv3-1-area-0.0.0.1] default-cost 60

【相关命令】

l     nssa (OSPFv3 area view)

l     stub (OSPFv3 area view)

1.1.7  default-route-advertise (OSPFv3 view)

default-route-advertise命令用来将缺省路由引入到OSPFv3路由区域。

undo default-route-advertise命令用来恢复缺省情况。

【命令】

default-route-advertise [ [ always | permit-calculate-other ] | cost cost | route-policy route-policy-name | tag tag | type type ] *

undo default-route-advertise

【缺省情况】

没有引入缺省路由。

【视图】

OSPFv3视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

always:如果当前路由器的路由表中没有缺省路由,使用此参数可产生一个描述缺省路由的AS-external-LSA发布出去。如果没有指定该关键字,仅当本地路由器的路由表中存在缺省路由时,才可以产生一个描述缺省路由的AS-external-LSA发布出去。

permit-calculate-other:当路由器产生并发布了一个描述缺省路由的AS-external-LSA时,指定此参数的路由器仍然会计算来自于其他路由器的缺省路由,未指定此参数的路由器不再计算来自其他路由器的缺省路由。当路由器没有产生一个描述缺省路由的AS-external-LSA时,无论是否指定此参数,路由器都会计算来自其他路由器的缺省路由。

cost cost:该缺省路由的度量值,取值范围为0~16777214,缺省值为1。

route-policy route-policy-name:路由策略名,为1~63个字符的字符串,区分大小写。只有当前路由器的路由表中存在缺省路由,并且有路由匹配route-policy-name指定的路由策略,才可以产生一个描述缺省路由的AS-external-LSA发布出去,指定的路由策略会影响AS-external-LSA中的值。如果同时指定always参数,不论当前路由器的路由表中是否有缺省路由,只要有路由匹配指定的路由策略,就将产生一个描述缺省路由的AS-external-LSA发布出去,指定的路由策略会影响AS-external-LSA中的值。

tag tag:外部路由的标记,取值范围为0~4294967295。如果未指定本参数,将根据default tag命令的配置进行取值。

type type:该AS-external-LSA的类型,取值范围为1~2,缺省值为2。

【使用指导】

使用import-route命令不能引入缺省路由,如果要引入缺省路由,必须使用本命令。当本地路由器的路由表中没有缺省路由时,要产生一个描述缺省路由的AS-external-LSA应使用always关键字。

【举例】

# 将产生的缺省路由引入到OSPFv3自治系统中(本地路由器没有缺省路由)。

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] default-route-advertise always

【相关命令】

l     import-route (OSPFv3 area view)

1.1.8  display ospfv3

display ospfv3命令用来显示OSPFv3的进程信息。

【命令】

display ospfv3 [ process-id ] [ verbose ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的概要信息。

verbose:显示OSPFv3进程的详细信息。如果未指定本参数,将显示OSPFv3进程的概要信息。

【举例】

# 显示所有OSPFv3进程的详细信息。

<Sysname> display ospfv3 verbose

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

 RouterID: 1.1.1.1          Router type:  ABR  ASBR  NSSA

 Route tag: 0

 Route tag check: Disabled

 Multi-VPN-Instance: Disabled

 Type value of extended community attributes:

    Domain ID : 0x0005

    Route type: 0x0306

    Router ID : 0x0107

 Domain-id: 0.0.0.0

 DN-bit check: Enabled

 DN-bit set: Enabled

 Originating router-LSAs with maximum metric

    Condition: On startup while BGP is converging for 600 seconds, State: Inactive

    Advertise summary-LSAs with metric 16711680

    Advertise external-LSAs with metric 16711680

    Advertise intra-area-prefix-LSAs with maximum metric

 SPF-schedule-interval: 5 50 200

 LSA generation interval: 5

 LSA arrival interval: 1000

 Transmit pacing: Interval: 20 Count: 3

 Default ASE parameters: Tag: 1

 Route preference: 10

 ASE route preference: 150

 SPF calculation count: 0

 External LSA count: 0

 LSA originated count: 0

 LSA received count: 0

 Area count: 2  Stub area Count: 0  NSSA area Count: 1

 ExChange/Loading neighbors: 0

 Max equal cost paths: 32

 Up interfaces: 1

 Full neighbors: 1

 Normal areas with up interfaces: 1

 Calculation trigger type: Full

 Current calculation type: SPF calculation

 Current calculation phase: Calculation area topology

 Redistribute timer: Off

 Redistribute schedule type: RIB

 Redistribute route count: 0

 Process reset state: N/A

 Current reset type: N/A

 Next reset type: N/A

 Reset prepare message replied: -/-/-/-

 Reset process message replied: -/-/-/-

 Reset phase of module:

   M-N/A, P-N/A, S-N/A, C-N/A, R-N/A

 

 Area: 0.0.0.0

 Area flag: Normal

 SPF scheduled count: 0

 ExChange/Loading neighbors: 0

 LSA count: 0

 IPsec profile name: Profile000

 Up interfaces: 0

 MTU: 1440

 Default cost: 1

 Created by Vlink

 Process reset state: N/A

 Current reset type: N/A

 Reset prepare message replied: -/-/-/-

 Reset process message replied: -/-/-/-

 Reset phase of module:

   M-N/A, P-N/A, S-N/A, C-N/A, R-N/A

 

 Area: 0.0.0.2

 Area flag: Normal

 SPF scheduled count: 0

 ExChange/Loading neighbors: 0

 LSA count: 0

 Up interfaces: 1

 MTU: 1500

 Default cost: 1

 Process reset state: N/A

 Current reset type: N/A

 Reset prepare message replied: -/-/-/-

 Reset process message replied: -/-/-/-

 Reset phase of module:

   M-N/A, P-N/A, S-N/A, C-N/A, R-N/A

 

 Area: 0.0.0.3

 Area flag: NSSA

 7/5 translator state: Disabled

 7/5 translate stability timer interval: 0

 SPF Scheduled Count: 0

 ExChange/Loading neighbors: 0

 LSA Count: 0

 Up interfaces: 0

 MTU: 1440

 Default cost: 1

 Process reset flag: N/A

 Current reset type: N/A

 Reset prepare message replied: -/-/-/-

 Reset process message replied: -/-/-/-

 Reset phase of module:

   M-N/A, P-N/A, S-N/A, C-N/A, R-N/A

表1-1 display ospfv3 verbose命令显示信息描述表

字段

描述

OSPFv3 Process 1 with Router ID 1.1.1.1

OSPFv3进程是1,Router ID是1.1.1.1

RouterID

本路由器的Router ID

Router type

路由器类型,取值为:

·     ABR表示区域边界路由器

·     ASBR表示自治系统边界路由器

·     NSSA表示支持NSSA区域

为空表示非上面三种情况

Route tag

当前进程引入外部路由的缺省标记

Route tag check

当前进程是否使能检查OSPFv3 LSA的标记

Multi-VPN-Instance

当前进程对PE、多VPN实例的支持情况:

·     Multi-VPN-Instance:Disabled表示不支持多VPN实例

·     Multi-VPN-instance:Enabled表示支持多VPN实例

·     PE Router, Multi-VPN-Instance:Enabled表示为PE

Type value of extended community attributes

OSPFv3扩展团体属性的类型编码

Domain-id

OSPFv3域标识符

DN-bit check

当前进程是否使能检查OSPFv3 LSADN

DN-bit set

当前进程是否使能设置OSPFv3 LSADN

Originating router-LSAs with maximum metric/Originating router-LSAs with R-bit clear

Router LSA中使用最大开销值发布/Router LSA中清除R-bit

Condition

Stub路由器的状态:

·     Always代表始终生效

·     On startup while BGP is converging for XXX seconds代表BGP收敛超时时间

·     On startup for XXX seconds代表重启后生效时间

State

Stub路由器是否生效:

·     Active表示生效

·     Inactive表示不生效

Advertise summary-LSAs with metric

Summary LSA发布使用的开销值

Advertise external-LSAs with metric

外部LSA发布使用的开销值

Advertise intra-area-prefix-LSAs with maximum metric

Intra-area-prefix-LSA发布使用的开销值

SPF-schedule-interval

进行SPF计算的时间间隔

LSA generation interval

LSA生成时间间隔

LSA arrival interval

LSA重复到达的最小时间间隔

Transmit pacing

接口发送LSU报文的速率,其中:

·     Interval表示接口发送LSU报文的时间间隔

·     Count表示接口一次发送LSU报文的最大个数

Default ASE parameters

引入外部路由的缺省参数值,其中Tag代表路由标记

Route preference

内部路由优先级

ASE route preference

外部路由优先级

SPF calculation count

OSPFv3进程的路由计算总数

External LSA count

外部LSA数目,其中:

·     Count:LSA数目

·     checksum Sum:校验和

LSA originated count

产生的LSA数目

LSA received count

接收的LSA数目

Area count

区域总数目

Stub area Count

Stub区域数目

NSSA area Count

NSSA区域数目

ExChange/Loading neighbors

处于ExChange/Loading状态的邻居数

Calculation trigger type

触发路由计算的类型,具体如下:

·     Full:触发全部路由计算

·     Area topology change:区域拓扑改变触发路由计算

·     Intra router change:增量的区域内路由器路由变化

·     ASBR change:增量的ASBR路由变化

·     Full IP prefix:触发全部IP前缀计算

·     Full intra AS:触发全部AS内部前缀计算

·     Inc intra AS:触发增量AS内部前缀计算

·     Full inter AS:触发全部AS外部前缀计算

·     Inc inter AS:触发增量AS外部前缀计算

·     Nexthop calculation:触发下一跳计算

·     N/A:未触发计算

Current calculation type

当前路由计算的类型,具体如下:

·     SPF calculation:进行区域SPF计算

·     Intra router calculation:区域内路由器路由计算

·     ASBR calculation:区域间ASBR路由计算

·     Inc intra router:增量区域内路由器路由计算

·     Inc ASBR calculation:增量区域间ASBR路由计算

·     Full intra AS:进行全部AS内部前缀计算

·     Inc intra AS:进行增量AS内部前缀计算

·     Full inter AS:进行全部AS外部前缀计算

·     Inc inter AS:进行增量AS外部前缀计算

·     N/A:未触发计算

Current calculation phase

当前路由计算调度运行到的阶段,具体如下:

·     Calculation area topology:计算区域拓扑

·     Calculation router:计算路由器路由

·     Calculation intra AS:计算AS内部路由

·     Calculation ASBR:计算ASBR路由

·     Calculation inter AS:计算AS外部路由

·     Calculation end:计算收尾阶段

·     N/A:未触发计算

Redistribute timer

引入路由定时器,其中:

·     Off: 关闭

·     On:开启

Redistribute schedule type

引入路由调度类型,其中:

·     RIB: 触发遍历RIB表进行引入

·     Self: 触发遍历自身引入表进行引入

·     N/A:未触发引入

Redistribute route count

引入路由计数

Process reset state

进程重启状态标志,具体如下:

·     N/A:进程未重启

·     Under reset:进程正在重启

·     Under RIB smooth:进程正在同步RIB路由

Current reset type

当前进程重启类型,具体如下:

·     N/A:进程未重启

·     GR quit:GR异常退出进行普通重启

·     Delete:删除OSPFv3进程

·     Undo router-id:删除Router-id

·     Set router-id:设置Router-id

Next reset type

即将调度进程重启类型,具体如下:

·     N/A:进程未重启

·     GR quit:GR异常退出进行普通重启

·     Delete:删除OSPFv3进程

·     Undo router-id:删除Router-id

·     Set router-id:设置Router-id

Reset prepare message replied

响应准备重启消息的模块,具体如下:

·     P代表邻居维护模块

·     S代表LSDB同步模块

·     C代表路由计算模块

·     R代表路由引入模块

Reset process message replied

响应进程重启消息的模块,具体如下:

·     P代表邻居维护模块

·     S代表LSDB同步模块

·     C代表路由计算模块

·     R代表路由引入模块

Reset phase of module

各模块所处重启阶段。其中M代表主控制模块,P代表邻居维护模块,S代表LSDB同步模块,其阶段有:

·     N/A:未重启

·     Delete ASE:删除所有ASE LSA

·     Delete area LSA:删除区域相关LSA

·     Delete area IF:删除区域下接口

C代表路由计算模块,其阶段有:

·     N/A:未重启

·     Delete topology:删除区域拓扑

·     Delete router:删除路由器路由

·     Delete intra AS:删除AS内部路由

·     Delete inter AS:删除AS外部路由

·     Delete ASBR:删除ASBR路由

R代表路由引入模块,其阶段有:

·     N/A:未重启

·     Delete import:删除引入路由

Area

区域信息

Area flag

区域类型

SPF scheduled count

OSPF区域的路由计算总数

LSA count

LSA数目,其中:

·     Count:LSA数目

·     checksum Sum:校验和

IPsec profile name

IPsec安全框架名

MTU

区域的MTU

Default cost

路由的缺省开销值

Created by Vlink

区域由Vlink创建

7/5 translator state

Type-7 LSA转换为Type-5 LSA的转换者状态,取值为:

·     Enabled:表示本设备是通过命令指定的Type-7 LSA转换为Type-5 LSA的转换者

·     Elected:表示本设备是通过选举指定的Type-7 LSA转换为Type-5 LSA的转换者

·     Disabled:表示本设备不是Type-7 LSA转换为Type-5 LSA的转换者

7/5 translate stability timer interval

Type-7 LSA转换为Type-5 LSA转换稳定定时器的超时时间间隔,单位为秒

 

1.1.9  display ospfv3 abr-asbr

display ospfv3 abr-asbr命令用来显示到OSPFv3的区域边界路由器和自治系统边界路由器的路由信息。

【命令】

display ospfv3 [ process-id ] abr-asbr

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程下到区域边界路由器和自治系统边界路由器的路由信息。

【举例】

# 显示所有OSPFv3进程的ABR和ASBR路由。

<Sysname> display ospfv3 abr-asbr

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

Destination :1.1.1.2                                   Rtr Type : ABR

 Area        :0.0.0.0                                   Path Type: Intra

 NextHop     :FE80:1:1::1                               Cost     : 1

 

 Destination :1.1.1.3                                   Rtr Type : ASBR

 Area        :0.0.0.0                                   Path Type: Intra

 NextHop     :FE80:2:1::1                               Cost     : 1

表1-2 display ospfv3 abr-asbr命令显示信息描述表

字段

描述

OSPFv3 Process 1 with Router ID 1.1.1.1

OSPFv3进程是1,Router ID是1.1.1.1

Destination

ABR或ASBR的路由器ID

Rtr Type

路由器类型,包括ABR和ASBR

Area

下一跳地址所在的区域ID

Path Type

到ABR或ASBR的路由类型,取值为:

·     Intra表示区域内路由

·     Inter表示区域间路由

NextHop

下一跳地址

Cost

从本路由器到达ABR或ASBR的开销

 

1.1.10  display ospfv3 abr-summary

display ospfv3 abr-summary命令用来显示OSPFv3的ABR聚合信息。

【命令】

display ospfv3 [ process-id ] [ area area-id ] abr-summary [ ipv6-address prefix-length ] [ verbose ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:当前的聚合配置所在进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的ABR聚合信息。

area area-id:显示位于指定区域的ABR聚合信息。如果未指定本参数,将显示所有区域的ABR聚合信息。area-id为区域的标识,可以是十进制整数(取值范围为0~4294967295,系统会将其处理成IPv4地址格式)或IPv4地址格式。

ipv6-address prefix-length:显示指定IPv6地址的ABR聚合信息。ipv6-address表示IPv6地址前缀;prefix-length表示IPv6地址前缀长度,取值范围为0~128。如果未指定本参数,将显示所有ABR聚合信息。

verbose:显示ABR聚合详细信息。如果未指定本参数,将显示ABR聚合的概要信息。

【举例】

# 显示OSPFv3进程1的ABR聚合信息。

<Sysname> display ospfv3 1 abr-summary

 

             OSPFv3 Process 1 with Router ID 2.2.2.2

 

                     Area: 1.1.1.1

 Total summary addresses: 1

 

 Prefix      : 1000:4::/32

 Status      : Advertise

 NULL0       : Active

 Cost        : 1 (Configured)

 Routes count: 2

表1-1 display ospfv3 abr-summary命令显示信息描述表

字段

描述

Total summary addresses

聚合路由的路由数

Area

聚合路由所在的区域

Prefix

聚合路由的地址前缀

Status

聚合路由的状态:

·     Advertise:已发布

·     Not-advertise:未发布

NULL0

NULL0路由:

·     Active:激活

·     Inactive:未激活

Cost

聚合路由的开销

·     Configured:配置的聚合开销

·     Not Configured:未配置聚合开销

Routes count

被聚合的路由数

 

# 显示OSPFv3进程1的ABR聚合详细信息。

<Sysname> display ospfv3 1 abr-summary verbose

 

             OSPFv3 Process 1 with Router ID 2.2.2.2

 

                        Area: 1.1.1.1

Total summary addresses: 1

 

 Prefix      : 1000:4::/32

 Status      : Advertise

 NULL0       : Active

 Cost        : 1 (Configured)

 Routes count: 2

   Destination                                        Metric

   1000:4:10:3::/96                                   1

   1000:4:11:3::/96                                   1

表1-2 display ospfv3 abr-summary verbose命令显示信息描述表

字段

描述

Destination

被聚合路由的目的地址

Metric

路由的开销值

 

1.1.11  display ospfv3 asbr-summary

display ospfv3 asbr-summary命令用来显示OSPFv3的ASBR聚合信息。

【命令】

display ospfv3 [ process-id ] asbr-summary [ ipv6-address prefix-length ] [ verbose ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:当前的聚合配置所在进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的ASBR聚合信息。

ipv6-address prefix-length:显示指定IPv6地址的ASBR聚合信息。ipv6-address表示IPv6地址前缀;prefix-length表示IPv6地址前缀长度,取值范围为0~128。如果未指定本参数,将显示所有ASBR聚合信息。

verbose:显示ASBR聚合详细信息。如果未指定本参数,将显示ASBR聚合的概要信息。

【举例】

# 显示OSPFv3进程1的ASBR聚合信息。

<Sysname> display ospfv3 1 asbr-summary

 

               OSPFv3 Process 1 with Router ID 2.2.2.2

 

 Total summary addresses: 1

 

 Prefix      : 1000:4::/32

 Status      : Advertise

 NULL0       : Active

 Cost        : 1 (Configured)

 Tag         : (Not configured)

 Nssa-only   : (Not configured)

 Routes count: 2

表1-3 display ospfv3 asbr-summary命令显示信息描述表

字段

描述

Total summary addresses

聚合路由的路由数

Prefix

聚合路由的地址前缀和前缀长度

Status

聚合路由的状态:

·     Advertise:已发布

·     Not-advertise:未发布

NULL0

NULL0路由:

·     Active:激活

·     Inactive:未激活

Cost

聚合路由的开销:

·     Configured:配置的聚合开销

·     Not configured:未配置聚合开销

Tag

聚合路由的标记:

·     Configured:配置的聚合标记

·     Not configured:未配置聚合标记

Nssa-only

是否配置Nssa-only

·     Configured:配置了Nssa-only

·     Not configured:未配置Nssa-only

Routes count

被聚合的路由数

 

# 显示OSPFv3进程1的ASBR聚合详细信息。

<Sysname> display ospfv3 1 asbr-summary verbose

 

               OSPFv3 Process 1 with Router ID 2.2.2.2

 

 Total summary addresses: 1

 

 Prefix      : 1000:4::/32

 Status      : Advertise

 NULL0       : Active

 Cost        : 1 (Configured)

 Tag         : (Not configured)

 Nssa-only   : (Not configured)

 Routes count: 2

  Destination                                 Protocol Process Type Metric

  1000:4:10:3::/96                            Static   0       2    1

  1000:4:11:3::/96                            Static   0       2    1

表1-4 display ospfv3 asbr-summary verbose命令显示信息描述表

字段

描述

Destination

被聚合路由的前缀和前缀长度

Protocol

被聚合路由的协议类型

Process

被聚合路由的协议进程ID

Type

被聚合路由的类型

Metric

被聚合路由的开销

 

1.1.12  display ospfv3 graceful-restart

display ospfv3 graceful-restart命令用来显示OSPFv3进程的GR状态信息。

【命令】

display ospfv3 [ process-id ] graceful-restart [ verbose ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的GR状态信息。

verbose:显示GR详细状态信息。如果未指定本参数,将显示OSPFv3进程的GR状态概要信息。

【举例】

# 显示所有OSPFv3进程的GR状态信息(Restarter)。

<Sysname> display ospfv3 graceful-restart

 

               OSPFv3 Process 1 with Router ID 3.3.3.3

 

 Graceful-restart capability     : Enable

 Graceful-restart support        : Planned and un-planned, Partial

 Helper capability               : Enable

 Helper support                  : Planned and un-planned

 Current GR state                : Normal

 Graceful-restart period         : 120 seconds

 Number of neighbors under helper: 0

 Number of restarting neighbors  : 0

 Last exit reason:

   Restarter: None

   Helper   : None

表1-5 display ospfv3 graceful-restart命令显示信息描述表

字段

描述

OSPFv3 Process 1 with Router ID 3.3.3.3

OSPFv3进程是1,Router ID是3.3.3.3的GR状态信息

Graceful-restart capability

是否使能OSPFv3协议的GR能力

·     Enable:使能

·     Disable:未使能

Graceful-restart support

进程GR支持模式(GR使能时才显示):

·     Planned and un-planned:支持计划和非计划GR

·     Planned only:只支持计划性GR

·     Partial:支持接口级GR

·     Global:不支持接口级GR,支持全局GR

Helper capability

是否使能OSPFv3协议的GR Helper能力

·     Enable:使能

·     Disable:未使能

Helper support

显示Helper的支持模式(Helper使能时才显示):

·     Strict LSA check:Helper端支持严格的LSA检查

·     Planned and un-planned:支持作为计划和非计划GR的Helper

·     Planned only:只支持作为计划GR的Helper

Current GR state

当前GR的状态,其状态有如下几种:

·     Normal:表示正处在非GR的正常状态

·     Under GR:表示正在GR过程中,自身作为Restarter

·     Under Helper:表示正在GR过程中,自身作为Helper

Graceful-restart period

GR重启间隔时间

Number of neighbors under helper

处于GR Helper模式的邻居个数

Number of restarting neighbors

处于GR Restarter模式的邻居个数

Last exit reason

上次退出原因,其中:

·     Restarter:表示退出Restarter的原因

¡     None:无

¡     Completed:GR完成

¡     Interval timer is fired:GR定时器超时

¡     Interface state change:接口状态变化

¡     Received 1-way hello:收到邻居的1-way Hello报文

¡     Reset neighbor:邻居发生Reset操作

¡     DR or BDR change:DR或BDR发生变化

·     Helper:表示退出Helper的原因

¡     None:无

¡     Completed:GR完成

¡     Received 1-way hello:收到邻居的1-way Hello报文

¡     Grace Period timer is fired:GR定时器超时

¡     Lsa check failed:LSA检查未通过

¡     Reset neighbor:邻居发生Reset操作

¡     Received MAXAGE gracelsa but neighbor is not full:收到到达老化时间的Grace LSA,但邻居状态未达到FULL状态

 

# 显示OSPFv3进程的GR详细状态信息(Restarter)。

<Sysname> display ospfv3 graceful-restart verbose

 

               OSPFv3 Process 1 with Router ID 3.3.3.3

 

 Graceful-restart capability     : Enable

 Graceful-restart support        : Planned and un-planned, Partial

 Helper capability               : Enable

 Helper support                  : Planned and un-planned

 Current GR state                : Normal

 Graceful-restart period         : 120 seconds

 Number of neighbors under helper: 0

 Number of restarting neighbors  : 0

 Last exit reason:

   Restarter: None

   Helper   : None

 

 Area: 0.0.0.0

 Area flag: Normal

 Area up interface count: 1

 

 Virtual-link Neighbor-ID: 100.1.1.1, Neighbor-state: Full

 Restarter state: Normal   State: P-2-P    Type: Virtual

 Interface: 6696 (Vlan-interface200), Instance-ID: 0

 Local  IPv6 address: 200:1:FFFF::1

 Remote IPv6 address: 201:FFFF::2

 Transit area: 0.0.0.1

 Last exit reason:

   Restarter: None

   Helper   : None

 Neighbor       GR state       Last helper exit reason

 100.1.1.1      Normal         None

 

 Area: 0.0.0.1

 Area flag: Transit

 Area up interface count: 3

 

 Interface: 5506 (Vlan-interface3), Instance-ID: 0

 Restarter state: Normal   State: DR       Type: Broadcast

 Last exit reason:

   Restarter: None

   Helper   : None

 Neighbor count of this interface: 0

 Number of neighbors under helper: 0

 

 Interface: 6696 (Vlan-interface200), Instance-ID: 0

 Restarter state: Normal   State: DR       Type: Broadcast

 Last exit reason:

   Restarter: None

   Helper   : None

 Neighbor count of this interface: 1

 Number of neighbors under helper: 0

 Neighbor       GR state       Last helper exit reason

 100.1.1.1      Normal         None

 

 Sham-link Neighbor-ID: 100.1.1.1, Neighbor-state: Full

 Restarter state: Normal   State: P-2-P    Type: Sham

 Interface-ID: 2147483649, Instance-ID: 0

 Source      : 8000:88::FFFF

 Destination : 7000:77::FFFF

 Last exit reason:

   Restarter: None

   Helper   : None

 Neighbor       GR state       Last helper exit reason

 100.1.1.1      Normal         None

 

 Area: 0.0.0.5

 Area flag: NSSANoSummaryNoImportRoute

 7/5 translator state: Disabled

 7/5 translate stability timer interval: 0

 Area up interface count: 0

表1-6 display ospfv3 graceful-restart命令显示信息描述表

字段

描述

Area

区域信息

Area flag

区域类型:

·     Normal:普通区域

·     Transit:传输区

·     Stub:Stub区域

·     StubNoSummary:完全Stub区域

·     NSSA:NSSA区域

·     NSSANoSummary:完全NSSA区域

·     NSSANoSummaryNoImportRoute:完全NSSA区域,配置了no-import-route参数

7/5 translator state

Type-7 LSA转换为Type-5 LSA的转换者状态,取值为:

·     Enabled:表示通过命令指定Type-7 LSA转换为Type-5 LSA的转换者

·     Elected:表示通过选举指定Type-7 LSA转换为Type-5 LSA的转换者

·     Disabled:表示不是Type-7 LSA转换为Type-5 LSA的转换者

7/5 translate stability timer interval

Type-7 LSA转换为Type-5 LSA转换稳定定时器的超时时间,单位为秒

Area up interface count

区域下up的接口计数

Interface

区域内的普通接口,以及虚连接所属的出接口

Instance-ID

接口实例ID

Restarter state

作为Restarter的状态

State

接口状态

Type

接口的网络类型

Neighbor count of this interface

接口下的邻居个数

Neighbor

邻居Router ID

GR state

邻居的GR状态:

·     Normal:普通状态

·     Under GR:进程正在GR

·     Under Helper:进程正在作为GR Helper

Last helper exit reason

上一次作为该邻居Helper退出的原因

Virtual-link Neighbor-ID

虚连接的邻居Router ID

Neighbor-State

虚连接和邻居的状态,包括Down、Init、2-Way、ExStart、Exchange、Loading和Full

Local  IPv6 address

本地IPv6地址

Remote IPv6 address

对端IPv6地址

Transit area

传输区域ID

Sham-link Neighbor-ID

Shamlink的邻居Router ID

Source

Shamlink源地址

Destination

Shamlink目的地址

 

1.1.13  display ospfv3 interface

display ospfv3 interface命令用来显示OSPFv3的接口信息。

【命令】

display ospfv3 [ process-id ] interface [ interface-type interface-number | verbose ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。

interface-type interface-number:接口类型和接口编号。显示指定接口的详细信息。

verbose:显示所有接口的详细信息。

【使用指导】

·     如果未指定OSPFv3进程号,将显示所有OSPFv3进程的接口概要信息。

·     如果未指定接口或参数verbose,将显示所有接口的概要信息。

【举例】

# 显示运行OSPFv3的接口Vlan-interface1的信息。

<Sysname> display ospfv3 interface vlan-interface 1

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

 Area: 0.0.0.0

-------------------------------------------------------------------------

 Vlan-interface1 is up, line protocol is up

  Interface ID 65697        Instance ID 0

  IPv6 prefixes

    fe80::200:12ff:fe34:1  (Link-Local address)

    2001::1

  Cost: 1       State: BDR       Type: Broadcast    MTU: 1500

  Priority: 1

  Designated router: 2.2.2.2

  Backup designated router: 1.1.1.1

  Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit delay 1

  Neighbor count is 1, Adjacent neighbor count is 1

  IPsec profile name: profile001

  Exchanging/Loading neighbors: 0

Wait timer: Off,  LsAck timer: Off

  Prefix-suppression is enabled

表1-7 display ospfv3 interface命令显示信息描述表

字段

描述

Area

接口所属的区域ID

Interface ID

接口ID

Instance ID

实例ID

IPv6 prefixes

IPv6前缀

Cost

接口开销

State

根据OSPFv3接口状态机确定的当前接口状态,取值为:

·     Down表示在接口上没有发送和接收任何路由协议的报文

·     Waiting表示接口开始发送和接收Hello报文,并试图去识别网络上的DR和BDR

·     P-2-P表示接口将每隔HelloInterval的时间间隔发送Hello报文,并尝试和接口链路另一端相连的路由器建立邻接关系

·     DR表示路由器是所连网络的指定路由器

·     BDR表示路由器是所连网络的备份指定路由器

·     DROther表示路由器既不是所连网络的指定路由器,也不是所连网络的备份指定路由器

Type

接口的网络类型,取值为:

·     PTP表示网络类型为点对点

·     PTMP表示网络类型为点对多点

·     Broadcast表示网络类型为广播

·     NBMA表示网络类型为NBMA

MTU

接口MTU的值

Priority

接口的DR优先级

Designated router

本链路上的DR

Backup designated router

本链路上的BDR

Timer interval configured

配置的OSPFv3定时器,分别定义如下:

·     Hello:接口发送Hello报文的时间间隔

·     Dead:邻居的失效时间

·     Poll:NBMA网络上发送轮询Hello报文的时间间隔

·     Retransmit:接口重传LSA的时间间隔

·     Transmit delay:接口对LSA的传输延迟时间

Neighbor count

接口的邻居数目

Adjacent neighbor count

接口的邻接数目

IPsec profile name

IPsec安全框架名

Exchanging/Loading neighbors

处于Exchanging或Loading状态的邻居个数

Wait timer

等待定时器,其中:

·     Off: 关闭

·     On: 开启

LsAck timer

报文确认定时器,其中:

·     Off: 关闭

·     On: 开启

Prefix-suppression is enabled

接口处于前缀抑制

 

1.1.14  display ospfv3 lsdb

display ospfv3 lsdb命令用来显示OSPFv3的链路状态数据库信息。

【命令】

display ospfv3 [ process-id ] lsdb [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network | nssa | router | unknown [ type ] } [ link-state-id ] [ originate-router router-id | self-originate ] | statistics | total | verbose ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的链路状态数据库信息。

external:显示链路状态数据库中Type-5 LSA(AS External LSA)的信息。

grace:显示链路状态数据库中Type-11 LSA(Grace LSA)的信息。

inter-prefix:显示链路状态数据库中Type-3 LSA(Inter-Area-Prefix LSA)的信息。

inter-router:显示链路状态数据库中Type-4 LSA(Inter-Area-Router LSA)的信息。

intra-prefix:显示链路状态数据库中Type-9 LSA(Intra-Area-Prefix LSA)的信息。

link:显示链路状态数据库中Type-8 LSA(Link LSA)的信息。

network:显示链路状态数据库中Type-2 LSA(Network LSA)的信息。

nssa:显示链路状态数据库中Type-7 LSA(NSSA LSA)的信息。

router:显示链路状态数据库中Type-1 LSA(Router LSA)的信息。

unknown:显示链路状态数据库中未知类型LSA的信息。

type:LSA类型,取值范围十六进制0~FFFF。如果未指定本参数,将显示所有未知类型LSA的信息。

link-state-id:链路状态ID,IPv4地址形式。

originate-router router-id:发布该LSA的路由器的Router ID。

self-originate:显示本地路由器自己产生的LSA的链路状态数据库信息。

statistics:显示链路状态数据库中LSA的统计信息。

total:显示链路状态数据库中各种LSA的总数。

verbose:显示详细信息。如果未指定本参数,将显示概要信息。

【举例】

# 显示OSPFv3的链路状态数据库信息。

<Sysname> display ospfv3 lsdb

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

                  Link-LSA (Interface Vlan-interface1)

-------------------------------------------------------------------------

 Link State ID   Origin Router    Age   SeqNum     CkSum  Prefix

 0.15.0.8        2.2.2.2          0691  0x80000041 0x8315      1

 0.0.0.3         1.1.1.1          0623  0x80000001 0x0fee      1

 

                  Router-LSA (Area 0.0.0.1)

-------------------------------------------------------------------------

 Link State ID   Origin Router    Age   SeqNum     CkSum    Link

 0.0.0.0         1.1.1.1          0013  0x80000068 0x5d5f      2

 0.0.0.0         2.2.2.2          0024  0x800000ea 0x1e22      0

 

                  Network-LSA (Area 0.0.0.1)

-------------------------------------------------------------------------

 Link State ID   Origin Router    Age   SeqNum     CkSum

 0.15.0.8        2.2.2.2          0019  0x80000007 0x599e

 

                  Intra-Area-Prefix-LSA (Area 0.0.0.1)

-------------------------------------------------------------------------

 Link State ID   Origin Router    Age   SeqNum     CkSum  Prefix  Reference

 0.0.0.2         2.2.2.2          3600  0x80000002 0x2eed      2 Network-LSA

 0.0.0.1         2.2.2.2          0018  0x80000001 0x1478      1 Network-LSA

表1-8 display ospfv3 lsdb命令显示信息描述表

字段

描述

Link State ID

链路状态ID

Origin Router

产生LSA的路由器

Age

LSA老化时间

SeqNum

LSA序列号

CkSum

LSA校验和

Prefix

前缀数目

Link

链路数目

Reference

引用的LSA类型

 

# 显示OSPFv3链路状态数据库中Link-LSA的信息。

<Sysname> display ospfv3 lsdb link

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

                  Link-LSA (Interface Vlan-interface1)

-------------------------------------------------------------------------

  LS age            : 833

  LS Type           : Link-LSA

  Link State ID     : 0.15.0.8

  Originating Router: 2.2.2.2

  LS Seq Number     : 0x80000041

  Checksum          : 0x8315

  Length            : 56

  Priority          : 1

  Options           : 0x000013 (-|R|-|-|E|V6)

  Link-Local Address: fe80::200:5eff:fe00:100

  Number of Prefixes: 1

      Prefix        : 1001::/64

      Prefix Options: 0 (-|-|-|-)

表1-9 display ospfv3 lsdb link命令显示信息描述表

字段

描述

LS age

LSA老化时间

LS Type

LSA类型

Link State ID

链路状态ID

Originating Router

产生LSA的路由器

LS Seq Number

LSA序列号

Checksum

LSA校验和

Length

LSA长度

Priority

路由器优先级

Options

选项

Link-Local Address

链路本地地址

Number of Prefixes

前缀的数目

Prefix

地址前缀

Prefix Options

前缀选项

 

# 显示OSPFv3链路状态数据库中LSA的统计信息。

<System> display ospfv3 lsdb statistics

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

-------------------------------------------------------------------------

 Area ID         Router Network IntePre  InteRou IntraPre NSSA

 0.0.0.1         2      0       0        0       2        0

 0.0.0.3         1      0       0        0       1        1

 Total           2      0       0        0       3        1

-------------------------------------------------------------------------

                 Link   Grace   ASE

 Total           4      0       0

表1-10 display ospfv3 lsdb statistics命令显示信息描述表

字段

描述

Area ID

区域ID,显示该区域各类LSA的总数

Router

Type-1 LSA的数目

Network

Type-2 LSA的数目

IntePre

Type-3 LSA的数目

InteRou

Type-4 LSA的数目

IntraPre

Type-9 LSA的数目

NSSA

Type-7 LSA的数目

Link

Type-8 LSA的数目(只显示总数)

Grace

Type-11 LSA的数目

ASE

Type-5 LSA的数目(只显示总数)

Total

不同区域相同类型LSA的总数

 

# 显示OSPFv3的链路状态数据库的详细信息。

<Sysname> display ospfv3 lsdb verbose

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

                  Link-LSA (Interface Vlan-interface1)

-------------------------------------------------------------------------

 Link State ID   Origin Router    Age   SeqNum     CkSum  Prefix

 0.15.0.8        2.2.2.2          0691  0x80000041 0x8315      1

                 SendCnt: 0       RxmtCnt: 0       Status: Stale

 0.0.0.3         1.1.1.1          0623  0x80000001 0x0fee      1

                 SendCnt: 0       RxmtCnt: 0       Status: Stale

 

                  Router-LSA (Area 0.0.0.1)

-------------------------------------------------------------------------

 Link State ID   Origin Router    Age   SeqNum     CkSum    Link

 0.0.0.0         1.1.1.1          0013  0x80000068 0x5d5f      2

                 SendCnt: 0       RxmtCnt: 0       Status: Stale

 0.0.0.0         2.2.2.2          0024  0x800000ea 0x1e22      0

                 SendCnt: 0       RxmtCnt: 0       Status: Stale

 

                  Network-LSA (Area 0.0.0.1)

-------------------------------------------------------------------------

 Link State ID   Origin Router    Age   SeqNum     CkSum

 0.15.0.8        2.2.2.2          0019  0x80000007 0x599e

                 SendCnt: 0       RxmtCnt: 0       Status: Stale

 

                  Intra-Area-Prefix-LSA (Area 0.0.0.1)

-------------------------------------------------------------------------

 Link State ID   Origin Router    Age   SeqNum     CkSum  Prefix  Reference

 0.0.0.2         2.2.2.2          3600  0x80000002 0x2eed      2 Network-LSA

                 SendCnt: 0       RxmtCnt: 0       Status: Stale

 0.0.0.1         2.2.2.2          0018  0x80000001 0x1478      1 Network-LSA

                 SendCnt: 0       RxmtCnt: 0       Status: Stale

表1-11 display ospfv3 lsdb verbose命令显示信息描述表

字段

描述

SendCnt

待发送该LSA的接口数目

RxmtCnt

该LSA在重传列表中的数目

Status

LSA所处的状态:

·     Normal:正常状态

·     Delayed:延迟生成的LSA

·     Maxage routed:Maxage的LSA且已经经过拓扑前缀处理

·     Self originated:收到自己产生的LSA

·     Stale:GR过程中收到自己产生的LSA

 

1.1.15  display ospfv3 nexthop

display ospfv3 nexthop命令用来显示OSPFv3的路由下一跳信息。

【命令】

display ospfv3 [ process-id ] nexthop

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的下一跳信息。

【举例】

# 显示OSPFv3进程1的路由下一跳信息。

<Sysname> display ospfv3 1 nexthop

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

 Nexthop : FE80::20C:29FF:FED7:F308                Interface: Vlan2

 RefCount: 4                                       Status   : Valid

 NbrID   : 1.1.1.1                                 NbrIntID : 21

 

 Nexthop : FE80::20C:29FF:FED7:F312                Interface: Vlan12

 RefCount: 3                                       Status   : Valid

 NbrID   : 1.1.1.1                                 NbrIntID : 38

表1-12 display ospfv3 nexthop命令显示信息描述表

字段

描述

Nexthop

下一跳地址

Interface

出接口名

RefCount

下一跳引用计数

Status

该下一跳的状态:

·     Valid:有效

·     Invalid:无效

NbrID

邻居路由器ID

NbrIntID

邻居的接口ID

 

1.1.16  display ospfv3 non-stop-routing

display ospfv3 non-stop-routing命令用来显示OSPFv3进程的NSR状态信息。

【命令】

display ospfv3 [ process-id ] non-stop-routing

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的NSR状态信息。

【举例】

# 显示所有OSPFv3进程的NSR状态信息。

<Sysname> display ospfv3 non-stop-routing

 

               OSPFv3 Process 1 with Router ID 3.3.3.3

 

 Nonstop Routing capability: Enabled

 Upgrade phase             : Normal

表1-13 display ospfv3 non-stop-routing命令显示信息描述表

字段

描述

Nonstop Routing capability

是否使能OSPFv3协议的NSR能力

·     Enabled:使能

·     Disabled:未使能

Upgrade phase

NSR的各个阶段,有如下几种:

·     Normal:普通状态

·     Preparation:准备阶段

·     Smooth:数据平滑阶段

·     Precalculation:路由计算预处理阶段

·     Calculation:路由计算阶段

·     Redistribution:路由引入阶段

 

1.1.17  display ospfv3 peer

display ospfv3 peer命令用来显示OSPFv3的邻居信息。

【命令】

display ospfv3 [ process-id ] [ area area-id ] peer [ [ interface-type interface-number ] [ verbose ] | peer-router-id | statistics ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。

area area-id:显示位于指定区域的邻居信息。area-id为区域的标识,可以是十进制整数(取值范围为0~4294967295,系统会将其处理成IPv4地址格式)或IPv4地址格式。

interface-type interface-number:接口类型和接口编号。

verbose:显示邻居的详细信息。

peer-router-id:显示指定邻居的信息。

statistics:显示OSPFv3邻居的统计信息。

【使用指导】

·     如果未指定OSPFv3进程号,将显示所有OSPFv3进程的邻居信息。

·     如果未指定区域,将显示所有区域的邻居信息。

·     如果接口参数、邻居Router ID参数都不输入,则显示所有接口的邻居信息。

【举例】

# 显示OSPFv3进程1的邻居信息。

<Sysname> display ospfv3 1 peer vlan-interface 1

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

 Area: 0.0.0.1

-------------------------------------------------------------------------

 Router ID       Pri State             Dead-Time InstID Interface

 2.2.2.2         1   Init/ -           00:00:36  0      Vlan1

表1-14 display ospfv3 peer命令显示信息描述表

字段

描述

Router ID

邻居ID

Pri

邻居路由器优先级

State

邻居状态

Dead-Time

邻居路由器的失效时间

Inst ID

实例ID

Interface

和邻居相连的接口

 

# 显示接口上的OSPFv3进程1的邻居详细信息。

<Sysname> display ospfv3 1 peer vlan-interface 1 verbose

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

 Area 0.0.0.1 interface Vlan1's neighbors

 Router ID: 2.2.2.2          Address: fe80::200:5eff:fe00:100

   State: ExStart  Mode: None  Priority: 1

   DR: 2.2.2.2  BDR: None   MTU: 1500

   Options is 0x000013 (-|R|-|-|E|V6)

   Dead timer due in 00:00:33

   Neighbor is up for 00:24:19

   Neighbor state change count: 205

   Database Summary List 0

   Link State Request List 0

   Link State Retransmission List 0

   Neighbor interface ID: 8037

   GR state: Normal

   Grace period: 0           Grace period timer: Off

   DD Rxmt timer: Off        LS Rxmt timer: On

表1-15 display ospfv3 peer verbose命令显示信息描述表

字段

描述

Router ID

邻居的Router ID

Address

接口链路本地地址

State

邻居状态

Mode

路由器在数据库同步阶段,路由器与邻居协商的主从关系,取值为:

·     Nbr is master:邻居路由器为主路由器

·     Nbr is slave:邻居路由器为从路由器

Priority

邻居路由器优先级

DR

接口所属网段的DR

BDR

接口所属网段的BDR

MTU

接口MTU的值

Options

邻居的LSA选项,各选项含义如下:

·     DC:支持按需链路

·     R:是否为活跃路由器

·     N:是否支持NSSA外部LSA

·     x:保留

·     E:AS外部LSA的接受能力

·     V6:是否参与IPv6路由计算

Dead timer due in 33  sec

邻居将在33秒后被认为不可达

Neighbor is up for 00:24:19

与邻居建立的时长00:24:19

Neighbor state change count

邻居状态发生改变的次数

Database Summary List

需要DD报文发送的LSA个数

Link State Request List

链路状态请求列表中LSA个数

Link State Retransmission List

链路状态重传列表中LSA个数

Neighbor interface ID

邻居的接口ID

GR state

GR状态,取值为:

·     Normal:普通状态

·     Doing GR:正在作为GR Restarter

·     Complete GR:GR完成

·     Helper:正在作为GR Helper

Grace period

发送Grace LSA的间隔

Grace period timer

发送Grace LSA的间隔定时器,其中:

·     Off: 关闭

·     On:开启

DD Rxmt timer

DD报文重传定时器,其中:

·     Off: 关闭

·     On:开启

LS Rxmt timer

LSU报文重传定时器,其中:

·     Off: 关闭

·     On:开启

 

# 显示所有OSPFv3邻居的统计信息。

<Sysname> display ospfv3 peer statistics

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

-------------------------------------------------------------------------

 Area ID         Down Attempt Init 2-Way ExStart Exchange Loading Full Total

 0.0.0.0         0    0       0    0     0       0        0       1    1

 Total           0    0       0    0     0       0        0       1    1

表1-16 display ospfv3 peer statistics命令显示信息描述表

字段

描述

Area ID

区域标识

Down

该状态为OSPFv3建立邻居关系的初始化状态,表示OSPFv3路由器在一定时间之内没有收到从某一邻居路由器发送来的信息

Attempt

该状态仅对NBMA网络上的邻居有效,表示最近没有从邻居收到信息,但仍需作出进一步的尝试,用以与邻居联系

Init

此状态表示OSPFv3路由器已经接收到邻居路由器发送来的Hello数据包,但该Hello数据包内没有包含自己的Router ID,还没有建立起双方的双向通信

2-Way

此状态表示OSPFv3路由器与邻居路由器的双向通信已经建立。DR及BDR的选择是在这个状态(或更高的状态)完成的

ExStart

在此状态,路由器要确定邻居双方的主从关系并决定初始的DD报文的序列号

Exchange

在此状态,OSPFv3路由器向其邻居路由器发送DD报文来交换链路状态信息

Loading

在此状态,OSPFv3路由器向邻居路由器发送LSR报文,请求最新的链路状态信息

Full

在此状态,建立起邻居关系的路由器之间已经完成了数据库同步的工作,它们的链路状态数据库已经一致

Total

所有区域中处于相同状态的邻居数目的总和

 

1.1.18  display ospfv3 request-queue

display ospfv3 request-queue命令用来显示OSPFv3请求列表的信息。

【命令】

display ospfv3 [ process-id ] [ area area-id ] request-queue [ interface-type interface-number ] [ neighbor-id ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。

area area-id:显示位于指定区域的信息。area-id为区域的标识,可以是十进制整数(取值范围为0~4294967295,系统会将其处理成IPv4地址格式)或IPv4地址格式。

interface-type interface-number:接口类型和编号。

neighbor-id:邻居路由器的Router ID。

【使用指导】

l     如果未指定OSPFv3进程号,将显示所有OSPFv3进程的请求列表信息。

l     如果未指定OSPFv3区域号,将显示所有OSPFv3区域的请求列表信息。

l     如果未指定接口,将显示所有接口的请求列表信息。

l     如果未指定邻居路由器,将显示所有邻居路由器的请求列表信息。

【举例】

# 显示OSPFv3请求列表的信息。

<Sysname> display ospfv3 request-queue

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

                   Area: 0.0.0.0

                   Interface Vlan-interface1

-------------------------------------------------------------------------

                   Nbr-ID 1.3.3.3 Request List

 Type    LinkState ID    AdvRouter       SeqNum       Age   CkSum

 0x4005  0.0.34.127      1.3.3.3         0x80000001   0027  0x274d

 0x4005  0.0.34.128      1.3.3.3         0x80000001   0027  0x2d45

 0x4005  0.0.34.129      1.3.3.3         0x80000001   0027  0x333d

 0x4005  0.0.34.130      1.3.3.3         0x80000001   0027  0x3935

表1-3 display ospfv3 request-queue命令显示信息描述表

字段

描述

Area

区域ID

Interface

接口类型和序号

Nbr-ID

邻居ID

Request List

请求列表信息

Type

LSA类型

LinkState ID

链路状态标示符

AdvRouter

通告路由器

SeqNum

LSA序列号

Age

LSA老化时间

CkSum

校验和

 

1.1.19  display ospfv3 retrans-queue

display ospfv3 retrans-queue命令用来显示OSPFv3重传列表的信息。

【命令】

display ospfv3 [ process-id ] [ area area-id ] retrans-queue [ interface-type interface-number ] [ neighbor-id ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。

area area-id:显示位于指定区域的信息。area-id为区域的标识,可以是十进制整数(取值范围为0~4294967295,系统会将其处理成IPv4地址格式)或IPv4地址格式。

interface-type interface-number:接口类型和编号。

neighbor-id:邻居路由器的Router ID。

【使用指导】

l     如果未指定OSPFv3进程号,将显示所有OSPFv3进程的重传列表信息。

l     如果未指定OSPFv3区域号,将显示所有OSPFv3区域的重传列表信息。

l     如果未指定接口,将显示所有接口的重传列表信息。

l     如果未指定邻居路由器,将显示所有邻居路由器的重传列表信息。

【举例】

# 显示OSPFv3重传列表的信息。

<Sysname> display ospfv3 retrans-queue

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

                   Area: 0.0.0.0

                   Interface Vlan-interface1

-------------------------------------------------------------------------

                   Nbr-ID 1.2.2.2 Retransmit List

 Type    LinkState ID    AdvRouter       SeqNum       Age   CkSum

 0x2009  0.0.0.0         1.3.3.3         0x80000001   3600  0x49fb

表1-4 display ospfv3 retrans-queue命令显示信息描述表

字段

描述

Area

区域ID

Interface

接口类型和序号

Nbr-ID

邻居ID

Retransmit List

重传列表信息

Type

LSA类型

LinkState ID

链路状态标示符

AdvRouter

通告路由器

SeqNum

LSA序列号

Age

LSA老化时间

CkSum

校验和

 

1.1.20  display ospfv3 routing

display ospfv3 routing命令用来显示OSPFv3路由表的信息。

【命令】

display ospfv3 [ process-id ] routing [ ipv6-address prefix-length ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的路由表信息。

ipv6-address prefix-length:显示指定IPv6地址的OSPFv3路由表的信息。ipv6-address表示IPv6地址前缀;prefix-length表示IPv6地址前缀长度,取值范围为0~128。

【举例】

# 显示OSPFv3路由表的信息。

<Sysname> display ospfv3 routing

 

               OSPFv3 Process 1 with Router ID 9.9.9.9

-------------------------------------------------------------------------

 I  - Intra area route,  E1 - Type 1 external route,  N1 - Type 1 NSSA route

 IA - Inter area route,  E2 - Type 2 external route,  N2 - Type 2 NSSA route

 *  - Selected route

 

 *Destination: 3::3/128

  Type       : I                                         Cost     : 0

  Nexthop    : ::                                        Interface: Loop1

  AdvRouter  : 9.9.9.9                                   Area     : 0.0.0.0

  Preference : 10

 

 *Destination: 4::4/128

  Type       : I                                         Cost     : 1

  Nexthop    : FE80::20C:29FF:FED4:7171                  Interface: Vlan2

  AdvRouter  : 8.8.8.8                                   Area     : 0.0.0.0

  Preference : 10

 

 *Destination: 6::/64

  Type       : I                                         Cost     : 1

  Nexthop    : ::                                        Interface: Vlan2

  AdvRouter  : 9.9.9.9                                   Area     : 0.0.0.0

  Preference : 10

 

 Total: 3

 Intra area: 3         Inter area: 0         ASE: 0         NSSA: 0

表1-17 display ospfv3 routing命令显示信息描述表

字段

描述

Destination

目的网段

Type

路由类型

Cost

路由开销值

Nexthop

下一跳地址

Interface

出接口

AdvRouter

发布路由器

Area

区域ID

Tag

外部路由标记

Preference

路由优先级

Total

路由总数目

Intra area

区域内路由数目

Inter area

区域间路由数目

ASE

5类外部路由数目

NSSA

7类外部路由数目

 

1.1.21  display ospfv3 spf-tree

display ospfv3 spf-tree命令用来显示OSPFv3区域的拓扑信息。

【命令】

display ospfv3 [ process-id ] [ area area-id ] spf-tree [ verbose ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

process-id:OSPFv3进程号,取值范围为1~65535。如果未指定本参数,将显示所有OSPFv3进程的区域拓扑信息。

area area-id:显示位于指定区域的信息。如果未指定本参数,将显示所有区域的拓扑信息。area-id为区域的标识,可以是十进制整数(取值范围为0~4294967295,系统会将其处理成IPv4地址格式)或IPv4地址格式。

verbose:显示详细信息。如果未指定本参数,将显示概要信息。

【举例】

# 显示OSPFv3进程1下区域0的最短路径树信息。

<Sysname> display ospfv3 1 area 0 spf-tree

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

 Flags: S-Node is on SPF tree       R-Node is directly reachable

        I-Node or Link is init      D-Node or Link is to be deleted

        P-Neighbor is parent        A-Node is in candidate list

        C-Neighbor is child         H-Nexthop changed

        N-Link is a new path        V-Link is involved

 

                 Area: 0.0.0.0  Shortest Path Tree

 

 SPFNode         Type   Flag         SPFLink         Type   Cost  Flag

>1.1.1.1         Router S R

                                  -->2.2.2.2         RT2RT  1     C

                                  -->2.2.2.2         RT2RT  1     P

表1-18 display ospfv3 spf-tree命令显示信息描述表

字段

描述

SPFNode

SPF节点,以宣告路由器ID作为标识,其中,Type为节点类型:

·     Network:网络节点

·     Router:路由器节点

Flag为节点标志:

·     I:节点处于初始化状态

·     T:节点在候选列表上

·     S:节点在SPF树上

·     R:该节点与根节点直连

·     D:该节点将被删除

SPFLink

SPF链路,以宣告路由器ID作为标识,其中,Type为链路类型:

·     RT2RT:表示路由器到路由器链路

·     NET2RT:表示网络到路由器链路

·     RT2NET:表示路由器到网络链路

Cost为链路花费,Flag为链路标志:

·     I:链路处于初始化状态

·     P:目的节点是父节点

·     C:目的节点是子节点

·     D:链路将要被删除

·     H:下一跳发生改变

·     V:目的节点删除或者是新增节点时,链路的目的节点不在SPF树上或处于删除状态

·     N:新增链路,并且源节点和目的节点都在SPF树上

·     L:链路在区域变化列表中

 

# 显示OSPFv3进程1下区域0的最短路径树详细信息。

<Sysname> display ospfv3 1 area 0 spf-tree verbose

 

               OSPFv3 Process 1 with Router ID 1.1.1.1

 

 Flags: S-Node is on SPF tree       R-Node is directly reachable

        I-Node or Link is init      D-Node or Link is to be deleted

        P-Neighbor is parent        A-Node is in candidate list

        C-Neighbor is child         H-Nexthop changed

        N-Link is a new path        V-Link is involved

 

           Area: 0.0.0.0  Shortest Path Tree

 

>SPFNode[0]

  AdvID        : 1.1.1.1                  LsID       : 0.0.0.0

  NodeType     : Router                   Distance   : 1

  NodeFlag     : S R

  Nexthop count: 1

 -->NbrID      : 1.1.1.1                  NbrIntID   : 21

    Interface  : Vlan2                    NhFlag     : Valid

    Nexthop    : FE80::20C:29FF:FED7:F308

    RefCount   : 4

  SPFLink count: 1

 -->AdvID      : 1.1.1.1                  LsID       : 0.0.0.0

    IntID      : 232                      NbrIntID   : 465

    NbrID      : 2.2.2.2                  LinkType   : RT2RT

    LinkCost   : 1                        LinkNewCost: 1

    LinkFlag   : C                        NexthopCnt : 0

  ParentLink count: 1

 -->AdvID      : 1.1.1.1                  LsID       : 0.0.0.0

    IntID      : 215                      NbrIntID   : 466

    NbrID      : 2.2.2.2                  LinkType   : RT2RT

    LinkCost   : 1                        LinkNewCost: 1

    LinkFlag   : P                        NexthopCnt : 0

表1-19 display ospfv3 spf-tree verbose命令显示信息描述表

字段

描述

SPFNode

SPF节点

AdvID

通告路由器ID

LsID

链路状态ID

NodeType

节点类型

Distance

到根节点的开销

NodeFlag

节点标志

Nexthop count

下一跳计数

NbrID

邻居路由器ID

NbrIntID

邻居的接口ID

Interface

出接口

NhFlag

下一跳标志:

·     Valid:有效

·     Invalid:无效