CCNP之IS-IS实验

简介:
今天复习了CCNP中的IS-IS章节,了解了概念之后最重要的还是动手实验了。在实验中体会所学的知识点是如何运用的是最重要的。学CISCO这么久,老是感觉自己的记性一日不如一日,不过没办法,不学习的话要实现IE梦想那真就成了天方夜谭了,给自己加油,兄弟们也一起啊!
首先看看这张实验拓扑图:
配置的步骤如下:
1.在路由器上启用ISIS路由协议。 命令router isis
2.配置路由器的NET地址。 格式为: NET 49.YYYY.XXXX.XXXX.XXXX.00,其中49表示本地管理(私有的意思),YYYY表示区域地址,XXXX.XXXX.XXXX表示系统地址,00是NESL字节,其等于0表示网络服务。
3.配置路由器的IS-IS类别。在ISIS协议配置模式下,IS-TYPE LEVEL-1/1-2/-2。
4.配置ISIS接口级别。在接口配置模式下:ISIS CIRCUIT-TYPE LEVEL-1/-2/-1-2。
5.在接口启动集成IS-IS。以便分发IP信息。
6.如有必要,对ISIS分发的路由信息进行汇总。(在LEVEL-1-2的路由器上进行,就像在OSPF的ABR路由器上进行汇总的理由一样。)SUMMARY ADDRESS A.B.C.D MASK
7.验证配置。show ip route , sh isis neighbour ,sh clns neighbour ,sh isis topology.
好了,来看一下具体配置吧:
——路由器R1的配置:
R1#sh run
Building configuration...
Current configuration : 1289 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 5
no aaa new-model
ip subnet-zero
!
!
ip cef
!
!
no ftp-server write-enable
!         
!
!
!
interface Loopback0
 ip address 192.168.1.1 255.255.255.0
 ip router isis 
 isis circuit-type level-1
!
interface Loopback1
 ip address 192.168.2.1 255.255.255.0
 ip router isis 
 isis circuit-type level-1
!
interface Loopback2
 ip address 192.168.3.1 255.255.255.0
 ip router isis 
 isis circuit-type level-1
!
interface Loopback3
 ip address 192.168.4.1 255.255.255.0
 ip router isis    
 在接口上启用CLNS路由功能。
 isis circuit-type level-1
!         
interface Serial0/0
 ip address 10.1.0.1 255.255.255.252
 ip router isis 
 clns router isis
 serial restart-delay 0
 isis circuit-type level-1

!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router isis 
 net 49.0001.1111.1111.1111.00
 is-type level-1
!
ip http server
ip classless
!
!
!
!
!
control-plane
!
!
line con 0
 transport preferred all
 transport output all
line aux 0
 transport preferred all
 transport output all
line vty 0 4
!
end
 
路由器R2的配置:
R2#sh run
Building configuration...
Current configuration : 958 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 5
no aaa new-model
ip subnet-zero
!
!
ip cef
!
!
no ftp-server write-enable
!         
!
!
!
interface Serial0/0
 ip address 10.1.0.2 255.255.255.252
 ip router isis 
 clns router isis
 serial restart-delay 0
 isis circuit-type level-1
!
interface Serial0/1
 ip address 10.2.0.1 255.255.255.252
 ip router isis 
 clns router isis
 serial restart-delay 0
 isis circuit-type level-2-only
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown 
 serial restart-delay 0
!
router isis 
 net 49.0001.2222.2222.2222.00
 summary-address 192.168.0.0 255.255.0.0
   实现路由汇总
!
ip http server
ip classless
!
!
!
!
!
control-plane
!
!
line con 0
 transport preferred all
 transport output all
line aux 0
 transport preferred all
 transport output all
line vty 0 4
!
end
 
路由器R3的配置:
R3#sh run
Building configuration...
Current configuration : 944 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 5
no aaa new-model
ip subnet-zero
!
!
ip cef
!
!
no ftp-server write-enable
!         
!
!
!
interface Serial0/0
 ip address 10.2.0.2 255.255.255.252
 ip router isis 
 clns router isis
 serial restart-delay 0
 isis circuit-type level-2-only
!
interface Serial0/1
 ip address 10.3.0.1 255.255.255.252
 ip router isis 
 clns router isis
 serial restart-delay 0
 isis circuit-type level-2-only

!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown 
 serial restart-delay 0
!
router isis 
 net 49.0020.3333.3333.3333.00
 is-type level-2-only

!
ip http server
ip classless
!
!
!
!
!
control-plane
!
!
line con 0
 transport preferred all
 transport output all
line aux 0
 transport preferred all
 transport output all
line vty 0 4
!
end
 
路由器R4的配置:
R4#sh run
Building configuration...
Current configuration : 1202 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 5
no aaa new-model
ip subnet-zero
!
!
ip cef
!
!
no ftp-server write-enable
!         
!
!
!
interface Loopback0
 ip address 20.0.0.1 255.255.255.0
 ip router isis 
 isis circuit-type level-1

!
interface Loopback1
 ip address 20.0.1.1 255.255.255.0
 ip router isis
 
 isis circuit-type level-1

!
interface Loopback2
 ip address 20.0.2.1 255.255.255.0
 ip router isis 

 isis circuit-type level-1

!
interface Serial0/0
 ip address 10.3.0.2 255.255.255.252
 ip router isis 
 clns router isis
 serial restart-delay 0
 isis circuit-type level-2-only

!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router isis 
 net 49.0002.4444.4444.4444.00
 summary-address 20.0.0.0 255.255.0.0  实现路由汇总
!
ip http server
ip classless
!         
!
!
!
!
control-plane
!
!
line con 0
 transport preferred all
 transport output all
line aux 0
 transport preferred all
 transport output all
line vty 0 4
!
end
所有配置都已结束,下面进行验证:
使用SH CLNS ROUTE观察CLNS路由情况:
路由器R1:
R1#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
路由器R2:
R2#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.2222.2222.2222.00 [1/0], Local IS-IS NET
C  49.0001 [2/0], Local IS-IS Area
i  49.0002 [110/20]
      via R3, Serial0/1
i  49.0020 [110/10]
      via R3, Serial0/1
路由器R3:
R3#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.0020.3333.3333.3333.00 [1/0], Local IS-IS NET
C  49.0020 [2/0], Local IS-IS Area
i  49.0001 [110/10]
      via R2, Serial0/0
i  49.0002 [110/10]
      via R4, Serial0/1
路由器R4:
R4#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.0002.4444.4444.4444.00 [1/0], Local IS-IS NET
C  49.0002 [2/0], Local IS-IS Area
i  49.0001 [110/20]
      via R3, Serial0/0
i  49.0020 [110/10]
      via R3, Serial0/0
 
看一下路由汇总的效果吧:
路由器R2为LEVEL-1-2的类型,再汇总中我们只对L2进行了汇总
R2#sh ip route
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
     20.0.0.0/16 is subnetted, 1 subnets
i L2    20.0.0.0 [115/30] via 10.2.0.2, Serial0/1
i L1 192.168.4.0/24 [115/20] via 10.1.0.1, Serial0/0
     10.0.0.0/30 is subnetted, 3 subnets
C       10.2.0.0 is directly connected, Serial0/1
i L2    10.3.0.0 [115/20] via 10.2.0.2, Serial0/1
C       10.1.0.0 is directly connected, Serial0/0
i L1 192.168.1.0/24 [115/20] via 10.1.0.1, Serial0/0
i L1 192.168.2.0/24 [115/20] via 10.1.0.1, Serial0/0
i L1 192.168.3.0/24 [115/20] via 10.1.0.1, Serial0/0
i su 192.168.0.0/16 [115/20] via 0.0.0.0, Null0
路由器R4:
R4#sh ip route
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
     20.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C       20.0.0.0/24 is directly connected, Loopback0
i su    20.0.0.0/16 [115/10] via 0.0.0.0, Null0
C       20.0.1.0/24 is directly connected, Loopback1
C       20.0.2.0/24 is directly connected, Loopback2
     10.0.0.0/30 is subnetted, 3 subnets
i L2    10.2.0.0 [115/20] via 10.3.0.1, Serial0/0
C       10.3.0.0 is directly connected, Serial0/0
i L2    10.1.0.0 [115/30] via 10.3.0.1, Serial0/0
i L2 192.168.0.0/16 [115/40] via 10.3.0.1, Serial0/0
 
观察ISIS邻居状况:
路由器R1:
R1#sh isis neighbors detail
System Id      Type Interface IP Address      State Holdtime Circuit Id
R2             L1   Se0/0     10.1.0.2        UP    27       00
  Area Address(es): 49.0001
  SNPA: *HDLC*              
  State Changed: 01:04:16
  Format: Phase V
路由器R2:
R2#SH ISIS NEIghbors DETail
System Id      Type Interface IP Address      State Holdtime Circuit Id
R1             L1   Se0/0     10.1.0.1        UP    28       00
  Area Address(es): 49.0001
  SNPA: *HDLC*              
  State Changed: 01:05:00
  Format: Phase V
R3             L2   Se0/1     10.2.0.2        UP    24       00
  Area Address(es): 49.0020
  SNPA: *HDLC*              
  State Changed: 01:04:29
  Format: Phase V
路由器R3
R3#SH ISIS NEIghbors DETail
System Id      Type Interface IP Address      State Holdtime Circuit Id
R2             L2   Se0/0     10.2.0.1        UP    28       01
  Area Address(es): 49.0001
  SNPA: *HDLC*              
  State Changed: 01:05:03
  Format: Phase V
R4             L2   Se0/1     10.3.0.2        UP    27       00
  Area Address(es): 49.0002
  SNPA: *HDLC*              
  State Changed: 01:04:35
  Format: Phase V
路由器R4:
R4#SH ISIS NEIghbors DETail
System Id      Type Interface IP Address      State Holdtime Circuit Id
R3             L2   Se0/0     10.3.0.1        UP    29       01
  Area Address(es): 49.0020
  SNPA: *HDLC*              
  State Changed: 01:05:02
  Format: Phase V
 
实验就做到这里吧。
欢迎大家光临我的博客!




本文转自 tiger506 51CTO博客,原文链接:http://blog.51cto.com/tiger506/105142,如需转载请自行联系原作者

目录
相关文章
|
XML 存储 JSON
Android Jetpack组件 DataStore的使用和简单封装
Android Jetpack组件 DataStore的使用和简单封装
1485 0
Android Jetpack组件 DataStore的使用和简单封装
|
24天前
|
传感器 人工智能 自然语言处理
智能体与具身智能区别详解:技术架构、应用场景全对比
本文深入解析智能体与具身智能的核心差异,从技术架构、应用场景到发展趋势全面对比。智能体聚焦数字空间的自主决策,适用于客服、数据分析等场景;具身智能依托物理载体,专注现实世界交互,广泛用于机器人、智能制造等领域。文章结合权威数据与案例,为企业AI战略选型提供清晰决策框架,助力把握未来智能化方向。
445 0
|
11月前
|
弹性计算 运维 自然语言处理
OS Copilot 智能助手评测报告
作为一名开发工程师,我频繁涉及云资源运维与管理。阿里云推出的OS Copilot结合大语言模型与操作系统经验,引起了我的极大兴趣。在2025年1月7日至2月7日的测评中,我通过ECS实例体验了其性能和易用性。安装过程简单,但遇到依赖包版本不匹配等问题,通过查阅文档解决。OS Copilot的-t参数简化操作流程,-f参数提升批量任务效率,管道操作帮助理解系统配置。整体而言,OS Copilot显著提升了工作效率,特别是在自然语言交互方面表现出色。未来希望优化用户体验、增强安全性和拓展应用场景,为用户提供更优质的服务。
327 14
|
网络协议 安全 应用服务中间件
阿里云宝塔面板打不开是什么情况
阿里云宝塔面板打不开是什么情况
|
人工智能 移动开发 Java
Java智能之Spring AI:5分钟打造智能聊天模型的利器
尽管Python最近成为了编程语言的首选,但是Java在人工智能领域的地位同样不可撼动,得益于强大的Spring框架。随着人工智能技术的快速发展,我们正处于一个创新不断涌现的时代。从智能语音助手到复杂的自然语言处理系统,人工智能已经成为了现代生活和工作中不可或缺的一部分。在这样的背景下,Spring AI 项目迎来了发展的机遇。尽管该项目汲取了Python项目如LangChain和LlamaIndex的灵感,但Spring AI并不是简单的移植。该项目的初衷在于推进生成式人工智能应用程序的发展,使其不再局限于Python开发者。
675 2
|
Kubernetes 安全 Go
对于阿里开源混沌工程工具chaosblade-box-agent心跳报错问题的分析与解决
摘要: 本文记录了一个由chaosblade-box平台后台发现的偶发的chaosblade-box-agent不发送心跳的问题,从报错日志入手,结合chaosblade-box-agent源码进行分析,最终解决问题并修复打包的过程。
832 7
|
消息中间件 Kubernetes Kafka
实时计算 Flink版操作报错合集之在Rancher K8s部署时,TaskManager无法正常连接到其他TaskManager,该如何处理
在使用实时计算Flink版过程中,可能会遇到各种错误,了解这些错误的原因及解决方法对于高效排错至关重要。针对具体问题,查看Flink的日志是关键,它们通常会提供更详细的错误信息和堆栈跟踪,有助于定位问题。此外,Flink社区文档和官方论坛也是寻求帮助的好去处。以下是一些常见的操作报错及其可能的原因与解决策略。
|
存储 搜索推荐 数据可视化
分享100+个搜索引擎,看看你知道的有几个
分享100+个搜索引擎,看看你知道的有几个
2148 0
分享100+个搜索引擎,看看你知道的有几个