IS-IS 配置

實驗一:配置和調試 isis

 

實驗目的:數據庫

1. 在全部路由器上配置 ISIS,啓用 clns網絡

2. 全部的路由器可以 ping 到其餘路由器,Router_C 能夠和其餘路由器交換路由信息。ide

配置步驟:ui

步驟1:肯定路由器所在的區域和啓動IS-IS協議的接口。spa

步驟2:使用router isis 命令來啓動一個IS-IS進程。調試

步驟3:使用net 命令來配置net地址。orm

步驟4:使用命令ip router isis 在相應的接口上啓動集成IS-IS。這個命令不只在轉發接口上必須增長,並且在一個和末梢網絡相連的接口也必須配置,這裏的末梢網絡是指須要IS-IS協議來通告的IP地址。router

 

首先咱們對R1進行配置:blog

clns routing 啓動CLNS協議的路由選擇功能接口

 

interface Serial1/0

 clock rate 64000

 clns router isis      在接口上啓動ISIS

!

interface Serial1/1

clns router isis

clock rate 64000

 

router isis 啓動ISIS進程

net 49.0001.1111.1111.1111.00 配置net地址

 log-adjacency-changes all 配置log信息

 

 

一樣的,配置 R2

clns routing 啓動CLNS協議的路由選擇功能

 

interface Serial1/0

 clock rate 64000

 clns router isis      在接口上啓動ISIS

!

 

router isis 啓動ISIS進程

net 49.0001.2222.2222.2222.00 配置net地址

 log-adjacency-changes all 配置log信息

再配置 R3

clns routing 啓動CLNS協議的路由選擇功能

 

interface Serial1/0

 clock rate 64000

 clns router isis      在接口上啓動ISIS

!

 

router isis 啓動ISIS進程

net 49.0001.2222.2222.2222.00 配置net地址

 log-adjacency-changes all 配置log信息

 

好,配置完了,咱們來檢查一下

先檢查路由器 R1 的配置

用命令show  clns 能夠顯示clns信息

R1#show clns

Global CLNS Information:

  2 Interfaces Enabled for CLNS 路由器2個接口啓用了CLNS

  NET: 49.0001.1111.1111.1111.00 路由器的net地址,最多可配置254

  Configuration Timer: 60, Default Holding Timer: 300, Packet Lifetime 64     定時器

  ERPDU's requested on locally generated packets

  Intermediate system operation enabled (CLNS forwarding allowed)

  IS-IS level-1-2 Router: 默認是level 1-2

    Routing for Area: 49.0001

上述命令的含義:

Interface Enabled for CLNS

路由器啓用 clns 接口的數量

NET: 49.0001.1111.1111.1111.00

路 由 器 的 net 地 址 , 可 以 用 命 令

max-area-addresses 最多配置 254

Configuration Timer: 60

 

Es IS hello 包 的 定 時 器 用 命 令 clnsconfiguration-time 配置,缺省 60.

Default Holding Timer: 300

ISH 包的保持時間, 用命令 clns holding-time 配置

Packet Lifetime 64

本地產生的包的生存時間, 缺省 64 , 用命令 clnspacket-lifetime 設置.缺省 64

Error Report Protocol Data Units

(ERPDUs) Requested on Locally

Generated Packets

表示若是路由器檢測到錯誤的 PDU, 就會產生一

個錯誤的 ICMP 信息, 命令  clns want-erpdu

. 缺省開啓此功能

IS Operation Enabled

表示容許轉發

IS-IS Level-1-2 Router

路由器的類型,用命令 is-type 配置.

Routing for Area: 49.0001

路由器的區域

 

R1#show 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

 

i  49.0003 [110/10]

      via R3, Serial1/1

 

 

R1#show clns protocol

IS-IS Router: <Null Tag>

  System Id: 1111.1111.1111.00  IS-Type: level-1-2

  Manual area address(es):

        49.0001

  Routing for area address(es):

        49.0001

  Interfaces supported by IS-IS:

        Serial1/1 - OSI

        Serial1/0 - OSI

  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

 

IS-IS Router: <Null Tag>

ISIS 啓用

System Id: 1111.1111.1111.00

Router 系統 ID

IS-Type: level-1-2

路由器的類型

Manual Area Address(Es): 49.0001

區域 ID

Routing for Area Address(Es): 49.0001

區域 ID

Interfaces Supported by IS-IS: Ethernet 0- OSI

啓用 isis 的接口

Redistributing: Static

重分佈靜態路由

Distance: 110

CLNS 默認管理距離值,注意不是 isis 的距離

 

 

R1#sh isis database

 

IS-IS Level-1 Link State Database:

LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL

R1.00-00            * 0x00000007   0x7B4F        622               1/0/0

R2.00-00              0x00000008   0x84DD        1139              1/0/0

IS-IS Level-2 Link State Database:

LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL

R1.00-00            * 0x00000008   0xD824        1058              0/0/0

R2.00-00              0x00000007   0x5A6C        970               0/0/0

R3.00-00              0x00000006   0x421C        653               0/0/0

 

咱們看看路由器 A 執行的結果,先看看這條

1111.1111.1111.01-00* 0x00000016 0x9512 1078 0/0/0

這行表示,路由器 A 是僞節點

咱們看看僞節點的 LSPID 表示方法

01 是僞節點 ID 號,00 表示 LSP 分片號

若是一個僞節點號碼爲非零就表示是一個僞節點生成的 lsp,路由器將分別爲 level 1

level 2 分別創建 2 個僞節點 lsp

下面看看輸出的各項含義:

*I

表示是路由器自己產生的 lsp

LSP Seq Num PDU

數據包的新舊程度,來決定是否接收其餘路由的 LSP

LSP Checksum 校驗和,確認是不是正確的 lsp

LSP Holdtime

PDU 數據包的生存時間, 默認是 1200 秒, 注意 isis 是從 1200 倒數到 0

用命令  max-lsp-lifetime and  lsp-refresh-interval 來配置。

ATT (Attach Bit)

默認狀況下 Level 1/Level 2 路由器不把 level 2 路由注入到 level1isis

默認是屬於 stub 網絡,level 1/level 2 路由器能夠向 level 1 區域廣播一條缺省路由,若是 Att 1 就表示能夠做爲 level 1 區域的出口。

P (Partition Bit)

分區修復,cisco 不支持。

OL  (Link-State

Overload Bit)

超載位,路由器接收到有超載位的lsp 就不會用這個路由器來到達其餘

網絡,但是,仍然能夠到達他的直連網段。用命令 set-overload-bit 設置.

 

R1#show clns neighbors

 

System Id      Interface   SNPA                State  Holdtime  Type Protocol

R2             Se1/0       *HDLC*              Up     29        L1L2 IS-IS

R3             Se1/1       *HDLC*              Up     25        L2   IS-IS

 

檢查路由器 A LSDB

Router_A#show isis data

IS-IS Level-1 Link State Database

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

1111.1111.1111.00-00* 0x000000AB 0xF95B 1154 1/0/0

1111.1111.1111.01-00* 0x00000016 0x9512 1078 0/0/0

2222.2222.2222.00-00 0x000000AD 0xF590 991 1/0/0

IS-IS Level-2 Link State Database

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

1111.1111.1111.00-00* 0x0000009F 0x86D7 854 0/0/0

1111.1111.1111.01-00* 0x00000019 0x1F0E 686 0/0/0

2222.2222.2222.00-00 0x000000A2 0xE446 908 0/0/0

3333.3333.3333.00-00 0x00000092 0x9C14 909 0/0/0

路由器 A 2 lsdb, 由於他是 level 12, 和路由器 B 創建層 1 和層 2 鏈接, 因此有 2 張。

在層 1 的數據庫中有路由器 A 和路由器 B LSP,在層 2 裏,有 3 個路由器的 lsp

再檢查一下 clns 協議信息:

Router_A#show clns proto

IS-IS Router: <Null Tag>

System Id: 1111.1111.1111.00 IS-Type: level-1-2

Manual area address(es):

49.1234

Routing for area address(Es):

49.1234

Interfaces supported by IS-IS:

Ethernet0 OSI 啓用 clns 的接口

Redistributing:

static

Distance: 110 默認 clns 的管理距離是 110,注意不是 isis 的管理距離。

在看看路由器 A 的鄰居

Router_A#show clns neighbors

System Id  SNPA Interface State Holdtime Type Protocol

2222.2222.2222 0000.0c0a.4fac Et0 Up 22 L1L2 IS-IS

能夠看到路由器 B 的鄰接狀態爲 up

在看看路由器 A clns 路由表

Router_A#show clns route

CLNS Prefix Routing Table

49.1234.1111.1111.1111.00, Local NET Entry

49.5678 [110/20]

via 2222.2222.2222, IS-IS, Up, Ethernet0

49.1234 [110/0]

via 1111.1111.1111, IS-IS, Up

上面表示經過 A 能夠到打 49.1234 49.5678 49.1234 以及下一跳,

 

好了,咱們從 A ping 一下 B C

Router_A#ping clns 49.1234.2222.2222.2222.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 = 4/4/4 ms

Router_A#ping clns 49.5678.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 = 36/36/40ms

好了,沒問題,一樣的方法在 B C 上檢查,互相 ping 一下,應該都沒問題。

Net 地址很麻煩,咱們來把他作映射,以即可以經過主機名來 ping

Router_A#config t

Router_A(config)#clns host Router_A 49.1234.1111.1111.1111.00

Router_A(config)#clns host Router_B 49.1234.2222.2222.2222.00

Router_A(config)#clns host Router_C 49.5678.3333.3333.3333.00

一樣的方法在B C 上設置。

12.0 之後只在一臺路由器上配置就能夠了,其餘路由器能夠自動學到,用show isis hostname

咱們在 C 的接口上配置電路類型爲 level 1,看看鄰接有什麼變化

Router_C#config t

Enter configuration commands, one per line. End with CNTL/Z.

Router_C(config)#int s 0

Router_C(config)#isis circuit-type level-1

Router_C#show log

CLNS-Adj: Deleting adjacency 2222.2222.2222 (Serial0)

Router_C#

鄰接關係解除由於CB的區域地址不一樣只能創建層 2 鏈接,接口也必須能發送層2 報文

B 上查看:

Router_B#show clns nei

System Id SNPA Interface State Holdtime Type Protocol

Router_A 000.0c13.d46b Et0 Up 7 L1L2 IS-IS

Router_C *HDLC* Se0 Up 254 L2 ES-IS

C 已是 ES 鄰接了,在路由器 C 上還能夠 ping B,由於還能夠造成 Es 鄰接,但不能ping A 了。

Router_C#ping clns Router_B

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 = 48/48/52ms

Router_C#ping clns Router_A

Type escape sequence to abort.

Sending 5, 100-byte CLNS Echos with timeout 2 seconds

CLNS: cannot send ECHO.

CLNS: cannot send ECHO.

CLNS: cannot send ECHO.

CLNS: cannot send ECHO.

CLNS: cannot send ECHO.

Success rate is 0 percent (0/5)

Ping A 不通

看看 A clns 路由表:

uter_A#show clns route

CLNS Prefix Routing Table

49.1234.1111.1111.1111.00, Local NET Entry

49.1234 [110/0]

via Router_A, IS-IS, Up

已經沒有 49.5678 區域的路由了

將路由器 C 接口類型改成isis circuit-type level-1-2

問題解決。

相關文章
相關標籤/搜索