文档库 最新最全的文档下载
当前位置:文档库 › 实验一:EIGRP度量值计算(参考配置)

实验一:EIGRP度量值计算(参考配置)

实验一:EIGRP度量值计算(参考配置)
实验一:EIGRP度量值计算(参考配置)

实验一:EIGRP度量值计算

实验目标:观察EIGRP度量值的计算

实验TOP:

实验要求:

1.全网运行EIGRP协议

2.所有路由器起一个loopback接口

3.网络收敛后,对路由表中的D路由手动计算其度量值,并与路由条目中的值对比,看

是否吻合

基本配置

R1

!

hostname R1

!

no ip domain lookup

!

interface Loopback0

ip address 1.1.1.1 255.255.255.255

!

interface Serial1/0

ip address 12.1.1.1 255.255.255.0

!

interface Serial2/0

ip address 13.1.1.1 255.255.255.0

!

R2

!

hostname R2

!

no ip domain lookup

!

interface Loopback0

ip address 2.2.2.2 255.255.255.255

!

interface Serial2/0

ip address 12.1.1.2 255.255.255.0

!

R3

!

hostname R3

!

no ip domain lookup

!

interface Loopback0

ip address 3.3.3.3 255.255.255.255

!

interface Serial1/0

ip address 13.1.1.3 255.255.255.0

!

批注:路由器接口默认是关闭的,所以应将对应的接口开启

如上配置,已经将基本的地址信息配置完成,下面启动基本的EIGRP

R1(config)#router eigrp 100

R1(config-router)#network 12.1.1.0 0.0.0.255

R1(config-router)#network 13.1.1.0 0.0.0.255

R1(config-router)#network 1.1.1.1 0.0.0.0

R1(config-router)#no auto-summary

R2(config)#router eigrp 100

R2(config-router)#network 2.2.2.2 0.0.0.0

R2(config-router)#network 12.1.1.0 0.0.0.255

R2(config-router)#no auto-summary

R3(config)#router eigrp 100

R3(config-router)#network 13.1.1.0 0.0.0.255

R3(config-router)#network 3.3.3.3 0.0.0.0

R3(config-router)#no auto-summary

验证:

我们可以通过show ip eigrp neighbors 命令来验证本路由器与其他路由器之间的邻居关系是否正常建立,以R1为例

R1#show ip eigrp neighbors

IP-EIGRP neighbors for process 100

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt Num

1 13.1.1.3 Se2/0 13 00:01:06 40 240 0 2

0 12.1.1.2 Se1/0 12 00:01:27 38 228 0 3

R1#

//说明R1与R2和R3之间的邻居关系正常建立

现在我们查看R1是否已经学习到R2和R3的路由条目,通过show ip route命令可以看出路由器是否学习到邻居的路由,以R1为例

R1#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

1.0.0.0/32 is subnetted, 1 subnets

C 1.1.1.1 is directly connected, Loopback0

2.0.0.0/32 is subnetted, 1 subnets

D 2.2.2.2 [90/2297856] via 12.1.1.2, 00:07:38, Serial1/0

3.0.0.0/32 is subnetted, 1 subnets

D 3.3.3.3 [90/2297856] via 13.1.1.3, 00:07:15, Serial2/0

12.0.0.0/24 is subnetted, 1 subnets

C 12.1.1.0 is directly connected, Serial1/0

13.0.0.0/24 is subnetted, 1 subnets

C 13.1.1.0 is directly connected, Serial2/0

R1#

通过如上信息我们可以看出本路由器现在已经学习到R2和R3的LOOPBACK接口信息,我们发现学习到的路由条目(以从R2学习到的路由为例),我们发现学习到R2的路由在R1的路由表中的表现形式是D 2.2.2.2 [90/2297856] via 12.1.1.2, 00:07:38, Serial1/0 注意到中括号中的信息,我们发现R1学习到2.2.2.2/32的路由在路由表中的AD值(即管理距离值)是90,而开销值是2297856。

我们知道EIGRP对于从本EIGRP域内学习到的路由,她的AD值均为90,只有学习到外部域(即非EIGRP域)的路由时,AD才会变化,对学习到的外部路由在路由表中的AD值为170(这一部分在后面的EIGRP重发布中讲解)。

对于后面的开销值,EIGRP的开销值计算时依据以下公式得来:

Metric=[K1*BW+K2*BW/(256-LOAD)+K3*DLY]*[K5/(RELIABILITY+K4)]*256

在这里,BW是沿着路由路径到达目的网段的所有出战接口的BW带宽中的最小值,而DL Y 是这条路径DL Y延迟的总和。

系数K1到K5是可配置的加权值,它们的默认值是:K1=K3=1,K2=K4=K5=0。可以通过下面的命令来更改:

metric weights tos k1 k2 k3 k4 k5

批注:BW是用因子107Kbit除以带宽得来的,DLY是以10usec作为最小计量单位

如果K5被设置为0,则[K5/(RELIABILITY+K4)]这一项将不适用。

按默认的给定加权值的缺省值,EIGRP的复合度量的计算公式将简化成缺省的度量(默认路由器使用的度量):

Metric=[K1*BW +K3*DLY]*256

我们可以通过show ip protocols命令来查看给定加权值的缺省值,以R1为例

R1#show ip protocols

Routing Protocol is "eigrp 100"

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Default networks flagged in outgoing updates

Default networks accepted from incoming updates

EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0

EIGRP maximum hopcount 100

EIGRP maximum metric variance 1

Redistributing: eigrp 100

EIGRP NSF-aware route hold timer is 240s

Automatic network summarization is not in effect

Maximum path: 4

Routing for Networks:

1.1.1.1/32

12.1.1.0/24

13.1.1.0/24

Routing Information Sources:

Gateway Distance Last Update

13.1.1.3 90 00:42:52

12.1.1.2 90 00:42:54

Distance: internal 90 external 170

R1#

//此时,我们按照默认给定的加权值来计算R1学习R2的环回接口的开销:

【1】BW,是沿着路由路径到达目的网段的所有出战接口的BW带宽中的最小值

我们从TOP中可以看出,R1到达R2的LO0接口需要经过R1自身的S1/0和R2的LO0,我们可以通过show interfaces来查看这两个接口的BW

R1#show interfaces Serial 1/0

Serial1/0 is up, line protocol is up

Hardware is M4T

Internet address is 12.1.1.1/24

MTU 1500 bytes, BW 1544 Kbit, DL Y 20000 usec,

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

Encapsulation HDLC, crc 16, loopback not set

Keepalive set (10 sec)

Restart-Delay is 0 secs

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

Last clearing of "show interface" counters 01:08:06

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

1023 packets input, 66556 bytes, 0 no buffer

Received 361 broadcasts, 0 runts, 0 giants, 0 throttles

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

1041 packets output, 68118 bytes, 0 underruns

0 output errors, 0 collisions, 5 interface resets

0 output buffer failures, 0 output buffers swapped out

4 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

R1#

R2#show interfaces loopback 0

Loopback0 is up, line protocol is up

Hardware is Loopback

Internet address is 2.2.2.2/32

MTU 1514 bytes, BW 8000000 Kbit, DL Y 5000 usec,

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

Encapsulation LOOPBACK, loopback not set

Last input 00:00:03, output never, 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: fifo

Output queue: 0/0 (size/max)

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

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

0 packets input, 0 bytes, 0 no buffer

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

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

646 packets output, 38760 bytes, 0 underruns

0 output errors, 0 collisions, 0 interface resets

0 output buffer failures, 0 output buffers swapped out

R2#

通过黄色背景的字体,我们知道两个出口的带宽分别是R1的S1/0为1.544M,而R2的LO0为8000M,所以R1去往R2LO0接口的BW应该按照最小的BW即R1S1/0接口的BW计算,BW=1.544M

【2】查看R1和R2的输出信息中的红色字体,我们得出DL Y=20000+5000=25000usec

这时我们得出R1去往R2LO0接口所在的网段即2.2.2.2/32,需要的开销值为

Metric=[1*BW +1*DLY]*256

即Metric=[1*107Kbit/1544Kbit +1*(20000usec+5000usec)/10usec]*256

=[6476+2500]*256

=2297856

批注:对于BW,BW=107/1544=6476.6839,这里我对其取整即按照整数对其处理,那么BW=6476

计算结果与实验得出的路由表中的结果是符合的

补充:

既然默认情况下,路由器计算Metric值是以BW和DL Y为参考标准,以下我们修改这些标准,以BW为例

我们可以通过在接口下修改接口带宽来实现对BW的影响,以R1为例即通过命令

R1(config)#int s1/0

R1(config-if)#bandwidth ?

<1-10000000> Bandwidth in kilobits

inherit Specify how bandwidth is inherited

R1(config-if)#bandwidth 10000

//我们此时将R1的S1/0接口的带宽设置为10000Kbit即10M

此时,我们查看一下R1的S1/0

R1#show interfaces s1/0

Serial1/0 is up, line protocol is up

Hardware is M4T

Internet address is 12.1.1.1/24

MTU 1500 bytes, BW 10000 Kbit, DL Y 20000 usec,

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

Encapsulation HDLC, crc 16, loopback not set

Keepalive set (10 sec)

Restart-Delay is 0 secs

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

Last clearing of "show interface" counters 02:21:16

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 7500 kilobits/sec

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

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

2502 packets input, 160688 bytes, 0 no buffer

Received 874 broadcasts, 0 runts, 0 giants, 0 throttles

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

2520 packets output, 162075 bytes, 0 underruns

0 output errors, 0 collisions, 5 interface resets

0 output buffer failures, 0 output buffers swapped out

4 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

R1#

//我们看到R1的S1/0接口的带宽有1544Kbit变化为10000Kbit

这时,我们再去查看R1的路由表

R1#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

1.0.0.0/32 is subnetted, 1 subnets

C 1.1.1.1 is directly connected, Loopback0

2.0.0.0/32 is subnetted, 1 subnets

D 2.2.2.2 [90/896000] via 12.1.1.2, 00:07:08, Serial1/0

3.0.0.0/32 is subnetted, 1 subnets

D 3.3.3.3 [90/2297856] via 13.1.1.3, 00:20:14, Serial2/0

12.0.0.0/24 is subnetted, 1 subnets

C 12.1.1.0 is directly connected, Serial1/0

13.0.0.0/24 is subnetted, 1 subnets

C 13.1.1.0 is directly connected, Serial2/0

R1#

//此时,R1去往R2LO0接口的Metric值为89600,按照EIGRP计算开销的方式,我们可以得出

Metric=[K1*BW +K3*DLY]*256

=[1*107Kbit/10000Kbit+1*(20000usec+5000usec)/10uec]*256

=[1000+2500]*256

=896000

计算的结果与路由表中的结果相符

EIGRP和RIP单播实验

EIGRP和RIP单播实验 试验拓扑图如下: 根据拓扑图,做好相应基本配置并启用EIGRP协议 一 RA(config)#router eigrp 99 RA(config-router)#passive-int s1/0 *Aug 8 03:25:24.827: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 99: Neighbor 12.1.1.2 (Seria l1/0) is down: interface passive RA#show ip eig nei IP-EIGRP neighbors for process 99 将RTA的s1/0接口被动掉并查看邻居表,发现此时邻居表为空,即A丢失与B的邻居关系,为了得到更详细的信息,查看一下Hello包的发送情况RA#debug eigrp packets EIGRP Packets debugging is on (UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUE RY, SIAREPLY) RA# *Aug 8 03:27:51.179: EIGRP: Sending HELLO on Loopback0 *Aug 8 03:27:51.179: AS 99, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Aug 8 03:27:51.179: EIGRP: Received HELLO on Loopback0 nbr 1.1.1.1 *Aug 8 03:27:51.179: AS 99, Flags 0x0, Seq 0/0 idbQ 0/0 *Aug 8 03:27:51.179: EIGRP: Packet from ourselves ignored RA# *Aug 8 03:27:55.747: EIGRP: Sending HELLO on Loopback0 *Aug 8 03:27:55.747: AS 99, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Aug 8 03:27:55.747: EIGRP: Received HELLO on Loopback0 nbr 1.1.1.1 *Aug 8 03:27:55.747: AS 99, Flags 0x0, Seq 0/0 idbQ 0/0 *Aug 8 03:27:55.747: EIGRP: Packet from ourselves ignored 发现此时RTA在接口s1/0上既不能发送也不能接受Hello包,测试一下RTA到RTB环回接口的连通性 RA#ping 2.2.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds: .....

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

CCNP级别的EIGRP综合实验2

EIGRP综合实验2 配置要点 ●帧中继交换机以及PVC的配置 ●帧中继多点子接口配置 ●帧中继点对点子接口配置 ●EIGRP基本配置(包括静态邻居的配置) ●NTP配置 ●EIGRP认证配置 实验拓扑 配置概述 ●在FRSW上配置帧中继交换机,PVC的设计如下: ?R41--S1/0--S1/0.12------412------S1/0--FRSW--S1/1------421------S1/0--R42; ?R41--S1/0--S1/0.12------415------S1/0--FRSW--S1/3------451------S1/0--R45; ?R41--S1/0--S1/0.14------414------S1/0--FRSW--S1/2------441------S1/0--R44;

●各站点的IP地址设计如下: ?R41--S1/0--S1/0.12--172.14.12.41/24------172.14.12.42/24--S1/0--R42; ?------172.14.12.45/24--S1/0--R45; ?R41--S1/0--S1/0.14--172.14.14.41/24------172.14.14.44/24--S1/0--R44; ●EIGRP的基本配置,包括静态邻居的配置; ●NTP的配置: ?把R41配置为NTP的服务器; ?把R42、R45和R44配置为NTP的客户端 ●以R41为中心与其他各个站点(R42、R45和R44)配置EIGRP认证。

FRSW3(config-if)#frame intf-type dce FRSW3(config-if)#frame route 441 int s 1/0 414 FRSW3(config-if)#no sh FRSW3(config-if)#^Z FRSW3# 配完之后看看接口 继续点对点子接口的配置 R41(config)#int s 1/0.14 ? multipoint Treat as a multipoint link point-to-point Treat as a point-to-point link

实验四 RIP和EIGRP和OSPF的区别

RIP: RIP是最早的路由协议,它一般被应用在小型网络里。由于它在选择两点间的最优路径时只考虑节点间的中继次数,它不考虑网络拥塞状况和连接速率因素,RIP每30秒广播一次自己的路由表,广播时会有极大的数据传输量。然后RIP的收敛时间很长,新的路由信息更新对于较远的路由器,可能要花费几分钟时间。同时RIP还限制中继次数不能超过16跳(经过16台路由器),多出16台路由器后即不可传输。所以在大型网络中,是不可能满足要求的。 总之RIP在路径较多时收敛慢,广播路由信息需占用较多带宽资源 RIP的管理距离为120 OSPF: 为了弥补RIP中的一些缺陷,并能够与RIP网络共存。OSPF在选择最优路径时使用了一种更灵活的算法。OSPF不受跳数限制;支持负载均衡;收敛速度和EIGRP相当;使用AREA对网络进行分层,减少了协议对CPU处理时间和内存的需求;采用SPF算法来计算出到达目标的最短路径。 Cost=10^8/bandwidth,所以对带宽是比较敏感的 OSPF管理距离为110 EIGRP: 增强型内部网关路由协议,它具有快速收敛时间和低网络开销。而且它具有比OSPF更容易配置及需要较少CPU开销的优点。但是他是cisco私有协议,不能与其他厂商路由器共存。 总之EIGRP比RIP具有更快收敛,减小带宽消耗,增大了网络规模(255跳)以及减小了CPU的消耗。同时它还支持非等价负载均衡。 EIGRP对带宽及延时比较敏感 增量路由更新:RIP是将整个路由表都发给对方,而EIGRP是将发生更新的路由发给对方,其采用的是触发更新,如果没有更新是不发送的,这点和RIP不同。 EIFRP管理距离为90,外部管理距离为170 1.距离矢量/链路状态路由协议 RIP v1和v2都是距离矢量型,OSPF是链路状态型,EIGRP是混合型的。 2.有类别/无类别路由协议 支持有类的:RIP v1 无类的RIP v2,OSPF,EIGRP 3.是否支持VLSM、CIDR 不支持的RIP v1 支持的:RIP v2,OSPF,EIGRP 4.是否支持认证技术 不支持的:RIP v1 支持的:RIP v2,OSPF,EIGRP 5.是否定期发送更新 定期:RIP v1和v2 不定期:OSPF,EIGRP 6.采用什么算法来完成网络收敛 RIP v1和v2:Bellman-Ford

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协议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的四个组件

EIGRP综合实验

基础知识点: EIGRP的metric计算 有K1(带宽)、K2(负载)、K3(延迟)、K4(可靠性)、K5(MTU)五个参数,默认情况下k值如下:K1=K3=1;K2=K4=K5=0 metric=256*(10000000/K1*bandwidth(kbit/s)+ total delay/10) BW和DLY值都可以在接口模式下手工指定,使用delay值时是tens of microseconds,在show interface 时实际值要乘以10. 使用metric weights 可以修改k值;但同一自制系统内的所有K值必须一致。 BW和DLY值可以使用show interface命令查看如 Ethernet0/1 is up, line protocol is up Hardware is AmdP2, address is cc00.0ffc.0001 (bia cc00.0ffc.0001) Internet address is 192.168.4.1/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:02, output 00:00:01, 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: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 816 packets input, 75702 bytes, 0 no buffer Received 808 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 1172 packets output, 97655 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out total delay可以通过show ip route x.x.x.x 查看到:如 RC#show ip route 192.168.3.0 Routing entry for 192.168.3.0/24 Known via "eigrp 100", distance 90, metric 307200, type internal Redistributing via eigrp 100 Last update from 192.168.4.2 on Ethernet0/1, 00:36:32 ago

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基本原理 2.掌握EIGRP基本配置 3.掌握EIGRP的验证配置 4.了解EIGRP的简单测试 二、实验拓扑图 三、实验内容 -配置IP地址实现直连互通 -在所有的路由器上配置EIGRP ,AS号位100, -查看R2的路由表和邻居表,并分析路由表中EIGRP路由条目的度量值的计算过程

-R1-R2之间启用EIGRP密文验证,密钥位KEY 12,KEY-STRING-QM_CCNA *若在路由表中出现汇总路由,建议在每一台路由器上配置 R1(config-if)#router eigrp 1 R1(config-router)#no auto-summary 四、实验具体操作截图 1.配置IP地址实现直连互通 (1)为R1配置IP地址 (2)为R2配置IP地址

(3)为R3配置IP地址 (4)验证是否直连互通 结果:可以直连互通 2.在所有的路由器上配置EIGRP ,AS号位100

3.查看R2的路由表和邻居表,并分析路由表中EIGRP路由条目的 度量值的计算过程。 (1)查看R2的路由表和邻居表 (2)分析路由表中路由条目的度量值的计算过程 Metric=[10^7/BW+延时总和/10US]*256 在R2的路由表中,根据度量值计算公式: Metric=[10^7/100+(5000+100)/10US]*256=156160 其中f口的最小带宽是100M,总延时为Loopback口的延时5000加上经过路由器F口的延时100之和。 注:对于计算度量值时,才开始总是算不对,将loopback口的延时当做是100,怎么算都不对,百思不得其解,最后上网查找,得知loopback口环路默认延时是5000,最终计算出的度量值与路由表中的度量值相等。

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命令

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]}

组播实验(完整版)

组播实验 一实验目的 1)理解Multicast的一些基本概念。 2)掌握pim dense-mode的基本配置。 3)理解pim dense-mode的flood和prune过程。 4)理解 pim dense-mode 的assert机制 5)掌握cgmp的配置,及其优点。 6)掌握pim sparse-mode的基本配置。 二、实验拓扑和器材 Server 192.168.5.x 拓扑如上所示,需要路由器四台、交换机一台,主机三台(一台能作组播的服务器,需要Server级的windows操作系统)。 三、实验原理 1.组播基本原理 Multicast应用在一点对多点、多点对多点的网络传输中,可以大大的减少网络的负载。因此,Multicast广泛地应用在流媒体的传输、远程教学、视频/音频会议等网络应用方面。 Multicast采用D类IP地址,即224.0.0.0~239.255.255.255。其中224.0.0.0~224.0.0.255是保留地址,239.0.0.0~239.255.255.255是私有地址,类似于unicast的私有地址。 Multicast的IP地址与MAC地址的映射:MAC地址有48位,前面24位规定为01-00-5E,接着一位为0,后面23位是IP地址的后23位。 路由器间要通过组播协议(如DVMRP、MOSPF、PIM)来建立组播树和转发组播数据包。组播树有两类:源树和共享树。 多播时,路由器采用组管理协议IGMP来管理和维护主机参与组播。IGMP协议v1中,主机发送report包来加入组;路由器发送query包来查询主机(地址是224.0.0.1),同一个组的同一个子网的主机只有一台主机成员响应,其它主机成员抑制响应。一般路由器要发送3次query包,如果3次都没响应,才认为组超时(约3分钟)。IGMPv2中,主机可以发送

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.wendangku.net/doc/d710987180.html, from EEM@https://www.wendangku.net/doc/d710987180.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"

实验 9.6.2:EIGRP 配置技能实验

实验 9.6.2:EIGRP 配置技能实验 拓扑图 地址表 设备接口IP 地址子网掩码默认网关Fa0/0 不适用 S0/0/0 不适用HQ S0/0/1 不适用 Lo1 不适用 Fa0/0 不适用BRANCH1 S0/0/0 不适用 S0/0/1 不适用 Fa0/0 不适用BRANCH2 S0/0/0 不适用 S0/0/1 不适用PC1 网卡 PC2 网卡 PC3 网卡

学习目标 完成本实验后,您将能够: ?根据需要创建有效的 VLSM 设计。 ?为接口分配适当的地址并记录地址。 ?根据拓扑图进行网络布线。 ?清除启动配置并将路由器重新加载为默认状态。 ?配置路由器(包括 EIGRP)。 ?配置并传播静态默认路由。 ?检验 EIGRP 的运作。 ?测试并检验网络是否完全连通。 ?思考网络实施并整理成文档。 场景 在本实验练习中,为您指定了一个网络地址,您必须使用 VLSM 对其划分子网,并为拓扑图中显示的网络分配地址。这里需要组合使用 EIGRP 路由和静态路由,以便非直连网络中的主机能够彼此通信。必须配置EIGRP,以便所有 IP 流量使用最短的路径到达目的地址。 任务 1:对地址空间划分子网。 步骤 1:分析网络要求。 该网络的编址要求如下: ?必须对 172.16.0.0/16 网络划分子网,为三个 LAN 提供地址。 ? HQ 的 LAN 需要 500 个地址。 ? BRANCH1 的 LAN 需要 200 个地址。 ? Branch 2 的 LAN 需要 100 个地址。 ?代表 HQ 路由器和 ISP 路由器之间链路的环回地址将使用 209.165.200.224/30 网络。 ?必须对 192.168.1.16/28 地址空间划分子网,得到三台路由器之间的链路的地址。 步骤 2:创建网络设计时,请思考以下问题: 需要通过 172.16.0.0/16 网络创建多少个子网? _______ 总共需要通过 172.16.0.0/16 网络提供多少个 IP 地址? _______ HQ 的 LAN 子网将使用什么子网掩码?______________________ 在该子网中最多可以使用多少个主机地址? _______ BRANCH1 的 LAN 子网将使用什么子网掩码?________________ 在该子网中最多可以使用多少个主机地址? _______ BRANCH2 的 LAN 子网将使用什么子网掩码?______________ 在该子网中最多可以使用多少个主机地址? _______ 三台路由器之间的链路的子网掩码是多少?________ 每个子网最多有多少个主机地址可以使用? _____

EIGRP负载均衡实验

EIGRP 负载均衡实验 R1: iinterface Serial2/0 ip address 12.1.1.1 255.255.255.0 serial restart-delay 0 clock rate 64000 ! interface Serial2/1 ip address 13.1.1.1 255.255.255.0 serial restart-delay 0 clock rate 64000 router eigrp 100 network 0.0.0.0 no auto-summary

R2: interface FastEthernet0/0 ip address 23.1.1.1 255.255.255.0 duplex auto speed auto interface Serial2/0 ip address 12.1.1.2 255.255.255.0 serial restart-delay 0 router eigrp 100 network 0.0.0.0 no auto-summary R3: interface FastEthernet0/0 ip address 23.1.1.2 255.255.255.0 duplex auto speed auto interface Serial2/1 ip address 13.1.1.2 255.255.255.0 serial restart-delay 0 router eigrp 100 network 0.0.0.0 no auto-summary

R3路由表: R3#show ip rou Gateway of last resort is not set 23.0.0.0/24 is subnetted, 1 subnets C 23.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets D 12.1.1.0 [90/2172416] via 23.1.1.1, 00:01:06, FastEthernet0/0 //去 12.1.1.0网段via f0/0 13.0.0.0/24 is subnetted, 1 subnets C 13.1.1.0 is directly connected, Serial2/1 R3#show ip eigrp to IP-EIGRP Topology Table for AS(100)/ID(23.1.1.2) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 12.1.1.0/24, 1 successors, FD is 2172416 via 23.1.1.1 (2172416/2169856), FastEthernet0/0 via 13.1.1.1 (2681856/2169856), Serial2/1 P 13.1.1.0/24, 1 successors, FD is 2169856 via Connected, Serial2/1 P 23.1.1.0/24, 1 successors, FD is 28160 via Connected, FastEthernet0/0

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

相关文档