IGP-LAB-ISIS

 

IS-IS
 
 
近几年来,随着在 ISP中的广泛应用,IS(Intermediate System,中间系统)-IS路 由协议已经变得很普及。 IS-IS最初是由国际标准化组织制定的一个OSI(开放系统互联)
路由协议,被设计成工作在 OSI无连接网络服务(CLNS)的环境中。      
 
 IS-IS特点
IS-IS是一个非常灵活的路由协议,具有很好地可扩展性,而且已经整合了诸如 MPLS (多协议标记交换)之类的特性,其主要特点如下:
1.        维护一个链路状态数据库,并使用 SPF算法来计算最佳路径;
2.  用Hello包建立和维护邻居关系;
3.  使用区域来构造两级层次化的拓扑结构;
4.  在区域之间可以使用路由汇总来减少路由器的负担;
5.  支持VLSM和CIDR;
6.  在广播多路访问网络,通过选举指定IS(DIS)来管理和控制网络上的泛洪扩散;
7.    具有认证功能;
8.        IS-IS采用 cost作为度量值;
9.        IS-IS管理距离为 115;
10.     快速收敛;
11.     适合大型网络。
 
1.        CLNS( Connectionless Network Service,无连接网络服务):使用数据报传输服 务,在数据传输之前不需要建立连接,它描述提供给传输层的服务;
2.        CLNP( Connectionless Network Protocol, 无连接网络协议):是OSI模型中网络 层中的一种无连接的网络协议,和 IP有相同的特质;
3.        ES( End system,端系统): 没有路由能力的网络节点; 
4.        IS( Intermediate System,中间系统): 有数据包转发能力的网络节点,即路由器; 
5.        NSAP( Network Service Access Point ,网络服务访问点),是网络层和传输层边 界上概念性的点。每一个传输层实体都会分配得到唯一的 NSAP地址;
6.        Level 1路由器:类似 OSPF的内部路由器;
7.        Level 1/2路由器:类似 OSPF的ABR;
8.        Level 2路由器:类似 OSPF的主干路由器;
9. SNPA(Subnetwork Point of Attachment,子网连接点):是和三层地址对应的二层 地址,如 MAC地址、DLCI等;
10.      ISO地址: ISO地址有两种形式,NET(网络实体标题)和NSAP地址,其中NET是 NSEL的值为 0x00时的NSAP地址,NSAP地址长度为8-20个字节,包括区域、系统ID和NSEL
三个部分,其中前两部分可以分得更细。
 
IS-IS的基本配置
 
1.实验目的
 


 

 通过本实验可以掌握 ( 1)在路由器上启动IS-IS路由进程
2)启用参与路由协议的接口
3)度量值cost的计算
4)NET地址配置
5)查看和调试IS-IS路由协议相关信息
2.拓扑结构
 
 
R0:
 
R0(config)#int s0/0
R0(config-if)#ip add 12.1.1.1 255.255.255.0
R0(config-if)#clo r 64000
R0(config-if)#no sh
R0(config-if)#int lo0
R0(config-if)#ip add 1.1.1.1 255.255.255.0
R0(config-if)#no sh
R0(config-if)#exit
R0(config)#router isis
R0(config-router)#net 49.0001.1111.1111.1111.00
R0(config-if)#int s0/0
R0(config-if)#ip router isis
R0(config-if)#int lo0
R0(config-if)#ip router isis
 
R1:
 
R1(config)#int s0/1
R1(config-if)#ip add 12.1.1.2 255.255.255.0
R1(config-if)#no sh
R1(config)#int s0/0
R1(config-if)#ip add 13.1.1.1 255.255.255.0
R1(config-if)#clo r 64000
R1(config-if)#no sh
R1(config)#int lo0
R1(config-if)#ip add 2.2.2.2 255.255.255.0
R1(config-if)#exit
R1(config)#router isis
R1(config-router)#net 49.0001.2222.2222.2222.00
R1(config-router)#exit
R1(config)#int lo0
R1(config-if)#ip router isis
R1(config-if)#int s0/0
R1(config-if)#ip router isis
R1(config-if)#int s0/1
R1(config-if)#ip router isis
 
 
R2:
 
R2(config)#int s0/1
R2(config-if)#ip add 13.1.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int lo0
R2(config-if)#ip add 3.3.3.3 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#router isis
R2(config-router)#net 49.0002.3333.3333.3333.00
R2(config-router)#exit
R2(config)#int s0/1
R2(config-if)#ip router isis
R2(config-if)#int lo0
R2(config-if)#ip router isis
 
 
2.       实验调试:
查看邻居表:
R0#sh clns neighbors
 
System Id       Interface   SNPA                State Holdtime  Type Protocol
R1              Se0/0       *HDLC*              Up     28        L1L2 IS-IS
 
IOS12.0(5)版本开始,Cisco路由器支持动态主机名字映射,可以通过命令“show isis hostname”查看:
R0#sh isis hostname
Level System ID       Dynamic Hostname (notag)
 2      3333.3333.3333 R2
 1      2222.2222.2222 R1
     * 1111.1111.1111 R0
 
上面输出清楚的显示了系统 ID和动态主机名的映射关系,其中 “*” 表示本地路由器。
 
注意】
缺省情况下,Hello包每10秒中发送一次,holddown时间为30秒,即3倍的关系。可 以在接口下通过“isis hello-interval” 命令修改Hello包发送的周期,同时通过“isis hello-multiplier”命令定义holddown是Hello周期的倍数。
 
R0#sh clns protocol
该命令显示和 CLNS路由协议相关的信息
IS-IS Router: <Null Tag>
 System Id: 1111.1111.1111.00 IS-Type: level-1-2 ////系统 ID以及IS-IS路由器类型
 Manual area address(es):
        49.0001
 Routing for area address(es):
        49.0001
 Interfaces supported by IS-IS:
        Loopback0 - IP
        Serial0/0 – IP
//以上四行表示运行 IS-IS路由协议的接口
 Redistribute:
    static (on by default)
 Distance for L2 CLNS routes: 110    ////管理距离
 RRR level: none
 Generate narrow metrics: level-1-2    ////使用“窄”度量
 Accept narrow metrics:    level-1-2
 Generate wide metrics:    none
 Accept wide metrics:      none
 
 
 
show clns interface
该命令显示 clns接口状态的基本信息。
R0#sh clns interface
Serial0/0 is up, line protocol is up
 Checksums enabled, MTU 1500, Encapsulation HDLC
 ERPDUs enabled, min. interval 10 msec.
 CLNS fast switching enabled    //CLNS快速交换启动
CLNS SSE switching disabled     //CLNS快速交换启动
 DEC compatibility mode OFF for this interface
 Next ESH/ISH in 8 seconds
 Routing Protocol: IS-IS
    Circuit Type: level-1-2 //电路类型
    Interface number 0x0, local circuit ID 0x100
    Neighbor System-ID: R1
Level-1 Metric: 10, Priority: 64, Circuit ID: R1.01
// 接口 Level-1的度量值、接口优先级以及电路ID
 
    Level-1 IPv6 Metric: 10
    Number of active level-1 adjacencies: 1
Level-2 Metric: 10, Priority: 64, Circuit ID: R0.00
// 接口 Level-2的度量值、接口优先级以及电路ID
    Level-2 IPv6 Metric: 10
    Number of active level-2 adjacencies: 1
    Next IS-IS Hello in 5 seconds
    if state UP
Serial0/1 is administratively down, line protocol is down
 CLNS protocol processing disabled
Serial0/2 is administratively down, line protocol is down
 CLNS protocol processing disabled
Serial0/3 is administratively down, line protocol is down
 CLNS protocol processing disabled
Loopback0 is up, line protocol is up
 Checksums enabled, MTU 1514, Encapsulation LOOPBACK
 ERPDUs enabled, min. interval 10 msec.
 CLNS fast switching disabled
 CLNS SSE switching disabled
 DEC compatibility mode OFF for this interface
 Next ESH/ISH in 20 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: R0.01
    DR ID: 0000.0000.0000.00
    Level-1 IPv6 Metric: 10
    Number of active level-1 adjacencies: 0
    Level-2 Metric: 10, Priority: 64, Circuit ID: R0.01
    DR ID: 0000.0000.0000.00
    Level-2 IPv6 Metric: 10
    Number of active level-2 adjacencies: 0
    Next IS-IS LAN Level-1 Hello in 2 seconds
Next IS-IS LAN Level-2 Hello in 2 seconds
 
 
show clns route
该命令查看 CLNS第二层路由信息。
R0#sh clns route
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
 
 
show isis topology 
该命令显示 IS-IS的拓扑结构信息,包含到其它中间系统的路径信息。
R0#sh isis topology
 
IS-IS paths to level-1 routers
System Id             Metric     Next-Hop             Interface   SNPA
R0                    --
R1                    10         R1                   Se0/0       *HDLC*        
 
IS-IS paths to level-2 routers
System Id             Metric     Next-Hop             Interface   SNPA
R0                    --
R1                    10         R1                   Se0/0       *HDLC*        
R2                    20         R1                   Se0/0       *HDLC*
 
以上输出表明 IS-IS为L1路由器和L2路由器分别存放拓扑结构数据库的,其中metric”是到达目标的cost之和。
 
show isis database
该命令显示 IS-IS链路状态数据库。
R0#sh isis database
 
IS-IS Level-1 Link State Database:
LSPID                  LSP Seq Num LSP Checksum LSP Holdtime      ATT/P/OL
R0.00-00             * 0x00000006   0xDF45        997               1/0/0
R1.00-00               0x00000006   0x195D        950               1/0/0
IS-IS Level-2 Link State Database:
LSPID                  LSP Seq Num LSP Checksum LSP Holdtime      ATT/P/OL
R0.00-00             * 0x00000006   0x369E        752               0/0/0
R1.00-00               0x00000007   0x4DC1        1064              0/0/0
R2.00-00               0x00000004   0x0848        1039              0/0/0
 
 
       查看路由表:
R0#sh ip ro
Codes: 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
 
Gateway of last resort is not set
 
     1.0.0.0/24 is subnetted, 1 subnets
C        1.1.1.0 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
i L1     2.2.2.0 [115/20] via 12.1.1.2, Serial0/0
     3.0.0.0/24 is subnetted, 1 subnets
i L2     3.3.3.0 [115/30] via 12.1.1.2, Serial0/0
     12.0.0.0/24 is subnetted, 1 subnets
C        12.1.1.0 is directly connected, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
i L1     13.1.1.0 [115/20] via 12.1.1.2, Serial0/0

本文出自 “谢枫” 博客,转载请与作者联系!

你可能感兴趣的:(路由,可扩展性,的)