H3C IS-IS基础配置


 

实验名称:isis基本配置

实验拓扑:

 

[R1]isis ?

  INTEGER<1-65535>  Process ID

  vpn-instance      VPN Routing/Forwarding Instance

  <cr> 

[R1]isis                  //开启isis功能,默认开启进程1

[R1-isis-1]network-entity ?

  XX.XXXX. ... .XXXX.XX  Network entity title (NET)   //网络实体名称的格式

[R1-isis-1]network-entity 01.0000.0000.0001.00

[R1-isis-1]is-level ?                     //三种路由级别配置

  level-1    Set the router to operate as a Level-1 (intra-area) router

  level-1-2  Set the router to operate as both a Level-1 (intra-area) and

             Level-2 (inter-area) router

  level-2    Set the router to operate as a Level-2 (inter-area) router

 

[R1-isis-1]is-level level-1                //配置R1路由级别为level-1

[R1-isis-1]q

[R1]int lo0                           //开启接口isis功能

[R1-LoopBack0]isis ?

  circuit-level  Set ISIS level for the interface      配置接口level等级

  cost           Set the interface cost for ISIS    配置isiscost值默认10

  enable         Enable ISIS processing         开启接口isis功能

  ipv6           Configure IPv6 Commands for ISIS   开启接口ipv6的isis功能

[R1-LoopBack0]isis enable ?

  INTEGER<1-65535>  Process ID to attach the interface to

  <cr>             

 

[R1-LoopBack0]isis enable 1

[R1]int s0/2/0

[R1-Serial0/2/0]isis enable 1

 

 

配置R2的isis

[R2]isis

[R2-isis-1]network-entity 01.0000.0000.0002.00

[R2-isis-1]is-level level-1

[R2]int lo0

[R2-LoopBack0]isis enable 1

[R2-LoopBack0]q

[R2]int s0/2/0

[R2-Serial0/2/0]isis enable

[R2-Serial0/2/0]q

 

查看命令

 

查看开启isis的接口

[R1]display isis interface

 

                       Interface information for ISIS(1)

                       ---------------------------------

 

  Interface:  LoopBack0           

  Id      IPV4.State           IPV6.State        MTU  Type  DIS  

  001          Up                  Down          1536 L1/L2 -- 

 

  Interface:  Serial0/2/0         

  Id      IPV4.State           IPV6.State        MTU  Type  DIS  

  002          Up                  Down          1500 L1/L2 --

上面可以看出,IPv4的端口是开启的,还有链路类型。

有个问题:为什么我们在接口上应用的是leve1而此处显示的是默认的leve-1-2

答案:

怎样变为leve-1呢?请看下面

 

[R1]int s0/2/0

[R1-Serial0/2/0]isis circuit-level ?

  level-1    Establish level-1 adjacency only

  level-1-2  Establish level-1-2 adjacency

  level-2    Establish level-2 adjacency only

  <cr>      

 

[R1-Serial0/2/0]isis circuit-level level-1

[R1-Serial0/2/0]q

[R1]display isis interface   

 

                       Interface information for ISIS(1)

                       ---------------------------------

 

  Interface:  LoopBack0           

  Id      IPV4.State           IPV6.State        MTU  Type  DIS  

  001          Up                  Down          1536 L1/L2 -- 

 

  Interface:  Serial0/2/0         

  Id      IPV4.State           IPV6.State        MTU  Type  DIS  

  002          Up                  Down          1500 L1    --

 

 

查看路由表信息

[R1]display ip routing-table

Routing Tables: Public

        Destinations : 7        Routes : 7

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

1.1.1.1/32          Direct 0    0            127.0.0.1       InLoop0

2.2.2.2/32          ISIS   15   10           192.168.1.2     S0/2/0

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

192.168.1.0/24      Direct 0    0            192.168.1.1     S0/2/0

192.168.1.1/32      Direct 0    0            127.0.0.1       InLoop0

192.168.1.2/32      Direct 0    0            192.168.1.2     S0/2/0

 

 

显示IS-IS IPv4 路由信息。

[R1]display isis route

 

                         Route information for ISIS(1)

                         -----------------------------

 

                     ISIS(1) IPv4 Level-1 Forwarding Table

                     -------------------------------------

 

 IPV4 Destination     IntCost    ExtCost ExitInterface   NextHop         Flags

--------------------------------------------------------------------------------

 192.168.1.0/24       10         NULL    S0/2/0          Direct          D/L/-

 1.1.1.1/32           0          NULL    Loop0           Direct          D/L/-

 2.2.2.2/32           10         NULL    S0/2/0          192.168.1.2     R/-/-

 

      Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set

 

IPV4 Destination IPV4 目的地址

IntCost 内部路由Cost

ExtCost 外部路由Cost

ExitInterface 出接口

NextHop 下一跳

Flags

路由状态标志

D:直连路由

R:该路由是否已放到路由表中

L:是否已经广播

U:路由渗透状态标

 

 

显示IS-IS 的链路状态数据库

[R1]display isis lsdb

 

                        Database information for ISIS(1)

                        --------------------------------

 

                          Level-1 Link State Database

 

LSPID                 Seq Num      Checksum      Holdtime      Length  ATT/P/OL

-------------------------------------------------------------------------------

0000.0000.0001.00-00* 0x0000000c   0xb451        1076          58      0/0/0

0000.0000.0001.00-01* 0x00000008   0x11d0        1076          53      0/0/0

0000.0000.0002.00-00  0x0000001f   0xad3e        1132          58      0/0/0

0000.0000.0002.00-01  0x00000012   0x1bb7        1132          53      0/0/0

 

    *-Self LSP, +-Self LSP(Extended), ATT-Attached, P-Partition, OL-Overload

 

LSPID 链路状态报文ID

Seq Num LSP 序列号

Checksum LSP 校验和

Holdtime LSP 保持时间

Length LSP 长度

ATT/P/OL Attach bit(ATT):连接位;Partition bit(P):

分区位;Overload bit(OL):过载位。

 

 

显示IS-IS 当前的基本配置参数

[R1]display isis brief

 

                 ISIS (1) Protocol Brief Information :

 

 

 network-entity: 

     01.0000.0000.0001.00

 is-level :level-1

 cost-style:  narrow

 preference :  15

 Lsp-length receive :  1497

 Lsp-length originate :  level-1 1497

                         level-2 1497

 Timers:

     lsp-max-age:  1200

     lsp-refresh:  900

     Interval between SPFs:  10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM