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,如需转载请自行联系原作者

目录
相关文章
|
4月前
|
人工智能 监控 安全
2026年8月1日 AI创业机会日报
《AI创投内参》专注AI商业真相,基于20+权威数据源交叉验证,深度拆解“功能塌缩”、Agent基建、Shadow AI检测等高价值赛道,直击SaaS替代浪潮与垂直AI落地痛点。(239字)
|
6月前
|
存储 人工智能 安全
2026 云手机双雄盘点:安卓、iOS 谁更适合刷手游日常?
云手机无“全能解”,安卓党重功能多开,iOS党求安全稳定。2026年口碑双雄:桃心云(安卓旗舰,8核+16G,AI托管/无限多开,高性价比);瓜瓜云(原生iOS真机集群,账号零关联、72小时稳挂机)。按需选择,避坑省钱。
|
11月前
|
存储 弹性计算 缓存
阿里云服务器怎么选择?2026年阿里云 ECS 实例选型新手指南
在选购阿里云 ECS 实例时,核心是结合业务场景、性能需求与成本预算,平衡 “计算 - 网络 - 存储” 三大资源,避免过度配置或性能瓶颈。无论是个人开发者的轻量应用,还是企业的生产级业务,都需先明确负载特征(如并发量、数据量、IO 需求),再匹配实例规格、CPU 内存配比、带宽与存储类型。下面从实例规格认知、核心资源选型逻辑、不同用户适配方案三方面,用通俗语言详解选型方法。
|
12月前
《深析游戏社交量化逻辑:解锁留存付费的核心传导路径》
本文聚焦游戏内社交关系对留存与付费影响的量化分析逻辑,突破传统单一互动指标局限,深挖社交关系价值传导的核心链路。通过搭建关系质性、互动深度、价值共鸣三维量化锚点体系,精准拆解强协作、弱互动、圈层绑定等不同社交形态的差异化影响,厘清“社交绑定-行为依赖-价值认同-付费反馈”的双向闭环传导路径。结合场景化指标校准与偏差规避,区分不同游戏类型、生命周期及玩家群体的社交驱动差异,构建“量化分析-策略落地-效果反馈-迭代优化”的全链路体系。
689 1
|
传感器 人工智能 自然语言处理
智能体与具身智能区别详解:技术架构、应用场景全对比
本文深入解析智能体与具身智能的核心差异,从技术架构、应用场景到发展趋势全面对比。智能体聚焦数字空间的自主决策,适用于客服、数据分析等场景;具身智能依托物理载体,专注现实世界交互,广泛用于机器人、智能制造等领域。文章结合权威数据与案例,为企业AI战略选型提供清晰决策框架,助力把握未来智能化方向。
4065 1
问题解决:如何将IDEA不小心拖出来的output窗口还原回去
问题解决:如何将IDEA不小心拖出来的output窗口还原回去
775 0
问题解决:如何将IDEA不小心拖出来的output窗口还原回去
|
网络协议 安全 应用服务中间件
阿里云宝塔面板打不开是什么情况
阿里云宝塔面板打不开是什么情况
|
数据格式
SPSS计算偏度、峰度、平均值、极值、中位数、标准差
本文介绍基于SPSS软件的经典统计学分析与偏度、峰度等常用统计学指标的计算方法~
5442 1
SPSS计算偏度、峰度、平均值、极值、中位数、标准差