当前位置:文档之家› eigrp度量值

eigrp度量值

eigrp度量值
eigrp度量值

EIGRP基本实验与度量计算

R1:

Router>en

Router#conf t

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

Router(config)#line con 0

Router(config-line)#logg sy

Router(config-line)#exec-t 0 0

Router(config-line)#exi

Router(config)#no ip domain-lo

Router(config)#host R1

R1(config)#int s 1

R1(config-if)#ip add 10.10.10.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#clo ra 64000

R1(config-if)#exi

R1(config)#

*Mar 1 00:23:29.347: %LINK-3-UPDOWN: Interface Serial1, changed state to up

R1(config)#

*Mar 1 00:23:30.351: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up

R1(config)#

R2:

R2#en

R2#conf t

Enter configuration commands, one per line. End with CNTL/Z. R2(config)#int s 1

R2(config-if)#ip add 10.10.10.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#int s 0

R2(config-if)#ip add 20.20.20.1 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#clo ra 64000

R2(config-if)#exi

R2(config)#

R3:

R3>en

R3#conf t

Enter configuration commands, one per line. End with CNTL/Z. R3(config)#int s 1

R3(config-if)#ip add 20.20.20.2 255.255.255.0

R3(config-if)#no shutdown

R3(config-if)#exi

R3(config)#

以上的配置已经可以完成由R2分别与R1和R3的通信,测试结果如下:

R2#ping 10.10.10.1

Type escape sequence to abort.

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

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/36 ms R2#ping 20.20.20.2

Type escape sequence to abort.

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

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/36 ms R2#

回R1启动EIGRP协议。

R1(config)#router eigrp ?

<1-65535> Autonomous system number ←实则为EIGRP的进程号,也可被用来用自治系统号进行分配。

R1(config)#router eigrp 1

R1(config-router)#net 10.10.10.0 ?←宣告网络

A.B.C.D EIGRP wild card bits ←EIGRP支持VLSM,可以在这里输入通配符掩码进行精确匹配。

←直接确定

R2、R3同时都需要运行EIGRP使R1可以与R3相互交换信息,R2、R3的配置如下:

R2:

R2#conf t

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

R2(config)#router eigrp 1

R2(config-router)#net 10.10.10.0

*Mar 1 01:10:21.591: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.10.10.1 (Serial1) is up: new adjacency ←与邻居10.10.10.1建立邻接关系成功,如何建立的细节请参阅IT傻博士课程。

R2(config-router)#net 20.20.20.0

R2(config-router)#exi

R2(config)#

*Mar 1 01:10:37.699: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 20.20.20.2 (Serial0) is up: new adjacency ←与邻居20.20.20.2建立邻接关系。

R2(config)#

R3:

R3(config)#

R3(config)#router eigrp 1

R3(config-router)#net 20.20.20.0

R3(config-router)#exi

R3(config)#

*Mar 1 01:09:13.887: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor

20.20.20.1 (Serial1) is up: new adjacency ←与邻居20.20.20.1建立邻接关系。

R3(config)#

我们接着在R3上查看路由表可以看见到达R1的路由已经出现,如下。

R3#show 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/24 is subnetted, 1 subnets

C 20.20.20.0 is directly connected, Serial1

D 10.0.0.0/8 [90/2681856] via 20.20.20.1, 00:39:05, Serial1

R3#

首先我们来分解看一下本条通过EIGRP学习到的路由条目。

D 10.0.0.0/8 [90/2681856] via 20.20.20.1, 00:39:05, Serial1

D: 代表EIGRP。

0.0.0.0/8: 为我们宣告的网络,在此的形式为主类,因为EIGRP在通过边界路由的时候将进行自动汇总。

[90/2681856]: 括号内的90表明EIGRP的管理距离为90,2681856为到达10.0.0.0/8这条链路的开销值。

via 20.20.20.1: 下一跳邻居接口。

01:07:51:时间标记。

Serial1:本地接口。

在[90/2681856]一项内管理距离的值各协议不同,并且随厂家的不同也有不同,定义管理距离值除了各企业以外IETF工程小组也有相关定义。

2681856为到达目的地的Metric值(度量)其计算公式如下:

BW igrp metric = 10000000/带宽(kbit/s)

DLY igrp metric = 延迟总和(微秒microseconds)/10

BW eigrp metric = 10000000/带宽(kbit/s)* 256

DLY eigrp metric = 延迟总和(微秒microseconds)/10 * 256

通过show ip route 10.10.10.0 可查看相关路由的详细参数。

R3#show ip route 10.10.10.0

Routing entry for 10.0.0.0/8

Known via "eigrp 1", distance 90, metric 2681856, type internal

Redistributing via eigrp 1

Last update from 20.20.20.1 on Serial1, 01:17:54 ago

Routing Descrīptor Blocks:

* 20.20.20.1, from 20.20.20.1, 01:17:54 ago, via Serial1

Route metric is 2681856, traffic share count is 1

Total delay is 40000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

R3#

从以上R3#show ip route 10.10.10.0命令输入的相关信息可以看到到达目的地10.10.10.0的延迟总和为4000微秒,而Eigrp的带宽用整个链路的最小带宽为1544Kbit/s,经过计算,算出来的metric的值为2681856,而直接套用如上公式进行计算,计算的结果有一定的偏差,实际的链路带宽应为1544.163063619518221124Kb通过此值进行运算即可得到metric为2681856。图示如下:

接下来我们看一下Eigrp的Topology Table(称数据库表或拓扑表)

R3#show ip eigrp topo

IP-EIGRP Topology Table for AS(1)/ID(20.20.20.2)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status

P 10.0.0.0/8, 1 successors, FD is 2681856

via 20.20.20.1 (2681856/2169856), Serial1

P 20.20.20.0/24, 1 successors, FD is 2169856

via Connected, Serial1

R3#

从上面摘取的条目可以看出P 10.0.0.0/8, 1 successors, FD is 2681856 其FD(可行距离)的值为2681856,可行距离即为从源到达目的的最小Metirc值,通过Metric的公式即可计算出,但是第二条P 20.20.20.0/24, 1 successors, FD is 2169856本条的FD为2169856,差别即在于20.20.20.0的网段与R3直接相连到达本路径的最小带宽为1544Kb,延迟总和为20000微秒,通过计算即可得。

带宽和延迟是Eigrp进行度量运算的默认参数,除此以外负载和可靠性也可以与带宽和延迟共同参与度量的运算,但是需要人为手动开启此选项,另外MTU(最大传输单元)并不参与Metric的运算,但是Eigrp和Igrp也会跟踪每条路由上最小MTU的大小。

通过以下方式可以查看每接口的相关参数

R3#show interface s 1

Serial1 is up, line protocol is up

Hardware is HD64570

Internet address is 20.20.20.2/24

MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, ←用于Metric运算的相关参数。

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation HDLC, loopback not set

Keepalive set (10 sec)

Last input 00:00:02, output 00:00:02, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: weighted fair

Output queue: 0/1000/64/0 (size/max total/threshold/drops)

Conversations 0/1/256 (active/max active/max total)

Reserved Conversations 0/0 (allocated/max allocated)

Available Bandwidth 1158 kilobits/sec

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

916 packets input, 59374 bytes, 0 no buffer

Received 319 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

922 packets output, 60362 bytes, 0 underruns

0 output errors, 0 collisions, 4 interface resets

0 output buffer failures, 0 output buffers swapped out

1 carrier transitions

DCD=up DSR=up DTR=up RTS=up CTS=up

R3#

另外以上BW(带宽)值并非本链路的传输速度为1544Kbit/s,而仅用来作为串口默认的度量值,不会动态改变,即便你的实际传输速率仅为64Kbit/s,路由器仍然会把这条链路当作1544Kbit/s来进行度量运算。这个缺省的度量值我们可以通过bandwidth命令来更改。

此命令需要在接口下进行,通过以下的命令我们可以修改相应接口的带宽值。

R3(config)#int s 1

R3(config-if)#bandwidth 64

Eigrp对Metric中带宽的运算是基于路由器的出接口带宽的最小值而计算的,发出去到目的地的数据包和由目的地发回的数据包链路的Metric可能不一样。我们把带宽的设置修改成如下图。

我们分别从R1上查看到达20.20.20.0(R2-R3)链路的Metric值和从R3上查看到达10.10.10.0(R1-R2)链路的Metric值。

R3#show ip route 10.10.10.0

Routing entry for 10.0.0.0/8

Known via "eigrp 1", distance 90, metric 41024000, type internal Redistributing via eigrp 1

Last update from 20.20.20.1 on Serial1, 00:34:49 ago

Routing Descrīptor Blocks:

* 20.20.20.1, from 20.20.20.1, 00:34:49 ago, via Serial1

Route metric is 41024000, traffic share count is 1

Total delay is 40000 microseconds, minimum bandwidth is 64 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

R3#

从以上命令查看的内容可以得知Metric的值发生了改变,并且运算的最小带宽为64Kbit,我们再回到R1来查看到达20.20.20.0(R2-R3)的链路Metric值。

R1#show ip route 20.20.20.0

Routing entry for 20.0.0.0/8

Known via "eigrp 1", distance 90, metric 2681856, type internal

Redistributing via eigrp 1

Last update from 10.10.10.2 on Serial1, 00:39:52 ago

Routing Descrīptor Blocks:

* 10.10.10.2, from 10.10.10.2, 00:39:52 ago, via Serial1

Route metric is 2681856, traffic share count is 1

Total delay is 40000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

R1#

可见从R1到达R3的Metric和从R3回到R1的Metric并不相同。

我们除了可以通过修改带宽来更改Metric的运算以外还可以通过修改延迟来影响

CISCO核心 Vlan 配置实例

CISCO Vlan配置实例 如何配置三层交换机创建VLAN 以下的介绍都是基于Cisco交换机的VLAN。Cisco的VLAN实现通常是以端口为中心的。与节点相连的端口将确定它所驻留的VLAN。将端口分配给VLAN的方式有两种,分别是静态的和动态的。形成静态VLAN的过程是将端口强制性地分配给VLAN的过程。即我们先在VTP (VLAN Trunking Protocol)Server上建立VLAN,然后将每个端口分配给相应的VLAN的过程。这是我们创建VLAN最常用的方法。动态VLAN形成很简单,由端口决定自己属于哪个VLAN。即我们先建立一个VMPS(VLAN Membership Policy Server)VLAN管理策略服务器,里面包含一个文本文件,文件中存有与VLAN映射的MAC地址表。交换机根据这个映射表决定将端口分配给何种VLAN。这种方法有很大的优势,但是创建数据库是一项非常艰苦而且非常繁琐的工作。下面以实例说明如何在一个典型的快速以太局域网中实现VLAN。所谓典型的局域网就是指由一台具备三层交换功能的核心交换机接几台分支交换机(不一定具备三层交换能力)。我们假设核心交换机名称为:COM;分支交换机分别为:PAR1、PAR2、PAR3……,分别通过Port 1的光线模块与核心交换机相连;并且假设VLAN名称分别为COUNTER、MARKET、MANAGING…… 设置VTP DOMAIN VTP DOMAIN 称为管理域。交换VTP更新信息的所有交换机必须配置为相同的管理域。如果所有的交换机都以中继线相连,那么只要在核心交换机上设置一个管理域,网络上所有的交换机都加入该域,这样管理域里所有的交换机就能够了解彼此的VLAN列表。COM#vlan database 进入VLAN配置模式 COM(vlan)#vtp domain COM 设置VTP管理域名称COM COM(vlan)#vtp server 设置交换机为服务器模式 PAR1#vlan database 进入VLAN配置模式 PAR1(vlan)#vtp domain COM 设置VTP管理域名称COM PAR1(vlan)#vtp Client 设置交换机为客户端模式 PAR2#vlan database 进入VLAN配置模式 PAR2(vlan)#vtp domain COM 设置VTP管理域名称COM PAR2(vlan)#vtp Client 设置交换机为客户端模式 PAR3#vlan database 进入VLAN配置模式 PAR3(vlan)#vtp domain COM 设置VTP管理域名称COM PAR3(vlan)#vtp Client 设置交换机为客户端模式 注意:这里设置交换机为Server模式是指允许在本交换机上创建、修改、删除VLAN及其他一些对整个VTP域的配置参数,同步本VTP域中其他交换机传递来的最新的VLAN信息;Client 模式是指本交换机不能创建、删除、修改VLAN配置,也不能在NVRAM中存储VLAN配置,但可以同步由本VTP域中其他交换机传递来的VLAN信息。 配置中继为了保证管理域能够覆盖所有的分支交换机,必须配置中继。Cisco交换机能够支持任何介质作为中继线,为了实现中继可使用其特有的ISL标签。ISL(Inter-Switch Link)是一个在交换机之间、交换机与路由器之间及交换机与服务器之间传递多个VLAN信息及VLAN数据流的协议,通过在交换机直接相连的端口配置ISL封装,即可跨越交换机进行整个网络的VLAN分配和进行配置。 在核心交换机端配置如下: COM(config)#interface gigabitEthernet 2/1 COM(config-if)#switchport

-Eigrp末节路由设置

创建高级交换型互联网实验报告 时间:2011-4-27 实验名称:Eigrp末节路由设置 班级计算机通信2班32号姓名黄跃实验内容 1、拓扑图: 实验步骤: ?1、配置R1、R2、R3的IP地址和名称 ?R0 ?Router>en ?Router#config t ?Router(config)#HO R0 ?R0(config)#in s0/0 ?R0(config-if)#clock rate 64000 ?R0(config-if)#ip add 10.1.1.1 255.255.255.252 ?R0(config-if)#no shu ?R0(config-if)#in lo 1 ?R0(config-if)#ip add 11.11.11.11 255.255.255.255 ?R0(config-if)#in lo 2 ?R0(config-if)#ip add 172.16.9.1 255.255.255.0 ?R0(config-if)#in lo 3 ?R0(config-if)#ip add 172.16.10.1 255.255.255.0 ?R0(config-if)#in lo 4 ?R0(config-if)#ip add 172.16.11.1 255.255.255.0 ?R0(config-if)#in lo 5 ?R0(config-if)#ip add 172.16.12.1 255.255.255.0 ? ?R1 Router>en Router#config t

Router(config)#HO R1 R1(config)#in s0/0 R1(config-if)#ip add 10.1.1.2 255.255.255.252 R1(config-if)#no shu R1(config-if)#in fa0/0 R1(config-if)#ip add 10.1.1.9 255.255.255.252 R1(config-if)#no shu R1(config-if)#in lo 1 ?R2(config-if)#ip add 22.22.22.22 255.255.255.255 ? R2 Router>en Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#HO R3 R2(config)#in fa0/0 R2(config-if)#ip add 10.1.1.10 255.255.255.252 R2(config-if)#no shu R2(config-if)#in lo 1 R2(config-if)#ip add 33.33.33.33 255.255.255.255 ?2、在R0、R1、R2上启用EIGRP协议 ?R0 ?R0(config-if)#router eigrp 90 ?R0(config-router)#no au ?R0(config-router)#net 10.1.1.0 0.0.0.3 ?R0(config-router)#net 172.16.9.0 0.0.0.255 ?R0(config-router)#net 172.16.10.0 0.0.0.255 ?R0(config-router)#net 172.16.11.0 0.0.0.255 ?R0(config-router)#net 172.16.12.0 0.0.0.255 ?R0(config-router)#net 11.11.11.11 0.0.0.0 ? ?R1 ?R1(config-if)#router eigrp 90 ?R1(config-router)#no au ?R1(config-router)#net 10.1.1.0 0.0.0.3 ?R1(config-router)#net 10.1.1.8 0.0.0.3 ?R1(config-router)#net 22.22.22.22 0.0.0.0 ? ?R2 ?R2(config-if)#router eigrp 90 ?R2(config-router)#no au ?R2(config-router)#net 10.1.1.8 0.0.0.3 ?R2(config-router)#net 33.33.33.33 0.0.0.0 ? ?3、在R0上配置手动汇总(关闭自动汇总) ?R0(config-router)#in s0/0

Cisco路由器静态路由配置实例

Cisco路由器静态路由配置实例 初学路由器的配置,下面就用Boson NetSim for CCNP 6.1模拟软件进行配置…这篇文章主要是对路由表进行静态路由配置… 拓扑结构图如下: 下面开始: 1.对Router1进行配置,配置命令如下: Router>enable进入特权模式 Router#configure terminal 进入配置模式 Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface ethernet0 进入E0端口模式

Router(config-if)#ip address 192.168.1.1 255.255.255.0 配置IP地址Router(config-if)#no shutdown 激活该端口 %LINK-3-UPDOWN: Interface Ethernet0, changed state to up Router(config-if)#exit 返回上一级 Router(config)#interface serial0 进入S0 端口模式 Router(config-if)#ip address 192.168.2.1 255.255.255.0 Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down Router(config-if)#clock rate 6400 注意这里是设置时钟..如有不明白,可以打”?”.但是系统给的参数是 64000 .而我们要配置成 6400 ..可能是模拟软件的一个小BUG 吧!现在是在模拟软件中,如果是真实环境,我们要参照说 明书..按照说明书来配置参数…. Router(config-if)#exit Router(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2 配置路由表

EIGRP 路由协议的配置

EIGRP 路由协议的配置 一.实验目的 掌握路由器EIGRP 路由协议的配置方法。 二.实验要点 通过对路由器A和路由器B启用EIGRP路由协议,使路由器A可Ping通路由器B所连的各个网络, 反之,亦然。 三.实验设备 路由器Cisco 2621两台,交换机Cisco 2950两台,带有网卡的工作站PC 至少两台。 四.实验环境 S0/0:10.0.0.1/24 S0/0:10.0.0.2/24 F0/0:192.168.0.1/24 F0/0:192.168.1.1/24 Host A Host B IP Address:192.168.0.2/24 IP Address:192.168.1.2/24 Default Gateway:192.168.0.1 Default Gateway:192.168.1.1 图13 EIGRP 路由协议的配置 五.实验步骤 1. 如图对路由器A 及路由器B 的各个接口配置好IP地址 l 在路由器A (假设为DCE 端)上 router>en router#conf t

router(config)#hostname RouterA RouterA(config)#int s0/0 RouterA(config-if)#ip add 10.0.0.1 255.255.255.0 RouterA(config-if)#cl ra 64000 RouterA(config-if)#no sh RouterA(config)#int f0/0 RouterA(config-if)#ip add 192.168.0.1 255.255.255.0 RouterA(config-if)#no sh RouterA(config-if)#exit l 在路由器B (假设为DTE 端)上 router>en router#conf t router(config)#hostname RouterB RouterB(config)#int s0/0 RouterB(config-if)#ip add 10.0.0.2 255.255.255.0 RouterB(config-if)#no sh RouterB(config)#int f0/0 RouterB(config-if)#ip add 192. 168.1.1 255.255.255.0 RouterB(config-if)#no sh RouterB(config-if)#exit 实验结果: a. 在路由器A 上是否能ping 通路由器B 的串口S0/0 (10.0.0.2) b. 在路由器A 上是否能ping 通路由器B 的以太口F0/0 (192.168.1.1) 2. 在路由器A 和路由器B 上分别配置EIGRP 路由协议 在路由器A 上: RouterA (config)#router eigrp 100 RouterA(config-router)# net 10.0.0.0 RouterA(config-router)# net 192.168.0.0 在路由器B 上: RouterB (config)# router eigrp 100 RouterB(config-router)# net 10.0.0.0 RouterB(config-router)# net 192.168.1.0 实验结果: a. 在路由器A 上是否能ping 通路由器B 的串口S0/0 (10.0.0.2) b. 在路由器A 上是否能ping 通路由器B 的以太口F0/0

EIGRP协议word版本

E I G R P协议

EIGRP EIGRP简单实例 EIGRP:Enhanced Interior Gateway Routing Protocol 即增强网关内部路由线路协议。也翻译为加强型内部网关路由协议。 EIGRP是Cisco公司的私有 协议。Cisco公司是该协议的发明者和唯一具备该协议解释和修改权的厂商。EIGRP结合了链路状态和距离矢量型路由选择协议的Cisco专用协议,采用弥 散修正算法(DUAL)来实现快速收敛,可以不发送定期的路由更新信息以减少带宽的占用,支持Appletalk、IP、Novell和NetWare等多种网络层协议。EIGRP路由协议简介 是Cisco的私有路由协议,它综合了距离矢量和链路状态2者的优点,它的特点包括: 1.快速收敛 链路状态包(Link-State Packet,LSP)的转发是不依靠路由计算的,所以大型网络可以较为快速的进行收敛.它只宣告链路和链路状态,而不宣告路由,所以即使链路发生了变化,不会引起该链路的路由被宣告.但是链路状态路由协议使用的是Dijkstra算法,该算法比较复杂,并且较占CPU和内存资源和 其他路由协议单独计算路由相比,链路状态路由协议采用种扩散计算(diffusingcomputations ),通过多个路由器并行的记性路由计算,这样就可以在无环路产生的情况下快速的收敛.

2.减少带宽占用 EIGRP不作周期性的更新,它只在路由的路径和度发生变化以后做部分更新.当路径信息改变以后,DUAL只发送那条路由信息改变了的更新,而不是发 送整个路由表.和更新传输到一个区域内的所有路由器上的链路状态路由协 议相比,DUAL只发送更新给需要该更新信息的路由器。在WAN低速链路 上,EIGRP可能会占用大量带宽,默认只占用链路带宽50%,之后发布的IOS允许使用命令ip bandwidth-percent eigrp来修改这一默认值 . 3.支持多种网络层协议 EIGRP通过使用“协议相关模块”(即protocol- dependentmodule),可以支持IPX,ApplleTalk,IP,IPv6和NovellNetware等协议. 4.无缝连接数据链路层协议和拓扑结构 EIGRP不要求对OSI参考模型的层2协议做特别的配置.不像OSPF,OSPF 对不同的层2协议要做不同配置,比如以太网和帧中继,EIGRP能够有效的工作在LAN和WAN中,而且EIGRP保证网络不会产生环路(loop-free);而且配置起来很简单;支持VLSM;它使用多播和单播,不使用广播,这样做节约了带宽;它使用和IGRP一样的度的算法,但是是32位长的;它可以做非等价的路径的负载平衡. 编辑本段EIGRP的四个组件

RIP与EIGRP的简单配置(缺少说明)

《作业:配置RIPv2与EIGRP》 一、实验拓扑 二、实验要求 1、按照实验拓扑配置IP地址。 2、配置RIPv2,实现总部与分部内网之间能够相互通信。 3、配置EIGRP,实现总部与分部内网之间能够相互通信。 三、实验步骤 配置各路由器所需IP: R1的配置: R1(config-if)#ip add 192.168.1.1 255.255.255.0 R1(config-if)#no shu R1(config-if)#int f0/0 R1(config-if)#ip add 10.2.2.1 255.255.255.0 R1(config-if)#no shu R1(config)#int f0/1 R1(config-if)#ip add 10.3.3.1 255.255.255.252 R1(config-if)#no shu R1#show pint brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.2.2.1 YES manual up up FastEthernet0/1 10.3.3.1 YES manual up up Loopback0 192.168.1.1 YES manual up up R2的配置: R2(config)#int lo 1 R2(config-if)#ip add 192.168.2.1 255.255.255.0 R2(config-if)#no shu R2(config-if)#int f0/0 R2(config-if)#ip add 10.2.2.2 255.255.255.252 R2(config-if)#no shu R2#show pint brief Interface IP-Address OK? Method Status Protocol

RIPv2配置实例

RIPv2配置实例 1.用户需求: 某企业总部计划和它的2个分公司联网。计划采用2条数字链路连接总部和分公司,并要求总部和分公司的IP网络段不能相同,并且划分广播域隔离广播;不采用三层交换设备;两个分公司联网后能够互相访问;总部和分公司联网后路由器能够自动学习。 2.方案分析与解决: 不采用三层交换技术,但要求采用数字链路,可以考虑用路由器。 3.网络拓扑: 4.规划网络地址: PC1:192.168.3.2 255.255.255.0 192.168.3.1 PC2:192.168.3.3 255.255.255.0 192.168.3.1 PC3:192.168.4.2 255.255.255.0 192.168.4.1 PC4:192.168.5.2 255.255.255.0 192.168.5.1 总部路由器A:F0/0:192.168.3.1 255.255.255.0 S1/0:192.168.1.1 255.255.255.0 S1/1:192.168.2.1 255.255.255.0 分公司路由器B:F0/0:192.168.4.1 255.255.255.0 S1/0:192.168.1.2 255.255.255.0 分公司路由器C:F0/0:192.168.5.1 255.255.255.0 S1/1:192.168.2.2 255.255.255.0 5.路由器配置: 总部A: Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname routerA

思科设备eigrp协议配置

本次讲解路由器eigrp协议的配置: [1]EIGRP与IGRP在network命令的区别在于多了wildcard-mask参数,这是通配符掩码。如果网络定义使用的是默认掩码,则wildcard-mask参数可以省略:如果网络定义使用的不是默认掩码,则wildcard-mask参数必须标明。 [2]EIGRP在处理有类别(A、B、C类)网络地址时,会自动地汇总路由。这意味着即使规定RTC 连接的是10.0.3.0/24这个网络,但EIGRP仍然会发布其连接整个A类网络10.0.0.0。在EIGRP中,路由自动汇总功能默认是有效的。存在不连续子网的网络中,通常需要用no auto-summary命令来关闭该功能。 本例配置模型图 命令行: RA配置命令: Router> Router>enable Router#conf t

Enter configuration commands, one per line. End with CNTL/Z. ^ Router(config)#router eigrp 100 //使用eigrp协议。使用系统自制号100 Router(config-router)#network 202.1.1.5 0.0.0.3 //指定与该路由器直接相连的网络Router(config-router)#network 192.1.1.0 0.0.0.255 //指定与该路由器直接相连的网络Router(config-router)#no auto-summary //关闭自动汇总功能 Router(config-router)#exit Router(config)#int s1/0 Router(config-if)#ip address 202.1.1.5 255.255.255.252 //依照图配置IP Router(config-if)#clock rate 64000 //使用时钟频率 Router(config-if)#bandwidth 64 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial1/0, changed state to down Router(config-if)#exit Router(config)#int f0/0 //依照图配置IP Router(config-if)#ip address 192.1.1.1 255.255.255.0 Router(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 Router(config-if)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router#wr Building configuration... [OK] Router#

eigrp命令

EIGRP命令列表 ---------------- ◆{Router(config)#router eigrp [AS号]} 开启EIGRP路由协议 ◆{Router(config-router)#network [子网号]} 配置EIGRP子网 ◆{Router(config-router)#network [子网号] [掩码]} 配置EIGRP无类子网 ◆{no auto-summary} 关闭有类自动汇总 ◆{ip summary-address [AS号] [IP地址] [掩码]} 手动配置汇总 ◆{eigrp stub} 配置一个末梢路由 ◆{variance} 配置一个不平衡的均衡负载 ◆{ip hello-interval eigrp [AS号] [时间/s]} 改变Hello包发送频率 ◆{ip hold-time eigrp [AS号] [时间/s]} 改变Hold-Time长度 ◆{bandwidth} 改变一个接口上的带宽,最大化带宽将限制它自身的通路 ◆{ip bandwidth-percent eigrp [AS号]} 改变EIGRP通路使用的带宽。默认为50% ◆{Router(config)#interface s0 Router(config-if)#ip summary-address eigrp [AS号] [IP地址] [掩码]} 手工配置汇总 ◆{Router(config-router)#eigrp stub [receive-only | connected | redistributed | static | summary]} 配置末梢路由 ◆{Router(config-route)#variance multiplier} 配置不等开销负载均衡 ◆{Rout er(config-if)#ip hello-interval eigrp [AS号] [时间]} 配置Hello计时器 ◆{Router(config-if)#ip hold-time eigrp [AS号] [时间]} 配置Hold计时器 ◆{Router(config-if)#ip authentication mode eigrp [AS号] md5} 起用EIGRP的MD5认证 ◆{Router(config-if)#ip anthentication key-chain eigrp [AS号] [chain-name]} 配置MD5密匙 ◆{Router(config)#key chain [chain-name] Router(config-if)#key [key-id] Router(config-keychain-key)#key-string [key]}

华为:IGRP及EIGRP协议

回顾昨天:提问:1、RIP默认几条线路做负载均衡,最大支持几条2、RIP路由协议的配置命令是什么?有几步?3、RIP协议发送UPDATE包的周期间隔是多少?多长时间后激发保持状态?保持时间持续多久? 今天内容:IGRP路由协议的特性及配置方法。及相关实验 首先应该确认的是IGRP虽然有较先进的算法计算自己的度量值来计算路由。但它仍是路离矢量路由协议的一种。 一、此协议计算度量值的算法比较复杂。综合考虑链路带宽(bandwidth)、延迟(delay)、负载(loading)、可靠性(reliability) 最大传输单元(mtu)等,默认的算法是链路上的带宽加上设备的延迟。 二、IGRP也是默认四条线路做负载均衡,最大支持六条。但与RIP不同的是能用不等开销的链路做负载。 三、IGRP路由协议使用广播方式每隔90秒发送一次UPDATE包。如果在270秒内没有收到该升级包,则认为邻居路由器崩

溃。所有从这个路由器学到的路由都进入保持状态,保持时间是280秒。过了这个时间则丢弃那些路由条目。 四、IGRP协议的配置(图10-25) 配置方法与RIP的方法类似。先在运行IGRP 协议的路由器上声明使用该协议。 此时注意有一个100,这个为自治域系统号,(在实际工程中此号由电信指定)通常在我们现在阶段讨论的网络问题中都是在同自治域中的所以,此号在相邻路由器上配置要一样。然后发布直连的网段。 五、检查IGRP的配置正确性 看图(10-30)与(10-27)的区别。 Eigrp路由协议的原理 一、概述 它是一种混合型的路由协议,在路由的学习上具有链路状态路由的特点,在计算路径的度量值时又具有距离矢量路由协议的特点。但它是一种增强的IGRP,是由其研发而来,所以CISCO经常把EIGRP协议归属于距离矢量路由协议。称它为先进的距离矢量路由协议。由于是私有协议所以限制了在电信运营商的网络上使用。但在一些大型企业里,得到了普遍的应用。 虽然是从IGRP发展而来,但不同的是,支持VLSM和CIDR,收敛更为迅速,可扩展性更好,更高效的处理路由环路等问题。

EEM配置实例

配置EEM监测内存使用率: Router(config)#event manager applet MEM Router(config-applet)#event snmp oid 1.3.6.1.4.1.9.9.48.1.1.1.6.1 get-type exact entry-op lt entry-val 30623072 poll-interval 90 Router(config-applet)#action 01.0 cli command "enable" Router(config-applet)#action 02.0 cli command "conf t" Router(config-applet)#action 03.0 cli command "router eigrp 100" Router(config-applet)#exit 说明:EEM当前监测内存的使用情况,如果空闲大小低于30623072,则事件被触发,采集间 隔为90秒一次,如果事件触发后,执行的第一个动作为在命令行下输入命令enable,执行的 第二个动作为在命令行下输入命令conf t,执行的第三个动作为在命令行下输入命令router eigrp 100,其实结果就是在事件发生后,自动启用一个EIGRP进程,AS号为100;结合之前 可以得知,内存总大小为30623072,所以内存空闲空间肯定会小于30623072,那么该EEM policy配置后,事件肯定是被触发的。其中动作标签为01.0格式。 event manager applet dump-procs event syslog pattern "CPUALERT5MIN" action 001 cli command "enable" action 002 cli command "show proc cpu sorted 5min" action 003 set lines 0 action 004 foreach line "$_cli_result" "\n" action 005 if$lines gt 11 action 006 break action 007 end action 008 append output $line action 009 increment lines action 010 end action 011 mail to engineer@https://www.doczj.com/doc/6b3133284.html, from EEM@https://www.doczj.com/doc/6b3133284.html, server 198.2.5.10 subject "CPUALERT5MIN" body "$output" ======================================================================= event manager applet dump-procs event syslog pattern "CPURISINGTHRESHOLD" action 001 cli command "enable" action 002 cli command "show proc cpu sorted 5min" action 003 set lines 0 action 004 foreach line "$_cli_result" "\n"

EIGRP协议基本配置和常用命令

配置EIGRP协议 #c o n f t#r o u t e r e i g r p100*E I G R P需要配置A S号* *A S标识了属于一个互连网络中的所有路由器,* *同一个A S内的不同路由如果想要互相学习路由信息,必须配置相同的A S号。* #n e t1.1.1.00.0.0.255 *宣告接口,使用的是反掩码形式,如果不输入反掩码,路由默认会使用接口的主类网络号* "n e t12.1.1.0"等价于"n e t12.0.0.00.255.255.255" #n e t0.0.0.0 *如果路由的所有接口都宣告进E I G R P进程,则可以使用"n e t0.0.0.0"一次性宣告所有接口*查询EIGRP 在running-config中的配置明细 #s h r u n n i n g-c o n f i g|s e c t i o n r e i r o u t e r e i g r p100 n e t w o r k1.1.1.00.0.0.255 n e t w o r k12.1.1.00.0.0.255 n e t w o r k21.1.1.00.0.0.255a u t o-s u m m a r y EIGRP表 EIGRP中有三张表:邻居表、路由表、拓扑表 邻居表(Neighbor Table) 在EIGRP中,两台相邻路由器要建立起邻接关系需要满足两个条件: 1)具有相同的AS号; 2)具有相匹配的K值;可以通过下面的命令来查看EIGRP默认的K 值: #s h o w i p p r o t o c o l s /*A S=100*/

EIGRP协议

EIGRP EIGRP简单实例 EIGRP:Enhanced Interior Gateway Routing Protocol 即增强网关内部路由线路协议。也翻译为加强型内部网关路由协议。 EIGRP是Cisco公司的私有协议。Cisco公司是该协议的发明者和唯一具备该协议解释和修改权的厂商。 EIGRP结合了链路状态和距离矢量型路由选择协议的Cisco专用协议,采用弥散修正算法(DUAL)来实现快速收敛,可以不发送定期的路由更新信息以减少带宽的占用,支持Appletalk、IP、Novell和NetWare等多种网络层协议。 EIGRP路由协议简介 是Cisco的私有路由协议,它综合了距离矢量和链路状态2者的优点,它的特点包括: 1.快速收敛 链路状态包(Link-State Packet,LSP)的转发是不依靠路由计算的,所以大型网络可以较为快速的进行收敛.它只宣告链路和链路状态,而不宣告路由,所以即使链路发生了变化,不会引起该链路的路由被宣告.但是链路状态路由协议使用的是Dijkstra算法,该算法比较复杂,并且较占CPU和内存资源和其他路由协议单独计算路由相比,链路状态路由协议采用种扩散计算

(diffusingcomputations ),通过多个路由器并行的记性路由计算,这样就可以在无环路产生的情况下快速的收敛. 2.减少带宽占用 EIGRP不作周期性的更新,它只在路由的路径和度发生变化以后做部分更新.当路径信息改变以后,DUAL只发送那条路由信息改变了的更新,而不是发送整个路由表.和更新传输到一个区域内的所有路由器上的链路状态路由协议相比,DUAL只发送更新给需要该更新信息的路由器。在WAN低速链路上,EIGRP可能会占用大量带宽,默认只占用链路带宽50%,之后发布的IOS允许使用命令ip bandwidth-percent eigrp来修改这一默认值 . 3.支持多种网络层协议 EIGRP通过使用“协议相关模块”(即 protocol-dependentmodule),可以支持 IPX,ApplleTalk,IP,IPv6和NovellNetware等协议. 4.无缝连接数据链路层协议和拓扑结构 EIGRP不要求对OSI参考模型的层2协议做特别的配置.不像OSPF,OSPF对不同的层2协议要做不同配置,比如以太网和帧中继,EIGRP能够有效的工作在LAN和WAN中,而且EIGRP保证网络不会产生环路(loop-free);而且配置起来很简单;支持VLSM;它

EIGRP的基本配置

Configuring Basic EIGRP 实验目的: 1、掌握EIGRP的基本配置。 2、掌握EIGRP的通配符掩配置方法。 3、掌握EIGRP的自动汇总特性,以及如何关闭自动汇总。 4、掌握EIGRP的手工汇总。 实验拓扑图: R1(config)#inter lo 0 R1(config-if)#ip add 10.1.1.1 255.255.255.0 R1(config-if)#inter lo 1 R1(config-if)#ip add 10.1.2.1 255.255.255.0 R1(config-if)#inter lo 2 R1(config-if)#ip add 10.1.3.1 255.255.255.0 R1(config-if)#inter lo 4 R1(config-if)#ip add 10.1.4.1 255.255.255.0 R1(config-if)#inter s1/1 R1(config-if)#ip add 172.16.1.1 255.255.255.252 R1(config-if)#router eigrp 50 R1(config-router)#net 10.1.1.0 R1(config-router)#net 10.1.2.0 R1(config-router)#net 10.1.3.0 R1(config-router)#net 10.1.4.0 R1(config-router)#net 172.16.0.0 R2(config)#inte lo 0 R2(config-if)#ip add 131.131.1.1 255.255.0.0 R2(config-if)#inter s1/0 R2(config-if)#ip add 172.16.1.2 255.255.255.252 R2(config-if)#inter s1/1 R2(config-if)#ip add 172.16.1.5 255.255.255.252 R2(config-if)#router eigrp 50 R2(config-router)#net 131.131.0.0

voip配置范例 cisco

实验拓扑 (phone A & phone B)-fxs-local router-----------(serial link,voip link)------- remote router-fxo-PBX--phone C 配置实例: 1、基本配置: 远端: Remote_Router#sh running-config Building configuration... hostname Remote_Router ..................................................... interface Ethernet0 ip address 192.168.1.2 255.255.255.0 no ip directed-broadcast ! router eigrp 100 network 192.168.1.0 no auto-summary ! ip classless no ip http server ! ! ! voice-port 1/1 ! voice-port 1/2 ! voice-port 1/3 !

dial-peer voice 10 pots destination-pattern 2203 port 1/1 ! end 本端: Local_Router#sh running-config Building configuration... .................................................... hostname Local_Router interface Ethernet0/0 ip address 192.168.1.1 255.255.255.0 half-duplex no clns route-cache ! router eigrp 100 network 192.168.1.0 no auto-summary voice-port 1/0/0 ! voice-port 1/0/1 ! voice-port 1/1/0 ! voice-port 1/1/1 ! dial-peer voice 10 pots destination-pattern 2201 port 1/0/0 ! dial-peer voice 20 pots destination-pattern 2202 port 1/0/1 ! dial-peer voice 30 voip destination-pattern 2203 session target ipv4:192.168.1.2 end

EIGRP与静态路由重分布

EIGRP与静态路由重分布 一、网络拓扑图 二、设备配置 R1: Router> Router>ena Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hos R1 R1(config)#INT F 0/0 R1(config-if)#ip address 192.168.1.254 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config)# R1(config)#int s 2/0 R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config-if)#clo ra 64000 R1(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial2/0, changed state to down R1(config-if)#exi

R1(config)#router eigrp 1 R1(config-router)#network 192.168.1.0 R1(config-router)#network 192.168.2.0 R1(config-router)#exi R1(config)#do wr Building configuration... [OK] R2: Router> Router>ena Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hos R2 R2(config)#int s 2/0 R2(config-if)#ip address 192.168.2.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit %LINK-5-CHANGED: Interface Serial2/0, changed state to up R2(config)#int s 3/0 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up R2(config-if)#ip address 192.168.3.1 255.255.255.0 R2(config-if)#clo ra 64000 R2(config-if)#no shu R2(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial3/0, changed state to down R2(config-if)#exi R2(config)#router eigrp 1 R2(config-router)#network 192.168.2.0 %DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 192.168.2.1 (Serial2/0) is up: new adjacency R2(config-router)#redistribute static metric 1000 100 1 250 150 R2(config-router)#exi R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2 R2(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2 R2(config)#do wr Building configuration... [OK]

相关主题
文本预览
相关文档 最新文档