ISIS几个命令的区别

简介:
 PS:我在学习ISIS的时候有几条命令让我十分困惑,通过下面的解释就很清楚了,希望对初学ISIS的朋友有帮助:
show isis topology
Displays a list of all connected routers in all areas.
Syntax: show isis topology
Description:  Displays list of all connected Level-2 (inter-area) routers in all areas.
Factory Default:  None.
Command Mode:  Executive and privileged.
Example:  The following is sample output of the show isis topology command:
router# show isis topology

IS-IS paths to level-2 routers

System Id       Metric  Next-Hop        Interface SNPA

0102.5400.5001 10 0102.5400.5001 PO0/0/0

0102.5400.5003 20 0102.5400.5001 PO0/0/0

0102.5400.5004 --
The following table describes the fields in the display:
Table 3-11. Fields Displayed by show isis topology 
Field
Description
System ID
The system identifier of the neighboring system.
Metric
A relative cost for sending information over this interface.
Next-Hop
The system identifier of the next hop from the neighboring system.
Interface
The interface over which the adjacency was established.
SNPA
The neighbor's MAC address on a broadcast network.
 
 
show isis database
Displays information the IS-IS routing database.
Syntax: show isis database [detail] [l1 | level-1 | l2 | level-2] [LSPID | hostname hostname.nn-nn]
detail
Display detailed routing information.
l1 or level-1
Display routing information for Level-1 LSPs only.
l2 or level-2
Display routing information for Level-2 LSPs only.
LSPID
Display routing information for the specified LSP. Enter LSPID in dotted decimal format: nnnn.nnnn.nnnn.nn-nn
hostname
Displays routing information for all LSPs.
hostname.nn-nn
When hostname dynamic is enabled, display routing information for the specified LSP. Enter the LSP ID as <hostname>.nn-nn
Description:  Use the show isis database command with no arguments to display summarized information about both Level-1 and Level-2 LSPs.
Use the show isis database l1 or show isis database level-1 command to display summarized information about Level-1 LSPs.
Use the show isis database l2 or show isis database level-2 command to display summarized information about Level-2 LSPs.
Use the show isis database nnnn.nnnn.nnnn.nn-nn command to display detailed information about the specified LSP.
Use the show isis database hostname.nn-nn command to display detailed information about the specified LSP when hostname dynamic is enabled.
Use the detail keyword to display the detailed information about the specified LSP(s).
Factory Default:  None.
Command Mode:  Executive and privileged.
Example 1:  The following example shows output of the show isis database level-1 command; first with hostname dynamic disabled, second with it enabled:
router# show isis database level-1



ISIS Level-1 Link State Database

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

1000.5000.0001.00-00 0x0000000e 0xb8be 1200 0/0/0

1000.5000.0002.00-00 0x0000052f 0xd8e7 1199 0/0/0

1000.5000.0003.00-00 0x0000001e 0x8c80 507 0/0/0

.

.

.
router# show isis database level-1



ISIS Level-1 Link State Database

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

NPIshelf1.00-00 0x0000000d 0xbabd 570 0/0/0

NPIshelf2.00-00 0x00000524 0x1491 1199 0/0/0

NPIshelf3.00-00 0x0000001e 0x8c80 567 0/0/0

.

.

.
The following table describes the fields in the display:
Table 3-2. Fields Displayed by show isis database  
Field
Description
(Password)
The password or authentication digest, if any exists.
LSPID
The identifier for the link-state packet (LSP).
LSP Seq Num
The sequence number for the LSP. Every time a LSP is updated, the sequence number is incremented so that a router can determine if the LSP it has just received is indeed newer than one it already has in its database.
LSP Checksum
The checksum of the LSP. If the ignore-lsp-error command has been entered, LSPs with incorrect checksums are discarded.
LSP Holdtime
The remaining time, in seconds, that this LSP is valid.
ATT/P/OL
ATT  - A 1 indicates the router that originated this LSP is attached through a Level 2 router to at least one other area.
P - A 1 indicates the router that originated this LSP has partition repair capability.
OL - A 1 indicates the router that originated this LSP is overloaded. This LSP should not be used.
Example 2:  The following is sample output of the show isis database detail command:
router# show isis database detail



ISIS Level-1 Link State Database

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

NPIshelf1.00-00 0x0000000e 0xb8be 940 0/0/0

Area Address: 47

NLPID: 0xCC

Router ID: 10.50.0.1

Hostname: NPIshelf1

Metric: 10 IS 1000.5000.0002.00, Extended

Administrative color: 0x00000000

IPV4 interface address: 10.50.1.1

IPV4 neighbor address: 10.50.1.2

Max link bandwidth: 225375008.000 Bytes/sec.

Max reservable bandwidth: 225375008.000 Bytes/sec.

Priority 0 Available reservation: 225375008.000 Bytes/sec.

.

.

.

    Priority 7 Available reservation: 225375008.000 Bytes/sec.

TE default metric: 1

Metric: 10 IS 1000.5000.0003.00, Extended

Administrative color: 0x00000000

IPV4 interface address: 10.50.4.1

IPV4 neighbor address: 10.50.4.2

Max link bandwidth: 300624992.000 Bytes/sec.

Max reservable bandwidth: 300624992.000 Bytes/sec.

Priority 0 Available reservation: 300624992.000 Bytes/sec.

.

.

.

    Priority 7 Available reservation: 300624992.000 Bytes/sec.

TE default metric: 1

IP Address: 10.50.0.1

IP Address: 10.50.1.1

IP Address: 10.50.4.1

Metric: 10 IP 10.50.0.1/32, Extended, Up/Down bit: 0,

Metric: 10 IP 10.50.1/24, Extended, Up/Down bit: 0,

Metric: 10 IP 10.50.4/24, Extended, Up/Down bit: 0, 

  Metric: 10 IP 191.191.191.191/32, Extended, Up/Down bit: 0

Metric: 10 IP 191.194.1/24, Extended, Up/Down bit: 0

Metric: 10 IP 55.55.55/24, Extended, Up/Down bit: 0

Metric: 10 IP 194.10.1/24, Extended, Up/Down bit: 0
ha193.00-00 0x00000096 0xa9b4 1070 0/0/0

Area Address: 25.0001

NLPID: 0xCC

Hostname: ha193

ha193.00-01 0x00000096 0x30dd 1070 0/0/0


Metric: 10 IS 0001.0001.0193.01, Extended

ha193.00-02 0x00000096 0xdc9c 1070 0/0/0

IP Address: 55.55.55.3

IP Address: 194.10.2.2

Metric: 10 IP 55.55.55/24, Extended, Up/Down bit: 0

Metric: 10 IP 194.10.2/24, Extended, Up/Down bit: 0

ha193.01-00 0x00000079 0x1819 1070 0/0/0


NLPID: 0xCC

Metric: 0 IS 0001.0001.0193.00, Extended

Metric: 0 IS 0001.0001.0191.00, Extended


Example 3:  The following is sample output of the show isis database detail command when L2 into L1 leaked routes are present:
router# show isis database detail



ISIS Level-1 Link State Database

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

ha191.00-00 0x00000092 0xa1c2 1149 0/0/0

Area Address: 25.0001

NLPID: 0xCC

Hostname: ha191

ha191.00-01 0x00000092 0x4ac7 1149 0/0/0


Metric: 10 IS 0001.0001.0193.01, Extended

ha191.00-02 0x00000092 0xe3a9 1149 0/0/0

IP Address: 191.191.191.191

IP Address: 191.194.1.2

IP Address: 55.55.55.1

IP Address: 194.10.1.2

Metric: 10 IP 12.2.41.19/32, Extended, Up/Down bit: 1

Metric: 10 IP 12.2.41.20/32, Extended, Up/Down bit: 1

Metric: 10 IP 12.2.41.21/32, Extended, Up/Down bit: 1

Metric: 10 IP 12.2.41.22/32, Extended, Up/Down bit: 1

Metric: 10 IP 12.2.41.23/32, Extended, Up/Down bit: 1

Metric: 10 IP 12.2.41.24/32, Extended, Up/Down bit: 1

.

.

.


The following table describes the fields in the display:
Table 3-3. Fields Displayed by show isis database  detailed  
Field
Description
Area Address
Reachable area addresses from the router. For L1 LSPs, these are the area addresses configured manually on the originating router. For L2 LSPs, these are all the area addresses for the area this route belongs to.
NLPID
network layer protocol identifier. 0xcc = IP
Router ID
 
Hostname
Specifies the configured hostname for this router.
Metric:
IS-IS metric for the cost of the adjacency between the originating router and the advertised neighbor, or the metric of the cost to get from the advertising router to the advertised destination.
Metric ES
End system neighbors Metric
Administrative color
Specifies administrative colors assigned to this link.
Max link bandwidth
Specifies the maximum usable bandwidth for the link.
Max reservable bandwidth
Specifies the maximum reserved usable bandwidth for the link
TE default metric
Traffic Engineering metric that determines the relative preference for an interface during tunnel creation.
Prefix Neighbor
Reachable Address Prefix Neighbors.
IP Address
IP interface Address. The IP address of one or more interfaces on this router.
 
 
 
show isis neighbor
Displays information about IS-IS neighbors.
Syntax: show isis neighbor
Description:  Displays the information about IS-IS neighbors.
Factory Default:  None.
Command Mode:  Executive and privileged.
Example 1:  The following is sample output from the show isis neighbor command:
router# show isis neighbor 

System ID SNPA Interface State HoldTime Type Pri

1000.5000.0002 CL 12 Up 101 L1 

.

.

.
Example 2:  The following is sample output of the show isis neighbor when hostname dynamic is enabled:
router# show isis neighbor

System ID SNPA Interface State HoldTime Type Pri

NPIshelf2 CL 12 Up 101 L1
NPIshelf3 POS 1/6/1 Up 97 L1
Table 3-7. Fields Displayed by show isis neighbor 
Field
Description
System ID
The system identifier of the neighboring system, in either xxxx.xxxx.xxxx or hostname format.
SNPA
The neighbor's MAC address on a broadcast network.
Interface
The interface over which the adjacency was established.
State
The state of the neighboring router.
HoldTime
How many seconds until the adjacency is deleted (unless it is reset).
Type
The type of adjacency. Types can be either L1 for Level 1 or L2 for Level 2.
Priority
The priority assigned to each router.
 
 

show clns neighbors

Description:  
Displays both ES and IS neighbors.
Syntax:  
show clns neighbors [ interfaceType interfaceSpecifier ] [ detail ] [ filter ]


















本文转自loveme2351CTO博客,原文链接:http://blog.51cto.com/loveme23/47990 ,如需转载请自行联系原作者
相关文章
|
5月前
|
数据采集 自然语言处理 数据可视化
微调完怎么判断好不好?大模型效果评估入门指南(附代码)
本文详解大模型微调后如何科学评估效果,涵盖文本分类、生成与语言建模三类任务的核心指标(如F1、BLEU、ROUGE、PPL),结合Python代码实操演示,并强调需结合业务场景、微调前后对比及稳定性验证,避免“指标虚高”。附实用工具推荐,助力新手高效完成评估闭环。
微调完怎么判断好不好?大模型效果评估入门指南(附代码)
|
6月前
|
人工智能 自然语言处理 达摩院
2025中国AI数字人企业厂商实力榜单与数字技术评析及数字引擎选择指南
AI数字人正以技术革新推动产业变革,从虚拟偶像到金融、文旅、教育等多领域深度赋能。头部企业如像衍科技、阿里达摩院、百度智能云依托自研引擎与大模型,构建高拟真、强交互的智能体。其全天候服务、个性化交互与跨语言能力,显著提升效率与体验。随着情感计算与伦理规范同步演进,数字人将从工具迈向智能伙伴,开启人机协作新纪元。
|
机器学习/深度学习 传感器 人工智能
《C++与人工智能在工业自动化故障诊断中的“智慧融合”大揭秘》
在工业自动化中,C++与人工智能的结合实现了智能故障诊断。C++高效处理传感器数据,构建并优化AI模型,实时监控设备状态,精准识别故障,保障生产稳定。未来,这一技术组合将在边缘计算和5G等新技术推动下,开启工业自动化的新篇章。
344 11
|
机器学习/深度学习 算法 数据挖掘
R语言在金融分析中的应用
【4月更文挑战第25天】R语言在金融分析中扮演关键角色,尤其在风险管理、资产定价、量化交易、市场预测和投资组合优化方面。作为开源的统计计算和图形平台,R语言拥有强大的统计功能、丰富的包支持和交互式环境。在风险管理中,R用于评估和管理风险,如VaR和ES;在资产定价上,它支持经典模型和衍生品定价;在量化交易领域,R提供策略开发和回测工具;市场预测利用R的统计和机器学习功能;而在投资组合优化上,R帮助确定最佳资产配置。随着金融技术发展,R语言的应用将持续增长。
677 2
|
安全 网络安全 数据安全/隐私保护
|
Java 数据库连接 数据库
Windows7 64位 连接Access数据库“未发现数据源名称并且未指定默认驱动程序“的解决办法
Windows7 64位 连接Access数据库“未发现数据源名称并且未指定默认驱动程序“的解决办法
2437 0
|
消息中间件 数据处理
数据一致性检测的应用场景与最佳实践
随着业务规模的扩张,企业系统变得越来越复杂,在这种复杂的分布式系统架构下,难免会出现远程调用失败,消息发送失败,并发 bug 等等问题,这些问题最终会导致系统间的数据不一致,导致用户体验受损,用户利益受损,对平台来说就是产生资损。
5886 114
uniapp禁止页面滚动
uniapp禁止页面滚动
1079 0
|
Java Linux
Linux CentOS 环境下安装JDK的三种方法
Linux CentOS 环境下安装JDK的三种方法
2025 1
Linux CentOS 环境下安装JDK的三种方法