天天看点

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

interface Loopback2

 ip address 192.168.3.1 255.255.255.0

interface Loopback3

 ip address 192.168.4.1 255.255.255.0

 ip router isis     在接口上启用CLNS路由功能。

interface Serial0/0

 ip address 10.1.0.1 255.255.255.252

 clns router isis

 serial restart-delay 0

interface Serial0/1

 no ip address

 shutdown

interface Serial0/2

interface Serial0/3

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

line vty 0 4

end

路由器R2的配置:

R2#sh run

Current configuration : 958 bytes

hostname R2

 ip address 10.1.0.2 255.255.255.252

 ip address 10.2.0.1 255.255.255.252

 isis circuit-type level-2-only

 shutdown 

 net 49.0001.2222.2222.2222.00

 summary-address 192.168.0.0 255.255.0.0   实现路由汇总

路由器R3的配置:

R3#sh run

Current configuration : 944 bytes

hostname R3

 ip address 10.2.0.2 255.255.255.252

 ip address 10.3.0.1 255.255.255.252

 net 49.0020.3333.3333.3333.00

 is-type level-2-only

路由器R4的配置:

R4#sh run

Current configuration : 1202 bytes

hostname R4

 ip address 20.0.0.1 255.255.255.0

 ip address 20.0.1.1 255.255.255.0

 ip address 20.0.2.1 255.255.255.0

 ip address 10.3.0.2 255.255.255.252

 net 49.0002.4444.4444.4444.00

 summary-address 20.0.0.0 255.255.0.0  实现路由汇总

所有配置都已结束,下面进行验证:

使用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

C  49.0001.2222.2222.2222.00 [1/0], Local IS-IS NET

i  49.0002 [110/20]

      via R3, Serial0/1

i  49.0020 [110/10]

路由器R3:

R3#sh clns route

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

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

看一下路由汇总的效果吧:

路由器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

     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

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#SH ISIS NEIghbors DETail

R1             L1   Se0/0     10.1.0.1        UP    28       00

  State Changed: 01:05:00

R3             L2   Se0/1     10.2.0.2        UP    24       00

  Area Address(es): 49.0020

  State Changed: 01:04:29

路由器R3

R3#SH ISIS NEIghbors DETail

R2             L2   Se0/0     10.2.0.1        UP    28       01

  State Changed: 01:05:03

R4             L2   Se0/1     10.3.0.2        UP    27       00

  Area Address(es): 49.0002

  State Changed: 01:04:35

R4#SH ISIS NEIghbors DETail

R3             L2   Se0/0     10.3.0.1        UP    29       01

  State Changed: 01:05:02

实验就做到这里吧。

欢迎大家光临我的博客!

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