网络设备配置与管理----使用EIGRP实现两个企业网络互联

理论学习

问题1:EIGRP的特点?

EIGRP是一种内部网关协议,用在自制系统的内部执行路由功能,为无类路由协议,性质为高级距离矢量路由协议

与运行EIGRP的路由器之间通过发送Hello包形成邻居关系后交换路由信息。

运行EIGRP的路由器储存所有与其相邻路由器的路由表信息

EIGRP采用组播和单播的更新方式,只有在路由器改变计量标准或拓扑发生变化的情况下进行路由更新

支持可变长子网掩码和不连续的子网,支持路由自动汇总,支持多种网络层协议还支持IPX,AppleTake等

在运行EIGRP的路由器内部,有一个邻居路由表,一个拓扑结构表和一个路由表。

使用DUAL算法,具有很好的路由收敛特性。

支持任意负载均衡。

问题2:EIGRP的运行过程?

建立相邻关系

发现网络拓扑,选择最短路由

路由查询、更新

问题3:EIGRP与RIP的区别?

EIGRP是思科专有的,而RIP是通用的协议

EIGRP是高级距离矢量协议 RIP是距离矢量协议

工作任务实施

1.网络拓扑结构设计

1. 设备配置命令(各个路由器分别配置)

R1

R1(config)#in

R1(config)#interface f0/0

R1(config-if)#ip add 10.1.1.1 255.255.255.0

R1(config-if)#no shu

R1(config-if)#no shutdown

R1(config-if)#

%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-if)#exi

R1(config)#in

R1(config)#interface f0/1

R1(config-if)#ip add 172.16.1.1 255.255.255.252

R1(config-if)#no shu

R1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

R1(config)#router eigrp 10

R1(config-router)#no auto-summary

R1(config-router)#network 172.16.1.0 0.0.0.3

R1(config-router)#network 10.1.1.0 0.0.0.255

CNC

CNC(config)#in

CNC(config)#interface f0/0

CNC(config-if)#ip add 172.16.1.2 255.255.255.252

CNC(config-if)#no shu

CNC(config-if)#no shutdown

CNC(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

CNC(config-if)#ex

CNC(config)#in

CNC(config)#interface f0/1

CNC(config-if)#ip add 172.16.1.5 255.255.255.252

CNC(config-if)#no shu

CNC(config-if)#no shutdown

CNC(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

CNC(config)#router eigrp 10

CNC(config-router)#no a

CNC(config-router)#no auto-summary

CNC(config-router)#ne

CNC(config-router)#network 172.16.1.0 0.0.0.3

CNC(config-router)#

%DUAL-5-NBRCHANGE: IP-EIGRP 10: Neighbor 172.16.1.1 (FastEthernet0/0) is up: new adjacency

CNC(config-router)#network 172.16.1.4 0.0.0.3

R2

R2(config)#in

R2(config)#interface f0/0

R2(config-if)#ip add 172.16.1.6 255.255.255.252

R2(config-if)#no shu

R2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#ex

R2(config)#in

R2(config)#interface f0/1

R2(config-if)#ip add 10.1.2.1 255.255.255.0

R2(config-if)#no shu

R2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R2(config)#rou

R2(config)#router e

R2(config)#router eigrp 10

R2(config-router)#no a

R2(config-router)#no auto-summary

R2(config-router)#ne

R2(config-router)#network 172.16.1.4 0.0.0.3

R2(config-router)#

%DUAL-5-NBRCHANGE: IP-EIGRP 10: Neighbor 172.16.1.5 (FastEthernet0/0) is up: new adjacency

R2(config-router)#ne

R2(config-router)#network 10.1.2.0 0.0.0.255

1. 单段测试结果

PC1

PC>ping 10.1.1.1

Pinging 10.1.1.1 with 32 bytes of data:

Reply from 10.1.1.1: bytes=32 time=0ms TTL=255

Reply from 10.1.1.1: bytes=32 time=0ms TTL=255

Reply from 10.1.1.1: bytes=32 time=0ms TTL=255

Reply from 10.1.1.1: bytes=32 time=1ms TTL=255

Ping statistics for 10.1.1.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

PC2

PC>PING 10.1.2.1

Pinging 10.1.2.1 with 32 bytes of data:

Reply from 10.1.2.1: bytes=32 time=0ms TTL=255

Reply from 10.1.2.1: bytes=32 time=0ms TTL=255

Reply from 10.1.2.1: bytes=32 time=0ms TTL=255

Reply from 10.1.2.1: bytes=32 time=1ms TTL=255

Ping statistics for 10.1.2.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

1. 综合测试结果

PC1

PC>ping 10.1.2.2

Pinging 10.1.2.2 with 32 bytes of data:

Reply from 10.1.2.2: bytes=32 time=1ms TTL=125

Reply from 10.1.2.2: bytes=32 time=1ms TTL=125

Reply from 10.1.2.2: bytes=32 time=0ms TTL=125

Reply from 10.1.2.2: bytes=32 time=1ms TTL=125

Ping statistics for 10.1.2.2:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

PC2

PC>PING 10.1.1.2

Pinging 10.1.1.2 with 32 bytes of data:

Reply from 10.1.1.2: bytes=32 time=0ms TTL=125

Reply from 10.1.1.2: bytes=32 time=0ms TTL=125

Reply from 10.1.1.2: bytes=32 time=0ms TTL=125

Reply from 10.1.1.2: bytes=32 time=1ms TTL=125

Ping statistics for 10.1.1.2:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

2. 查看各个路由器的路由

R1

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

10.0.0.0/24 is subnetted, 2 subnets

C       10.1.1.0 is directly connected, FastEthernet0/0

D       10.1.2.0 [90/33280] via 172.16.1.2, 00:03:27, FastEthernet0/1

172.16.0.0/30 is subnetted, 2 subnets

C       172.16.1.0 is directly connected, FastEthernet0/1

D       172.16.1.4 [90/30720] via 172.16.1.2, 00:04:48, FastEthernet0/1

CNC

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

10.0.0.0/24 is subnetted, 2 subnets

D       10.1.1.0 [90/30720] via 172.16.1.1, 00:06:52, FastEthernet0/0

D       10.1.2.0 [90/30720] via 172.16.1.6, 00:03:55, FastEthernet0/1

172.16.0.0/30 is subnetted, 2 subnets

C       172.16.1.0 is directly connected, FastEthernet0/0

C       172.16.1.4 is directly connected, FastEthernet0/1

R2

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

10.0.0.0/24 is subnetted, 2 subnets

D       10.1.1.0 [90/33280] via 172.16.1.5, 00:05:47, FastEthernet0/0

C       10.1.2.0 is directly connected, FastEthernet0/1

172.16.0.0/30 is subnetted, 2 subnets

D       172.16.1.0 [90/30720] via 172.16.1.5, 00:05:47, FastEthernet0/0

C       172.16.1.4 is directly connected, FastEthernet0/0

3. 查看EIGRP的相关信息。

R1

R1#show ip protocol

Routing Protocol is "eigrp  10 "

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 10

Automatic network summarization is not in effect

Maximum path: 4

Routing for Networks:

172.16.1.0/30

10.1.1.0/24

Routing Information Sources:

Gateway         Distance      Last Update

172.16.1.2      90            346181

Distance: internal 90 external 170

CNC

CNC#show ip protocols

Routing Protocol is "eigrp  10 "

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 10

Automatic network summarization is not in effect

Maximum path: 4

Routing for Networks:

172.16.1.0/30

172.16.1.4/30

Routing Information Sources:

Gateway         Distance      Last Update

172.16.1.1      90            339203

172.16.1.6      90            475312

Distance: internal 90 external 170

R2

R2#show ip protocols

Routing Protocol is "eigrp  10 "

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 10

Automatic network summarization is not in effect

Maximum path: 4

Routing for Networks:

172.16.1.4/30

10.1.2.0/24

Routing Information Sources:

Gateway         Distance      Last Update

172.16.1.5      90            474044

Distance: internal 90 external 170

工作扩展

基于教材176页扩展任务要求学习使用路由接口代替真实接口的配置

(1) 拓扑结构图

(1) 各个路由器的主要配置命令

R1

interface FastEthernet0/0

ip address 10.1.1.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 172.16.1.1 255.255.255.252

duplex auto

speed auto

!

router eigrp 10

network 172.16.1.0 0.0.0.3

network 10.1.1.0 0.0.0.255

no auto-summary

!

ip classless

CNC

interface FastEthernet0/0

ip address 172.16.1.2 255.255.255.252

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 172.16.1.5 255.255.255.252

duplex auto

speed auto

!

router eigrp 10

network 172.16.1.0 0.0.0.3

network 172.16.1.4 0.0.0.3

no auto-summary

!

ip classless

!

R2

interface Loopback1

ip address 10.1.2.1 255.255.255.240

!

interface Loopback2

ip address 10.1.2.17 255.255.255.240

!

interface Loopback3

ip address 10.1.2.33 255.255.255.240

!

interface Loopback4

ip address 10.1.2.49 255.255.255.240

!

interface FastEthernet0/0

ip address 172.16.1.6 255.255.255.252

duplex auto

speed auto

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

router eigrp 10

network 172.16.1.4 0.0.0.3

network 10.1.2.0 0.0.0.15

network 10.1.2.16 0.0.0.15

network 10.1.2.32 0.0.0.15

network 10.1.2.48 0.0.0.15

no auto-summary

!

ip classless

(2) 分析各个路由器的路由

R1

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

10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks

C       10.1.1.0/24 is directly connected, FastEthernet0/0

D       10.1.2.0/28 [90/158720] via 172.16.1.2, 00:18:02, FastEthernet0/1

D       10.1.2.16/28 [90/158720] via 172.16.1.2, 00:18:02, FastEthernet0/1

D       10.1.2.32/28 [90/158720] via 172.16.1.2, 00:18:02, FastEthernet0/1

D       10.1.2.48/28 [90/158720] via 172.16.1.2, 00:18:02, FastEthernet0/1

172.16.0.0/30 is subnetted, 2 subnets

C       172.16.1.0 is directly connected, FastEthernet0/1

D       172.16.1.4 [90/30720] via 172.16.1.2, 00:18:03, FastEthernet0/1

CNC

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

10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks

D       10.1.1.0/24 [90/30720] via 172.16.1.1, 00:18:43, FastEthernet0/0

D       10.1.2.0/28 [90/156160] via 172.16.1.6, 00:18:31, FastEthernet0/1

D       10.1.2.16/28 [90/156160] via 172.16.1.6, 00:18:31, FastEthernet0/1

D       10.1.2.32/28 [90/156160] via 172.16.1.6, 00:18:31, FastEthernet0/1

D       10.1.2.48/28 [90/156160] via 172.16.1.6, 00:18:31, FastEthernet0/1

172.16.0.0/30 is subnetted, 2 subnets

C       172.16.1.0 is directly connected, FastEthernet0/0

C       172.16.1.4 is directly connected, FastEthernet0/1

R2

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

10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks

D       10.1.1.0/24 [90/33280] via 172.16.1.5, 00:18:56, FastEthernet0/0

C       10.1.2.0/28 is directly connected, Loopback1

C       10.1.2.16/28 is directly connected, Loopback2

C       10.1.2.32/28 is directly connected, Loopback3

C       10.1.2.48/28 is directly connected, Loopback4

172.16.0.0/30 is subnetted, 2 subnets

D       172.16.1.0 [90/30720] via 172.16.1.5, 00:18:56, FastEthernet0/0

C       172.16.1.4 is directly connected, FastEthernet0/0

思考问题:

问题1:自动汇总和手动汇总的区别?

自动方式:当路由中存在多个交叉的小分类网络边界时自动把这些路由汇总成一个大的分类网络边界(这是通过汇总子网地址前缀来实现的)。自动汇总功能是默认启用的。

手动方式:在指定接口上通告一个汇总本地IP地址池,这个汇总IP地址池可以供拨号客户端。

时间: 2024-08-07 15:11:17

网络设备配置与管理----使用EIGRP实现两个企业网络互联的相关文章

网络设备配置与管理---使用OSPF实现两个企业网络互联

理论学习 问题1:基于OSPF描述链路状态协议的工作原理? 每个路由器都将自己连接的链路数据发送给邻居路由器,路由器之间相互交换链路状态信息,形成完整的网络拓扑结构,使所有路由器都具有整个网络的完整拓扑结构. 问题2:邻居和邻接关系的区别? 邻接关系的路由器可以直接传递LSA信息,邻居关系的路由器不能直接交换LSA信息. 问题3:描述OSPF的工作过程? OSPF 路由协议是典型的链路状态路由协议,通过将链路状态数据包LSA传送给某一区域内路由器,使用Dijikstra 算法完成路由表计算和更新

网络设备配置与管理--使用RIP实现两个网络互联

理论学习 问题1:AS的含义是什么? AS 是一个自治域,是处于一个管理机构控制之下的路由器或网络群组的集合. 问题2:内部网关协议包含哪些动态路由协议?外部网关协议包含哪些动态路由协议? 根据是否处于一个自治区内部工作,动态路由协议被分为内部网关协议.外部网关协议. 内部网关协议:常用RIP.OSPF.IGRP.EIGRP.IS-IS 外部网关协议:主要用于多个自治域的路由选择,常用BGP.(专门为TCP/IP互联网设计的外部网关协议) 问题3:RIP动态路由协议有哪些特征? 是中小型企业网络

网络设备配置与管理----配置静态路由实现两个公司网络互联

理论学习 问题1:静态路由和动态路由的区别? 1>静态路由是在路由器中设置的固定路由,动态路由靠配置的动态路由协议进行的自动路由计算和路由表项更新. 2>静态路由的故障解决方式不如动态路由完善 3>动态路由协议会占带宽和CPU资源,执行优先级没有静态路由高. 问题2:简述路由的构成元素以及各个元素的作用? 构成元素:路由类型.目的网络.子网掩码.转发接口或下一跳网关.管理距离.度量值等 路由类型:表示路由表项的类型或来源 目的网络:需转发数据到目标网络地址 子网掩码:标定网络地址的数据坐

网络设备配置与管理---VLAN间路由实现部门间通信

理论学习 问题1:三层交换机的路由共有几种实现方式? 1) 虚拟交换接口(svi) 2) 路由接口(routed port) 3) 三层聚合链路(L3 Aggregate Link) 接口 问题2:描述单臂路由的实现原理? 单臂路由是在二层交换机上进行vlan 划分的,然后通过一条中继链路连接路由器的一个接口(通常路由需要使用至少两个接口来实现路由功能,而现在只需要一个接口,就像一条胳膊在发挥作用,所以 称之为单臂路由),在路由器上通过配置子接口和802.1Q 协议封装最终实现在vlan 信息和

网络设备配置与管理(华为)基础系列 :VLAN故障排除和GVRP

一.VLAN故障排除 故障排除的三步骤:故障定位 → 分析故障 → 排除故障 一般情况下,网络设备配置的故障有两种排错方式 A.静态排错:主要靠display查看配置信息的方式进行 在相关vlan下display this或display总配置文件 扩展:对VLAN传输的流量进行监控: [Huawei] vlan vlan-id [Huawei-vlan-id] statistic enable   //开启VLAN的监控 [Huawei] display vlan vlan-id statis

网络设备配置与管理----通过VLAN划分隔离各公司的网络

理论学习 问题1:简述以太网发展史? 1. 使用同轴电缆组建以太网 2. 使用HUB组建以太网 3. 使用交换机组建的以太网 4. 使用路由器交换机配合组建局域网 5. 使用单臂路由技术组建局域网 6. 使用路由器交换机组建局域网 问题2:VLAN的概念及意义? VLAN 概念:虚拟局域网是通过划分逻辑信道减小广播域,隔离物理网络的一种交换机技术 VLAN 意义:减小网络广播域提升网络通信效率:逻辑隔离增加网络访问的安全性:增加组网的灵活性 问题3:VLAN的类型有哪些? 静态VLAN 和动态V

网络设备配置与管理---使用帧中继实现总分公司网络远程网络互联

理论学习 问题1:简述虚电路交换的实现流程? 在源和目的主机之间的每个交换机上建立"连接通道",分组只需携带链路范围内有效的VCI决定途径路径可到达目的地网络. 问题2:描述FR(帧中继)网络的基本构成及通信机制? 帧中继是在数据链路层用简化的方法传送和交换数据单元的快速分组交换技术,是在简化X.25分组交换技术的基础上发展起来的.帧中继是一种统计复用协议,它在一条单一物理链路上能够提供多条虚电路,有效利用了骨干网的带宽,降低了网络成本. 问题3:介绍在FR网络中DCE.DTE.PVC

自研DCI网络路由交换协议DCIP-白牌交换机时代的企业网络

一转眼从听华为3Com的路由交换课程到现在已经13年有余了,依稀记得第一节课的时候我带着老婆去听的课(老婆是日语系的,那时还是女朋友,并不懂网络,只是跟着我去上课的),抢了个头排,讲师宋岩老师提问了一个问题:"为什么要学习网络?"然后看没人回答就要点名,可能是宋老师对漂亮的女生感兴趣吧,直接点名了我老婆...然后就尴尬了,不过没想到老婆回答的还真不错.自那以后,我也就开始了对网络的兴趣,对网络设备的兴趣,路由和交换这门课总体学的还不错.不过,后来我成了程序员,也就没有机会去触摸那些设备

网络设备配置与管理---使用DDN专线实现两个企业网络远程网络互联

理论学习 问题1:使用DCE和DTE的广域网络物理构成是什么样的? 广域网连接中,像路由器.计算机都属于DTE端设备,而CSU/DSU.Modem等属于DCE端设备.通常由DCE端提供时钟频率,信号同步,信号控制.DCE设备和DTE设备通常采用串行线路连接. 题2:简述广域网的通信方式有哪些?分别有什么特点? (1)专线:代表是DDN专线,DDN专线使用同步串口进行连接,可以封装HDLC.PPP.Frame-Relay.SLIP 等二层协议. (2)分组交换网:不论X.25还是帧中继分组交换网都