【网络设备配置与管理实验七】EIGRP协议配置

一、实验目的

通过本实验,可以掌握以下技能:

  • 配置接口IP地址
  • 配置EIGRP协议
  • 验证EIGRP协议配置

二、设备需求

  • Cisco路由器4台,分别命名为twins、sa、gill和hua。其中twins具有两个串行接口和1个以太网接口;sa具有1个串行接口;gill具有1个串行接口;hua具有1个以太网接口
  • 两条串行线
  • 1条交叉线序双绞线
  • 1台access server,及用于反向Telnet的相应电缆
  • 1台带有超级终端程序的PC机,以及Console电缆及转接器。

三、拓扑结构及接口IP配置

实验的拓扑结构如图10-5所示。通过2条两条串行线分别把twins和sa连接起来,把twins和gill连接起来,然后通过一条1条交叉线序双绞线把twins和hua连接起来。

【网络设备配置与管理实验七】EIGRP协议配置_第1张图片
图10-5 实验的拓扑结构

各路由器使用的接口及其编号见图10-5所示的标注,各接口IP地址分配如下:

  • twins:S2/0:192.168.10.1 S3/0:172.20.128.1 F0/0:172.20.192.1
  • sa:S2/0:192.168.10.2
  • gill:S3/0: 172.20.128.2
  • hua:F0/0: 172.20.192.2

四、实验配置文档

1. 基本网络配置
sa:

Router>en
Router>enable 
Router#conf
Router#configure te
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host
Router(config)#hostname sjt-sa
sjt-sa(config)#inte
sjt-sa(config)#interface s
sjt-sa(config)#interface serial 2/0
sjt-sa(config-if)#ip address 192.168.10.2 255.255.255.0
sjt-sa(config-if)#no shut
sjt-sa(config-if)#no shutdown 
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
sjt-sa(config-if)#

twins:

Router>en
Router>enable 
Router#conf
Router#configure ter
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host
Router(config)#hostname sjt-twins
sjt-twins(config)#inte
sjt-twins(config)#interface s
sjt-twins(config)#interface serial 2/0
sjt-twins(config-if)#ip address 192.168.10.1 255.255.255.0
sjt-twins(config-if)#clock rate 56000
sjt-twins(config-if)#no shut
sjt-twins(config-if)#no shutdown 
sjt-twins(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
sjt-twins(config-if)#exit
sjt-twins(config)#inte
sjt-twins(config)#interface s
sjt-twins(config)#interface serial 3/0
sjt-twins(config-if)#ip address 172.20.128.1 255.255.255.0
sjt-twins(config-if)#clock rate 56000
sjt-twins(config-if)#no shut
sjt-twins(config-if)#no shutdown 
%LINK-5-CHANGED: Interface Serial3/0, changed state to down
sjt-twins(config-if)#exit
sjt-twins(config)#inte
sjt-twins(config)#interface F
sjt-twins(config)#interface FastEthernet 0/0
sjt-twins(config-if)#ip address 172.20.192.1 255.255.255.0
sjt-twins(config-if)#no shut
sjt-twins(config-if)#no shutdown 
sjt-twins(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
sjt-twins(config-if)#

gill:

Router>en
Router>enable 
Router#conf
Router#configure ter
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host
Router(config)#hostname sjt-gill
sjt-gill(config)#inte
sjt-gill(config)#interface s
sjt-gill(config)#interface serial 3/0
sjt-gill(config-if)#ip address 172.20.128.2 255.255.255.0
sjt-gill(config-if)#no shut
sjt-gill(config-if)#no shutdown 
sjt-gill(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up
sjt-gill(config-if)#

hua:

Router>en
Router>enable 
Router#conf
Router#configure te
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#inte
Router(config)#host
Router(config)#hostname sjt-hua
sjt-hua(config)#inte
sjt-hua(config)#interface F
sjt-hua(config)#interface FastEthernet 0/0
sjt-hua(config-if)#ip address 172.20.192.2 255.255.255.0
sjt-hua(config-if)#no shut
sjt-hua(config-if)#no shutdown 
sjt-hua(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
sjt-hua(config-if)#

2. 配置EIGRP协议
sa:

sjt-sa(config)#rout
sjt-sa(config)#router ei
sjt-sa(config)#router eigrp 75
sjt-sa(config-router)#network 192.168.10.0 0.0.0.255
sjt-sa(config-router)#

twins:

sjt-twins(config)#rou
sjt-twins(config)#router ei
sjt-twins(config)#router eigrp 75
sjt-twins(config-router)#network 192.168.10.0 0.0.0.255
sjt-twins(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 75: Neighbor 192.168.10.2 (Serial2/0) is up: new adjacency
sjt-twins(config-router)#network 172.20.128.0 0.0.0.255
sjt-twins(config-router)#network 172.20.192.0 0.0.0.255
sjt-twins(config-router)#

gill:

sjt-gill(config)#rou
sjt-gill(config)#router ei
sjt-gill(config)#router eigrp 75
sjt-gill(config-router)#network 172.20.128.0 0.0.0.255
sjt-gill(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 75: Neighbor 172.20.128.1 (Serial3/0) is up: new  djacency
sjt-gill(config-router)#

hua:

sjt-hua(config)#rou
sjt-hua(config)#router eig
sjt-hua(config)#router eigrp 75
sjt-hua(config-router)#network 172.20.192.0 0.0.0.255
sjt-hua(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 75: Neighbor 172.20.192.1 (FastEthernet0/0) is up: new adjacency
sjt-hua(config-router)#

3. 配置EIGRP的汇总
twins:

sjt-twins(config)#int
sjt-twins(config)#interface s
sjt-twins(config)#interface serial 2/0
sjt-twins(config-if)#ip su
sjt-twins(config-if)#ip summary-address e
sjt-twins(config-if)#ip summary-address eigrp 75 172.20.0.0 255.255.0.0
sjt-twins(config-if)#
%DUAL-5-NBRCHANGE: IP-EIGRP 75: Neighbor 192.168.10.2 (Serial2/0) is up: new adjacency
%DUAL-5-NBRCHANGE: IP-EIGRP 75: Neighbor 172.20.128.2 (Serial3/0) is up: new adjacency
%DUAL-5-NBRCHANGE: IP-EIGRP 75: Neighbor 172.20.192.2 (FastEthernet0/0) is up: new adjacency
sjt-twins(config-if)#no shut
sjt-twins(config-if)#no shutdown 
sjt-twins(config-if)#

五、验证实验结果

1. 命令 show ip eigrp neighbors
该命令提供有关邻居的详细信息,显示拓扑表:其命令如下:
Router# show ip eigrp neighbors [ type-number ]
sa:

【网络设备配置与管理实验七】EIGRP协议配置_第2张图片
sjt-sa#show ip neighbors

twins:

【网络设备配置与管理实验七】EIGRP协议配置_第3张图片
sjt-twins#show ip neighbors

gill:

【网络设备配置与管理实验七】EIGRP协议配置_第4张图片
sjt-gill#show ip neighbors

hua:

【网络设备配置与管理实验七】EIGRP协议配置_第5张图片
sjt-hua#show ip neighbors

2.  命令 show ip route
该命令显示有关路由器知道的网络的详细信息以及到这些网络的最佳路径,还提供路径中的下一逻辑跳,其命令如下:
Router# show ip route
下列是该命令的输出:
sa:

【网络设备配置与管理实验七】EIGRP协议配置_第6张图片
sjt-sa#show ip route

twins:

【网络设备配置与管理实验七】EIGRP协议配置_第7张图片
sjt-twins#show ip route

gill:

【网络设备配置与管理实验七】EIGRP协议配置_第8张图片
sjt-gill#show ip route

hua:

【网络设备配置与管理实验七】EIGRP协议配置_第9张图片
sjt-hua#show ip route

3.  命令 show ip protocols
该命令显示路由器的IP路由选择协议配置其命令如下:
Router# show ip protocols
下列是该命令的输出:
sa:

【网络设备配置与管理实验七】EIGRP协议配置_第10张图片
sjt-sa#show ip protocols

twins:

【网络设备配置与管理实验七】EIGRP协议配置_第11张图片
sjt-twins#show ip protocols

gill:

【网络设备配置与管理实验七】EIGRP协议配置_第12张图片
sjt-gill#show ip protocols

hua:

【网络设备配置与管理实验七】EIGRP协议配置_第13张图片
sjt-hua#show ip protocols

4. ping 指令的使用
从sa路由器去ping gill路由器,如果能ping通,说明RIP协议工作正常,如果不能ping通,所以有其他错误存在,需要检查硬件和其他配置。

【网络设备配置与管理实验七】EIGRP协议配置_第14张图片
ping 172.20.128.2

sa路由器去ping hua路由器

【网络设备配置与管理实验七】EIGRP协议配置_第15张图片
ping 172.20.192.2

六、实验总结

  1. 掌握了EIGRP协议并学习了EIGRP的特点
  2. 掌握了检查EIGRP配置的命令
  3. 在配置EIGRP汇总时一开始不知道怎么配,后面看了书才发现这样做可以减少路由表的条目,减少update包和边界查询

七、附件

下面给出该实验的文件

链接:https://pan.baidu.com/s/1d8JVGevnBeSHvcnQ8K2jrA 密码:lsre

你可能感兴趣的:(【网络设备配置与管理实验七】EIGRP协议配置)