• 计算机网络-IS-IS基础配置实验


    前面我们了解了IS-IS的一些基础理论,从建立邻接、链路状态数据库同步以及路由计算,现在开始学习下配置操作。

    一、IS-IS配置

    网络拓扑图:

    拓扑图
    拓扑图

    IS-IS有Level级别的区分,Level-1可以是性能较低的设备只维护区域内的LSDB,Level-1-2作为Level-1和Level-2的边界路由器,Level-2是骨干路由器,它们在LSDB的维护和路由信息上有一些差别。

    上面拓扑左侧AR1模拟性能较低只维护区域内的LSDB,去往区域外的通过AR2和AR3的默认路由转发。AR2和AR3为L1-2,AR4和AR5为L2路由器。配置基本IP地址和NET地址,根据Router ID进行转换,其实只要不重复就行了。

    NET地址配置转换:区域号+System ID+SEL 以1.1.1.1为例:

    • 每段扩充到3位-->001.001.001.001
    • 重新划分为3段-->0010.0100.1001
    • 添加区域号和SEL-->49.0001.0010.0100.1001.00
    • 这里扩充是以10进制,比如10--010

    IS-IS通告网段是在接口启用ISIS enable 进程,可能是因为原来是数据链路层的原因,所以不是采用network方式,而是直接在接口配置。

    AR1配置:

    # ISIS配置
    isis 1                          # isis进程号,和OSPF进程号一致
     is-level level-1               # 手动配置为level-1,默认位level-1-2
     network-entity 49.0001.0010.0100.1001.00  # 配置NET地址,必须唯一
     
    # 配置接口地址
    interface GigabitEthernet0/0/0
     ip address 12.1.1.1 255.255.255.0 
     isis enable 1
     
    # 配置接口地址
    interface GigabitEthernet0/0/1
     ip address 13.1.1.1 255.255.255.0 
     isis enable 1
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16

    AR2配置:

    # 路由器默认位级别Level-1-2
    isis 1
      network-entity 49.0001.0020.0200.2002.00
    #
    interface GigabitEthernet0/0/0
     ip address 12.1.1.2 255.255.255.0 
     isis enable 1
    #
    interface GigabitEthernet0/0/1
     ip address 24.1.1.2 255.255.255.0 
     isis enable 1
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13

    AR3配置:

    # 默认级别为Level-1-2
    isis 1
     network-entity 49.0001.0030.0300.3003.00
    #
    interface GigabitEthernet0/0/0
     ip address 35.1.1.3 255.255.255.0 
     isis enable 1
    #
    interface GigabitEthernet0/0/1
     ip address 13.1.1.3 255.255.255.0 
     isis enable 1
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    AR4配置:

    # 配置为level-2骨干区域
    isis 1
     is-level level-2
     network-entity 49.0002.0040.0400.4004.00
    #
    interface GigabitEthernet0/0/1
     ip address 24.1.1.4 255.255.255.0 
     isis enable 1
    #
    interface GigabitEthernet0/0/2
     ip address 45.1.1.4 255.255.255.0 
     isis enable 1
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13

    AR5配置:

    # 配置为level-2骨干区域
    isis 1
     is-level level-2
     network-entity 49.0002.0050.0500.5005.00
    #
    interface GigabitEthernet0/0/0
     ip address 35.1.1.5 255.255.255.0 
     isis enable 1
    #
    interface GigabitEthernet0/0/2
     ip address 45.1.1.5 255.255.255.0 
     isis enable 1
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13

    二、验证配置

    查看ISIS邻接关系:dis isis peer

    # 这里能够看到邻居路由器的ID,接口、建立的邻接关系为L1
    dis isis peer
    
                              Peer information for ISIS(1)
    
      System Id     Interface          Circuit Id       State HoldTime Type     PRI
    -------------------------------------------------------------------------------
    0020.0200.2002  GE0/0/0            0010.0100.1001.01 Up   25s      L1       64 
    0030.0300.3003  GE0/0/1            0010.0100.1001.02 Up   23s      L1       64 
    
    Total Peer(s): 2
    
    
    # AR2分别建立L1和L2邻接关系
    [AR2]dis isis peer 
    
                              Peer information for ISIS(1)
    
      System Id     Interface          Circuit Id       State HoldTime Type     PRI
    -------------------------------------------------------------------------------
    0010.0100.1001  GE0/0/0            0010.0100.1001.01 Up   7s       L1       64 
    0040.0400.4004  GE0/0/1            0020.0200.2002.02 Up   28s      L2       64 
    
    Total Peer(s): 2
    
    # AR4骨干区域
    [AR4]dis isis peer
    
                              Peer information for ISIS(1)
    
      System Id     Interface          Circuit Id       State HoldTime Type     PRI
    -------------------------------------------------------------------------------
    0020.0200.2002  GE0/0/1            0020.0200.2002.02 Up   9s       L2       64 
    0050.0500.5005  GE0/0/2            0050.0500.5005.02 Up   9s       L2       64 
    
    Total Peer(s): 2
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38

    查看isis 链路状态数据库:dis isis lsdb

    # 在AR1能够看到从AR2和AR3有一个ATT置位1的LSDB
    dis isis lsdb
    
                            Database information for ISIS(1)
                            --------------------------------
    
                              Level-1 Link State Database
    
    LSPID                 Seq Num      Checksum      Holdtime      Length  ATT/P/OL
    -------------------------------------------------------------------------------
    0010.0100.1001.00-00* 0x00000016   0xb87c        995           97      0/0/0   
    0010.0100.1001.01-00* 0x0000000a   0xbf40        995           55      0/0/0   
    0010.0100.1001.02-00* 0x0000000a   0x21bb        995           55      0/0/0   
    0020.0200.2002.00-00  0x0000001a   0x6542        1075          86      1/0/0   
    0030.0300.3003.00-00  0x00000015   0xe589        1040          86      1/0/0   
    
    Total LSP(s): 5
        *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended), 
               ATT-Attached, P-Partition, OL-Overload
    # 可以查看LSP的具体信息,通过LSPID
    # 
    dis isis lsdb 0010.0100.1001.00-00 verbose 
    
                            Database information for ISIS(1)
                            --------------------------------
    
                              Level-1 Link State Database
    
    LSPID                 Seq Num      Checksum      Holdtime      Length  ATT/P/OL
    -------------------------------------------------------------------------------
    0010.0100.1001.00-00* 0x00000016   0xb87c        918           97      0/0/0   
     SOURCE       0010.0100.1001.00
     NLPID        IPV4
     AREA ADDR    49.0001 
     INTF ADDR    12.1.1.1
     INTF ADDR    13.1.1.1
     NBR  ID      0010.0100.1001.01  COST: 10        
     NBR  ID      0010.0100.1001.02  COST: 10        
     IP-Internal  12.1.1.0        255.255.255.0    COST: 10        
     IP-Internal  13.1.1.0        255.255.255.0    COST: 10        
    
    Total LSP(s): 1
        *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended), 
               ATT-Attached, P-Partition, OL-Overload
    
    # 在AR2上可以看到两个级别的LSDB信息
    [AR2]dis isis lsdb
    
                            Database information for ISIS(1)
                            --------------------------------
    
                              Level-1 Link State Database
    
    LSPID                 Seq Num      Checksum      Holdtime      Length  ATT/P/OL
    -------------------------------------------------------------------------------
    0010.0100.1001.00-00  0x00000016   0xb87c        869           97      0/0/0   
    0010.0100.1001.01-00  0x0000000a   0xbf40        869           55      0/0/0   
    0010.0100.1001.02-00  0x0000000a   0x21bb        869           55      0/0/0   
    0020.0200.2002.00-00* 0x0000001a   0x6542        950           86      1/0/0   
    0030.0300.3003.00-00  0x00000015   0xe589        913           86      1/0/0   
    
    Total LSP(s): 5
        *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended), 
               ATT-Attached, P-Partition, OL-Overload
    
    
                              Level-2 Link State Database
    
    LSPID                 Seq Num      Checksum      Holdtime      Length  ATT/P/OL
    -------------------------------------------------------------------------------
    0020.0200.2002.00-00* 0x00000018   0xce3e        950           110     0/0/0   
    0020.0200.2002.02-00* 0x00000009   0x1a5b        950           55      0/0/0   
    0030.0300.3003.00-00  0x00000015   0xc0b9        913           110     0/0/0   
    0040.0400.4004.00-00  0x0000000f   0x7652        975           97      0/0/0   
    0050.0500.5005.00-00  0x0000000d   0x7bdd        915           113     0/0/0   
    0050.0500.5005.01-00  0x00000009   0x5e6d        915           55      0/0/0   
    0050.0500.5005.02-00  0x00000009   0xbfe8        915           55      0/0/0   
    
    Total LSP(s): 7
        *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended), 
               ATT-Attached, P-Partition, OL-Overload
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83

    查看isis路由信息:dis isis route

    # AR1只有当前区域的明细路由和两条通过AR2和AR3的默认路由
    # 如果需要L2的路由需要进行路由渗透
    dis isis route
    
                             Route information for ISIS(1)
                             -----------------------------
    
                            ISIS(1) Level-1 Forwarding Table
                            --------------------------------
    
    IPV4 Destination     IntCost    ExtCost ExitInterface   NextHop         Flags
    -------------------------------------------------------------------------------
    0.0.0.0/0            10         NULL    GE0/0/0         12.1.1.2        A/-/-/-
                                            GE0/0/1         13.1.1.3       
    12.1.1.0/24          10         NULL    GE0/0/0         Direct          D/-/L/-
    13.1.1.0/24          10         NULL    GE0/0/1         Direct          D/-/L/-
    24.1.1.0/24          20         NULL    GE0/0/0         12.1.1.2        A/-/-/-
    35.1.1.0/24          20         NULL    GE0/0/1         13.1.1.3        A/-/-/-
         Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
                                   U-Up/Down Bit Set
    
    
    # AR2有两个级别路由
    [AR2]dis isis route
    
                             Route information for ISIS(1)
                             -----------------------------
    
                            ISIS(1) Level-1 Forwarding Table
                            --------------------------------
    
    IPV4 Destination     IntCost    ExtCost ExitInterface   NextHop         Flags
    -------------------------------------------------------------------------------
    0.0.0.0/0            20         NULL   
    12.1.1.0/24          10         NULL    GE0/0/0         Direct          D/-/L/-
    13.1.1.0/24          20         NULL    GE0/0/0         12.1.1.1        A/-/L/-
    24.1.1.0/24          10         NULL    GE0/0/1         Direct          D/-/L/-
    35.1.1.0/24          30         NULL    GE0/0/0         12.1.1.1        A/-/L/-
         Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
                                   U-Up/Down Bit Set
    
    
                            ISIS(1) Level-2 Forwarding Table
                            --------------------------------
    
    IPV4 Destination     IntCost    ExtCost ExitInterface   NextHop         Flags
    -------------------------------------------------------------------------------
    8.8.8.8/32           20         NULL    GE0/0/1         24.1.1.4        A/-/-/-
    12.1.1.0/24          10         NULL    GE0/0/0         Direct          D/-/L/-
    13.1.1.0/24          40         NULL   
    24.1.1.0/24          10         NULL    GE0/0/1         Direct          D/-/L/-
    35.1.1.0/24          30         NULL   
    45.1.1.0/24          20         NULL    GE0/0/1         24.1.1.4        A/-/-/-
         Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
                                   U-Up/Down Bit Set
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    AR1-AR5
    AR1-AR5

    总结:总的来说配置倒是挺简单的,需要理解它的邻接关系,查看LSDB,路由的计算等等。大致步骤:配置接口地址、配置路由器级别、配置NET地址、在接口启用ISIS。

    本文由 mdnice 多平台发布

  • 相关阅读:
    使用 gitbook 制作自己的 html 文档
    【CKS】考试之 sysdig
    GORM 中SQL、慢SQL打印日志传递 trace ID, Kratos框架输出日志trace id
    GitHub Pages 和 Jekyll 笔记
    Qt开发_调用OpenCV(3.4.7)设计完成人脸检测系统
    剑指 Offer II 048. 序列化与反序列化二叉树
    Kafka学习笔记
    java拆分pdf
    浪潮服务器安装CentOS 7 教程
    全球国家行政区划边界(中国科学院地理科学与资源研究所)
  • 原文地址:https://blog.csdn.net/weixin_43483442/article/details/138145879