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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值