CCNP-18 IS-IS试验1
试验拓扑:
![](http://blog.51cto.com/attachment/200710/200710261193383723140.jpg)
试验要求: R1 R2
为区域 49.0001
中的 IS
, R3
为区域 49.0002
中的 IS
,并且把 R1
只配之成为 Level-1
路由器, R3
为 Level-2
路由器, R1
与 R2
之间的链路配置成为 L1
链路, R2
与 R3
之间的链路配置成为 L2
链路。 试验目的:掌握 ISIS 基本的配置方法。 R1(config-router)#net 49.0001.1111.1111.1111.00 R1(config-router)#is-type level-1 R1(config-if)#clns router isis R1(config-if)#isis circuit-type level-1 R2(config-router)#net 49.0001.2222.2222.2222.00 R2(config-if)#clns router isis R2(config-if)#isis circuit-type level-1 R2(config-if)#clns router isis R2(config-if)#clock rate 64000
R2(config-if)#isis circuit-type level-2-only R3(config-router)#net 49.0002.3333.3333.3333.00 R3(config-router)#is-type level-2-only R3(config-if)#clns router isis R3(config-if)#isis circuit-type level-2-only 以上为 ISIS
的基本配置, ISIS
路由器默认为 level-1-2
,可以通过路由器配置模式下命令 is-type 来进行修改,接口的 ISIS
类型默认也为 level-1-2
,同样可以通过接口配置模式下命令 isis circuit-type 进行修改。下面我们在每台路由器上 show clns neighbors
查看 clns
邻居关系: System Id Interface SNPA State Holdtime Type Protocol
R2 Fa0/0
ca00.07b8.0000 Up 18 L1 IS-IS
System Id Interface SNPA State Holdtime Type Protocol
R1 Fa0/0
ca00.06a4.0000 Up 26 L1 IS-IS
R3 Se1/0
*HDLC* Up 21 L2 IS-IS
System Id Interface SNPA State Holdtime Type Protocol
R2 Se1/0
*HDLC* Up 25 L2 IS-IS
OK
,都成功建立了邻居关系,需要注意的是 SNPA
的区别,在 LAN
环境下为 LAN
接口的 MAC
地址, WAN
环境下为 DLCI
或者 HDLC
。 Show clns interface
命令查看接口的 CLNS
运行情况: FastEthernet0/0 is up, line protocol is up
Checksums enabled, MTU 1497, Encapsulation SAP
ERPDUs enabled, min. interval 10 msec.
RDPDUs enabled, min. interval 100 msec., Addr Mask enabled
Congestion Experienced bit set at 4 packets
CLNS fast switching enabled
CLNS SSE switching disabled
DEC compatibility mode OFF for this interface
Next ESH/ISH in 23 seconds
Interface number 0x0, local circuit ID 0x1 Level-1 Metric: 10, Priority: 64, Circuit ID: R2.01 Number of active level-1 adjacencies: 1 Next IS-IS LAN Level-1 Hello in 3 seconds FastEthernet0/0 is up, line protocol is up
Checksums enabled, MTU 1497, Encapsulation SAP
ERPDUs enabled, min. interval 10 msec.
RDPDUs enabled, min. interval 100 msec., Addr Mask enabled
Congestion Experienced bit set at 4 packets
CLNS fast switching enabled
CLNS SSE switching disabled
DEC compatibility mode OFF for this interface
Next ESH/ISH in 5 seconds
Interface number 0x0, local circuit ID 0x1 Level-1 Metric: 10, Priority: 64, Circuit ID: R2.01 Number of active level-1 adjacencies: 1 Next IS-IS LAN Level-1 Hello in 3 seconds Serial1/0 is up, line protocol is up
Checksums enabled, MTU 1500, Encapsulation HDLC
ERPDUs enabled, min. interval 10 msec.
RDPDUs enabled, min. interval 100 msec., Addr Mask enabled
Congestion Experienced bit set at 4 packets
CLNS fast switching enabled
CLNS SSE switching disabled
DEC compatibility mode OFF for this interface
Next ESH/ISH in 6 seconds
Interface number 0x1, local circuit ID 0x100 Level-2 Metric: 10, Priority: 64, Circuit ID: R2.00 Number of active level-2 adjacencies: 1 Next IS-IS Hello in 6 seconds FastEthernet0/0 is administratively down, line protocol is down
CLNS protocol processing disabled
Serial1/0 is up, line protocol is up
Checksums enabled, MTU 1500, Encapsulation HDLC
ERPDUs enabled, min. interval 10 msec.
RDPDUs enabled, min. interval 100 msec., Addr Mask enabled
Congestion Experienced bit set at 4 packets
CLNS fast switching enabled
CLNS SSE switching disabled
DEC compatibility mode OFF for this interface
Next ESH/ISH in 13 seconds
Interface number 0x0, local circuit ID 0x100 Level-2 Metric: 10, Priority: 64, Circuit ID: R3.00 Number of active level-2 adjacencies: 1 Next IS-IS Hello in 4 seconds 我们从上面的输出可以知道接口的 CLNS
和 ISIS
的信息,比如链路类型,邻居 system-id
,度量值等等。 再用 show isis database
查看每台路由器的 LSDB
: IS-IS Level-1 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R1.00-00 * 0x00000004 0x9046 1163 0/0/0
R2.00-00 0x00000003 0x39CE 1161 0/0/0
R2.01-00 0x00000001 0x2630 1162 0/0/0 IS-IS Level-1 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R1.00-00 0x00000004 0x9046 1150 0/0/0
R2.00-00 * 0x00000004 0x3FBF 1192 1/0/0
R2.01-00 * 0x00000001 0x2630 1153 0/0/0 IS-IS Level-2 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R2.00-00 * 0x00000002 0x9767 1187 0/0/0
R3.00-00 0x00000002 0xDC20 1186 0/0/0
IS-IS Level-2 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R2.00-00 0x00000002 0x9767 1185 0/0/0
R3.00-00 * 0x00000002 0xDC20 1186 0/0/0
Codes: C - connected, S - static, d - DecnetIV
I - ISO-IGRP, i - IS-IS, e - ES-IS
B - BGP, b - eBGP-neighbor
C 49.0001.1111.1111.1111.00 [1/0], Local IS-IS NET
C 49.0001 [2/0], Local IS-IS Area
Codes: C - connected, S - static, d - DecnetIV
I - ISO-IGRP, i - IS-IS, e - ES-IS
B - BGP, b - eBGP-neighbor
C 49.0001.2222.2222.2222.00 [1/0], Local IS-IS NET
C 49.0001 [2/0], Local IS-IS Area
Codes: C - connected, S - static, d - DecnetIV
I - ISO-IGRP, i - IS-IS, e - ES-IS
B - BGP, b - eBGP-neighbor
C 49.0002.3333.3333.3333.00 [1/0], Local IS-IS NET
C 49.0002 [2/0], Local IS-IS Area
show clns route
是用来查看 L2
的路由信息,因为 R1
为 L1
的路由器,所以在 R1
上看不到有关 L2
的信息, 但是在 R2 R3
上能看到一条 L2
的路由信息。下面在 R1
上进行 ping
验证: R1#ping clns 49.0002.3333.3333.3333.00
Type escape sequence to abort.
Sending 5, 100-byte CLNS Echos with timeout 2 seconds
Success rate is 100 percent (5/5), round-trip min/avg/max = 192/241/344 ms
通了,可以到 R3 。 实验总结:掌握基本的 ISIS 配置和一些验证 ISIS 配置正确的命令。 本文转自loveme2351CTO博客,原文链接: http://blog.51cto.com/loveme23/47877 ,如需转载请自行联系原作者