l 如上图所示,IP地址规划方面,R1/R2/R3路由器互联的接口为192.168.AB.X/24,(其中AB为
路由器编号叠加,X为路由器编号,如R1连接R2的接口F0/0的地址为192.168.12.1/24)
l R1、R2、R3三台路由器运行EIGRP 协议,AS号为1 。
l 实现设备间能相互通信。
l 查看路由的邻居表、拓扑表、路由表、协议
一:先配置设备的接口地址
(config)#interface fastEthernet x/x
(config-if)#ip address x.x.x.x x.x.x.x
二:配置R1、R2、R3运行EIGRP协议,并配置环回接口地址,实现设备互通。
(config)#router eigrp 1 //开启EIGRP进程//
(config-router)#no auto-summary //关闭自动汇总 //
(config-router)#network x.x.x.x //宣告网段//
1) 查看路由器R1运行的路由协议:
R1#show ip protocols
Routing Protocol is "eigrp 1"
Outgoing ** filter list for all interfaces is not set
Incoming ** filter list for all interfaces is not set
Default networks flagged in outgoing **s
Default networks accepted from incoming **s
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 not in effect
Maximum path: 4
Routing for Networks:
192.168.12.0
Routing Information Sources:
Gateway Distance Last **
192.168.12.2 90 00:02:38
Distance: internal 90 external 170
/查看路由器所使用的路由协议为EIGRP,AS号为1,且管理距离(AD)为90/
2) 查看路由器R2的邻居表:
R2#show ip eigrp neighbors
IP-EIGRP neighbors for process 1
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 192.168.23.3 Fa1/0 13 00:03:41 50 300 0 3
0 192.168.12.1 Fa0/0 12 00:04:28 1027 5000 0 3
/上面显示的是R2的EIGRP邻居表,且0与1代表的是建立邻居的顺序/
3) 查看R2的拓扑表:
R2#show ip eigrp topology
IP-EIGRP Topology Table for AS(1)/ID(192.168.23.2)
Codes: P - Passive, A - Active, U - **, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 192.168.12.0/24, 1 successors, FD is 28160
via Connected, FastEthernet0/0
P 192.168.23.0/24, 1 successors, FD is 28160
via Connected, FastEthernet1/0
/上面显示的是R2的EIGRP拓扑表,且P表示为正常情况/
4) 查看R2的路由表:
R3#show ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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.168.12.0/24 [90/30720] via 192.168.23.2, 00:05:22, FastEthernet0/0
C 192.168.23.0/24 is directly connected, FastEthernet0/0
/上面显示的是R2的EIGRP路由表,且D表示为EIGRP学习到的路由条目/
1. 查看EIGRP的协议发送的组播地址
/图显示的是发送组播地址为224.0.0.10,且每5秒发送一次/
R1:
enable
conf t
hostname R1
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
no shutdown
exit
!
router eigrp 1
network 192.168.12.0
no auto-summary
!
end
R2:
enable
conf t
hostname R2
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
no shutdown
exit
interface FastEthernet1/0
ip address 192.168.23.2 255.255.255.0
no shutdown
exit
!
router eigrp 1
network 192.168.12.0
network 192.168.23.0
no auto-summary
!
end
R3:
enable
conf t
hostname R3
interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
no shutdown
exit
!
router eigrp 1
network 192.168.23.0
no auto-summary
!
end
1)EIGRP的进程中要关闭自动汇总,能支持VLSM
2)EIGRP的管理距离为90。
3)每5秒发送224.0.0.10给邻居。
4)查看路由协议:show ip protocol
5)查看邻居表:show ip eigrp neighbor
6)查看拓扑表:show ip eigrp topology
7)查看路由表:show ip route
您的朋友 周俊杰(Jay)
新浪微博:http://weibo.com/zhoujj0130
新浪博客:http://blog.sina.com.cn/zhoujj0130
|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )
GMT+8, 2024-4-24 05:52 , Processed in 0.055623 second(s), 18 queries , Gzip On.