【思科】IS-IS基本配置、重发布实验

简介:IS-IS协议同标准协议OSPF一样,是一种链路状态动态路由协议,但是它比ospf做了很多优化,减少了路由类型、LSA的泛洪,在现网中的应用也十分的广泛。

实验拓扑:

实验目的:1.在R1—R5上运行IS-IS协议,R1-R6上运行RIPv2协议

2.进行路由重发布,实现R5、R6互通

3.实现域间和外部路由汇总

实验步骤:1.在R1到R6上做基本配置,以及环回口。(略)

2.运行IS-IS协议和RIP协议

R1(config)#router isis

R1(config-router)#net 49.0001.0001.0001.0001.00    //指定NSAP地址,相当于router ID

R1(config-router)#ex

R1(config)#int range f0/0 ,l0

R1(config-if-range)#ip router isis                //进接口后宣告该接口下的网段

R2(config)#router isis

R2(config-router)#net 49.0001.0002.0002.0002.00

R2(config-router)#ex

R2(config)#int range f0/0 -1 ,l0

R2(config-if-range)#ip router isis

R3(config)#router isis

R3(config-router)#net 49.0000.0003.0003.0003.00

R3(config-router)#ex

R3(config)#int range f0/0 -1 ,l0

R3(config-if-range)#ip router isis

R4(config)#router isis

R4(config-router)#net 49.0000.0004.0004.0004.00

R4(config-router)#ex

R4(config)#int range f0/0 -1 ,l0

R4(config-if-range)#ip router isis

R5(config)#router isis

R5(config-router)#net 49.0002.0005.0005.0005.00

R5(config-router)#ex

R5(config)#int range f0/1 ,l0

R5(config-if-range)#ip router isis

R1(config)#router rip

R1(config-router)#version 2

R1(config-router)#no auto-summary

R1(config-router)#network 16.0.0.0

R6#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R6(config)#router rip

R6(config-router)#version 2

R6(config-router)#no auto-summary

R6(config-router)#network 16.0.0.0

R6(config-router)#network 6.6.6.6

可以对IS-IS协议作一些优化,由于ISIS协议路由器默认使用的选择级别是level 1-2,会同时发送两种LSP,这是没有必要的,十分浪费路由资源。

将R1改为level 1

R1(config)#router isis

R1(config-router)#is-type level-1              //修改路由器的路由选择级别

将R3,R4改为level 2

R3(config)#router isis

R3(config-router)#is-type level-2

R4(config)#router isis

R4(config-router)#is-type level-2

将R5的f0/1接口改为level 2

R5#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R5(config)#int f0/1

R5(config-if)#isis circuit-type level-2-only    //修改接口的选择级别

3.路由重发布

R1(config)#router isis

R1(config-router)#redistribute rip ?

level-1      IS-IS level-1 routes only

level-1-2    IS-IS level-1 and level-2 routes

level-2      IS-IS level-2 routes only

metric       Metric for redistributed routes

metric-type  OSPF/IS-IS exterior metric type for redistributed routes

route-map    Route map reference

<cr>

R1(config-router)#redistribute rip level-1

R1(config-router)#ex

R1(config)#router rip

R1(config-router)#redistribute isis ?

WORD       ISO routing area tag

level-1    IS-IS level-1 routes only

level-1-2  IS-IS level-1 and level-2 routes

level-2    IS-IS level-2 routes only

metric     Metric for redistributed routes

route-map  Route map reference

<cr>

R1(config-router)#redistribute isis level-1 metric 2

查看一下R5的路由表

R5#show ip route

....

34.0.0.0/24 is subnetted, 1 subnets

i L2    34.0.0.0 [115/20] via 45.0.0.4, FastEthernet0/1

16.0.0.0/24 is subnetted, 1 subnets

i L2    16.0.0.0 [115/40] via 45.0.0.4, FastEthernet0/1

1.0.0.0/32 is subnetted, 1 subnets

i L2    1.1.1.1 [115/50] via 45.0.0.4, FastEthernet0/1

2.0.0.0/24 is subnetted, 1 subnets

i L2    2.2.2.0 [115/40] via 45.0.0.4, FastEthernet0/1

3.0.0.0/32 is subnetted, 1 subnets

i L2    3.3.3.3 [115/30] via 45.0.0.4, FastEthernet0/1

4.0.0.0/32 is subnetted, 1 subnets

i L2    4.4.4.4 [115/20] via 45.0.0.4, FastEthernet0/1

5.0.0.0/32 is subnetted, 1 subnets

C       5.5.5.5 is directly connected, Loopback0

6.0.0.0/32 is subnetted, 1 subnets

i L2    6.6.6.6 [115/40] via 45.0.0.4, FastEthernet0/1

23.0.0.0/24 is subnetted, 1 subnets

i L2    23.0.0.0 [115/30] via 45.0.0.4, FastEthernet0/1

45.0.0.0/24 is subnetted, 1 subnets

C       45.0.0.0 is directly connected, FastEthernet0/1

测试一下R5能否连通R6

R5#p 6.6.6.6

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 88/122/140 ms

可见,R5已经学习到R6的路由了。

4.域间路由汇总和外部路由汇总

假设在R5上有4条路由,192.168.0.1-192.168.3.1

可以在R5上进行汇总

R5(config)#router isis

R5(config-router)#summary-address 192.168.0.0 255.255.252.0

这时候,在R4上面查看路由表会发现一条汇总路由

R4#show ip r

*Mar  1 01:09:31.227: %SYS-5-CONFIG_I: Configured from console by console

R4#show ip route

....

34.0.0.0/24 is subnetted, 1 subnets

C       34.0.0.0 is directly connected, FastEthernet0/1

16.0.0.0/24 is subnetted, 1 subnets

i L2    16.0.0.0 [115/30] via 34.0.0.3, FastEthernet0/1

1.0.0.0/32 is subnetted, 1 subnets

i L2    1.1.1.1 [115/40] via 34.0.0.3, FastEthernet0/1

2.0.0.0/24 is subnetted, 1 subnets

i L2    2.2.2.0 [115/30] via 34.0.0.3, FastEthernet0/1

3.0.0.0/32 is subnetted, 1 subnets

i L2    3.3.3.3 [115/20] via 34.0.0.3, FastEthernet0/1

4.0.0.0/32 is subnetted, 1 subnets

C       4.4.4.4 is directly connected, Loopback0

5.0.0.0/32 is subnetted, 1 subnets

i L2    5.5.5.5 [115/20] via 45.0.0.5, FastEthernet0/0

6.0.0.0/32 is subnetted, 1 subnets

i L2    6.6.6.6 [115/30] via 34.0.0.3, FastEthernet0/1

23.0.0.0/24 is subnetted, 1 subnets

i L2    23.0.0.0 [115/20] via 34.0.0.3, FastEthernet0/1

12.0.0.0/24 is subnetted, 1 subnets

i L2    12.0.0.0 [115/30] via 34.0.0.3, FastEthernet0/1

45.0.0.0/24 is subnetted, 1 subnets

C       45.0.0.0 is directly connected, FastEthernet0/0

i L2 192.168.0.0/22 [115/20] via 45.0.0.5, FastEthernet0/0

这样可以节省路由器的资源。

同样的,假设在R6上有4条路由172.16.0.1-172.16.3.1

可以在R1上进行路由汇总

R1(config)#router isis

R1(config-router)#summary-address 172.16.0.0 255.255.252.0 level-1

注意:在对外部路由进行汇总的时候,最后要加上level-x ,否则无效

在R2上查看一下路由汇总是否生效。

R2#show ip route

.....

34.0.0.0/24 is subnetted, 1 subnets

i L2    34.0.0.0 [115/20] via 23.0.0.3, FastEthernet0/0

16.0.0.0/24 is subnetted, 1 subnets

i L1    16.0.0.0 [115/10] via 12.0.0.1, FastEthernet0/1

1.0.0.0/32 is subnetted, 1 subnets

i L1    1.1.1.1 [115/20] via 12.0.0.1, FastEthernet0/1

2.0.0.0/24 is subnetted, 1 subnets

C       2.2.2.0 is directly connected, Loopback0

3.0.0.0/32 is subnetted, 1 subnets

i L2    3.3.3.3 [115/20] via 23.0.0.3, FastEthernet0/0

4.0.0.0/32 is subnetted, 1 subnets

i L2    4.4.4.4 [115/30] via 23.0.0.3, FastEthernet0/0

5.0.0.0/32 is subnetted, 1 subnets

i L2    5.5.5.5 [115/40] via 23.0.0.3, FastEthernet0/0

6.0.0.0/32 is subnetted, 1 subnets

i L1    6.6.6.6 [115/10] via 12.0.0.1, FastEthernet0/1

23.0.0.0/24 is subnetted, 1 subnets

C       23.0.0.0 is directly connected, FastEthernet0/0

172.16.0.0/22 is subnetted, 1 subnets

i L1    172.16.0.0 [115/10] via 12.0.0.1, FastEthernet0/1

12.0.0.0/24 is subnetted, 1 subnets

C       12.0.0.0 is directly connected, FastEthernet0/1

45.0.0.0/24 is subnetted, 1 subnets

i L2    45.0.0.0 [115/30] via 23.0.0.3, FastEthernet0/0

i L2 192.168.0.0/22 [115/40] via 23.0.0.3, FastEthernet0/0

汇总完毕,实验结束

时间: 2024-08-12 05:14:33

【思科】IS-IS基本配置、重发布实验的相关文章

ospf与rip双点双向重分发实验-实现负载均衡

本次实验,路由器,思科的网络设备拓扑如下(比较简单):首先是动态路由协议配置及ip配置-----------1enconf trouter ospf 1router-id 1.1.1.1netw 192.168.12.1 0.0.0.0 area 0exitrouter ripver 2no autnetwo 192.168.14.0exit--------------2enconf tint l0ip add 2.2.2.2 255.255.255.0ip ospf net point-to-

CCNP路由实验之八 路由重发布

CCNP路由实验之八 路由重发布 在前面几个实验,已经学习了静态路由和动态路由.现在,我们要掌握如何使它们在一个网络中融合,即路由重发布.路由重分布可以实现多种路由协议之间共享路由信息并进行路由信息交换,使得同一个互联网络中高效地支持多种路由协议提供了可能.执行路由重分布的路由器被称为边界路由器.因为他们位于两个或多个自治系统的边界上. 路由重分布时,计量单位和管理距离是必须要考虑的因素.每一种路由协议都有自己的度量标准,所以在进行重分布时必须转换度量标准,使得它们兼容.种子度量值(Seed M

综合实验DMVPN+EZVPN+Eigrp&OSPF+路由重发布

互联基本配置 !Internet: conf t int f0/0 ip add 100.1.1.1 255.255.255.0 no shut exit int f1/0 ip add 210.1.1.1 255.255.255.0 no shut exit int f1/1 ip add 200.1.1.1 255.255.255.0 no shut exit !Beijing-Center: Route# conf t int f0/0 ip add 100.1.1.2 255.255.2

路由重发布使用和实验

路由重分布可以实现多种路由协议之间共享路由信息并进行路由信息交换,使得同一个互联网络中高效地支持多种路由协议提供了可能.重分发总是向外的,执行重分发的路由器不会修改其路由表.路由必须位于路由表中才能被重分发.优先顺序依次为子网掩码最长匹配. 管理距离distance. 路由度量值metric.1)管理距离是指一种路由协议的路由可信度,在正常情况下,管理距离越小,它的优先级就越高,也就是可信度越高!路由器根据管理距离决定哪一个协议的路由进入路由表2)使用出站接口配置的静态路由AD实际处于0-1之间

Cisco-ospf非骨干area直连重发布(直连)链路冗余部署和维护经验分享

最近一直在调一些比较细的参数配置,还有一些比较简单但又不经常会在组网环境遇到的需求.恰逢中秋,自己也没打算出去,决心好好的更新一把博客.同时也复习复习自己的只是体系.指不定我哪天要给甲方讲这些,:). 好了,不多说,努力的人终会遇到伯乐,不努力的人终会被社会淘汰,这就是技术行业中规则,这也是每一位拥有很好工程师文化的年轻人,为什么一直坚定不移的为技术,推掉聚会,推掉约会,推掉游戏等,反正我就是这样一个人,用偏执和专注解决一切工作上遇到的问题,情怀就不劈了. 进入正题,参见如下截图,大家相对比较熟

思科路由静态NAT配置

实验名称:思科路由静态NAT配置实验拓扑:实验环境:1.3台路由器,2.一台交换机Router 0 边界路由器(内网和外网)Router 1 边界路由器(公网的内网和外网)Pouter 2 内网路由器 (公网的内部网络)3.一台PC 实验步骤:1. 配置PC机地址:IP : 192.168.10.1/24网关:192.168.10.252. 配置Router 0Continue with configuration dialog? [yes/no]: n Press RETURN to get

超详细OSPF的基本概念;OSPF多区域配置和综合实验

理论: ·OSPF大致有以下几个特点: 1·可适应大规模网络 2·路由变化l收敛速度很快 3·无路由环 4·支持可变长子网掩码 5·支持区域划分 6·支持以组播地址发送协议报 ? ·OSPF的路由器类型: 1·区域边界路由器(ABR):用来连接Area0和其他区域的路由器 2·内部路由器:保存自己区域的链路状态信息 3·自治边界路由器(ASBR):用来连接ospf的AS与外部其他的路由器,也就是说连接不是ospf协议的路由器 ? ·OSPF的路由表的形成:路由器会发送它的直连网段告诉对方形成邻居

路由重发布

1. 配置地址2. 配置ospf路由3. 配置RIP 4. R3上配置静态路由目标网络192.168.6.0 下一跳192.168.4.25. 配置OSPF重发布到RIP 中6. 配置RIP重分布到OSPF中7. 重发布直连路由到RIP 和ospf 中去8. 重发布静态路由到RIP和OSPF中去9. 重发布默认路由到RIP 和OSPF中去 基本配置R1interface FastEthernet0/0ip address 192.168.1.1 255.255.255.0no shutdown!

双点双向重发布

双点双向重发布如图,在拓扑图中,R1,R2,R3,R5运行ospf协议,R1,R3,R4运行isis协议,在R1和R3上面,将isis和ospf双向引入,R5上引入外部路由5.0.0.5/32和5.0.0.5/32.发现在R2上ping这两个环回路由的时候,会出现环路.[R2]tracert 5.0.0.5traceroute to 5.0.0.5(5.0.0.5), max hops: 30 ,packet length: 40,press CTRL_C to break 1 23.0.0.2