3

IS-IS 实验

 3 years ago
source link: http://www.dengfm.com/15240407831133.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

IS-IS 实验

15240410384350.jpg
图 1-1

注:如无特别说明,描述中的 R1 或 SW1 对应拓扑中设备名称末尾数字为 1 的设备,R2 或 SW2 对应拓扑中设备名称末尾数字为 2 的设备,以此类推;另外,同一网段中,IP 地址的主机位为其设备编号,如 R3 的 g0/0 接口若在 192.168.1.0/24 网段,则其 IP 地址为 192.168.1.3/24,以此类推


  1. 按照图示配置IP地址
  2. 按照图示分区域配置 IS-IS,完成全网互通,NET 地址如图所示
  3. 要求 R1 和 R2/R3 只建立 Level-1 邻接关系
  4. 要求 R2 和 R3 只建立 Level-1 邻接关系
  5. 按照图示修改各链路 Cost
  6. 在 R2 和 R3 上配置路由渗透,使 R1 学习到 100.1.1.0、24 网段的明细路由,并选择最优路径
  7. 在骨干网上配置接口验证

实验解法:

  1. 配置 IP 地址部分略
  2. 按照图示分区域配置 IS-IS,完成全网互通,NET 地址如图所示

      分析:IS-IS 的配置方式,是先创建 IS-IS 进程,配置 NET 地址,然后在需要宣告的接口下使能 IS-IS 即可

    步骤 1:在 R1 上创建 IS-IS 进程,并配置 NET 地址

    [R1]isis 1
    [R1-isis-1]network-entity 49.0000.0000.0000.0001.00
    

    步骤 2:在 R1 连接 R2 和 R3 的接口上使能 IS-IS

    [R1]interface g0/0
    [R1-GigabitEthernet0/0]isis enable 1
    [R1]interface g0/1
    [R1-GigabitEthernet0/1]isis enable 1
    

    步骤 3:R2,R3,R4 上配置步骤与 R1 一致,在所有接口上使能 IS-IS。步骤略

  3. 要求 R1 和 R2/R3 只建立 Level-1 邻接关系

      分析:IS-IS 的路由器默认级别是 Leve-1-2,R1,R2,R3 在同一个区域,所以 R1 和 R2/R3 会同时建立 Level-1 和 Level-2 的邻接关系,造成建立重复的邻接,增加路由器的性能压力,浪费网络带宽
      R1 和 R2/R3 属于同一个区域,所以只需建立 Level-1 邻接关系,把 R1 的路由器级别修改为 Level-1 即可

    步骤1:把 R1 的路由器级别修改为 Level-1

    [R1]isis 1
    [R1-isis-1]is-level level-1
    

    效果测试:检查 R1 的邻接关系,发现 R1 和 R2/R3 只剩下 Level-1 的邻接关系

    [R1]display isis peer
    
            Peer information for IS-IS(1)
    
            -----------------------------
    
    System ID: 0000.0000.0002
    Interface: GE0/0                   Circuit Id:  0000.0000.0002.01
    State: Up     HoldTime: 7s         Type: L1(L1L2)     PRI: 64
    
    System ID: 0000.0000.0003
    Interface: GE0/1                   Circuit Id:  0000.0000.0003.01
    State: Up     HoldTime: 9s         Type: L1(L1L2)     PRI: 64
    
  4. 要求 R2 和 R3 只建立 Level-1 邻接关系

      分析:IS-IS 的路由器默认级别是 Level-1-2,R2 和 R3 在同一个区域,所以 R2 和 R3 会同时建立 Level-1 和 Level-2 的邻接关系,造成建立重新邻接,增加路由器的性能压力,浪费网路带宽
      R2 和 R3 属于同一个区域,所以只需建立 Level-1 的邻接关系;但是由于 R2 和 R3 同时都连接了其他区域路由器,所以无法修改路由器级别为 Level-1,只能通过修改接口邻接关系级别为 Level-1 来解决

    步骤 1:把 R2 和 R3 直连的接口邻接关系级别修改为 Level-1

    [R2]interface g0/2
    [R2-GigabitEthernet0/2]isis circuit-level level-1
    
    [R3]interface g0/2
    [R3-GigabitEthernet0/2]isis circuit-level level-1
    

    效果测试:检查 R2 和 R3 邻接关系,发现 R2 和 R3 之间只剩下 Level-1 邻接关系

    [R2]display isis peer
    
                         Peer information for IS-IS(1)
                         -----------------------------
    
     System ID: 0000.0000.0001
    Interface: GE0/0                   Circuit Id:  0000.0000.0002.01
    State: Up     HoldTime: 28s        Type: L1           PRI: 64
    
    System ID: 0000.0000.0004
    Interface: GE0/1                   Circuit Id:  0000.0000.0004.01
    State: Up     HoldTime: 8s         Type: L2(L1L2)     PRI: 64
    
    System ID: 0000.0000.0003
    Interface: GE0/2                   Circuit Id:  0000.0000.0003.03
    State: Up     HoldTime: 8s         Type: L1           PRI: 64
    
  5. 按照图示修改各链路 Cost

    步骤 1:修改 Cost

    [R1]interface g0/0
    [R1-GigabitEthernet0/0]isis cost 5
    [R1]interface g0/1
    [R1-GigabitEthernet0/1]isis cost 10
    

    其余路由器修改 Cost 步骤略

  6. 在 R2 和 R3 上配置路由渗透,使 R1 学习到 100.1.1.0、24 网段的明细路由,并选择最优路径

      分析:根据 IS-IS 协议原理,Level-2 的明细路由默认不会传递至 Level-1 路由器上,而会由该区域的 Level-1-2 路由器自动产生一条默认路由发布至 Level-1 路由器。该默认路由不会计算区域外部的 Cost,所以在本实验环境中,R1 上到达 100.1.1.0/24 网段,会选择经过 R2。该路径并非是到达该网段的最优路径
      要实现 R1 选择最优路径,需要在 Level-1-2 路由器上配置路由渗透,把 Level-2 的明细路由允许发布至 Level-1 路由器,才会使 R1 学习到最优的到达 100.1.1.0/24 网段的最优路由

    步骤 1:在 R2 和 R3 上配置路由渗透

    [R2]isis 1
    [R2-isis-1]address-family ipv4
    [R2-isis-1-ipv4]import-route isis level-2 into level-1 
    
    [R3]isis 1
    [R3-isis-1]address-family ipv4
    [R3-isis-1-ipv4]import-route isis level-2 into level-1 
    

    效果测试:检查 R1 路由表,发现已经学习到 100.1.1.0/24 网段的明细路由,并指向 R3

    [R1]display ip routing-table 
    
    Destinations : 21       Routes : 21
    
    Destination/Mask   Proto   Pre Cost        NextHop         Interface
    0.0.0.0/0          IS_L1   15  5           192.168.1.2     GE0/0
    0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
    100.1.1.0/24       IS_L1   15  25          192.168.2.3     GE0/1
    ……
    
  7. 在骨干网上配置接口验证

      分析:在 IS-IS 中,由连续的 Level-2 和 Level-1-2 路由器组成的网络为骨干网,在本拓扑中,R2,R4,R3 组成的网络即为骨干网,需要在其互联的接口上配置接口验证

    步骤 1:在 R2,R4,R3 互联的接口上配置 IS-IS 接口验证

    [R2-GigabitEthernet0/1]isis authentication-mode simple plain 123456
    
    [R3-GigabitEthernet0/1]isis authentication-mode simple plain 123456
    
    [R4-GigabitEthernet0/0]isis authentication-mode simple plain 123456
    [R4-GigabitEthernet0/1]isis authentication-mode simple plain 123456
    

    效果测试:重启接口或重置 IS-IS 进程后,发现 IS-IS 邻接关系仍然能够成功建立,说明验证配置正确


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK