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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章