验证网络中路由器上的 IS-IS 配置
目的
要使 IS-IS 在网络中的路由器(中间系统)上运行,必须在路由器上启用 IS-IS,在环路接口 (lo0) 上配置网络实体标题 (NET),并在要运行 IS-IS 的所有接口上进行配置 family iso 。在路由器上启用 IS-IS 时,默认情况下会启用级别 1 和级别 2。
图 1 显示了 IS-IS 拓扑中不同级别的路由器的示例。
中的级别
图 1 中的网络按层次结构,由一个自治系统 (AS) 中的 2 级、1 级/2 级和 1 级路由器组成,这些路由器分为四个区域:49.0001、49.0002、49.0003 和 49.0004。2 级路由器路由到其他自治系统。1 级/2 级路由器在区域之间路由到其他自治系统。1 级路由器在一个区域内路由,当目标在本地区域之外时,它们会路由到 1 级/2 级系统。
在以下主题中,将检查各种类型路由器的配置。
图 2 提供了图 1 中有关 IS-IS 网络拓扑的更多详细信息,以便您可以验证各种路由器的配置输出。
IS-IS 网络拓扑
要验证不同级别的路由器上是否正确配置了 IS-IS,请按照下列步骤作:
检查 1 级/2 级路由器的配置
目的
检查 1 级/2 级路由器的配置。
行动
要验证网络中 1 级/2 级路由器的 IS-IS 配置,请输入以下 Junos OS 命令行界面 (CLI) 命令:
user@host# [edit protocols isis] show user@host# [edit protocols isis] user@host# run show isis interface user@host# [edit] edit interfaces user@host# [edit interfaces] show
以下输出用于 R2 上的 IS-IS 配置,R2 是网络中的 1 级/2 级路由器。
示例输出
命令-名称
[edit protocols isis]
user@R2# show
interface so-0/0/0.0 {
level 2 metric 10;
level 1 disable;
}
interface so-0/0/1.0 {
level 2 disable;
level 1 metric 10;
}
interface so-0/0/2.0 {
level 2 metric 10;
level 1 disable;
}
interface fxp0.0 {
disable;
}
interface lo0.0;
[edit protocols isis]
user@R2# run show isis interface
IS-IS interface database:
Interface L CirID Level 1 DR Level 2 DR L1/L2 Metric
lo0.0 0 0x1 Passive Passive 0/0
so-0/0/0.0 2 0x1 Disabled Point to Point 10/10
so-0/0/1.0 3 0x1 Point to Point Point to Point 10/10
so-0/0/2.0 2 0x1 Disabled Point to Point 10/10
[edit interfaces]
user@R2# show
so-0/0/0 {
unit 0 {
family inet {
address 10.1.12.2/30;
}
family iso;
}
}
so-0/0/1 {
unit 0 {
family inet {
address 10.1.23.1/30;
}
family iso;
}
}
so-0/0/2 {
unit 0 {
family inet {
address 10.1.26.1/30;
}
family iso;
}
}
lo0 {
unit 0 {
family inet {
address 10.0.0.2/32;
}
family iso {
address 49.0002.1000.0000.0002.00;
}
}
}
意义
示例输出显示了 R2(1 级/2 级路由器)上 IS-IS 的基本配置。基本配置在 [edit protocols isis] 和 [edit interfaces] 层次结构级别。
该 [edit protocols isis] 级别包括五个接口:so-0/0/0、so-0/0/1、so-0/0/2、fxp0 和环路接口 (lo0)。两个接口 so-0/0/0.0 和 so-0/0/2.0 禁用了第 1 级,使其成为第 2 级接口。一个接口 so-0/0/1.0 禁用了第 2 级,使其成为第 1 级接口。管理接口 (fxp0) 将被禁用,因此不会通过该接口发送 IS-IS 数据包,并且将环路接口 (lo0) 包含在内,因为它将成为从路由器到 IS-IS 网络的连接点。
在 [edit interfaces] 层次结构级别,层次结构级别中包含 [edit protocols isis] 的所有接口都配置了 family iso,环路接口 (lo0) 配置了 NET 地址 49.0002.1000.0000.0002.00。IS-IS 网络中的每台路由器都必须至少有一个 NET 地址,用于标识到 IS-IS 网络的连接点。NET 地址通常配置在环路接口 (lo0) 上。参与多个区域的路由器可以拥有多个 NET 地址。
另见
检查 1 级路由器的配置
目的
检查 1 级路由器的配置。
行动
要检查 1 级路由器的配置,请输入以下 CLI 命令:
user@host# [edit protocols isis] show user@host# [edit protocols isis] run show isis interface user@host# [edit] edit interfaces user@host# [edit interfaces] show
以下示例输出用于 R4,即网络中的 1 级路由器,如图中所示,以下输出用于 R2 上的 IS-IS 配置,R2 为网络中的 1 级/2 级路由器。
示例输出
命令-名称
[edit protocols isis]
user@R4# show
level 2 disable;
interface so-0/0/2.0 {
level 1 metric 10;
}
interface fxp0.0 {
disable;
}
interface lo0.0;
[edit protocols isis]
user@R4# run show isis interface
IS-IS interface database:
Interface L CirID Level 1 DR Level 2 DR L1/L2 Metric
lo0.0 0 0x1 Passive Passive 0/0
so-0/0/2.0 1 0x1 Point to Point Disabled 10/10
[edit interfaces]
user@R4# show
so-0/0/2 {
unit 0 {
family inet {
address 10.1.45.1/30;
}
family iso;
}
}
lo0 {
unit 0 {
family inet {
address 10.0.0.4/32;
}
family iso {
address 49.0001.1000.0000.0004.00;
}
}
}
意义
示例输出显示了 R4(1 级路由器)上 IS-IS 的基本配置。基本配置在 [edit protocols isis] 和 [edit interfaces] 层次结构级别。
[edit protocols isis]在层次结构级别,包括三个接口:so-0/0/2.0、fxp0 和环路接口 (lo0)。路由器上禁用第 2 级,使其成为在其本地区域 49.0001 内发送数据包的 1 级路由器。当数据包目标位于本地区域之外时,R4 会与转发数据包的最近 1 级/2 级路由器 (R5) 建立邻接关系。有关邻接的更多信息,请参阅显示 IS-IS 邻接的状态。
为 IS-IS 配置了一个接口 so-0/0/2.0。管理接口 (fxp0) 将被禁用,因此不会通过该接口发送 IS-IS 数据包,并且将环路接口 (lo0) 包含在内,因为它将成为从路由器到 IS-IS 网络的连接点。
在 [edit interfaces] 层次结构级别,层级中包含的 [edit protocols isis] 接口也配置 family iso了 ,环路接口 (lo0) 的 NET 地址为 49.0001.1000.0000.0004.00。IS-IS 网络中的每台路由器都必须至少有一个 NET 地址,用于标识到 IS-IS 网络的连接点。NET 地址通常配置在环路接口 (lo0) 上。参与多个区域的路由器可以拥有多个 NET 地址。
另见
检查 2 级路由器的配置
目的
检查 2 级路由器的配置。
行动
要检查 2 级路由器的配置,请输入以下 CLI 命令:
user@host# [edit protocols isis] show user@host# [edit protocols isis] run show isis interface user@host# [edit] edit interfaces user@host# [edit interfaces] show
以下示例输出用于 R6,即所示网络中的 2 级路由器。
示例输出
命令-名称
[edit protocols isis]
user@R6# show
level 1 disable;
interface so-0/0/0.0 {
level 2 metric 10;
}
interface so-0/0/2.0 {
level 2 metric 10;
}
interface fxp0.0 {
disable;
}
interface lo0.0;
[edit protocols isis]
user@R6# run show isis interface
IS-IS interface database:
Interface L CirID Level 1 DR Level 2 DR L1/L2 Metric
lo0.0 0 0x1 Passive Passive 0/0
so-0/0/0.0 2 0x1 Disabled Point to Point 10/10
so-0/0/2.0 2 0x1 Disabled Point to Point 10/10
[edit interfaces]
user@R6# show
so-0/0/0 {
unit 0 {
family inet {
address 10.1.56.2/30;
}
family iso;
}
}
so-0/0/2 {
unit 0 {
family inet {
address 10.1.26.2/30;
}
family iso;
}
}
lo0 {
unit 0 {
family inet {
address 10.0.0.6/32;
}
family iso {
address 49.0003.1000.0000.0006.00;
}
}
}
意义
示例输出显示了 R6(2 级路由器)上 IS-IS 的基本配置。基本配置在 [edit protocols isis] 和 [edit interfaces] 层次结构级别。
该 [edit protocols isis] 级别包括四个接口:so-0/0/0.0、so-0/0/2.0、fxp0 和环路接口 (lo0)。在两个 SONET/SDH 接口上禁用第 1 级,使其成为在区域之间路由至其他 AS 的 2 级路由器。管理接口 (fxp0) 将被禁用,因此不会通过该接口发送 IS-IS 数据包,并且将环路接口 (lo0) 包含在内,因为它将成为从路由器到 IS-IS 网络的连接点。
[edit interfaces]在层次结构级别,层次结构级别中包含的[edit protocols isis]接口也配置family iso了 ,环路接口 (lo0) 的 NET 地址为 49.0003.1000.0000.0006.00。IS-IS 网络中的每台路由器都必须至少有一个 NET 地址,用于标识到 IS-IS 网络的连接点。NET 地址通常配置在环路接口 (lo0) 上。参与多个区域的路由器可以拥有多个 NET 地址。