实验一.基本配置EIGRP
EIGRP基本配置
1.实验拓补图2.实验名称Eigrp基本配置3.实验设备1841路由器4台,两台PC4.实验目的通过EIGRP实现沟通5.实验步骤连接四台路由器与两台PC给两台PC配置IP地址快速以太网口下的eigrp基本配置配置IP各个端口或PC的地址:enable 进入特权模式Configure terminal 进入全局模式interface f0/0或f0/1 进入各个端口ip address 192.168.1.1 255.255.255.0 这里举例配置1网段的ip地址。
No shutdown 启用Exit 退到上一级router eigrp 100 启用eigrpnetwork 192.168.1.0network 192.168.2.0 宣告直连网段no auto-summary 关闭路由汇总串口下的eigrp配置r#enable 进入特权模式r#configure terminal 进入全局模式r(config)#interface F0/0 进入各个端口r(config-if)#ip address 192.168.1.1 255.255.255.0这里举例配置1网段的ip地址。
r(config-if)#clock rate 64000 同步时钟r(config-if)#no shutdown 启用r(config)#router eigrp 100 启用eigrpr(config-if)#network 192.168.1.0 宣告直连网段r(config-if)#network 192.168.2.0r(config-router)#no auto-summary 关闭路由汇总6.实验结果PC1与PC2 之间可以相互通信。
7.实验总结没啥。
EIGRP实验配置过程详解
实验环境说明:1.将路由器R1的Fa0/0端口配置ip:172.16.0.1/24;S1/2端口配置ip:192.168.1.1/242.将路由器R2的Fa0/0端口配置ip:192.168.3.2/24;S1/2端口配置ip:192.168.1.2/243.将路由器R3 的Fa0/0端口配置ip:172.16.0.3/244.将交换机SW1分别划分两个VLAN2、VLAN3,将端口Fa1/13、Fa1/15划入VLAN2,将端口Fa1/14划入VLAN3实验结果:要求路由器间两两可以互相通信配置过程详解:交换机SW1的配置清单:1.首先禁用错误命令当域名解析和关闭超时退出控制台:SW1(config)#no ip domain-looSW1(config)#line con 0SW1(config-line)#no exec-tSW1(config-line)#exit2.划分VLAN:SW1#vlan dataSW1(vlan)#vlan 2SW1(vlan)#vlan 3SW1(vlan)#exit3.将Fa1/13端口设为全双工模式,并划入VLAN2:SW1(config)#int fa1/13SW1(config-if)#speed 100SW1(config-if)#duplex fullSW1(config-if)#sw mod accSW1(config-if)#sw acc vlan 2SW1(config-if)#exit4.将Fa1/15端口设为全双工模式,并划入VLAN2:SW1(config)#int fa1/15SW1(config-if)#speed 100SW1(config-if)#duplex fullSW1(config-if)#sw mod accSW1(config-if)#sw acc vlan 2SW1(config-if)#exit5.将Fa1/14端口设为全双工模式,并划入VLAN3:SW1(config)#int fa1/14SW1(config-if)#speed 100SW1(config-if)#duplex fullSW1(config-if)#sw mod accSW1(config-if)#sw acc vlan 3SW1(config-if)#exit路由器R1的配置清单:1.首先禁用错误命令当域名解析和禁用超时退出控制台:R1(config)#no ip domain-looR1(config)#line con 0R1(config-line)#no exec-tR1(config-line)#exit2.将Fa0/0端口设为全双工模式并配置ip:R1(config)#int fa0/0R1(config-if)#speed 100R1(config-if)#duplex fullR1(config-if)#ip add 172.16.0.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exit3.为S1/2端口配置ip:R1(config)#int s1/2R1(config-if)#ip add 192.168.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exit4.在路由器R1上配置EIGRP:R1(config)#router eigrp 100R1(config-router)#no auto-summaryR1(config-router)#network 172.16.0.1 0.0.0.0R1(config-router)#network 192.168.1.1 0.0.0.255R1(config-router)#exitR1(config)#exit路由器R2的配置清单:1.首先禁用错误命令当域名解析和禁用超时退出控制台:R2(config)#no ip domain-looR2(config)#line con 0R2(config-line)#no exec-tR2(config-line)#exit2.将Fa0/0端口设为全双工模式并配置ip:R2(config)#int fa0/0R2(config-if)#speed 100R2(config-if)#duplex fullR2(config-if)#ip add 192.168.3.2 255.255.255.0R2(config-if)#no shutR2(config-if)#exit3.为S1/2端口配置ip:R2(config)#int s1/2R2(config-if)#ip add 192.168.1.2 255.255.255.0R2(config-if)#no shutR2(config-if)#exit4.在路由器R2上配置EIGRP:R2(config)#router eigrp 100R2(config-router)#network 192.168.3.0 0.0.0.255R2(config-router)#network 192.168.1.0 0.0.0.255R2(config-router)#exitR2(config)#exit路由器R3的配置清单:1.首先禁用错误命令当域名解析和禁用超时退出控制台:R3(config)#no ip domain-looR3(config)#line con 0R3(config-line)#no exec-tR3(config-line)#exit2.将Fa0/0端口设为全双工模式并配置ip:R3(config)#int fa0/0R3(config-if)#speed 100R3(config-if)#duplex fullR3(config-if)#ip add 172.16.0.3 255.255.255.0R3(config-if)#no shutR3(config-if)#exit3.在路由器R3上配置EIGRP:R3(config)#router eigrp 100R3(config-router)#no auto-summaryR3(config-router)#network 172.16.0.3 0.0.0.0R3(config-router)#exitR3(config)#exit验证EIGRP配置:查看每台路由器的邻居表:#show ip eigrp neiR1的邻居表:R1#show ip eigrp neiIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num1 172.16.0.3 Fa0/0 11 00:00:48 168 1008 0 40 192.168.1.2 Se1/2 14 00:25:23 244 1464 0 3R2的邻居表:R2#show ip eigrp neiIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num0 192.168.1.1 Se1/2 14 00:28:34 195 1755 0 5R3的邻居表:R3r#show ip eigrp neiIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num0 172.16.0.1 Fa0/0 12 00:02:07 134 804 0 8实验的最终结果是每台路由器之间都可以ping通其他的路由器,实验过程到此结束。
实施基本的ergip路由
需求一:实施基本的基本的eigrp首先,ospf路由保留着,到后面验证ad值越小越优先用1)在Branch上配置eigrpBranch(config)#router eigrp 90Branch(config-router)#network 192.168.1.0Branch(config-router)#network 10.1.10.0 0.0.0.255Branch(config-router)#network 10.1.20.0 0.0.0.255查看Branch上正在运行的eigrp路由:Branch(config-router)#do sh run | s eigrprouter eigrp 90network 10.1.10.0 0.0.0.255network 10.1.20.0 0.0.0.255network 192.168.1.0注意AS已经在Branch设好,邻接的HQ上AS必须也是90hq(config)#router eigrp 90hq(config-router)#network 192.168.1.0//通配符掩码为0到那一位,则在地址匹配的时候,也必须匹配到这一位,不为0的位置,可以为0,也可以为1,则此网络下面所有网段,也将被通告出去hq(config-router)#network 172.16.1.0 0.0.0.255在HQ上查看正在运行的eigrp路由hq(config-router)#do sh run | s eigrprouter eigrp 90network 172.16.1.0 0.0.0.255network 192.168.1.0验证,Branch上sh ip rouBranch#sh ip rouD 172.16.1.0 [90/307200] via 192.168.1.2, 00:00:23, Ethernet0/1这里就可以验证上面AD值得说法了在pc1上测试ping server(HQ的背后的网段,通了)PC1#ping 172.16.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 5/7/12 ms==============================================================。
路由协议EIGRP配置
路由协议EIGRP配置EIGRP(Enhanced Interior Gateway Routing Protocol)是一种基于距离矢量算法的内部网关路由协议,主要用于在大型企业网络中实现路由器之间的动态路由。
本文将介绍EIGRP的配置过程,以帮助读者更好地理解和应用该协议。
1. EIGRP的基本概念EIGRP是一种高效可靠的路由协议,具有以下特点:- 支持VLSM(可变长度子网掩码):可以根据网络需求分配不同的子网掩码。
- 支持CIDR(无类别域间路由):能够将多个连续的IP地址作为一个整体进行路由计算。
- 支持自动汇总:能够将多个子网自动合并为一个超网,减小路由表的规模。
- 支持无环路:使用DUAL(Diffusing Update Algorithm)算法,有效解决了路由循环的问题。
2. EIGRP的配置步骤在配置EIGRP之前,需要了解以下参数:- 自治系统号(AS number):EIGRP所在的自治系统号,范围为1~65535。
- 路由器ID:用于区分不同的路由器,可以是IP地址的一部分,也可以手动指定。
下面是EIGRP的配置步骤:步骤1:进入路由器配置模式```Router# configure terminal```步骤2:配置EIGRP进程和AS号```Router(config)# router eigrp <AS号>```步骤3:添加网络```Router(config-router)# network <网络地址>```此命令将指定哪些接口将被EIGRP协议使用。
可以指定单个IP地址、子网地址或主机地址。
步骤4:配置路由器ID(可选)```Router(config-router)# eigrp router-id <路由器ID>```使用此命令可以手动指定路由器ID,如果不手动指定,将使用默认的路由器ID。
步骤5:配置其他可选参数(可选)根据需要,可以配置其他参数,如带宽、延迟、可靠性等。
实验一:EIGRP度量值计算(参考配置)
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
D2.2.2.2 [90/2297856] via 12.1.1.2, 00:07:38, Serial1/0
Last clearing of "show interface" counters 01:08:06
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Cisco路由器配置实例(经典)
实训报告实训一路由基本配置1、实验目的:路由器基本配置及ip设置2、拓扑结构图Router0 fa0/0: 192.168.11.1Fa0/1:192.168.1.1Router1 fa0/0: 192.168.11.2Fa0/1:192.168.2.1Znn1:192.168.1.2Znn2:192.168.2.23、实验步骤Router1Router>en 用户模式进入特权模式Router#conf t 特权模式进入全局模式Enter configuration commands, one per line. End with CNTL/Z.Router(config)#host rznn1 改名字为rznn1rznn1(config)#int fa0/0 进入fa0/0端口rznn1(config-if)#ip add 192.168.11.1 255.255.255.0 设置ip地址rznn1(config-if)#no sh 激活rznn1(config)#int fa0/1rznn1(config-if)#ip add 192.168.1.1 255.255.255.0rznn1(config-if)#no shrznn1(config-if)#exitrznn1(config)#exitrznn1#copy running-config startup-config 保存Destination filename [startup-config]? startup-configrznn1#conf trznn1(config)#enable secret password 222 设置密文rznn1#show ip interface b 显示Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up up FastEthernet0/1 192.168.1.1 YES manual up upVlan1 unassigned YES manual administratively down downrouter 2outer>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host rznn2rznn2(config)#int fa0/0rznn2(config-if)#ip add 192.168.11.2 255.255.255.0rznn2(config-if)#no shrznn2(config)#int fa0/1rznn2(config-if)#ip add 192.168.2.1 255.255.255.0rznn2(config-if)#no shRznn2#copy running-config startup-config 保存Destination filename [startup-config]? startup-configrznn2(config-if)#exitrznn2(config)#exitrznn2#conf trznn2(config)#enable secret 222rznn2#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.2 YES manual up up FastEthernet0/1 192.168.2.1 YES manual up upVlan1 unassigned YES manual administratively down down实训二1、远程登录、密码设置及验证为路由器开设telnet端口,PC机可以远程登陆到Rznn3(Router 1)拓扑结构图Router0:192.168.1.1Pc:192.168.1.2步骤rznn3>rznn3>enrznn3#conf tEnter configuration commands, one per line. End with CNTL/Z.rznn3(config)#no ip domain lookuprznn3(config)#line cons 0rznn3(config-line)#password znnrznn3(config-line)#loginrznn3(config-line)#no exec-trznn3(config-line)#logg syncrznn3(config-line)#exitrznn3(config)#int fa0/0rznn3(config-if)#ip add 192.168.1.1 255.255.255.0rznn3(config-if)#no shrznn3(config-if)#exitrznn3(config)#line vty 0 4 打通五个端口rznn3(config-line)#password cisco 设置密码rznn3(config-line)#login 保存rznn3(config-line)#exit4、测试:实训三命令组1、目的:八条命令(no ip domain lookup\line cons 0\password\login\no exec-t\logg sync\show version\reload\copy running-config startup-config)\show cdp neighbors)2、拓扑结构图Router0 fa0/0: 192.168.11.1Router1 fa0/0: 192.168.11.23、步骤rznn1#conf tEnter configuration commands, one per line. End with CNTL/Z.1、rznn1(config)#no ip domain lookup 取消域名查找转换2、rznn1(config)#line cons 0 打开cons 0端口3、rznn1(config-line)#password znn 设置密码为znnrznn1(config-line)#login 保存rznn1(config-line)#no exec-t 设置永不超时4、rznn1(config-line)#logg sync 产生日志5、rznn1#show version 显示思科路由系统版本信息Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)Technical Support: /techsupportCopyright (c) 1986-2007 by Cisco Systems, Inc.Compiled Wed 18-Jul-07 06:21 by pt_rel_team6、rznn1#show cdp neighbors 查看路由器连接的相邻路由器的相关信息Capability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDrznn2 Fas 0/0 139 R C2800 Fas 0/07、rznn1#copy running-config startup-config 保存刚才指令Destination filename [startup-config]? startup-configBuilding configuration...[OK]8、rznn1#reload 重启路由器Proceed with reload? [confirm]System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)Copyright (c) 2000 by cisco Systems, Inc.cisco 2811 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memorySelf decompressing the image :########################################################################## [OK] Restricted Rights Legendrznn1#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up up FastEthernet0/1 192.168.1.1 YES manual up upVlan1 unassigned YES manual administratively down down9、rznn1(config-if)#ip add 192.168.3.1 255.255.255.0 重置ip地址rznn1#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.3.1 YES manual up up FastEthernet0/1 192.168.1.1 YES manual up up Vlan1 unassigned YES manual administratively down down实训四发现协议1、实训目的通过发现协议显示路由器相邻路由的端口信息2、拓扑结构Router0:192.168.11.1Router1:fa0/0 192.168.11.2Fa0/1 192.168.12.1Router2:192.168.12.23、步骤R1路由器Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upr1(config-if)#r1(config-if)#exitr1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.1 YES manual up down FastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downR2 路由器Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r2r2(config)#int fa0/0r2(config-if)#ip add 192.168.11.2 255.255.255.0r2(config-if)#no sh%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)#exitr2(config)#exitr2#%SYS-5-CONFIG_I: Configured from console by consoler2#conf tEnter configuration commands, one per line. End with CNTL/Z.r2(config)#int fa0/0r2(config-if)#int fa0/1r2(config-if)#ip add 192.168.12.1 255.255.255.0r2(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upr2(config-if)#exitr2(config)#exitr2#%SYS-5-CONFIG_I: Configured from console by consoler2#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.11.2 YES manual up upFastEthernet0/1 192.168.12.1 YES manual up down Vlan1 unassigned YES manual administratively down downR3路由器Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r3r3(config)#int fa0/0r3(config-if)#ip add 192.168.12.2 255.255.255.0r3(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up r3(config-if)#exitr3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by consoler3#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.12.2 YES manual up up FastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downR1发现邻居r1#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr2 Fas 0/0 165 R C2800 Fas 0/0R2发现邻居r2#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr1 Fas 0/0 176 R C1841 Fas 0/0r3 Fas 0/1 130 R C1841 Fas 0/0R3发现邻居r3#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID Local Intrfce Holdtme Capability Platform Port IDr2 Fas 0/0 166 R C2800 Fas 0/14、总结show 命令(1)show ip interface b (显示端口ip信息)(2)show version (显示ios版本信息)(3)show running-config (显示刚才使用的命令配置信息)(4)show cdp neighbors (显示发现邻居直连设备信息)(5)show interface (显示所有端口详细信息)实训五静态路由1、实验目的:将不同网段的网络配通(ip route)Ip route语法:ip route 目标地址子网掩码相邻路由器接口地址Show ip route2、试验拓扑:Router0:192.168.11.1Router1:fa0/0 192.168.11.2Fa0/1 192.168.12.1Router2:192.168.12.23、实验步骤:Router1Router>enRouter#conf tRouter(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upr1(config-if)#exitr1(config)#exitr1#show ip interface bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.11.1 YES manual up downFastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downr1#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up r1#ping 192.168.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:.....Success rate is 0 percent (0/5)r1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#ip route 192.168.12.0 255.255.255.0 192.168.11.2r1(config)#exitr1#ping 192.168.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 msr1#ping 192.168.12.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:.....Success rate is 0 percent (0/5)r1#ping 192.168.12.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 47/62/78 msr1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0S 192.168.12.0/24 [1/0] via 192.168.11.2Router3Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r3r3(config)#int fa0/0r3(config-if)#ip add 192.168.12.2 255.255.255.0r3(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up r3(config-if)#exitr3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by consoler3#show ip interface bInterface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.12.2 YES manual up up FastEthernet0/1 unassigned YES manual administratively down downVlan1 unassigned YES manual administratively down downr3#conf tEnter configuration commands, one per line. End with CNTL/Z.r3(config)#ip route 192.168.11.0 255.255.255.0 192.168.12.1r3(config)#exitr3#ping 192.168.11.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.2, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 msr3#ping 192.168.11.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 msr3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2i - 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 - ODRP - periodic downloaded static routeGateway of last resort is not setS 192.168.11.0/24 [1/0] via 192.168.12.1C 192.168.12.0/24 is directly connected, FastEthernet0/04、默认路由Route 1r1>enr1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#no ip route 192.168.12.0 255.255.255.0 192.168.11.2%No matching route to deleter1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0r1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.2r1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2i - 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 - ODRP - periodic downloaded static routeGateway of last resort is 192.168.11.2 to network 0.0.0.0C 192.168.11.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 192.168.11.2r1#ping 192.168.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 16/28/31 msr1#ping 192.168.12.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 msRoute 3r1>enr1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#no ip route 192.168.12.0 255.255.255.0 192.168.11.2%No matching route to deleter1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0r1#conf tEnter configuration commands, one per line. End with CNTL/Z.r1(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.2r1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoler1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is 192.168.11.2 to network 0.0.0.0C 192.168.11.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 192.168.11.2r3#ping 192.168.11.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.1, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms实训六动态路由RIP 协议1、实验目的使用配置动态路由启动Rip协议使用到的命令(router rip/network/show ip protocols/show ip route)2、实验拓扑R1 fa0/0 192.168.11.1R2 fa0/0 192.168.11.2fa0/1 192.168.12.1R3 fa0/0 192.168.12.23、实验步骤R1Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no shr1(config-if)#exitr1(config)#router ripr1(config-router)#network 192.168.11.0r1(config-router)#exitr1(config)#exitr1#%SYS-5-CONFIG_I: Configured from console by consoleR2Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#host r2r2(config)#int fa0/0r2(config-if)#ip add 192.168.11.2 255.255.255.0r2(config-if)#no shr2(config-if)#exitr2(config)#int fa0/1r2(config-if)#ip add 192.168.12.1 255.255.255.0r2(config-if)#no shr2(config-if)#exitr2(config)#router ripr2(config-router)#network 192.168.11.0r2(config-router)#network 192.168.12.0r2(config-router)#exitr2(config)#exitr2#R3Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#host r3r3(config)#int fa0/0r3(config-if)#ip add 192.168.12.2 255.255.255.0r3(config-if)#no shr3(config-if)#exitr3(config)#router ripr3(config-router)#network 192.168.12.0r3(config-router)#exitr3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by console4、实验测试R1r1#show ip protocolsRouting Protocol is "rip"Sending updates every 30 seconds, next due in 10 secondsInvalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not set Redistributing: ripDefault version control: send version 1, receive any version Interface Send Recv Triggered RIP Key-chain FastEthernet0/0 1 2 1Automatic network summarization is in effectMaximum path: 4Routing for Networks:192.168.11.0Passive Interface(s):Routing Information Sources:Gateway Distance Last UpdateDistance: (default is 120)r1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0R 192.168.12.0/24 [120/1] via 192.168.11.2, 00:00:24, FastEthernet0/0 r1#ping 192.168.12.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.12.0, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 msR2r2#show ip protocolsRouting Protocol is "rip"Sending updates every 30 seconds, next due in 21 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRedistributing: ripDefault version control: send version 1, receive any versionInterface Send Recv Triggered RIP Key-chain FastEthernet0/0 1 2 1FastEthernet0/1 1 2 1Automatic network summarization is in effectMaximum path: 4Routing for Networks:192.168.11.0192.168.12.0Passive Interface(s):Routing Information Sources:Gateway Distance Last UpdateDistance: (default is 120)r2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.11.0/24 is directly connected, FastEthernet0/0C 192.168.12.0/24 is directly connected, FastEthernet0/1R3r3#show ip protocolsRouting Protocol is "rip"Sending updates every 30 seconds, next due in 15 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRedistributing: ripDefault version control: send version 1, receive any versionInterface Send Recv Triggered RIP Key-chain FastEthernet0/0 1 2 1Automatic network summarization is in effectMaximum path: 4Routing for Networks:192.168.12.0Passive Interface(s):Routing Information Sources:Gateway Distance Last UpdateDistance: (default is 120)r3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not setR 192.168.11.0/24 [120/1] via 192.168.12.1, 00:00:04, FastEthernet0/0 C 192.168.12.0/24 is directly connected, FastEthernet0/0r3#ping 192.168.11.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.0, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms实训七负载平衡试训目的实现负载平衡实训拓扑R1 fa0/0 192.168.11.1R2 eth0/0/0 192.168.11.2Fa0/0 192.168.12.1Fa0/0 192.168.13.1R3 fa0/0 192.168.12.2Fa0/1 192.168.14.1R4 fa0/0 192.168.13.2Fa0/1 192.168.15.1R5 fa0/0 192.168.14.2Fa0/1 192.168.15.2实训步骤(R1 )r1>enR1#conf tR1(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.2R1(config)#exitr1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is 192.168.11.2 to network 0.0.0.0C 192.168.11.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 192.168.11.2(R2)r2>enr2(config)#ip route 0.0.0.0 0.0.0.0 192.168.12.2r2(config)#ip route 0.0.0.0 0.0.0.0 192.168.13.2r2(config)#exitr2#%SYS-5-CONFIG_I: Configured from console by consoles% Ambiguous command: "s"r2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is 192.168.12.2 to network 0.0.0.0C 192.168.11.0/24 is directly connected, Ethernet0/0/0C 192.168.12.0/24 is directly connected, FastEthernet0/0C 192.168.13.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 [1/0] via 192.168.12.2[1/0] via 192.168.13.2(R3)r3>enr3#conf tEnter configuration commands, one per line. End with CNTL/Z.r3(config)#ip route 0.0.0.0 0.0.0.0 192.168.12.1r3(config)#exitr3#%SYS-5-CONFIG_I: Configured from console by consoler3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is 192.168.12.1 to network 0.0.0.0C 192.168.12.0/24 is directly connected, FastEthernet0/0C 192.168.14.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 [1/0] via 192.168.12.1(R4)r4>enr4#conf tEnter configuration commands, one per line. End with CNTL/Z.r4(config)#ip route 0.0.0.0 0.0.0.0 192.168.13.1r4(config)#exitr4#%SYS-5-CONFIG_I: Configured from console by consoler4#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is 192.168.13.1 to network 0.0.0.0C 192.168.13.0/24 is directly connected, FastEthernet0/0C 192.168.15.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 [1/0] via 192.168.13.1(R5)r5>enr5#conf tEnter configuration commands, one per line. End with CNTL/Z.r5(config)#ip route 0.0.0.0 0.0.0.0 192.168.14.1r5(config)#ip route 0.0.0.0 0.0.0.0 192.168.15.1r5(config)#exitr5#%SYS-5-CONFIG_I: Configured from console by consoler5#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is 192.168.14.1 to network 0.0.0.0C 192.168.14.0/24 is directly connected, FastEthernet0/0C 192.168.15.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 [1/0] via 192.168.14.1[1/0] via 192.168.15.1实训测试(R1)r1#ping 192.168.14.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.14.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 62/84/94 ms (R5)r5#ping 192.168.11.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.11.1, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 79/91/94 ms实训八DHCP 协议配置实训目的全网配通实训拓扑Fa0/0 192.168.11.1Fa0/1 192.168.12.1实训步骤Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host r1r1(config)#int fa0/0r1(config-if)#ip add 192.168.11.1 255.255.255.0r1(config-if)#no shr1(config-if)#exitr1(config)#int fa0/1r1(config-if)#ip add 192.168.12.1 255.255.255.0r1(config-if)#no shr1(config-if)#exitr1(config)#ip dhcp pool znn //配置一个根地址池znnr1(dhcp-config)#network 192.168.11.0 255.255.255.0 //为所有客户机动态分配的地址段r1(dhcp-config)#default-router 192.168.11.1 //为客户机配置默认的网关r1(dhcp-config)#dns-server 192.168.11.1 //为客户机配置DNS服务器r1(dhcp-config)#exitr1(config)#ip dhcp pool znn1r1(dhcp-config)#network 192.168.12.0 255.255.255.0r1(dhcp-config)#default-router 192.168.12.1r1(dhcp-config)#dns-server 192.168.12.1r1(dhcp-config)#exit。
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 ir o u t e r e i g r p100n e t w o r k1.1.1.00.0.0.255n e t w o r k12.1.1.00.0.0.255n e t w o r k21.1.1.00.0.0.255a u t o-s u m m a r yEIGRP表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*/u t e rf a c ee l l oC i s21.0.0.0/8i s v a r i a b l y s u b n e t t e d,2s u b n e t s,2m a s k sC21.1.1.0/24i s d i r e c t l y c o n n e c t e d,F a s t E t h e r n e t1/0D21.0.0.0/8i s a s u m m a r y,00:14:58,N u l l012.0.0.0/8i s v a r i a b l y s u b n e t t e d,2s u b n e t s,2m a s k sC12.1.1.0/24i s d i r e c t l y c o n n e c t e d,S e r i a l0/0D12.0.0.0/8i s a s u m m a r y,00:15:00,N u l l0路由表中的"D1.0.0.0/8i s a s u m m a r y,01:40:23,N u l l0"是一条自动汇总产生的路由,E I G R P和R I P默认都在主网边界自动汇总,不同的是E I G R P会在本地产生一条自动汇总后的路由,目标指向空接口(N u l l0)R1发现路由表中有一条1.0.0.0/8的条目能够匹配(子网掩码最长匹配,这个条目比默认路由子网掩码长,所以优先选取)发往空接口的数据会被丢弃。
eigrp配置的综合实训
eigrp配置的综合实训
EIGRP(Enhanced Interior Gateway Routing Protocol)是一个用于IP网络的动态路由协议,可以帮助网络管理员轻松管理和配置路由。
以下是EIGRP配置综合实训的步骤:
1. 配置基本网络设置:
- 配置主机IP地址和子网掩码。
- 配置路由器的主机名。
2. 启用EIGRP协议:
- 在路由器上启用EIGRP进程。
- 配置EIGRP AS号码(Autonomous System)。
3. 配置EIGRP邻居关系:
- 配置路由器之间的邻居关系。
- 使用neighbor指令指定邻居路由器的IP地址。
4. 配置EIGRP网络:
- 使用network指令配置使用EIGRP协议的网络。
- 确保所有需要使用EIGRP协议的网络都被包含在内。
5. 配置EIGRP路由策略:
- 配置路由器的EIGRP路由策略。
- 使用路由地图(Route Map)来控制通告的路由。
6. 验证EIGRP配置:
- 使用show命令验证EIGRP邻居关系是否建立。
- 使用show ip route命令验证路由表中是否包含正确的EIGRP路由。
7. 测试EIGRP实时性和容错性:
- 运行traceroute命令验证EIGRP路由。
- 模拟故障,并观察EIGRP协议重新计算路由的能力。
在进行综合实训之前,建议提前了解EIGRP协议的基本概念和相关配置命令。
另外,确保使用网络仿真工具(如Packet Tracer)或实际物理设备进行实验,以便实际操作和验证配置的效果。
EIGRP原理配置命令
Control:控制层面消息Data:数据层面先有控制层面消息,后有数据层面消息,方向互逆。
1.Control(控制层面)1)AD值(AD越小越好)通过不同的路由协议,学到相同的目的网段,路由器选择AD值小的放进路由表;常见AD表:2)Metric值(越小越好)路径值R2可以通过R3到路由器R1,也可通过R4到路由器R1;控制层:先比AD值,AD值一样,再比Metric值;数据层:数据的目标IP地址与路由表的掩码进行“&”操作(1&1=1;1&0=0;0&0=0);&出来的结果,与路由表中的路由进行匹配,最长匹配(longest match);2.EIGRPEIGRP(Enhanced Interior Gateway Routing Protocol,增强型内部网关路由协议)2.1 EIGRP特性1.路由协议按照范围分为:IGP(内部网关协议,Interior Gateway Protocol)和EGP(外部网关协议,External Gateway Protocol)EIGRP属于典型的IGP;2.路由协议按照设计原理分为:DV(距离矢量协议,Distance Vector)和LS(链路状态协议,Link State)EIGRP属于DV协议;3.路由协议按照有类和无类来分;(看是否携带子网掩码,携带子网掩码的高级)EIGRP特点:1.DV协议;2.收敛速度快;3.支持VLSM(无类路由协议)4.增量(触发)更新;5.支持多种网络层协议,例如,IPv4,IPv6,IPX6.灵活的网络设计;7.组播替代了单播和广播;8.手工汇总;9.简单的配置;10.支持等价负载均衡,也支持不等价负载均衡;2.2 EIGRP封装EIGRP的协议端口是:88(不同的协议号,区分不同的上层协议)EIGRP的组播地址:224.0.0.10(不同路由协议都有不同的组播地址)2.3 EIGRP 关键技术(technology)1.邻居的发现协议;-邻居之间发送hello包,224.0.0.102.可靠的传输协议(RTP)3.扩散更新算法;4.协议相关模块(Protocol-dependent modules,PDMs)2.3.1 EIGRP邻居表列出直连的路由器哪些运行了EIGRP;2.3.2 EIGRP拓扑表拓扑表列举出来所有从邻居学来的路由;2.3.3 EIGRP路由表列出从EIGRP邻居哪里学到的所有最优的路由信息;2.3.4 名词解释FD(可行性距离,Feasible distance=Metric值)AD(可通告距离,Advertised Distance=RD)FD标识的是本地路由器到目标网段的Metric值;AD标识的是路由器A到目标网段的Metric值;放进路由表只用关注FD,不关注AD;2.3.5 EIGRP包Hello:建立邻居关系;Update:发送路由消息;Query:发生拓扑变化时发送查询包;Reply:回应查询报文;ACK:用来确认可靠报文;2.4 EIGRP初始化过程2.5 EIGRP Metric值(重点)与内部网关路由协议相同度量组件(K 值value);-带宽(bandwidth K1)最小值Min-负载(loading K2)最大值Max-延迟(Delay K3)之和Sum-可靠性(Reliability K4)最小值Min-MTU (K5)最小值Min默认情况下,K1和K3有效;默认只关心带宽和延迟;EIGRP Metric值的计算公式:带宽单位为Kbps 10M=10000Kbps;延迟单位为usec;2.6 EIGRP实验2.6.1 实验拓扑影响建立邻居的条件:1.AS号必须一致;2.K值保持一致(如手工修改后,将不同)3.密码排错方法:1.Show ip eigrp interface2.Show ip eigrp neighbors默认hold时间为hello时间的*3 hello时间为5SSRTT(smooth round-trip Timer平滑的往返时间,单位是ms)数值小,正常;RTO(Retransmission Timer,重传超时,单位ms)默认重传16次,如果还不会,重置邻居(Reset Neighbors);3.Show ip routerEIGRP默认自动汇总路由(auto-summary),会把本地的路由进行汇总,指向一个空接口;学习到的路由也会进行汇总;所以建立EIGRP时,一定要关闭自动汇总功能;No auto-summaryMetric值算法略路由流向的入接口;通过修改Metric值控制选路4.show ip protocols255.255.192.0。
思科EIGRP协议概述、特点及配置详解
思科EIGRP协议概述、特点及配置详解本⽂讲述了思科EIGRP协议概述、特点及配置。
分享给⼤家供⼤家参考,具体如下:1. EIGRP概述2. EIGRP特点3. EIGRP中四个关键机制3.1 保活机制3.2 PDM(协议相关模块)3.3 RTP(可靠传输协议)3.4 DUAL算法3.4.1 hello保活机制3.4.2 原理3.4.3 查询包发出的情况3.4.4 发出查询包的前提3.4.5 末梢设备4. metric计算5. EIGRP的数据包5.1 hello5.2 Update5.3 Query5.4 Reply5.5 ACK6. EIGRP的⼯作过程7. EIGRP的配置7.1 邻居表(1)查看邻居表(2)各字段的含义7.2 拓扑表(1)查看拓扑表(2)各字段的含义(3)卡在活动状态(4)修改带宽(5)⾮等开销负载均衡7.3 路由表(1)各字母的含义8. EIGRP扩展配置8.1 状态机8.2 ⼿⼯汇总8.3 ⼿⼯认证8.3.1 普通认证8.3.2 最强认证8.4 被动接⼝8.5 缺省路由(1)接⼝下⼿⼯汇总(2)重发布静态(3)宣告缺省路由(4)default-network做法8.6 偏移列表9. EIGRP协议的⼩特性9.1 EIGRP的接⼝带宽占⽤率9.2 EIGRP的查询机制9.3 末梢管理(1)限制查询范围的⽅法1. EIGRP概述EIGRP(⽆类别距离⽮量IGP协议),有时也被描述成⼀个具有链路状态协议⾏为特性的距离⽮量协议。
距离⽮量协议是路由器之间共享路由器所知道的所有信息,但仅仅限于在与之直连的邻居之间共享;⽽链路状态协议虽然只通告它们直连链路的信息,但是链路状态协议可以在它们的路由选择域或区域内的所有路由器上共享这些信息2. EIGRP特点⾼级的DV协议100%⽆环收敛速度快(在中⼤型⽹络中)仅触发更新,⽆周期更新⽀持多种⽹络层协议(IP、IPX、Appletalk)⽀持任意节点汇总⽀持VLSM和CIDR在⼴域⽹配置简单⽀持⾮等开销负载均衡⽀持认证组播更新(224.0.0.10)和单播更新代替⼴播更新3. EIGRP中四个关键机制3.1 保活机制hello time时间5s或60s,3倍的hold time接⼝带宽⼩于或等于2.048M为60s hello time,⼤于2.048M为5s hello time3.2 PDM(协议相关模块)⽀持多种⽹络层协议,EIGRP协议实现了IP协议、IPX协议和AppleTalk协议的模块,它可以担负起某⼀特定协议的路由选择任务。
配置EIGRP的默认网络
使用IP default-network 配置EIGRP的默认网络一、实验拓扑二、设备配置2.1R1模拟外部网络配置如下R1R1>enR1#conf tR1(config)#int e 1/0R1(config-if)#ip add 12.1.1.1 255.255.255.0R1(config-if)#no shR1(config-if)#int lo 0R1(config-if)#ip add 172.16.0.1 255.255.255.0R1(config-if)#int lo 1R1(config-if)#ip add 172.16.1.1 255.255.255.0 R1(config-if)#int lo 2R1(config-if)#ip add 172.16.2.1 255.255.255.0 R1(config-if)#int lo 3R1(config-if)#ip add 172.16.3.1 255.255.255.0 R1(config-if)#ip route 0.0.0.0 0.0.0.0 12.1.1.2R1(config)#2.2EIGRP 域内路由器配置R2R2>enR2#conf tR2(config)#int e 1/0R2(config-if)#ip add 12.1.1.2 255.255.255.0R2(config-if)#no shR2(config-if)#int e 1/1R2(config-if)#ip add 23.1.1.2 255.255.255.0R2(config-if)#no shR2(config-if)#int e 1/2R2(config-if)#ip add 24.1.1.2 255.255.255.0R2(config-if)#no shR2(config-if)#router ei 50R2(config-router)#net 23.1.1.0 0.0.0.255R2(config-router)#net 24.1.1.0 0.0.0.255R2(config-router)#R3R3>enR3#conf tR3(config)#int e 1/0R3(config-if)#ip add 23.1.1.3 255.255.255.0R3(config-if)#no shR3(config-if)#router ei 50R3(config-router)#net 23.1.1.0 0.0.0.255R3(config-router)#R4R4>enR4#conf tR4(config)#int e 1/0R4(config-if)#ip add 24.1.1.4 255.255.255.0R4(config-if)#no shR4(config-if)#router ei 50R4(config-router)#net 24.1.1.0 0.0.0.255三、验证3.1EIGRP邻居关系已经建立R2(config-router)#do show ip ei neiIP-EIGRP neighbors for process 50H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num1 24.1.1.4 Et1/2 11 00:00:50 115 690 0 30 23.1.1.3 Et1/1 11 00:01:34 82 492 0 3R2(config-router)#✧在R2上配置用于到达外部网络的静态路由R2(config-router)#R2(config-router)#ip route 0.0.0.0 0.0.0.0 12.1.1.1R2(config)#✧R2可以到达外部网络R2(config)#do ping 172.16.0.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 28/46/72 ms R2(config)#3.2R3和R4没有路由无法访问外网R3(config-router)#do show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Ethernet1/0D 24.0.0.0/8 [90/307200] via 23.1.1.2, 00:04:11, Ethernet1/0R3(config-router)#R4(config-router)#do show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not setD 23.0.0.0/8 [90/307200] via 24.1.1.2, 00:03:41, Ethernet1/024.0.0.0/24 is subnetted, 1 subnetsC 24.1.1.0 is directly connected, Ethernet1/0R4(config-router)#3.3使用IP default-network在R2上使用IP default-network配置默认网络R2(config-router)#router ei 50R2(config)#router ei 50R2(config-router)#network 12.0.0.0R2(config-router)#ip default-network 12.0.0.0R2(config)#do show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is 12.1.1.1 to network 0.0.0.023.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 23.1.1.0/24 is directly connected, Ethernet1/1D 23.0.0.0/8 is a summary, 00:00:26, Null0 //24.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 24.1.1.0/24 is directly connected, Ethernet1/2D 24.0.0.0/8 is a summary, 00:00:26, Null0* 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 12.1.1.0/24 is directly connected, Ethernet1/0D* 12.0.0.0/8 is a summary, 00:00:12, Null0 //eigrp 默认网络S* 0.0.0.0/0 [1/0] via 12.1.1.1 //静态默认路由R2(config)#R3(config)#do show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is 23.1.1.2 to network 12.0.0.023.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Ethernet1/0D 24.0.0.0/8 [90/307200] via 23.1.1.2, 00:43:38, Ethernet1/0D* 12.0.0.0/8 [90/307200] via 23.1.1.2, 00:02:33, Ethernet1/0//R3已经学到了默认路由3.4测试连通性R3(config)#R3(config)#do ping 172.16.0.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 44/66/92 msR3(config)#备注:使用ip default-network 通告的路由,前提是必须先把接口的主类网络宣告进EIGRP进程中,否则EIGRP无法通告该条默认路由。
基本 EIGRP 配置实验-试验-作业
编辑: 詹俊明(ZHANJUNMING) 邮件:************************实验9.6.1:基本EIGRP 配置实验学习目标完成本实验后,您将能够:∙根据拓扑图完成网络电缆连接。
∙删除路由器启动配置并将其重新加载到默认状态。
∙在路由器上进行基本配置任务∙配置并激活接口。
∙在所有路由器上配置EIGRP 路由。
∙使用show 命令检验EIGRP 路由。
∙禁用自动总结。
∙配置手动总结。
∙配置EIGRP默认路由。
场景在本实验练习中,您将学习如何使用拓扑图中所示的网络配置路由协议EIGRP。
将在路由器R2 上使用一个环回地址来模拟通向ISP 的连接,所有发往本地网络外的通信都将被发送到该地址。
某些网段使用VLSM 划分了子网。
EIGRP 是一种无类路由协议,可用于在路由更新中提供子网掩码信息。
这将使VLSM 子网信息可传播到整个网络。
任务1:准备网络。
步骤1:根据拓扑图所示完成网络电缆连接。
本实验室中已经连接好现有的、具有拓扑所示接口的路由器。
任务2:进行基本路由器配置。
根据下列指导原则在路由器R1、R2 和R3 上进行基本配置:配置路由器主机名。
hostname R1hostname R2hostname R3禁用DNS 查找。
no ip domain-lookup配置执行模式口令。
enable password cisco配置当日消息标语。
要求用Z做为标语信息banner motd ^CZr1^C(相关配置方法见第一本书网络基础知识170页五标语信息)为控制台连接配置口令。
line con 0password ciscologin为VTY 连接配置口令。
line vty 0 4 password Zlogin任务3:配置并激活串行地址和以太网地址。
步骤1:配置路由器R1、R2 和R3 的接口。
使用课本267页拓扑图下方的表中的IP 地址在路由器R1、R2 和R3上配置接口。
步骤2:检验IP 地址和接口。
eigrp路由汇总
EIGRP路由汇总实验报告实验题目:EIGRP路由汇总实验实验目的:了解ERGRP不同汇总的特点实验内容:1、ERGRP使用自动汇2、ERGRP不使用自动汇总3、ERGRP使用手动汇总实验环境:CISCO3640 路由3台实验拓扑图:实验步骤:一、进行路由的基本配置1、对westasman路由进行基本配置Router>enaRouter#conf tRouter(config)#hostname wanstanmanwanstanman(config)#int lo 9wanstanman(config-if)#ip add 172.16.8.1 255.255.255.0 wanstanman(config-if)#int lo 0wanstanman(config-if)#ip add 172.16.9.1 255.255.255.0 wanstanman(config-if)#int lo 1wanstanman(config-if)#ip add 172.16.10.1 255.255.255.0 wanstanman(config-if)#int lo 2wanstanman(config-if)#ip add 172.16.11.1 255.255.255.0 wanstanman(config-if)#int lo 3wanstanman(config-if)#ip add 172.16.12.1 255.255.255.0 wanstanman(config-if)#int lo 4wanstanman(config-if)#ip add 172.16.13.1 255.255.255.0 wanstanman(config-if)#int lo 5wanstanman(config-if)#ip add 172.16.14.1 255.255.255.0 wanstanman(config-if)#int lo 6wanstanman(config-if)#ip add 172.16.15.1 255.255.255.0 wanstanman(config-if)#endwanstanman#conf twanstanman(config)#int se0/0wanstanman(config-if)#ip add 192.168.64.2 255.255.255.252 wanstanman(config-if)#no shutwanstanman(config-if)#clock r 64000wanstanman(config)#int s0/1wanstanman(config-if)#ip add 192.168.64.6 255.255.255.252 wanstanman(config-if)#no shutwanstanman(config-if)#clock r 64000wanstanman(config-if)#endwanstanman#show runinterface Loopback0ip address 172.16.9.1 255.255.255.0!interface Loopback1ip address 172.16.10.1 255.255.255.0!interface Loopback2ip address 172.16.11.1 255.255.255.0!interface Loopback3ip address 172.16.12.1 255.255.255.0!interface Loopback4ip address 172.16.13.1 255.255.255.0!interface Loopback5ip address 172.16.14.1 255.255.255.0!interface Loopback6ip address 172.16.15.1 255.255.255.0!interface Loopback9ip address 172.16.8.1 255.255.255.0!interface Serial0/0ip address 192.168.64.2 255.255.255.252serial restart-delay 0clockrate 64000!interface Serial0/1ip address 192.168.64.6 255.255.255.252serial restart-delay 0clockrate 640002、对sanjose1路由进行基本配置Router>enaRouter#conf tsanjose1(config)#int s0/0sanjose1(config-if)#ip add 192.168.64.1 255.255.255.0sanjose1(config-if)#no shutsanjose1(config-if)#exitsanjose1(config)#int fa1/0sanjose1(config-if)#ip add 172.16.1.1 255.255.255.0sanjose1(config-if)#no shutsanjose1(config-if)#endsanjose1#show runinterface Serial0/0ip address 192.168.64.1 255.255.255.0interface FastEthernet1/0ip address 172.16.1.1 255.255.255.0sanjose1#ping 192.168.64.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.64.2, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/24 ms sanjose1#3、对sanjose2路由进行基本配置Router>enaRouter#conf tsanjose2(config)#int se0/0sanjose2(config-if)#ip add 192.168.64.5 255.255.255.252sanjose2(config-if)#no shutsanjose2(config-if)#exitsanjose2(config)#int fa1/0sanjose2(config-if)#ip add 172.16.1.2 255.255.255.0sanjose2(config-if)#no shutsanjose2(config-if)#endsanjose2#show run!interface Serial0/0ip address 192.168.64.5 255.255.255.252interface FastEthernet1/0ip address 172.16.1.2 255.255.255.0sanjose2#ping 172.16.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: .!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 12/33/48 ms sanjose2#ping 192.168.64.6Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.64.6, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/22/40 ms sanjose2#(通过基本配置使各路由达到了实验平台的要求)二、使用自动汇总查看实验结果1、对westasman路由进行配置wanstanman#conf twanstanman(config)#router eigrp 100wanstanman(config-router)#network 192.168.64.0wanstanman(config-router)#network 172.168.0.0wanstanman(config-router)#auto-summarywanstanman(config-router)#endwanstanman#show ip route172.16.0.0/16 is variably subnetted, 9 subnets, 2 masksC 172.16.12.0/24 is directly connected, Loopback3C 172.16.13.0/24 is directly connected, Loopback4C 172.16.14.0/24 is directly connected, Loopback5C 172.16.15.0/24 is directly connected, Loopback6C 172.16.8.0/24 is directly connected, Loopback9C 172.16.9.0/24 is directly connected, Loopback0C 172.16.10.0/24 is directly connected, Loopback1C 172.16.11.0/24 is directly connected, Loopback2D 172.16.0.0/16 [90/2172416] via 192.168.64.1, 00:00:54, Serial0/0[90/2172416] via 192.168.64.5, 00:00:54, Serial0/1 192.168.64.0/30 is subnetted, 2 subnetsC 192.168.64.0 is directly connected, Serial0/0C 192.168.64.4 is directly connected, Serial0/1wanstanman#2、对sanjose1路由进行配置sanjose1#conf tsanjose1(config)#router eigrp 100sanjose1(config-router)#network 192.168.64.0sanjose1(config-router)#network 172.16.0.0sanjose1(config-router)#auto-summarysanjose1(config-router)#endsanjose1#show ip route172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.0.0/16 is a summary, 00:06:32, Null0C 172.16.1.0/24 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.64.0/24 is directly connected, Serial0/0D 192.168.64.4/30 [90/2681856] via 192.168.64.2, 00:06:37, Serial0/0 sanjose1#3、对sanjose2路由进行配置sanjose2#conf tsanjose2(config)#router eigrp 100sanjose2(config-router)#network 192.168.64.0sanjose2(config-router)#network 172.16.0.0sanjose2(config-router)#autosanjose2(config-router)#auto-summarysanjose2(config-router)#endsanjose2#show ip routesanjose2#172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.0.0/16 is a summary, 00:00:16, Null0C 172.16.1.0/24 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/24 is a summary, 00:00:11, Null0D 192.168.64.0/30 [90/2681856] via 192.168.64.6, 00:00:22, Serial0/0C 192.168.64.4/30 is directly connected, Serial0/0(使用路由汇总可使路由表中的路由条目减少,但是会造成很多IP地址不必要的浪费)二、不使用自动汇总查看实验结果1、对westasman路由进行配置wanstanman#conf twanstanman(config)#router eigrp 100wanstanman(config-router)#network 172.16.0.0wanstanman(config-router)#network 192.168.64.0wanstanman(config-router)#no auto-summarywanstanman(config-router)#endwanstanman#show ip routeGateway of last resort is not set172.16.0.0/24 is subnetted, 9 subnetsC 172.16.12.0 is directly connected, Loopback3C 172.16.13.0 is directly connected, Loopback4C 172.16.14.0 is directly connected, Loopback5C 172.16.15.0 is directly connected, Loopback6C 172.16.8.0 is directly connected, Loopback9C 172.16.9.0 is directly connected, Loopback0C 172.16.10.0 is directly connected, Loopback1C 172.16.11.0 is directly connected, Loopback2D 172.16.1.0 [90/2172416] via 192.168.64.5, 00:00:51, Serial0/1[90/2172416] via 192.168.64.1, 00:00:51, Serial0/0 192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/24 [90/2684416] via 192.168.64.5, 00:07:21, Serial0/1C 192.168.64.0/30 is directly connected, Serial0/0C 192.168.64.4/30 is directly connected, Serial0/1wanstanman#2、对sanjose1路由进行配置sanjose1#conf tsanjose1(config)#router eigrp 100sanjose1(config-router)#network 192.168.64.0sanjose1(config-router)#network 172.16.0.0sanjose1(config-router)#no auto-summarysanjose1(config-router)#endsanjose1#show ip rout172.16.0.0/24 is subnetted, 9 subnetsD 172.16.12.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.13.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.14.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.15.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.8.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.9.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.10.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.11.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0C 172.16.1.0 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/30 [90/2684416] via 172.16.1.2, 00:07:04, FastEthernet1/0 C 192.168.64.0/24 is directly connected, Serial0/0D 192.168.64.4/30 [90/2172416] via 172.16.1.2, 00:09:59, FastEthernet1/03、对sanjose2进行配置sanjose2#conf tsanjose2(config)#router eigrp 100sanjose2(config-router)#network 192.168.64.0sanjose2(config-router)#network 172.16.0.0sanjose2(config-router)#no auto-summarysanjose2(config-router)#endsanjose2#show ip routGateway of last resort is not set172.16.0.0/24 is subnetted, 9 subnetsD 172.16.12.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.13.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.14.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.15.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.8.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.9.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.10.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.11.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0C 172.16.1.0 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/30 [90/2681856] via 192.168.64.6, 00:07:13, Serial0/0D 192.168.64.0/24 [90/2172416] via 172.16.1.1, 00:07:14, FastEthernet1/0C 192.168.64.4/30 is directly connected, Serial0/0sanjose2#(如果不使用路由汇总我们可以发现每个路由器学到的路由表太过于繁琐)三、使用手动汇总并查看实验结果1、对westasman进行配置wanstanman#conf twanstanman(config)#int s0/0wanstanman(config-if)#ip summary-address eigrp 100 172.16.8.0 255.255.255.248 wanstanman(config-if)#exitwanstanman(config)#int se0/1wanstanman(config-if)#ip summary-address eigrp 100 172.16.8.0 255.255.248.0 wanstanman(config-if)#end2、查看sanjose1的路由表sanjose1#show ip rout172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.8.0/21 [90/2300416] via 172.16.1.2, 00:01:55, FastEthernet1/0C 172.16.1.0/24 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/30 [90/2684416] via 172.16.1.2, 00:01:30, FastEthernet1/0C 192.168.64.0/24 is directly connected, Serial0/0D 192.168.64.4/30 [90/2172416] via 172.16.1.2, 00:24:24, FastEthernet1/0 sanjose1#3、查看sanjose1的路由表sanjose2#show ip routeGateway of last resort is not set172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.8.0/21 [90/2297856] via 192.168.64.6, 00:02:15, Serial0/0C 172.16.1.0/24 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/30 [90/2681856] via 192.168.64.6, 00:01:51, Serial0/0D 192.168.64.0/24 [90/2172416] via 172.16.1.1, 00:24:46, FastEthernet1/0 C 192.168.64.4/30 is directly connected, Serial0/0sanjose2#(使用手动的路由汇总,不仅可以使路由的条目减少,而且还可以达到地址最合理的使用)总结:通过上面的实验可以使我得出,在不同的环境下应该使用不同的EIGRP路由汇总功能,这样可以节约路由器的资源。
cisco使用教程+实验攻略
目录Packet Tracer 建构CCNA实验攻略(1)——配置Cisco交换机Packet Tracer 是一款非常不错的Cisco(思科)网络设备模拟器,对于想考思科初级认证(如CCNA)的朋友们来说,Packet Tracer 是非常不错的选择。
利用Packet Tracer 练习思科IOS操作命令很不错的。
要配置好Cisco交换必需要熟悉IOS命令及相关的知识。
一、几种配置命令模式switch>这种提示符表示是在用户命令模式,只能使用一些查看命令。
switch#这种提示符表示是在特权命令模式。
switch(config)# 这种提示符表示是全局配置模式switch(config-if)# 端口配置命令模式图一几种命令模式二、检查、查看命令这些命令是查看当前配置状况,通常是以show(sh)为开始的命令。
show version查看IOS的版本、show flash查看flash内存使用状况、show mac-address-table查看MAC地址列表图二图三图四图五Show 帮助命令显示当前所有的查看命令图六查看端口状态信息三、密码设置命令Cisco交换机、路由器中有很多密码,设置好这些密码可以有效地提高设备的安全性。
switch(config)#enable password 设置进入特权模式进的密码switch(config-line) 可以设置通过console端口连接设备及telnet远程登录时所需要的密码图七设置交换机的各种密码默认情况下,这些密码都是以明文的形式存储,所以很容易查看到。
为了避免这种情况,我们可以以密文的形式存储各种密码:service password-encryption图九图十密码以密文的形式存储四、配置IP地址及默认网关图十一五、管理MAC地址表switch#show mac-address-table 显示MAC地址列表switch#clear mac-address-table dynamic 清除动态MAC地址列表图十二图十三设置静态MAC地址六、配置端口安全switch(config-if)switchport port-securityswitch(config-if)switchport port-security maximum 4图十四图十五七、一个配置实例图十六实例拓扑图图十七图十八图十九图二十保存对交换机的配置Packet Tracer 建构CCNA实验攻略(2)——配置VLANVlan(Virtual Local Area Network)即虚拟局域网。
Eigrp基本配置
Eigrp基本配置由于属于基本协议,使用思科的Cisco Packet Tracer Instructor软件进行模拟。
1.首先设置几台终端的和路由器的IP地址。
(1)PC0 Ip address: 192.168.1.2 gateway:192.168.1.1(网关)PC1 ip address:192.168.1.3 gateway:192.168.1.1PC2 ip address:192.168.4.2 gateway:192.168.4.1PC3 ip address:192.168.4.3 gateway:192.168.4.1(2)设置几台路由器的端口IP地址R0设置f0/0:192.168.1.1Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#interface f0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shutdownRouter(config-if)#exitf0/1:192.168.2.1Router(config)#interface f0/1Router(config-if)#ip address 192.168.2.1 255.255.255.0 Router(config-if)#no shutdown以下几个路由器以此分别设置为R1 f0/0:192.168.2. 2 f0/1:192.168.3.1R2 f0/0:192.168.3.2 f0/1:192.168.4.12.给路由器配置EIGRP协议在特权模式下输入R0:Router(config)#router eigrp 10Router(config-router)#network 192.168.1.0 0.0.0.255Router(config-router)#network 192.168.2.0 0.0.0.255其中192.168.1.0和192.168.2.0是与路由器R0相连的网段,0.0.0.255是这两个网段地址子网掩码的反码(反码等于255.255.255.255减去其子网掩码)在指令router eigrp 10中,10表示自治域号autonomous-system,autonomous-system可以随意建立,并非实际意义上的autonomous-system,但运行EIGRP的路由器要想交换路由更新信息其autonomous-system需相同。
Packet Tracer 5——9Cisco EIGRP
Packet Tracer 5.0建构CCNA实验攻略(9)——Cisco EIGRP
EIGRP(Enhanced Interior Gateway Routing Protocol,增强型内部网关路由协议)是Cisco内部专有协议,其它公司的网络产品是不会拥有该协议的。
一、配置实例拓扑图
图一共有四个Cisco 2811路由器,共六个网段
二、配置Cisco EIGRP的基本命令
Router(config)#router eigrp 100开启EIGRP进程,100为AS编号(1——65535)
Router(config-router)#network 10.0.0.0在网络上通告自己所直接连接的网段
三、配置Cisco EIGRP实例
1、基本配置
图二以Router2为例2、启用EIGRP
图三
图四Router1的配置
图五Router2的配置
图六Router3的配置
图七Router4的配置
图八查看路由表
3、校验与排错
把个网段的PC配置好IP地址及网关,用PC4 ping 所有网段都可以ping 通。
图九
图十show ip eigrp neighbors命令查看EIGRP的邻接关系
图十一show ip eigrp interfaces
图十二show ip eigrp topology查看拓扑表
图十三show ip eigrp traffic
图十四debug eigrp packets
EIGRP支持MD5加密认证,但是我们的这个模拟器不支持,这个试验就不做了。
EIGRP带宽实例配置详解
EIGRP带宽实例配置详解EIGRP带宽实例配置详解实际上串行接口的带宽并不是默认值,这里我们按照需求修改接口的带宽并修改EIGRP 占用带宽的百分比例。
拓扑图如下:CCNP:修改带宽占用比:R1(config)# interface s0/0R1(config-if)# bandwidth 128 //注意,这里的单位是KB/sR1(config-if)# ip bandwidth-percent eigrp 100 40 //修改EIGRP 路由信息占用带宽的百分比为40R1(config-if)# endR2(config)# interface s0/0R2(config-if)# bandwidth 64 //注意,这里的单位是KB/sR2(config-if)# endR3(config)# interface s0/0R3(config-if)# bandwidth 64 //注意,这里的单位是KB/sR3(config-if)# end验证:R1#show interfaces serial 0/0 | include BWMTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,EIGRP 在帧中继网络中使用点对点子接口的方式。
第4 步配置中,可以看到R2 和R3 想要通过R1 学习到对方宣告的网络,必须将R1 的接口S0/0 水平分割关闭才可以。
这里我们使用帧中继网络点对点子接口的`方法来完成。
点对点子接口方式:R1(config)#default interface Serial 0/0 //将接口的配置还原为默认值Building configuration…Interface Serial0/0 set to default configurationR1(config)#*Mar 1 01:45:30.363: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.3 (Serial0/0) is resync: split horizon changed*Mar 1 01:45:30.367: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.2 (Serial0/0) is resync: split horizon changed*Mar 1 01:45:30.779: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.3 (Serial0/0) is down: interface down *Mar 1 01:45:30.787: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.2 (Serial0/0) is down: interface down *Mar 1 01:45:31.483: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down *Mar 1 01:45:33.499: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upR1(config)#interface Serial 0/0R1(config-if)#encapsulation fram //封装为帧中继模式R1(config-if)#no fram inv //关闭自动获取R1(config-if)#no shR1(config-if)#ip split eigrp 100 //打开水平分割R1(config-if)#int s0/0.1 point //设置点对点子接口R1(config-subif)#ip add 192.168.1.1 255.255.255.252R1(config-subif)#fram interface-dlci 102 //指定接口DLCI 号R1(config-fr-dlci)#int s0/0.2 point //配置R1 和R3 之间的子接口R1(config-subif)#ip add 192.168.1.5 255.255.255.252R1(config-subif)#fram interface-dlci 103*Mar 1 01:47:05.767: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.2 (Serial0/0.1) is up: new adjacency *Mar 1 01:47:06.651: IP-EIGRP(Default-IP-Routing-Table:100):Neighbor 192.168.1.3 not on common subnet for Serial0/0.2 R1(config-fr-dlci)#end因为R1 和R2 相连的子接口IP 地址和子网掩码有所变化必须修改R2(config)#int s0/0R2(config-if)#ip add 192.168.1.2 255.255.255.252因为R1 和R3 相连的子接口IP 地址和子网掩码有所变化必须修改R3(config)#int s0/0R3(config-if)#ip add 192.168.1.6 255.255.255.252*Mar 1 01:47:51.331: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.5 (Serial0/0) is down: address changed *Mar 1 01:47:51.343: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.1 (Serial0/0) is down: address changed *Mar 1 01:47:52.463: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.5 (Serial0/0) is up: new adjacency R3(config-if)#no frame-relay map ip 192.168.1.1 301 broadcas //将之前配置的取消R3(config-if)#fram map ip 192.168.1.5 301 br验证配置:R1#show ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num1 192.168.1.6 Se0/0.2 173 00:06:53 117 1053 0 150 192.168.1.2 Se0/0.1 135 00:07:12 1055 5000 0 16R3#ping 10.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max =20/89/180 ms下载全文。
EIGRP协议配置
实验四EIGRP协议的配置一、实验目的:1.掌握在路由器上配置EIGRP路由协议的方法2.理解默认网关、默认路由的意义3.掌握查看路由表和端口的命令4.理解路由表和端口中各内容的含义5.理解自治系统的含义与使用方法二、实验环境:(自己连接线缆)1、组网图2、IP地址规划PC_A:Ip地址:192.168.1.1子网掩码:255.255.255.0网关:192.168.1.254PC_B:Ip地址:192.168.3.1子网掩码:255.255.255.0网关:192.168.3.254PC_C:Ip地址:192.168.3.2子网掩码:255.255.255.0网关:192.168.3.254PC_D:Ip地址:192.168.5.1子网掩码:255.255.255.0网关:192.168.5.254Router_A:F0/1:192.168.1.254子网掩码:255.255.255.0F0/0:192.168.2.1子网掩码:255.255.255.0S0/0:192.168.4.1子网掩码:255.255.255.0Router_B:F0/0:192.168.3.254子网掩码:255.255.255.0S0/0:192.168.7.2子网掩码:255.255.255.0Router_C:F0/0:192.168.5.254子网掩码:255.255.255.0F0/1:192.168.6.1子网掩码:255.255.255.0S0/0:192.168.4.2子网掩码:255.255.255.0Router_D:F0/0:192.168.6.2子网掩码:255.255.255.0S0/0:192.168.7.1子网掩码:255.255.255.0三、实验内容及要求:1.网络环境配置与连接将给定的实验设备按实验拓朴进行连接,自己选择使用的网络连接线的类型对实验拓朴进行IP地址规划,并画出实验拓朴图,详细并标明IP地址规划注意:路由器的控制端口(Console)与PC机的串口(COM1或COM2)使用Console控制线 路由器计算机的通过网络接口的连接使用RJ-45的网线,应选择交叉线。
eigrp协议规则、拓扑设计与配置实现
eigrp协议规则、拓扑设计与配置实现EIGRP(Enhanced Interior Gateway Routing Protocol)是一种基于距离向量的路由协议,常用于局域网内部的路由器之间进行动态路由的学习与交换。
本文将探讨EIGRP协议的规则、拓扑设计以及配置实现方法。
一、EIGRP协议规则EIGRP协议具有以下几个重要的规则,对于理解和实现EIGRP网络非常关键。
1. 邻居发现:EIGRP路由器之间通过发送Hello消息来发现彼此。
两个路由器只有在Hello消息中配置的参数完全匹配时才能成为邻居。
2. 距离计算:EIGRP使用可变的带宽、延迟、可靠性、MTU等因素来计算最优路径。
这样可以根据网络环境的变化来选择最佳的路由路径。
3. 路由更新:EIGRP采用增量更新的方式来传递路由信息,只发送有变化的路由信息,减少带宽的消耗。
4. 路由回收:当网络中发生链路故障或者路由变化时,EIGRP能够快速地将有问题的路由回收,并通过通告邻居选择新的最优路径。
二、拓扑设计在设计EIGRP网络拓扑时,需要考虑以下几个方面:1. 网络划分:根据不同的业务需求和网络规模,将网络划分为多个区域或者子网。
每个区域可以采用不同的EIGRP自治系统(AS)。
2. 路由器布置:在每个网络区域中,选择适当数量和位置的路由器。
一个好的设计应该将路由器布置在网络的核心位置,使得流量能够高效地传输。
3. 路由器冗余:为了提高网络的可靠性和容错性,可以采用冗余路由器。
使用冗余路由器可以使得在主路由器故障时,备用路由器能够接管工作,从而保证网络的连通性。
三、配置实现在实现EIGRP网络时,需要进行以下几个步骤:1. 启用EIGRP:在每个路由器上启用EIGRP协议,并将其配置为相同的AS号。
使用命令"router eigrp AS号"来启用EIGRP协议。
2. 配置IP地址:为每个路由器的接口配置IP地址,并将路由器连接的子网掩码设置为相同的值。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验一:基本配置EIGRP
实验目的:
1、掌握EIGRP的基本配置。
2、掌握EIGRP的通配符掩配置方法。
3、掌握EIGRP的自动汇总特性,以及如何关闭自动汇总。
4、掌握EIGRP的手工汇总。
实验拓扑图:
实验步骤及要求:
1、配置各台路由器的IP地址,并且使用ping命令确认各路由器的直连口的互通性。
2、在三台路由配置EIGRP自治系统编号为100。
3、登录到R2路由器,作如下配置(其它路由器参照其进行配置):
R2#configure terminal
R2(config-if)#router eigrp 100
R2(config-router)#network 172.16.0.0
R2(config-router)#network 131.131.0.0
R2(config-router)#exit
4、在任意一台路由器上观察EIGRP的邻居关系:
R2#show ip eigrp 100 neighbors
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 172.16.1.6 Se1/1 13 00:01:39 29 200 0 5
0 172.16.1.1 Se1/0 13 00:02:35 33 200 0 3
其中:列H指出邻居学习的顺序,Address指出邻居地址,Interface指出邻居所在本地接口。
Hold time :从邻居第一次被添加到邻居表后到现在经过的时间
Q Cnt:标识在重传队列中等待发送的数据包的数量
SRTT:衡量路由器发送EIGRP数据包到邻居,和从邻居那里收到该数据包的确认所花费的平均时间
5、在任意一台路由器上查看路由器,确认路由:
R2#show ip route
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C 172.16.1.4/30 is directly connected, Serial0/1
D 172.16.0.0/16 is a summary, 00:06:33, Null0
C 172.16.1.0/30 is directly connected, Serial0/0
D 10.0.0.0/8 [90/2297856] via 172.16.1.1, 00:04:51, Serial0/0
C 131.131.0.0/16 is directly connected, Loopback0
D 192.168.0.0/24 [90/2297856] via 172.16.1.6, 00:06:07, Serial0/1
D 192.168.1.0/24 [90/2297856] via 172.16.1.6, 00:06:08, Serial0/1
D 192.168.2.0/24 [90/2297856] via 172.16.1.6, 00:06:07, Serial0/1
D 192.168.3.0/24 [90/2297856] via 172.16.1.6, 00:06:08, Serial0/1
R2#
C 直连路由
S 静态路由
R RIP
D EIGRP
O OSPF
I IGRP
B BGP
6、在R1路由器上使用更简洁的查看关于EIGRP的路由命令:
R2#show ip route eigrp
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:10:09, Null0
D 10.0.0.0/8 [90/2297856] via 172.16.1.1, 00:10:10, Serial1/0
D 192.168.0.0/24 [90/2297856] via 172.16.1.6, 00:08:38, Serial0/1
D 192.168.1.0/24 [90/2297856] via 172.16.1.6, 00:08:38, Serial0/1
D 192.168.2.0/24 [90/2297856] via 172.16.1.6, 00:08:38, Serial0/1
D 192.168.3.0/24 [90/2297856] via 172.16.1.6, 00:08:38, Serial0/1
R2#
7、我们注意到在R2路由器上有一条指向s0/0口的10.0.0.0/8的汇总路由,这是EIGRP路由协议自动汇总的特性体现。
可以使用no auto-summary命令关闭。
如下:
R1(config)
R1(config)#router eigrp 100
R1(config-router)#no auto-summary
R1(config-router)#exit
R1(config)#
随后在R2上观察路由表的变化,如下显示:
R2#show ip route eigrp
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:12:40, Null0
10.0.0.0/24 is subnetted, 4 subnets
D 10.1.3.0 [90/2297856] via 172.16.1.1, 00:00:40, Serial0/0
D 10.1.2.0 [90/2297856] via 172.16.1.1, 00:00:40, Serial0/0
D 10.1.1.0 [90/2297856] via 172.16.1.1, 00:00:40, Serial0/0
D 10.1.4.0 [90/2297856] via 172.16.1.1, 00:00:40, Serial0/0
D 192.168.0.0/24 [90/2297856] via 172.16.1.6, 00:13:05, Serial0/1
D 192.168.1.0/24 [90/2297856] via 172.16.1.6, 00:13:05, Serial0/1
D 192.168.2.0/24 [90/2297856] via 172.16.1.6, 00:13:05, Serial0/1
D 192.168.3.0/24 [90/2297856] via 172.16.1.6, 00:13:05, Serial0/1
R2#
8、EIGRP也可以进行手工地址总结。
手工地址总结,可以有效的减少路由表的大小。
比如在R2上的路由中关于R3的192.168.*.*的网络显示为四条具体路由,可以在R3上进行如下配置,减少路由通告条目。
R3(config)#interface serail 0/1
R3(config-if)#ip summary eigrp 100 192.168.0.0 255.255.252.0
R3(config-if)#exit
9、观察R2路由器的路由表:
R2#show ip route eigrp
………
D 10.1.1.0 [90/2297856] via 172.16.1.1, 00:02:31, Serial1/0
D 10.1.4.0 [90/2297856] via 172.16.1.1, 00:02:31, Serial1/0
D 192.168.0.0/22 [90/2297856] via 172.16.1.6, 00:00:11, Serial0/1
………
10、在R2上使用通配符掩码进行配置EIGRP:
R2(config)#no router eigrp 100
R2(config)#router eigrp 100
R2(config-router)#network 172.16.1.0 0.0.0.3
R2(config-router)#network 131.131.0.0
R2(config-router)#exit
11、在R2确认邻居,此处仅发现与R1建立了邻居关系。
R2#show ip eigrp neighbors
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 172.16.1.1 Se1/0 12 00:04:57 24 200 0 14
12、查看R1的路由表,进行确认所学习到的路由。
R1#show ip route eigrp
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:02:55, Null0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
D 10.0.0.0/8 is a summary, 00:02:55, Null0
D 131.131.0.0/16 [90/2297856] via 172.16.1.2, 00:00:06, Serial0/0 R1#
13、实验完成。