第二步:启动路由交换工具:小凡
Enable
Conf ter
No ip domain-lookup
Line console 0
Logging synchronous
Exec-timeout 0 0
说明:实验目的:
通过本实验,读者可以掌握以下技能
:
在路由器上启动
EIGRP
协议
;
声明相应网段进入
EIGRP
路由进程
;
查看路由表并理解相关字段含义
;
查看
EIGRP
协议配置信息
;
查看
EIGRP
邻居路由器信息。
第三步:
R1
,
R2
,
R3
,
R4
都启动
EIGRP
协议
配置
R1
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#logging synchronous
Router(config-line)#exec-timeout 0 0
Router(config-line)#end
Router(config-if)#ip add 10.1.0 .1 255.255.255.0
Router(config-if)#ip add 10.1.1 .1 255.255.255.0
Router(config-if)#ip add 10.1.2 .1 255.255.255.0
Router(config-if)#ip add 10.1.3 .1 255.255.255.0
Router(config-if)#no shu
Router(config-if)#exit
Router(config)#int e0/0
Router(config-if)#exit
Router(config)#hostname R1
R1(config)#int e0/0
R1(config-if)#ip add 172.16.1.1 255.255.255.252
R1(config-if)#no shu
R1(config)#router eigrp 1
R1(config-router)#net 10.1.1 .0
R1(config-router)#net 10.1.0 .0
R1(config-router)#net 10.1.2 .0
R1(config-router)#net 10.1.3 .0
R1(config-router)#net 172.16.1.0
R1(config-router)#no auto-summary
R2
的配置:
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#logging synchronous
Router(config-line)#exec-timeout 0 0
Router(config-line)#exit
Router(config)#hostname R2
R2(config)#int e0/0
R2(config-if)#ip add 172.16.1.2 255.255.255.252
R2(config-if)#no shu
R2(config)#int e0/1
R2(config-if)#ip add 172.16.1.5 255.255.255.252
R2(config-if)#no shu
R1
可以
PING
通
R2
Show ip router
R3的配置
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#logging synchronous
Router(config-line)#exec-timeout 0 0
Router(config-line)#exit
Router(config)#hostname R3
R3(config)#int e0/1
R3(config-if)#ip add 172.16.1.6 255.255.255.252
R3(config)#int s1/0
R3(config-if)#ip add 172.16.1.9 255.255.255.252
R3(config-if)#no shu
R3(config)#int lo0
R3(config-if)#ipad
*Mar 1 00:26:57.675: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
R3(config-if)#ip add 192.168.1.1 255.255.255.0
R3(config-if)#
R3(config-if)#
*Mar 1 00:27:13.471: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
R3(config-if)#ip add 192.168.2.1 255.255.255.0
R3(config-if)#ip add 192.168.3.1 255.255.255.0
R3(config-if)#no shu
R3(config-if)#exit
R3(config)#router eigrp 1
R3(config-router)#net 192.168.1.0
R3(config-router)#net 192.168.2.0
R3(config-router)#net 192.168.3.0
R3(config-router)#net 172.16.1.0
R3(config-router)#no auto-summary
Show ip router
R4的配置
Router(config)#int s0/1
Router(config-if)#ip add 172.16.1.10 255.255.255.252
Router(config-if)#no shu
Router(config)#int lo0
Router(config-if)#ip ad
*Mar 1 00:39:39.407: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
Router(config-if)#ip add 10.1.16 .1 255.255.255.0
Router(config-if)#ip add 10.1.17 .1 255.255.255.0
Router(config-if)#ip add 10.1.18 .1 255.255.255.0
Router(config-if)#ip add 10.1.19 .1 255.255.255.0
Router(config-if)#no shu
Router(config)#router eigrp 1
Router(config-router)#net 10.1.16 .0
Router(config-router)#net 10.1.17 .0
Router(config-router)#net 10.1.18 .0
Router(config-router)#net 10.1.19 .0
Router(config-router)#net 172.16.1.0
Router(config-router)#
*Mar 1 00:43:11.879: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.9 (Serial0/1) is up: new adjacency
Router(config-router)#auto-summary
R4(config)#router eigrp 1
R4(config-router)#va
R4(config-router)#variance 2 -------R4(config)#interface f1/0
R4(config-if)#delay 2000
R4(config-if)#exit 负载均衡
R4(config-router)#exit
Router#show ip protocols
Routing Protocol is "eigrp 1"
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 1
EIGRP NSF-aware route hold timer is 240s
Automatic network summarization is in effect
Automatic address summarization:
172.16.0.0/16 for Loopback0
Summarizing with metric 2169856
10.0.0 .0/8 for Serial0/1
Summarizing with metric 128256
Maximum path: 4
Routing for Networks:
10.0.0 .0
172.16.0.0
Routing Information Sources:
Gateway Distance Last Update
(this router) 90 00:01:10
172.16.1.9 90 00:01:11
Distance: internal 90 external 170
本文出自 “更快、更高、更强” 博客,谢绝转载!