Cisco 配置 IS-IS 邻接和区域类型

注:本文第一篇为 Cisco 配置 IS-IS 邻接和区域类型的文档,增加一处讨论。
第二篇作者提到了 GNS3 仿真环境中 Cisco IOS 镜像的注意事项。
第三篇 串一下 Huawei 基配。


简介

本文档介绍中间系统到中间系统 (IS-IS) 协议邻接关系和区域类型。

先决条件

要求

  • 对中间系统到中间系统 (IS-IS) 的基本了解
  • 开放最短路径优先 (OSPF) 协议的基础知识

使用的组件

本文档不限于特定的软件和硬件版本。

本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。

背景信息

IS-IS 协议被广泛用作互联网服务提供商 (ISP) 环境中的内部网关协议 (IGP)。本文档的范围是提供有关 IS-IS 区域类型、配置和故障排除的信息。它显示了一个示例网络场景及其配置,以及一些调试、捕获和输出,以便更好地理解。

在本文中,IS-IS 表示集成 IS-IS。集成 IS-IS 已部署,这意味着 IS-IS 是路由互联网协议 (IP)。 IS-IS 的真正力量在于它使用类型长度值 (TLV) 使得 IS-IS 协议具有高度可扩展性。 随着新功能的引入,它们可以与 TLV 一起添加到协议中。

IS-IS 区域

在 OSPF 协议中,路由器的任何接口都可以分配给特定区域。但是,IS-IS 中的区域概念不同。一般而言,这里的每台路由器属于一个区域。

这种想法源于最初创建 IS-IS 以路由无连接网络协议 (CLNP),其中地址属于设备(路由器),而在 Internet 协议 (IP) 中,地址属于特定接口。

IS-IS 协议有两个级别或层次结构,即级别 1 和级别 2。

级别 1 对应于 OSPF 区域内路由,而级别 2 对应于 OSPF 主干区域 0 路由。

2 级区域将所有区域与主干区域连接起来。

默认情况下,每台 Cisco 路由器都作为 1-2 级 (L1/L2) 路由器提供。

1 级路由器可以与 1 级和 1-2 级 (L1/L2) 路由器邻接。

2 级路由器可以与 2 级或 1-2 级 (L1/L2) 路由器邻接。

仅 L1 路由器和仅 L2 路由器之间没有邻接关系。

IS-IS 第 1 级 (L1) 路由器

对于所有区域内拓扑,IS-IS 第 1 级路由器具有其自己区域的链路状态信息。为了将数据包路由到其他区域,它使用最近的第 2 级路由器 (L1/L2)。 第 1 级区域的行为与 OSPF 完全末节区域大致相同。L1 是发送 L1 Hello 的唯一路由器。

IS-IS 级别 1-2 (L1/L2) 路由器

IS-IS L1/L2 路由器维护两个链路状态数据库信息。

一个用于级别 1,另一个用于级别 2。

将运行两个不同的最短路径优先 (SPF) 计算;一个在第 1 级链路状态数据库中,另一个在第 2 级链路状态数据库中。

IS-IS 级别 1-2 路由器的行为非常接近 OSPF 区域边界路由器 (ABR)。L1/L2 路由器发送 L1 和 L2 Hello 数据包。

默认情况下,L1/L2 路由器允许前缀从 L1 区域到 L2 区域单向通过,但不允许反向通过。

但是,如果需要将前缀从 L2 区域移动到 L1 区域,则需要在 IS-IS 配置下执行 redistribute 命令。

IS-IS 2 级 (L2) 路由器

IS-IS 第 2 级路由器具有区域内和区域间路由的链路状态信息。

L2 路由器仅发送 L2 Hello 数据包。IS-IS 第 2 级区域可与 OSPF 主干区域 0 进行比较。

IS-IS 邻接表

路由器类型L1L1/L2L2
L1L1 邻接(如果区域 ID 匹配),否则无邻接L1 邻接(如果区域 ID 匹配),否则无邻接无邻接
L1/L2L1 邻接(如果区域 ID 匹配),否则无邻接L1 和 L2 邻接(如果区域 ID 匹配),否则仅 L2 邻接L2 邻接,区域 ID 不重要
L2无邻接L2 邻接,区域 ID 不重要L2 邻接,区域 ID 不重要

Cisco 社区讨论: L1/L2 之间邻接关系

even if routers and links are L1/L2 capable the type of adjacency between two routers in different areas can only be L2 because the net-id (the CLNS address) is different.
 
即使路由器和链路支持 L1/L2,不同区域中的两个路由器之间的邻接类型也只能是 L2,因为 net-id(CLNS 地址)不同
 

MTU如果一个 IS-IS 路由器收到的 ISIS hello 数据包的 MTU 高于其可支持的 MTU(在接口上),则它会丢弃 hello,因此不会出现邻接关系。在最佳实践中,两端的 MTU 必须相同。
电路类型此属性在接口上配置并定义哪种 hello 类型,即 L1 或 L2 在特定接口上发送。
L1/L2 路由器可以选择性地在一个接口上只发送 L1 hello 数据包,而在另一个接口上只发送 L2 hello 数据包。
如果 L1/L2 路由器尝试与 L1 专用路由器对等,并且 L1/L2 接口配置了 isis circuit-type level-2,则它仅向接口发送 L2 hello 数据包,且与 L1 路由器的邻接关系未建立。路由器必须发送兼容类型的 hello 数据包。
身份验证IS-IS 可以分别对 Hello 和链路状态协议数据单元 (LSP) 进行身份验证。
如果 Hello 数据包的身份验证正确,并且 LSP 身份验证失败,则邻接关系会建立,但更新不会交换。
如果为 IS-IS hello 或 PDU(协议数据单元)配置了身份验证,则两端必须匹配。
功能 TLV如果某个 IS-IS 路由器不支持来自另一个 IS-IS 路由器的功能 TLV,则会静默忽略 TLV。但是,当一台路由器到达 INIT 状态时,由于功能不匹配,会发生一些事件,而另一台路由器会丢弃数据包且无法形成邻接关系。
作为一般建议,功能 TLV 必须匹配才能成功形成邻接关系。
网络类型IS-IS 中有两种网络类型:广播和点对点。广播是默认网络类型。
如果一端配置了 isis network point-to-point,而另一端是默认网络类型,则 hello 数据包将被丢弃,并且不会建立邻接关系。两端的网络类型必须匹配。
HelloHello 计时器无需匹配即可建立邻接关系。
IS-IS 邻接状态

IS-IS 中只有三种邻接状态。

  1. Down:这是初始状态。这意味着未收到来自邻居的 hello 消息。
  2. 正在初始化:此状态意味着本地路由器已成功收到来自邻居路由器的 hello 数据包,但是,不确定邻居路由器是否也成功收到了本地 hello 数据包。
  3. Up:现在,已确认邻居路由器接收本地路由器的 hello 数据包。

配置

网络图

子网属于 192.168.X.0 类型,其中 X 显示在图中的接口之间。

环回接口的类型为 192.168.YY.YY,其中 Y 为 1(当路由器为 R1 时)。因此,R1 的环回 IP 是 192.168.11.11。

L1、L1/L2 和 L2 分别是 1 级、1-2 级和 2 级路由器。

IS-IS

配置

IS-IS 协议需要在接口级别和全局级别进行配置。

R1
!
interface Loopback1
 ip address 192.168.11.11 255.255.255.255
 ip router isis 1
!
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 ip router isis 1
 interface FastEthernet1/0
 ip address 192.168.2.1 255.255.255.0
 ip router isis 1
!
router isis 1
 net 49.0000.0000.0001.00
 is-type level-1
!
R2
!
interface Loopback1
 ip address 192.168.22.22 255.255.255.255
 ip router isis 1
!
interface FastEthernet0/0
 ip address 192.168.1.2 255.255.255.0
 ip router isis 1
 interface FastEthernet1/0
 ip address 192.168.3.2 255.255.255.0
 ip router isis 1
!
router isis 1
 net 49.0000.0000.0002.00
 is-type level-1
! 
R3
!
interface Loopback1
 ip address 192.168.33.33 255.255.255.255
 ip router isis 1
!
interface FastEthernet0/0
 ip address 192.168.2.3 255.255.255.0
 ip router isis 1
 interface FastEthernet1/0
 ip address 192.168.4.3 255.255.255.0
 ip router isis 1
!
router isis 1
 net 49.0000.0000.0003.00
 is-type level-1
!
R4
!
interface Loopback1
 ip address 192.168.44.44  255.255.255.255
 ip router isis 1
!
interface FastEthernet0/0
 ip address 192.168.3.4 255.255.255.0
 ip router isis 1
!
interface FastEthernet1/0
 ip address 192.168.4.4 255.255.255.0
 ip router isis 1
!
interface FastEthernet1/1
 ip address 192.168.5.4 255.255.255.0
 ip router isis 1
!
interface FastEthernet2/0
 ip address 192.168.6.4 255.255.255.0
 ip router isis 1
!
router isis 1
 net 49.0000.0000.0004.00
!
R5
!
interface Loopback1
 ip address 192.168.55.55 255.255.255.255
 ip router isis 1
!
interface FastEthernet0/0
 ip address 192.168.5.5 255.255.255.0
 ip router isis 1
!
interface FastEthernet1/0
 ip address 192.168.7.5 255.255.255.0
 ip router isis 1
!
router isis 1
 net 50.0000.0000.0005.00
 is-type level-2-only
!
R6
!
interface Loopback1
 ip address 192.168.66.66 255.255.255.255
 ip router isis 1
!
interface FastEthernet0/0
 ip address 192.168.6.6 255.255.255.0
 ip router isis 1
!
interface FastEthernet1/0
 ip address 192.168.8.6 255.255.255.0
 ip router isis 1
!
router isis 1
 net 50.0000.0000.0006.00
 is-type level-2-only
!
R7
!
interface Loopback1
 ip address 192.168.77.77 255.255.255.255
 ip router isis 1
!
interface FastEthernet0/0
 ip address 192.168.7.7 255.255.255.0
 ip router isis 1
!
interface FastEthernet1/0
 ip address 192.168.8.7 255.255.255.0
 ip router isis 1
!
router isis 1
 net 50.0000.0000.0007.00
 is-type level-2-only
!

验证

R1 和 R2 之间的邻接关系

R1 和 R2 中的区域 ID 相同。两者都是 1 级路由器。 它们之间存在 L1 邻接。

R1#show isis neighbors
Tag 1:
System Id      Type Interface   IP Address      State Holdtime Circuit Id
R2             L1   Fa0/0       192.168.1.2     UP     7       R2.01

由于 R1 和 R2 都是 L1 路由器并且属于同一区域,因此只有第 1 层类型 IS-IS hello 源于 R1 和 R2 之间的 LAN 网段。

R1#debug isis adj-packets fastEthernet 0/0
*Nov 25 19:25:53.995: ISIS-Adj: Sending L1 LAN IIH on FastEthernet0/0, length 1497
*Nov 25 19:25:54.071: ISIS-Adj: Rec L1 IIH from ca02.1c80.0000 (FastEthernet0/0), cir type L1, cir id 0000.0000.0002.01, length 1497
-- The highlighted portion shows the Mac Address and the circuit id of R2, it also shows that L1 IS-IS hello packet was received from R2 --
*Nov 25 19:25:54.075: ISIS-Adj: New adjacency, level 1 for ca02.1c80.0000
-- The above line shows that R1 has discovered a new neighbour capable of L1 adjacency, having the mac address ca02.1c80.0000 R2 --
*Nov 25 19:25:54.991: ISIS-Adj: Sending L1 LAN IIH on FastEthernet0/0, length 1497
*Nov 25 19:25:55.047: ISIS-Adj: Rec L1 IIH from ca02.1c80.0000 (FastEthernet0/0), cir type L1, cir id 0000.0000.0002.01, length 1497
*Nov 25 19:25:55.051: ISIS-Adj: L1 adj count 1
*Nov 25 19:25:55.055: ISIS-Adj: L1 adjacency state goes to Up
-- Once both the routers mutually agree on interface settings and other global parameters (e.g. authentication, circuit-type, mtu etc.) the L1 adjacency finally comes up --

数据包捕获

捕获从 R2 发送到 R1 的 IS-IS Hello 数据包
ISIS HELLO
    .... ..01 = Circuit type: Level 1 only (0x01) >>>            Circuit type is Level 1
    0000 00.. = Reserved: 0x00
    SystemID {Sender of PDU}: 0000.0000.0002     >>>            Identification of R2
    Holding timer: 10                             >>>            Hold timer for hellos
    PDU length: 1497                              >>>            Entire PDU in bytes
    .100 0000 = Priority: 64                      >>>            Default Priority for DR election
    0... .... = Reserved: 0
    SystemID {Designated IS}: 0000.0000.0002.01   >>>            SystemID + Pseudonode ID
    Protocols Supported (1)
        NLPID (s): IP (0xcc)                       >>>            IS-IS is routing IP
    Area address (es) (2)
        Area address (1): 49                      >>>            Area id of R2
    IP Interface address (es) (4)
        IPv4 interface address: 192.168.1.2 (192.168.1.2) >>>    IP of R2’s fa0/0
    Restart Signaling (3)
        Restart Signaling Flags: 0x00
            .... .0.. = Suppress Adjacency: False
            .... ..0. = Restart Acknowledgment: False
            .... ...0 = Restart Request: False
    IS Neighbor (s) (6)
        IS Neighbor: ca:01:1d:a4:00:00 (ca:01:1d:a4:00:00) >>>   Mac of R2 ( fa0/0 )
    Padding (255)
    Padding (255)
    Padding (255)
    Padding (255)
    Padding (255)
    Padding (157)
捕获从 R1 发送到 R2 的 IS-IS Hello
ISIS HELLO
    .... ..01 = Circuit type: Level 1 only (0x01)  >>>           Circuit type is Level 1
    0000 00.. = Reserved: 0x00
    SystemID {Sender of PDU}: 0000.0000.0001       >>>           Identification of R1
    Holding timer: 30                              >>>           Hold time for hellos
    PDU length: 1497                               >>>           Entire PDU in bytes
    .100 0000 = Priority: 64                       >>>           Default Priority for DR election
    0... .... = Reserved: 0
    SystemID {Designated IS}: 0000.0000.0001.01    >>>           SystemID + Pseudonode Id
    Protocols Supported (1)
        NLPID (s): IP (0xcc)                        >>>           IS-IS is routing IP
    Area address (es) (2)
        Area address (1): 49                       >>>           Area id of R1
    IP Interface address (es) (4)
        IPv4 interface address: 192.168.1.1 (192.168.1.1) >>>    IP of R1 fa0/0  interface
    Restart Signaling (3)
        Restart Signaling Flags: 0x00
            .... .0.. = Suppress Adjacency: False
            .... ..0. = Restart Acknowledgment: False
            .... ...0 = Restart Request: False
    IS Neighbor (s) (6)
        IS Neighbor: ca:02:1c:80:00:00 (ca:02:1c:80:00:00)>>>    Mac of R1 fa0/0 interface
    Padding (255)
    Padding (255)
    Padding (255)    
    Padding (255)
    Padding (255)
    Padding (157)
填充

Cisco IOS® 实施了一种机制,用于在建立邻接之前检测接口上的 MTU。

建立邻接关系后,不会因 MTU 问题发生丢包,从而防止数据库损坏。

填充 IS-IS Hello 会增加其大小,直到接口的 MTU 为止,并且观察另一端是否可以接受具有此 MTU 的 Hello 数据包。

如果在另一端退出较低的 MTU,则该端会丢弃 Hello 数据包,因此不会建立邻接关系。

保持计时器

在 IS-IS 中,广播 LAN 网段中的 DR 始终发送 hello 数据包,发送时间为正常 hello 时间的三分之一,即 10 秒。 从 DR 的角度来看,Hello 时间为 3.33 秒,保持时间为 10 秒。在之前的捕获示例中,R2 是 DR。这也可以从以下输出进行验证。

R2#sh clns interface fastEthernet 0/0
FastEthernet0/0 is up, line protocol is up
 Checksums enabled, MTU 1497, Encapsulation SAP
 ERPDUs enabled, min. interval 10 msec.
 CLNS fast switching enabled
 CLNS SSE switching disabled
 DEC compatibility mode OFF for this interface
 Next ESH/ISH in 31 seconds
 Routing Protocol: IS-IS
 Circuit Type: level-1-2
 Interface number 0x1, local circuit ID 0x1
 Level-1 Metric: 10, Priority: 64, Circuit ID: R2.01
 DR ID: R2.01
 Level-1 IPv6 Metric: 10
 Number of active level-1 adjacencies: 1
 Next IS-IS LAN Level-1 Hello in 1 seconds
 

R2 和 R4 之间的邻接关系

R2 和 R4 之间的区域 ID 相同。R2 为级别 1,R4 为级别 1-2。

如前所述,由于 R4 是 L1/L2 路由器,因此它同时发送 L1 和 L2 Hello。

R2 是 L1 唯一路由器,区域 ID 相同,因此形成 L1 邻接关系。

R2#show isis neighbors
Tag 1:
System Id Type Interface IP Address State Holdtime Circuit Id
R4 L1 Fa1/0 192.168.3.4 UP 8 R4.01
 
*Nov 26 03:56:25.299: ISIS-Adj: Sending L1 LAN IIH on FastEthernet1/0, length 1497
*Nov 26 03:56:25.355: ISIS-Adj: Rec L1 IIH from ca04.0cf4.0000 (FastEthernet1/0), cir type L1L2, cir id 0000.0000.0004.01, length 1497
*Nov 26 03:56:25.355: ISIS-Adj: New adjacency, level 1 for ca04.0cf4.0000
*Nov 26 03:56:26.299: ISIS-Adj: Sending L1 LAN IIH on FastEthernet1/0, length 1497
*Nov 26 03:56:26.339: ISIS-Adj: Rec L1 IIH from ca04.0cf4.0000 (FastEthernet1/0), cir type L1L2, cir id 0000.0000.0004.01, length 1497
*Nov 26 03:56:26.343: ISIS-Adj: L1 adj count 1
*Nov 26 03:56:26.343: ISIS-Adj: L1 adjacency state goes to Up
*Nov 26 03:56:26.347: ISIS-Adj: Run level-1 DR election for FastEthernet1/0
*Nov 26 03:56:26.351: ISIS-Adj: New level-1 DR 0000.0000.0004 on FastEthernet1/0
*Nov 26 03:56:26.467: ISIS-Adj: Rec L2 IIH from ca04.0cf4.0000 (FastEthernet1/0), cir type L1L2, cir id 0000.0000.0004.01, length 1497
*Nov 26 03:56:26.471: ISIS-Adj: is-type mismatch
-- The above line in output is due to the fact that R2 is L1 only and hence does not understand the L2 hellos from the L1/L2 Router R2 --
数据包捕获
从 R4 到 R2 的 L2 Hello 数据包捕获
ISO 10589 ISIS InTRA Domain Routing Information Exchange Protocol

    Intra Domain Routing Protocol Discriminator: ISIS (0x83)
     PDU Header Length: 27
     Version: 1
     System ID Length: 0
     ...1 0000 = PDU Type: L2 HELLO (16)                                          
     000. ... = Reserved: 0x00
     Version2 (==1): 1
     Reserved (==0): 0
     Max.AREAs: (0==3): 0
 ISIS HELLO
     .... ..11 = Circuit type: Level 1 and 2 (0x03)
     0000 00.. = Reserved: 0x00
     SystemID {Sender of PDU}: 0000.0000.0004
     Holding timer: 30
     PDU length: 1497
     .100 0000 = Priority: 64
     0... .... = Reserved: 0
     SystemID {Designated IS}: 0000.0000.0004.01
     Protocols Supported (1)
         NLPID (s): IP (0xcc)
     Area address (es) (2)
         Area address (1): 49
     IP Interface address (es) (4)
         IPv4 interface address: 192.168.3.4 (192.168.3.4)
     Restart Signaling (3)
         Restart Signaling Flags: 0x00
             .... .0.. = Suppress Adjacency: False
             .... ..0. = Restart Acknowledgment: False
             .... ...0 = Restart Request: False
     Padding (255)
     Padding (255)
     Padding (255)
     Padding (255)
     Padding (255)
     Padding (165)
从 R4 到 R2 的 L1 Hello 数据包捕获
ISO 10589 ISIS InTRA Domain Routing Information Exchange Protocol
    Intra Domain Routing Protocol Discriminator: ISIS (0x83)
    PDU Header Length: 27
    Version: 1
    System ID Length: 0
    ...0 1111 = PDU Type: L1 HELLO (15)                                               
    000. .... = Reserved: 0x00
    Version2 (==1): 1
    Reserved (==0): 0
    Max.AREAs: (0==3): 0
ISIS HELLO
    .... ..11 = Circuit type: Level 1 and 2 (0x03)
    0000 00.. = Reserved: 0x00
    SystemID {Sender of PDU}: 0000.0000.0004
    Holding timer: 30
    PDU length: 1497
    .100 0000 = Priority: 64
    0... .... = Reserved: 0
    SystemID {Designated IS}: 0000.0000.0004.01
    Protocols Supported (1)
        NLPID (s): IP (0xcc)
    Area address (es) (2)
        Area address (1): 49
    IP Interface address (es) (4)
        IPv4 interface address: 192.168.3.4 (192.168.3.4)
    Restart Signaling (3)
        Restart Signaling Flags: 0x00
            .... .0.. = Suppress Adjacency: False
            .... ..0. = Restart Acknowledgment: False
            .... ...0 = Restart Request: False
    IS Neighbor (s) (6)
    Padding (255)
    Padding (255)
    Padding (255)
    Padding (255)
    Padding (255)
    Padding (157)
从 R2 到 R4 的 L1 Hello 数据包捕获
ISO 10589 ISIS InTRA Domain Routing Information Exchange Protocol
    Intra Domain Routing Protocol Discriminator: ISIS (0x83)
    PDU Header Length: 27
    Version: 1                        
    System ID Length: 0
    ...0 1111 = PDU Type: L1 HELLO (15)
    000. .... = Reserved: 0x00
    Version2 (==1): 1
    Reserved (==0): 0
    Max.AREAs: (0==3): 0
ISIS HELLO
    .... ..01 = Circuit type: Level 1 only (0x01)
    0000 00.. = Reserved: 0x00
    SystemID {Sender of PDU}: 0000.0000.0002
    Holding timer: 30
    PDU length: 1497
    .100 0000 = Priority: 64
    0... .... = Reserved: 0
    SystemID {Designated IS}: 0000.0000.0002.02
    Protocols Supported (1)
        NLPID (s): IP (0xcc)
    Area address (es) (2)
        Area address (1): 49
    IP Interface address (es) (4)
        IPv4 interface address: 192.168.3.2 (192.168.3.2)
    Restart Signaling (3)
        Restart Signaling Flags: 0x00
            .... .0.. = Suppress Adjacency: False
            .... ..0. = Restart Acknowledgment: False
            .... ...0 = Restart Request: False
    IS Neighbor (s) (6)
    Padding (255)
    Padding (255)           
    Padding (255)
    Padding (255)
    Padding (255)
    Padding (157)

R4 和 R5 之间的邻接关系

R4 和 R5 之间的区域 ID 不同。R4 为级别 1-2,R5 为级别 2。因此形成 L2 邻接。

R4#show isis neighbors
Tag 1:
System Id            Type Interface   IP Address         State   Holdtime   Circuit Id
R2                    L1   Fa0/0       192.168.3.2        UP      19           R4.01
R5                    L2   Fa1/1       192.168.5.5        UP       4           R5.01

R5 和 R7 之间的邻接关系

R5 和 R7 之间的区域 ID 相同。R5 为级别 2,R7 为级别 2。因此形成 L2 邻接。

R5#show isis neighbors
Tag 1:
System Id            Type Interface   IP Address         State   Holdtime   Circuit Id
R4                    L2   Fa0/0       192.168.5.4        UP      29            R5.01
R7                    L2   Fa1/0       192.168.7.7        UP      4             R7.01

第 1 层路由器中的前缀

如前所述,L1 路由器只有区域内的 LSA,并使用最近的 L1/L2 路由器到达网络的其他部分。 L1 区域充当 OSPF 完全末节区域。路由表中显示 L1/L2 路由器 R4 生成的默认路由。使用此默认路由可以到达外部目的地。

R1#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is 192.168.2.3 to network 0.0.0.0
i*L1  0.0.0.0/0 [115/20] via 192.168.2.3, 00:25:31, FastEthernet1/0
                [115/20] via 192.168.1.2, 00:25:31, FastEthernet0/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, FastEthernet0/0
L        192.168.1.1/32 is directly connected, FastEthernet0/0
      192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/24 is directly connected, FastEthernet1/0
L        192.168.2.1/32 is directly connected, FastEthernet1/0
i L1  192.168.3.0/24 [115/20] via 192.168.1.2, 00:25:31, FastEthernet0/0
i L1  192.168.4.0/24 [115/20] via 192.168.2.3, 03:17:05, FastEthernet1/0
i L1  192.168.5.0/24 [115/30] via 192.168.2.3, 00:25:31, FastEthernet1/0
-----------Output Omitted -----------

L1/L2 路由器中的前缀

L1/L2 路由器维护两个链路状态数据库,一个用于 L1 区域,另一个用于 L2 区域。因此,需要两个不同的 SPF 计算。

L1/L2 路由器在 L1 区域中发送默认路由,以便 L1 路由器可以到达网络的其它部分。此处观察 L1 和 L2 路由。

R4#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

i L1  192.168.1.0/24 [115/20] via 192.168.3.2, 00:30:18, FastEthernet0/0
i L1  192.168.2.0/24 [115/20] via 192.168.4.3, 03:21:58, FastEthernet1/0
      192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.3.0/24 is directly connected, FastEthernet0/0
L        192.168.3.4/32 is directly connected, FastEthernet0/0
      192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.4.0/24 is directly connected, FastEthernet1/0
L        192.168.4.4/32 is directly connected, FastEthernet1/0
      192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.5.0/24 is directly connected, FastEthernet1/1
L        192.168.5.4/32 is directly connected, FastEthernet1/1
      192.168.6.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.6.0/24 is directly connected, FastEthernet2/0
L        192.168.6.4/32 is directly connected, FastEthernet2/0
i L2  192.168.7.0/24 [115/20] via 192.168.5.5, 00:00:57, FastEthernet1/1
i L2  192.168.8.0/24 [115/20] via 192.168.6.6, 00:00:32, FastEthernet2/0
-----------Output Omitted -----------

第 2 层路由器中的前缀

L2 路由器类似于 OSPF 主干路由器。所有信息都存在于 L2 路由器中。来自 L1 区域的环回作为 L2 路由器的路由表中的 L2 路由存在。

R7#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

i L2  192.168.1.0/24 [115/40] via 192.168.8.6, 00:31:54, FastEthernet1/0
                     [115/40] via 192.168.7.5, 00:31:54, FastEthernet0/0
i L2  192.168.2.0/24 [115/40] via 192.168.8.6, 03:23:23, FastEthernet1/0
                     [115/40] via 192.168.7.5, 03:23:23, FastEthernet0/0
i L2  192.168.3.0/24 [115/30] via 192.168.8.6, 03:23:23, FastEthernet1/0
                     [115/30] via 192.168.7.5, 03:23:23, FastEthernet0/0
i L2  192.168.4.0/24 [115/30] via 192.168.8.6, 03:23:23, FastEthernet1/0
                     [115/30] via 192.168.7.5, 03:23:23, FastEthernet0/0
i L2  192.168.5.0/24 [115/20] via 192.168.7.5, 00:02:35, FastEthernet0/0
i L2  192.168.6.0/24 [115/20] via 192.168.8.6, 00:02:10, FastEthernet1/0
      192.168.7.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.7.0/24 is directly connected, FastEthernet0/0
L        192.168.7.7/32 is directly connected, FastEthernet0/0
      192.168.8.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.8.0/24 is directly connected, FastEthernet1/0
L        192.168.8.7/32 is directly connected, FastEthernet1/0
      192.168.11.0/32 is subnetted, 1 subnets
i L2     192.168.11.11 [115/50] via 192.168.8.6, 03:23:23, FastEthernet1/0
                       [115/50] via 192.168.7.5, 03:23:23, FastEthernet0/0
      192.168.22.0/32 is subnetted, 1 subnets
i L2     192.168.22.22 [115/40] via 192.168.8.6, 00:31:54, FastEthernet1/0
                       [115/40] via 192.168.7.5, 00:31:54, FastEthernet0/0
-----------Output Omitted -----------

故障排除

目前没有针对此配置的故障排除信息。

修订历史记录

已更新: 2024 年 6 月 25 日

文档 ID: 200293

版本发布日期备注
3.025-Jun-2024更新的 Alt 文本、机器翻译和格式。
2.009-Jan-2023重新认证
1.014-Dec-2015初始版本

IS-IS 协议分析与配置

Captain_RB 于 2022-01-10 20:51:00 发布

本文简要

分析 IS-IS 协议的原理和应用,利用 GNS3 仿真器搭建环境,对 IS-IS 协议进行实验配置,供学习记录。
GNS3 仿真环境中运行的是 Cisco IOS 镜像,比 CPT 更加接近真实环境,而且 CPT 也不支持 ISIS 协议。

初次使用 GNS3 踩了个坑,用的镜像配置起来是正常的,但是 ISIS 协议却配不通,折腾了几天换了个镜像就好了,所以使用 GNS3 一定要确保镜像正常,不然事倍功半浪费时间。

按照作用于 AS 的范围,常见路由协议可划分为两类:

  • 内部网关协议(Interior Gateway Protocols, IGP):具体包括 RIP、OSPF、IS-IS、EIGRP 等,一般由单个 ISP 运营于一个 AS 内,有统一的自治系统号,目前大型企业内部多使用 OSPF、IS-IS,小型企业内部使用 RIP 或静态路由。

  • 外部网关协议(Exterior Gateway Protocols, EGP):BGP 是目前唯一使用的一种 EGP 协议,它是 AS 间的路由协议,一般用于不同 ISP 之间交换路由信息,以及大型企业、政府等具有较大规模的私有网络。

下面对内部网关协议 IS-IS 进行介绍:

一、基本原理

IS-IS (Intermediate System-to-Intermediate System) 也是一种链路状态路由协议,最初设计用来应用于 CLNP 网络 (Connectionless Network Protocol,无连接网络协议,OSI 体系中的网络层协议,类似 TCP/IP 模型中的 IP 协议),后因 TCP/IP 迅速发展和广泛应用,IS-IS 对此进行了扩充和修改,使它能够同时应用在 TCP/IP 和 OSI。

与 OSPF 协议相似,IS-IS 同样使用最短路径优先算法 (Shortest Path First, SPF, 也称为 Dijkstra 算法) 生成最短路径树并构造路由表,其路径开销 (Cost) 计算基于接口的带宽,相比于 OSPF,IS-IS 更加适用于如 ISP、数据中心等规模和承载量更大、区域类型相对简单、层次扁平化的大型网络。

IS-IS 同样将 AS 划分成多个逻辑区域,分为骨干区域和非骨干区域,但其不再使用编号区分骨干区域和非骨干区域,而是基于路由器的级别 (Level)。IS-IS 报文工作在链路层,每个区域中所有路由器通过组播 (Level-1: 01-80-C2-00-00-14, Level-2: 01-80-C2-00-00-15) 的方式维护着一个相同的链路状态数据库 (Link State DataBase, LSDB),LSDB 存放着接口的相关信息 (IP 地址、带宽以及所连接的邻居等),IS-IS 路由器通过各自的 LSDB 进行路由计算。

(一) 路由器类型

IS-IS 中的路由器按层次划分:

  • Level-1(L1):负责区域内路由,它只与同一区域的 L1 和 L1-2 路由器形成 L1 邻居关系,维护一个 L1 的 LSDB,该 LSDB 只包含本区域的路由信息,到区域外的报文要转发给最近的 L1-2 路由器。

  • Level-2(L2):负责区域间路由,可以与同一区域的 L2 路由器,或者不同区域的 L1-2 路由器形成 L2 邻居关系,维护一个 L2 的 LSDB,该 LSDB 包含区域间的路由信息,负责在不同区域间通信,路由域中的 L2 路由器必须是物理连续的,以保证骨干网的连续性。

  • Level-1-2(L1-2):同时属于 L1 和 L2 的路由器,可以与同一区域的 L1 和 L1-2 路由器形成 L1 邻居关系,也可以与不同区域的 L2 和 L1-2 路由器形成 L2 的邻居关系。L1 路由器必须通过 L1-2 路由器才能连接至其他区域。L1-2 路由器维护两个链路状态数据库,L1 的链路状态数据库用于区域内路由,L2 的链路状态数据库用于区域间路由。

(二) 区域类型

与 OSPF 相同,分为骨干区域和非骨干区域,L2 邻居关系的路由器(L2 和 L1-2 路由器) 构成骨干区域,L1 邻居关系的路由器(L1 和 L1-2 路由器) 构成非骨干区域,非骨干区域必须通过 L1-2 路由器与骨干区域相连,IS-IS 协议中没有虚链路的概念,骨干区域与非骨干区域在物理上都必须是一个整体。

非骨干区域只维护自身区域的 LSDB,骨干区域维护自身以及非骨干区域的 LSDB,骨干区域和非骨干区域联系的唯一纽带就是 L1-2 路由器,当信息在骨干和非骨干区域之间传输时,L1-2 路由器充当信息中转枢纽,具体如下:

  • 骨干区域访问非骨干区域时,L1-2 路由器将 L1 级别的路由作为自身直连的节点进行描述,并通过 L2 级别的 LSP 在 L2 区域进行泛洪,因此骨干区域上的路由器知道非骨干区域的路由信息;

  • 非骨干区域访问骨干区域时,L1-2 路由器下发一条访问骨干区域的缺省路由指向路由器自身,缺省路由通过 ATT 比特位进行标记,由非骨干区域路由器计算得到。

注意:骨干区域和区域并不是一个概念,L1-2 路由器可以划分到 L1 区域也可以划分到 L2 区域,但 L1-2 和 L2 路由器一起构成了一个连续的骨干区域。

(三) NSAP 地址转换

ISO 网络和 IP 网络的网络层地址的编址方式不同,IP 网络的三层地址是常见的 IPv4 地址或 IPv6 地址,而 ISO 网络层地址称为 NSAP (Network Service Access Point,网络服务接入点),即便现在是集成 IS-IS,但是使用 NSAP 地址这项还是保留了下来,NSAP 由 IDP 与 DSP 两个部分组成,如下图所示:

  • IDP(Initial Domain Part):相当于 IP 地址中的主网络号 (网段),由 AFI (Authority and Format ID) 与 IDI (Inter-Domain ID) 两部分组成,AFI 表示地址分配机构和地址格式,IDI 表示 AFI 的子域

  • DSP(Domain Specific Part):相当于 IP 地址中的子网号和主机地址,它由 High Order DSP、System ID 和 SEL 三个部分组成,High Order DSP 用来分割区域,System ID 用来区分主机,一般要保持全局唯一性,相当于 OSPF 中的 Router-ID,SEL 用来指示服务类型,在 IP 网络中 SEL 为 00。

IDP 和 DSP 中的 High Order DSP 一起组成区域地址,用于标识 IS-IS 划分的区域,相当于 OSPF 中的区域编号,一般情况下,一个路由器只需要配置一个区域地址,且同一区域中所有节点的区域地址都要相同,有时为了支持区域的平滑合并、分割及转换,在设备的实现中,一个 IS-IS 进程下最多可配置 3 个区域地址。

IP 地址向 NSAP 转换方法,一般设置环回接口 (Loopback Interface) 地址,将 32 位 Lookback 地址补齐成 48 位,分割后再补齐获得,具体如下图所示:(实际上在配置时可以有不同方法,但需要满足字节长度要求和全局唯一性)

区域地址 (AREA ID) 最前边 1 个字节 AFI 为组织格式标识符,代表一个独立的组织机构,49 表示 OSI 协议的私有地址,39 表示 ISO 国家代码,47 表示 ISO 国际代码,后两个字节 IDI 为初始域标识符,代表 AFI 的子域,0001 为区域编号。

(四) 网络类型

基于链路层网络协议,IS-IS 支持两种网络类型:

(注意网络类型不同于物理拓扑,其划分主要基于网络在链路层运行的协议)

  • 点到点网络(Point to Point, P2P):链路层协议如 PPP 和 HDLC,此类网络不用进行 DIS 的选举,直接形成邻接关系

  • 广播多路访问网络(Broadcast Multi-Access, BMA):链路层协议如以太网 (IEEE 802.3),可以 (泛洪) 发送广播和组播报文,需要进行 DIS 的选举

(五) DIS

在广播多路访问网络中,IS-IS 需要在每个区域所有的路由器中选举一个作为 DIS (Designated Intermediate System),用于创建伪节点并负责生成伪节点的链路状态协议数据单元 LSP (Link State Protocol Data Unit),用来描述这个网络上的设备信息,同一区域内的路由器会通过 DIS 周期性 (10/3s) 发送 CSNP 来同步 LSDB,路由器之间只有邻居关系,而在 OSPF 中,邻居关系的路由器不一定用于同步 LSDB,只有在 DROTHER 与 DR 和 BDR 建立邻接关系才同步 LSDB。

伪节点是用来模拟广播网络的一个虚拟节点,并非真实的路由器。伪节点用 DIS 的 System ID 和一个字节的 Circuit ID (非 0 值) 标识,伪节点可以减小 LSP 大小,提高 SPF 计算速度。

DIS 的选举通过比较优先级,当有多个 IS-IS 路由器时,优先级高的选为 DIS,与 OSPF 不同的是,优先级为 0 的路由器也参与 DIS 的选举,而且 DIS 没有备份;如果优先级相同则通过比较 SNPA 大小,SNPA 大的选为 DIS,在局域网中 SNPA 为 MAC 地址。

(六) 路由器状态

OSPF 根据同步 LSDB 的阶段来划分路由器状态,而 IS-IS 路由器仅根据邻居关系建立过程区分三种路由器状态:

  • Down:没有收到邻居 HELLO 包时的状态

  • Initiated:收到邻居 HELLO 包,但是在 HELLO 包中没有发现自身信息

  • Up:收到邻居 HELLO 包,并发现自身信息,随后会进行 DIS 选举

(七) 工作过程

以常见的 BMA 类型网络为例,IS-IS 基本工作过程如下:

① 建立邻居关系:IS-IS 路由器初始化时,所有相邻路由器之间通过 HELLO 报文发现并建立邻居关系,邻居关系的路由器状态为 Up;

② 同步 LSDB:互为邻居关系的路由器首先选举出 DIS,刚加入区域的路由器会发送 LSP,DIS 收到 LSP 后将相应信息加入自身 LSDB,然后定期向邻居路由器发送完全序列号数据包 (Complete Sequence Number Packets, CSNP),CSNP 中包括 LSP 的摘要信息,包括接口地址、带宽、邻居等链路状态信息,如果收到 CSNP 的路由器发现数据包中 LSP 描述没有自身信息,则会返回特殊序列号数据包 (Partial Sequence Numbers PDU, PSNP),DIS 收到 PSNP 后会发送相应的 LSP,直到单个区域内所有的路由器都形成相同的 LSDB;

③ 构建路由表:同一个区域内的路由器会结合自身 LSDB 信息,使用 SPF 算法生成最短路径树,构建出各自的区域内路由表;L1-2 路由器将 L1 级别的路由作为自身直连的节点进行描述,并通过 L2 级别的 LSP 在 L2 区域进行泛洪,因此骨干区域上的路由器既有自身区域又有非骨干区域的路由信息,而非骨干区域路由器只有自身区域的路由信息,当其访问骨干区域时,L1-2 路由器下发一条访问骨干区域的缺省路由指向路由器自身。

④ 路由信息维护:一方面,当路由器的邻居状态发生改变,或是自身路由信息发生变化时,会触发 LSP 更新;另一方面,DIS 会周期性发送 CSNP,当区域中有路由器状态发生变化时会返回 PSNP 请求 LSP 以完成 LSDB 的同步。LSDB 完成同步后,如果路由信息更新则会重新计算生成新的路由表项。

(八) 优缺点分析

优点:
  • 收敛速度快,能够在最短的时间内将路由变化传递到整个自治系统
  • 支持大量网络节点和网络平移、分割、合并,适用于超大规模网络
  • 采用路径开销 (Cost) 作为度量标准,路径开销计算基于接口的带宽
  • 划分区域进行管理,减少大规模网络中协议运行的流量和开销
  • 协议相对 OSPF 更加简化,配置简单
缺点:
  • 支持网络类型有限

二、实验配置

(一) 实验拓扑

以 BMA 型网络为例,拓扑如下:

R1、R2、R3、R4 所在区域 Area ID 为 49.0001
R5、R6、R11、R12 所在区域 Area ID 为 49.0002
R7、R8、R9、R10 所在区域 Area ID 为 49.0003

(二) 配置命令

(基础配置略过,只记录路由相关配置部分)


# R1、R2、R3、R4 都是 L2 路由器,配置命令相似,以 R1 配置为例
# R1、R2、R3、R4 所在区域 Area ID 为 49.0001

R1 (config)# interface loopback 1  // 配置环回接口,接口地址用于配置 NSAP 中的 SYSTEM ID

R1 (config-if)# ip address 10.10.11.1 255.255.255.0
R1 (config-if)# exit
R1 (config)# router isis
R1 (config-router)# net 49.0001.0100.1001.0001.00 // 配置 NSAP,同一个区域的 AREA ID 是相同的,这里骨干区域 ID 设为 49.0001
R1 (config-router)# is-type level-2-only      // 配置 IS-IS 路由器类型 (缺省为 Level-1-2)
R1 (config-router)# exit
R1 (config)# interface fa0/0
R1 (config-if)# no shutdown
R1 (config-if)# ip address 1.1.1.1 255.255.255.0
R1 (config-if)# ip router isis           // 在接口开启 IS-IS 路由功能
R1 (config-if)# exit
R1 (config)# interface fa0/1
R1 (config-if)# no shutdown
R1 (config-if)# ip address 4.4.4.1 255.255.255.0
R1 (config-if)# ip router isis
R1 (config-if)# exit
R1 (config)# interface fa1/0
R1 (config-if)# no shutdown
R1 (config-if)# ip address 5.5.5.1 255.255.255.0
R1 (config-if)# ip router isis
R1 (config-if)# exit

# R5、R7、R9、R11 都是 L1-2 路由器,配置命令相似,以 R5 配置为例
# R5、R11 所在区域 Area ID 为 49.0002,R7、R9 所在区域 Area ID 为 49.0003

R5 (config)# interface loopback 1
R5 (config-if)# ip address 10.10.11.5 255.255.255.0
R5 (config-if)# exit
R5 (config)# router isis
R5 (config-router)# net 49.0002.0100.1001.0005.00  // 配置 NSAP,同一个区域的 AREA ID 相同
R5 (config-router)# is-type level-1-2
R5 (config-router)# exit
R5 (config)# interface fa0/0
R5 (config-if)# no shutdown
R5 (config-if)# ip address 5.5.5.2 255.255.255.0
R5 (config-if)# ip router isis
R5 (config-if)# exit
R5 (config)# interface fa0/1
R5 (config-if)# no shutdown
R5 (config-if)# ip address 6.6.6.1 255.255.255.0
R5 (config-if)# ip router isis
R5 (config-if)# exit

# R6、R8、R10、R12 都是 L1 路由器,配置命令相似,以 R6 配置为例
# R6、R12 所在区域 Area ID 为 49.0002,R8、R10 所在区域 Area ID 为 49.0003

R6 (config)# interface loopback 1
R6 (config-if)# ip address 10.10.11.6 255.255.255.0
R6 (config-if)# exit
R6 (config)# router isis
R6 (config-router)# net 49.0002.0100.1001.0006.00  // 配置 NSAP,同一个区域的 AREA ID 相同
R6 (config-router)# is-type level-1
R6 (config-router)# exit
R6 (config)# interface fa0/0
R6 (config-if)# no shutdown
R6 (config-if)# ip address 6.6.6.2 255.255.255.0
R6 (config-if)# ip router isis
R6 (config-if)# exit

配置后可用命令查看路由信息:

# 查看 isis 配置信息
Router# show isis ?
# 查看所有路由表项
Router# show ip route
# 查看 IS-IS 路由表项
Router# show ip route isis
# 查看 IP 路由协议配置参数和运行情况
Router# show ip protocols

可见骨干区域路由器 (L2、L1-2) 路由信息中有全网的路由信息,而非骨干区域路由器 (L1) 路由信息中只有本区域的路由信息,以及指向 0.0.0.0 的默认路由表项。

如果一次性需要配置多个路由器,可以先将命令逐行写出,然后复制粘贴就可以一次性完成配置,如下所示:


IS-IS 协议的基本配置

也也来噜于 2022-04-08 09:02:20 发布

根据网络拓扑,现网有 4 台路由器,通过 IS-IS 实现网络互连

首先配置路由器的接口 IP 地址

这里以 R3 为例:

[R3] int g0/0/0
[R3-GigabitEthernet0/0/0] ip add 172.16.30.1 24
[R3-GigabitEthernet0/0/0] int g0/0/1
[R3-GigabitEthernet0/0/1] ip add 172.16.10.1 24
[R3-GigabitEthernet0/0/1] int g0/0/2
[R3-GigabitEthernet0/0/2] ip add 59.74.112.1 24
[R3-GigabitEthernet0/0/2] quit
[R3]

在各个路由器配置相应的 isis 功能:

在 R1 上配置全局 isis 并在接口上配置 isis:

[R1] isis 1
[R1-isis-1] is-level level-1
[R1-isis-1] network-entity 10.0000.0000.0001.00
[R1-isis-1] quit
[R1] int g0/0/0
[R1-GigabitEthernet0/0/0] isis enable 1
[R1-GigabitEthernet0/0/0] quit
[R1]

[R1-isis-1] network-entity 10.0000.0000.0001.0010表示区域 ID;0000.0000.0001 表示系统 ID;00 是系统选择符,IP 网络规定为 00

同理配置 R2 、R3、R4

R2:

[R2] isis 1
[R2-isis-1] isis-l
[R2-isis-1] is-level level-1
[R2-isis-1] network-entity 10.0000.0000.0002.00
[R2-isis-1] quit
[R2] int g0/0/0
[R2-GigabitEthernet0/0/0] isis enable 1
[R2-GigabitEthernet0/0/0] quit

R3:

[R3] isis 1
[R3-isis-1] is-level level-1-2
[R3-isis-1] network-entity 10.0000.0000.0003.00
[R3-isis-1] quit
[R3] int g0/0/1
[R3-GigabitEthernet0/0/1] isis enable 1
[R3-GigabitEthernet0/0/1] int g0/0/2
[R3-GigabitEthernet0/0/2] isis enable 1
[R3-GigabitEthernet0/0/2] int g0/0/0
[R3-GigabitEthernet0/0/0] isis enable 1

R4:

[R4] isis 1
[R4-isis-1] is-level level-2
[R4-isis-1] network-entity 20.0000.0000.0004.00
[R4-isis-1] quit
[R4] int LoopBack 0
[R4-LoopBack0] isis enable 1

验证配置结果:

Level-1 路由器负责区域内的路由,Level-2 路由器负责区域间的路由,同时属于 Level-1 和 Level-2 的路由器称为 Level-1-2 路由器


via:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值