当前位置:文档之家› 思科设备eigrp协议配置

思科设备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#
RB配置命令:
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.6 0.0.0.3 //指定与该路由器直接相连的网络Router(config-router)#network 192.168.2.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.6 255.255.255.252 //依照图配置IP
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial1/0, changed state to up
Router(config-if)#exit
Router(config)#int f0/0
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 202.1.1.5 (Serial1/0) is up: new adjacency
Router(config-if)#ip address 192.168.2.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#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
D 192.1.1.0/24 [90/20514560] via 202.1.1.5, 00:00:36, Serial1/0 //这是已配置的eigrp协议
C 192.168.2.0/24 is directly connected, FastEthernet0/0
202.1.1.0/30 is subnetted, 1 subnets
C 202.1.1.4 is directly connected, Serial1/0
Router#wr
Building configuration...
[OK]
配置已完成!以下是测试:
Router>enable
Router#tracer
Router#traceroute 192.168.2.3
Type escape sequence to abort.
Tracing the route to 192.168.2.3
1 * 47 msec 6
2 msec
Router#traceroute 192.1.1.2
Type escape sequence to abort.
T racing the route to 192.1.1.2
1 202.1.1.5 3
2 msec 31 msec 15 msec
2 * 78 msec 94 msec
Router#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: .....
Success rate is 0 percent (5/5)
Router#
Router#route eigrp
^
Router#
说明:上述两路由器配置结束以后,可以互相把四台PC机相互Ping通测试。

你会很神奇地发现它们均能够通信!
附图:
Ps:记得配置PC机网关哟
讲解结束!。

相关主题