同一网络上的RIP和EIGRP配置

时间:2020-03-21 11:46:53  来源:igfitidea点击:

在完成静态路由配置和动态路由配置之后,我们现在将在此处介绍混合路由配置。
我们将一起使用RIP和EIGRP,并将它们合并以获得距离矢量和链接状态的好处。
因此,当我们同时使用RIP和EIGRP时,随着网络拓扑结构的变化,最准确的指标(用于确定到达目的地的最佳路径)会自动更改。
此路由类型允许快速收敛,但消耗更少的内存和更少的处理能力。

本文主要集中在RIP和EIGRP的配置上,以获得上述好处,现在看看使用这种类型的路由配置的好处。
当我们要将EIGRP自治系统中的所有路由注入到网络中时,将使用这种类型的配置方法RIP数据库并显示为常规的rip路由,不仅如此,我们还可以使用相同的概念将RIP到EIGRP拓扑表的路由注入,然后在整个自治系统中将这些rip路由作为EIGRP外部路由发布。

路由器R1上的配置

我们将在以太网端口和串行端口上分配IP地址,主机名,上行端口,在串行端口上设置时钟速率,在路由器R1上分配带宽。

Router>enable
Router#config terminal
Enter configuration commands, one per line.  End with CNTL/Z.
 
R!(config)#hostname R1
R1(config)#int fa0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown

%LINK-5-CHANGED:接口FastEthernet0/0,状态改为up
%LINEPROTO-5-UPDOWN:接口FastEthernet0/0上的线路协议,状态更改为up

 
R1(config-if)#exit
 
 
R1(config)#int se0/0/0
R1(config-if)#ip address  20.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#bandwidth 64
R1(config-if)#no shutdown
 
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#exit
 
 
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit

路由器R2上的配置

在以太网和串行端口上分配IP地址,在路由器R2上分配带宽和时钟速率。

Router>enable
Router#config terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R2
R2(config)#interface se0/0/0
R2(config-if)#ip address 20.0.0.2 255.0.0.0
R2(config-if)#bandwidth 64
R2(config-if)#no shutdown
 
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
 
R2(config-if)#exit

现在,在路由器R2上配置路由器RIP和EIGRP。

R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#exit
.
 
R2(config)#router eigrp 1
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#exit
R2(config)#
 
R2(config)#interface se0/0/1
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#bandwidth 64
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown

路由器R3上的配置

我们分配了主机名和地址触发,然后启动了网络接口。

Router>enable
Router#config terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R3
R3(config)#int fastEthernet 0/0
 
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown
 
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
 
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
 
R3(config-if)#exit
R3(config)#int se0/0/0
R3(config-if)#ip address 30.0.0.2 255.0.0.0
 
R3(config-if)#bandwidth 64
 
R3(config-if)#clock rate 64000
R3(config-if)#no shutdown
 
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
 
R3(config-if)#router rip
R3(config-router)#version 2
R3(config-router)#network 30.0.0.0
R3(config-router)#network 40.0.0.0
R3(config-router)#exit
 
R3(config)#router eigrp 1
R3(config-router)#network 30.0.0.0
R3(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 30.0.0.1 (Serial0/0/0) is up: new adjacency
 
R3(config-router)#network 40.0.0.0
R3(config-router)#exit

故障排除:

故障排除是网络管理员或者系统管理员的主要工作。
要找到错误并加以解决,我们必须具有良好的故障排除能力。
一旦在路由器上成功配置了路由,则需要验证或者排除配置任务是否正常是否正确。

R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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
 
C    10.0.0.0/8 is directly connected, FastEthernet0/0
C    20.0.0.0/8 is directly connected, Serial0/0/0
R    30.0.0.0/8 [120/1] via 20.0.0.2, 00:00:12, Serial0/0/0
R    40.0.0.0/8 [120/2] via 20.0.0.2, 00:00:12, Serial0/0/0
R1#

怎么看邻居表?

R2#show ip eigrp neighbors 
IP-EIGRP neighbors for process 1
H   Address         Interface      Hold Uptime    SRTT   RTO   Q   Seq
                                   (sec)          (ms)        Cnt  Num
0   30.0.0.2        Se0/0/1        13   00:30:07  40     1000  0   3

如何查看发送或者接收的数据包的类型和数量?

R2#show ip eigrp traffic 
IP-EIGRP Traffic Statistics for process 1
  Hellos sent/received: 835/416
  Updates sent/received: 4/2
  Queries sent/received: 0/0
  Replies sent/received:  0/0
  Acks sent/received:  2/3
  Input queue high water mark 1, 0 drops
  SIA-Queries sent/received: 0/0
  SIA-Replies sent/received: 0/0

如何查看接口上运行程序的信息?

下面的命令将向我们显示参与eigrp进程的接口的详细信息。

R2#show ip eigrp  interfaces 
IP-EIGRP interfaces for process 1
 
                        Xmit Queue   Mean   Pacing Time   Multicast    Pending
Interface        Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Se0/0/1            1        0/0      1236       0/10           0           0
Se0/0/0            0        0/0      1236       0/10           0           0