Chinaunix首页 | 论坛 | 博客
  • 博客访问: 214159
  • 博文数量: 48
  • 博客积分: 4011
  • 博客等级: 上校
  • 技术积分: 695
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-26 17:15
文章分类

全部博文(48)

文章存档

2011年(1)

2010年(1)

2009年(46)

我的朋友

分类: 系统运维

2009-06-29 20:52:24

实验目的:

1、掌握EIGRP与IS-IS的重发布配置。

实验拓扑图:

实验步骤及要求:

1、配置各台路由器的IP地址,并且使用Ping命令确认各路由器的直连口的互通性。

2、配置R1与R2的IS-IS路由协议和R2与R3的EIGRP路由协议。

3、查看R1、R2和R3的路由表:

R1#show ip route 

Gateway of last resort is not set

     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks

C       172.16.255.0/30 is directly connected, Serial1/1

C       172.16.1.0/24 is directly connected, Loopback0

C       172.16.2.0/24 is directly connected, Loopback1

R1#

R2#show ip route 

Gateway of last resort is not set

     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks

C       172.16.255.0/30 is directly connected, Serial1/0

i L1    172.16.1.0/24 [115/20] via 172.16.255.1, Serial1/0

i L1    172.16.2.0/24 [115/20] via 172.16.255.1, Serial1/0

     192.168.255.0/30 is subnetted, 1 subnets

C       192.168.255.0 is directly connected, Serial1/1

D    192.168.1.0/24 [90/2297856] via 192.168.255.1, 00:00:04, Serial1/1

D    192.168.2.0/24 [90/2297856] via 192.168.255.1, 00:00:04, Serial1/1

R2#

R3#show ip route 

Gateway of last resort is not set

C    192.168.255.0/24 is directly connected, Serial1/0

C    192.168.1.0/24 is directly connected, Loopback0

C    192.168.2.0/24 is directly connected, Loopback1

R3#

*Mar 29 10:39:29.171: %SYS-5-CONFIG_I: Configured from console by console

R3#

4、根据show ip route命令可以看出,只有R2路由才可以学习到整个网络的完整路由。是因为,R2路由处于EIGRP与IS-IS网络的边界。其同时运行了两种不同的路由协议。

5、为了确保R1和R2能够学习到整个网络路由。在R2上配置路由重发布。配置如下:

R2(config)#router isis cisco

R2(config-router)#redistribute eigrp 100 metric 20 level-2  

R2(config-router)#exit

R2(config)#

R2(config)#router eigrp 100

R2(config)#redistribute isis cisco level-1-2 metric 100000 10 255 1 1500

R2(config)#

因为EIGRP采用的是复合型的度量值,所以在重发布时,需要根据网络的实际情况指定相应的度量值。

6、查看R1路由器和R3路由器的路由表:

R1#show ip route 

Gateway of last resort is not set

     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks

C       172.16.255.0/30 is directly connected, Serial1/1

C       172.16.1.0/24 is directly connected, Loopback0

C       172.16.2.0/24 is directly connected, Loopback1

     192.168.255.0/30 is subnetted, 1 subnets

i L2    192.168.255.0 [115/30] via 172.16.255.2, Serial1/1

i L2 192.168.1.0/24 [115/30] via 172.16.255.2, Serial1/1

i L2 192.168.2.0/24 [115/30] via 172.16.255.2, Serial1/1

R1#

R3#show ip route 

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 2 subnets

D EX    172.16.1.0 [170/2172416] via 192.168.255.2, 00:08:48, Serial1/0

D EX    172.16.2.0 [170/2172416] via 192.168.255.2, 00:08:48, Serial1/0

C    192.168.255.0/24 is directly connected, Serial1/0

C    192.168.1.0/24 is directly connected, Loopback0

C    192.168.2.0/24 is directly connected, Loopback1

R3#

7、确认路由有效性:

R3#ping 172.16.1.1

Type escape sequence to abort.

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

!!!!!

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

R3#

R1#ping 192.168.1.1

Type escape sequence to abort.

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

.....

Success rate is 0 percent (0/5)

R1#

8、再次查看R3的路由表:

R3#show ip route 

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 2 subnets

D EX    172.16.1.0 [170/2172416] via 192.168.255.2, 00:23:06, Serial1/0

D EX    172.16.2.0 [170/2172416] via 192.168.255.2, 00:23:06, Serial1/0

C    192.168.255.0/24 is directly connected, Serial1/0

C    192.168.1.0/24 is directly connected, Loopback0

C    192.168.2.0/24 is directly connected, Loopbac

R3#

查看路由发现缺少172.16.255.0/24网络路由。产生此问题的原因是:IS-IS在重发布时,不会将直连网段重发布。

9、在R2上EIGRP协议中添加配置重发布直连网络:

R2(config)#router eigrp 100

R2(config-router)#redistribute connected metric 100000 10 255 1 1500

R2(config-router)#exit

10、查看R3路由表:

R3#show ip route 

Gateway of last resort is not set

     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks

D EX    172.16.255.0/30 [170/2172416] via 192.168.255.2, 00:00:06, Serial1/0

D EX    172.16.1.0/24 [170/2172416] via 192.168.255.2, 00:26:56, Serial1/0

D EX    172.16.2.0/24 [170/2172416] via 192.168.255.2, 00:26:56, Serial1/0

C    192.168.255.0/24 is directly connected, Serial1/0

C    192.168.1.0/24 is directly connected, Loopback0

C    192.168.2.0/24 is directly connected, Loopback1

R3#

11、在R3上确认路由有效性:

R1#ping 192.168.1.1

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 120/148/168 ms

R1#

12、实验完成。

阅读(1287) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-07-27 14:59:00

isis直连网段是172.16.255.0/30 不是172.16.255.0/24