|
实验 19:配置EIGRP基本命令
因为早期的IGRP不支持VLSM,而EIGRP默认开启自动汇总来支持VLSM.
动态路由需要宣告直边的网段,刚好跟静态路由相反.
实验目标:
1.熟悉动态路由协议的基本配置命令.
2.学会配置EIGRP的基本命令.
实验步骤:
1.配置EIGRP(关闭自动汇总).
2.查看邻居表、拓扑表以及路由表.
3.查看EIRP的路由条目类型(创造外部路由).
4.调整K值.
1.配置EIGRP(关闭自动汇总).
先查看直连的网段:
R1(config)#do show ip inter br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.12.1 YES manual up up
FastEthernet0/1 192.168.120.1 YES manual up up
Loopback0 172.16.0.1 YES manual up up
Loopback1 172.16.1.1 YES manual up up
Loopback2 172.16.2.1 YES manual up up
Loopback3 172.16.3.1 YES manual up up
开启eigrp并建立系统号 R1(config)#router eigrp 100
关闭自动汇总 R1(config-router)#no auto-summary
宣告主类网段直接写IP R1(config-router)#network 192.168.12.0
R1(config-router)#network 192.168.120.0
宣告非主类网段要在IP后加反Subnet Mask,0表示匹配,1表示ignore
R1(config-router)#network 172.16.0.0 0.0.3.255
R2(config)#router eigrp 100
R2(config-router)#no auto-summary
R2(config-router)#net 192.168.12.0
R2(config-router)#net 192.168.120.0
R2(config-router)#net 192.168.23.0
R2(config-router)#net 192.168.230.0
R2(config-router)#net 192.168.2.0
R3(config)#router eigrp 100
R3(config-router)#no auto-summary
R3(config-router)#net 192.168.3.0
R3(config-router)#net 192.168.23.0
R3(config-router)#net 192.168.230.0
2.查看邻居表、拓扑表以及路由表.
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 192.168.12.1 Fa0/0 12 00:04:57 40 1000 0 16
1 192.168.120.1 Fa0/1 12 00:04:21 40 1000 0 15
2 192.168.23.2 Fa1/0 12 00:01:43 40 1000 0 60
3 192.168.230.2 Se0/3/0 13 00:01:24 40 1000 0 61
R2#show ip eigrp topology
IP-EIGRP Topology Table for AS 100/ID(192.168.2.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - Reply status
P 172.16.0.0/24, 2 successors, FD is 156160
via 192.168.12.1 (156160/128256), FastEthernet0/0
via 192.168.120.1 (156160/128256), FastEthernet0/1
相同链路实现了等价load-balancing
|
|