示例:配置 IS-IS 接口的网格组
此示例说明如何配置 IS-IS 接口的网格组。
要求
配置此示例之前,不需要除设备初始化之外的特殊配置。
概述
当链路状态 PDU 在整个区域中泛洪时,网格组内的每台路由器仅接收链路状态 PDU 的一个副本,而不是从每个邻接方接收一个副本,从而最大限度地减少与链路状态 PDU 泛洪相关的开销。
要创建网格组并将接口指定为组的一部分,请为该组中的所有路由设备接口分配一个网格组编号:
mesh-group value;
要防止网格组中的接口泛洪链路状态 PDU,请在该接口上配置阻止:
mesh-group blocked;
图 1 显示了此示例中使用的拓扑。

CLI 快速配置 显示了 图 1 中所有设备的配置。 第 #configuration663__isis 网格逐步 部分介绍了设备 R1 上的步骤。
配置
程序
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,然后将命令复制并粘贴到层级的 [edit]
CLI 中。
设备 R1
set interfaces fe-1/2/0 unit 0 description to-R2 set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.1/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/1 unit 0 description to-R4 set interfaces fe-1/2/1 unit 0 family inet address 10.0.0.5/30 set interfaces fe-1/2/1 unit 0 family iso set interfaces fe-1/2/2 unit 0 description to-R3 set interfaces fe-1/2/2 unit 0 family inet address 10.0.0.9/30 set interfaces fe-1/2/2 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.0.1/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0001.00 set protocols isis interface fe-1/2/0.0 mesh-group 1 set protocols isis interface fe-1/2/1.0 mesh-group 1 set protocols isis interface fe-1/2/2.0 mesh-group 1 set protocols isis interface lo0.0
设备 R2
set interfaces fe-1/2/0 unit 0 description to-R1 set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.2/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/1 unit 0 description to-R1 set interfaces fe-1/2/1 unit 0 family inet address 10.0.0.14/30 set interfaces fe-1/2/1 unit 0 family iso set interfaces fe-1/2/2 unit 0 description to-R1 set interfaces fe-1/2/2 unit 0 family inet address 10.0.0.21/30 set interfaces fe-1/2/2 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.0.2/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0002.00 set protocols isis interface fe-1/2/0.2 mesh-group 1 set protocols isis interface fe-1/2/1.0 mesh-group 1 set protocols isis interface fe-1/2/2.0 mesh-group 1 set protocols isis interface lo0.0
设备 R3
set interfaces fe-1/2/0 unit 0 description to-R1 set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.10/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/1 unit 0 description to-R2 set interfaces fe-1/2/1 unit 0 family inet address 10.0.0.13/30 set interfaces fe-1/2/1 unit 0 family iso set interfaces fe-1/2/2 unit 0 description to-R4 set interfaces fe-1/2/2 unit 0 family inet address 10.0.0.17/30 set interfaces fe-1/2/2 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.0.3/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0003.00 set protocols isis interface fe-1/2/0.0 mesh-group 1 set protocols isis interface fe-1/2/1.0 mesh-group 1 set protocols isis interface fe-1/2/2.0 mesh-group 1 set protocols isis interface lo0.0
设备 R4
set interfaces fe-1/2/0 unit 0 description to-R1 set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.6/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/1 unit 0 description to-R3 set interfaces fe-1/2/1 unit 0 family inet address 10.0.0.18/30 set interfaces fe-1/2/1 unit 0 family iso set interfaces fe-1/2/2 unit 0 description to-R2 set interfaces fe-1/2/2 unit 0 family inet address 10.0.0.22/30 set interfaces fe-1/2/2 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.0.4/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0004.00 set protocols isis interface fe-1/2/0.0 mesh-group 1 set protocols isis interface fe-1/2/1.0 mesh-group 1 set protocols isis interface fe-1/2/2.0 mesh-group 1 set protocols isis interface lo0.0
逐步过程
以下示例要求您在配置层次结构中的各个级别上导航。有关导航 CLI 的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器。
要配置 IS-IS 网格组:
配置接口。
[edit interfaces] user@R1# set fe-1/2/0 unit 0 description to-R2 user@R1# set fe-1/2/0 unit 0 family inet address 10.0.0.1/30 user@R1# set fe-1/2/0 unit 0 family iso user@R1# set fe-1/2/1 unit 0 description to-R4 user@R1# set fe-1/2/1 unit 0 family inet address 10.0.0.5/30 user@R1# set fe-1/2/1 unit 0 family iso user@R1# set fe-1/2/2 unit 0 description to-R3 user@R1# set fe-1/2/2 unit 0 family inet address 10.0.0.9/30 user@R1# set fe-1/2/2 unit 0 family iso user@R1# set lo0 unit 0 family inet address 192.168.0.1/32 user@R1# set lo0 unit 0 family iso address 49.0002.0192.0168.0001.00
在接口上启用 IS-IS,并分配一个网状组号。
[edit protocols isis] user@R1# set interface fe-1/2/0.0 mesh-group 1 user@R1# set interface fe-1/2/1.0 mesh-group 1 user@R1# set interface fe-1/2/2.0 mesh-group 1 user@R1# set interface lo0.0
结果
在配置模式下,输入和 show protocols
命令以确认show interfaces
您的配置。如果输出未显示预期的配置,请重复此示例中的说明,以更正配置。
user@R1# show interfaces
fe-1/2/0 {
unit 0 {
description to-R2;
family inet {
address 10.0.0.1/30;
}
family iso;
}
}
fe-1/2/1 {
unit 0 {
description to-R4;
family inet {
address 10.0.0.5/30;
}
family iso;
}
}
fe-1/2/2 {
unit 0 {
description to-R3;
family inet {
address 10.0.0.9/30;
}
family iso;
}
}
lo0 {
unit 0 {
family inet {
address 192.168.0.1/32;
}
family iso {
address 49.0002.0192.0168.0001.00;
}
}
}
user@R1# show protocols
isis {
interface fe-1/2/0.0 {
mesh-group 1;
}
interface fe-1/2/1.0 {
mesh-group 1;
}
interface fe-1/2/2.0 {
mesh-group 1;
}
interface lo0.0;
}
完成设备配置后,请在配置模式下输入 提交 。
验证
确认配置工作正常。
检查接口网状组
目的
验证 IS-IS 接口上是否已启用网格组。
行动
在操作模式下,输入 show isis interface extensive
命令。
user@R1> show isis interface extensive IS-IS interface database: lo0.0 Index: 68, State: 0x6, Circuit id: 0x1, Circuit type: 0 LSP interval: 100 ms, CSNP interval: disabled, Loose Hello padding Adjacency advertisement: Advertise Level 1 Adjacencies: 0, Priority: 64, Metric: 0 Passive Level 2 Adjacencies: 0, Priority: 64, Metric: 0 Passive fe-1/2/0.1 Index: 73, State: 0x206, Circuit id: 0x1, Circuit type: 3 LSP interval: 100 ms, CSNP interval: 10 s, Loose Hello padding Adjacency advertisement: Advertise CSNP interval: disabled, Mesh group: 1 Level 1 Adjacencies: 1, Priority: 64, Metric: 10 Hello Interval: 9.000 s, Hold Time: 27 s Designated Router: tp5-R2.03 (not us) Level 2 Adjacencies: 1, Priority: 64, Metric: 10 Hello Interval: 9.000 s, Hold Time: 27 s Designated Router: tp5-R2.03 (not us) fe-1/2/1.0 Index: 75, State: 0x206, Circuit id: 0x1, Circuit type: 3 LSP interval: 100 ms, CSNP interval: 10 s, Loose Hello padding Adjacency advertisement: Advertise CSNP interval: disabled, Mesh group: 1 Level 1 Adjacencies: 1, Priority: 64, Metric: 10 Hello Interval: 9.000 s, Hold Time: 27 s Designated Router: tp5-R4.03 (not us) Level 2 Adjacencies: 1, Priority: 64, Metric: 10 Hello Interval: 9.000 s, Hold Time: 27 s Designated Router: tp5-R4.03 (not us) fe-1/2/2.0 Index: 76, State: 0x206, Circuit id: 0x1, Circuit type: 3 LSP interval: 100 ms, CSNP interval: 10 s, Loose Hello padding Adjacency advertisement: Advertise CSNP interval: disabled, Mesh group: 1 Level 1 Adjacencies: 1, Priority: 64, Metric: 10 Hello Interval: 9.000 s, Hold Time: 27 s Designated Router: tp5-R3.02 (not us) Level 2 Adjacencies: 1, Priority: 64, Metric: 10 Hello Interval: 9.000 s, Hold Time: 27 s Designated Router: tp5-R3.02 (not us)
意义
Mesh group: 1
输出中显示网格组已按预期启用。
检查 IS-IS 统计数据
目的
验证接收和发送的链路状态 PDU 是否小于未启用网格组时的数量。
行动
在操作模式下,输入 show isis statistics
命令。
user@R1> show isis statistics IS-IS statistics for tp5-R1: PDU type Received Processed Drops Sent Rexmit LSP 73 73 0 37 0 IIH 4463 85 0 1525 0 CSNP 1294 1294 0 0 0 PSNP 0 0 0 2 0 Unknown 0 0 0 0 0 Totals 5830 1452 0 1564 0 Total packets received: 5830 Sent: 1564 SNP queue length: 0 Drops: 0 LSP queue length: 0 Drops: 0 SPF runs: 26 Fragments rebuilt: 15 LSP regenerations: 4 Purges initiated: 0
意义
邻接建立约 38 分钟后,输出显示设备 R1 已接收 73 个链路状态 PDU,并发送了 37 个链路状态 PDU。在不启用网格组的情况下,在同一拓扑中,设备 R1 大约接收 156 个链路状态 PDU,发送了大约 117 个链路状态 PDU。