拓扑如下:

EIGRP配置_ip地址

IP地址规划

R1

e0/0:172.31.1.254/24

s2/0:172.31.16.1/24


R2

s2/0:172.31.16.2/24

s2/1:172.16.23.2/24

s2/2:172.16.24.2/24

R3

e0/0:172.16.1.254/24

s2/0:172.16.34.3/24

s2/1:172.16.23.3/24

R4

e0/0:172.16.2.254/24

s2/0:172.16.34.4/24

S2/2:172.16.24.4/24

PC1

e0/0:172.31.1.1/24



PC2

e0/0:172.16.1.1/24



PC2

e0/0:172.16.2.1/24



一、IP地址配置略

二、配置EIGRP

R1配置

R1(config)#router eigrp 1
R1(config-router)#eigrp router-id 1.1.1.1
R1(config-router)#auto-summary
R1(config-router)#network 172.31.0.0

R2配置

R2(config)#router eigrp 1
R2(config-router)#eigrp router-id 2.2.2.2
R2(config-router)#auto-summary
R2(config-router)#network 172.31.0.0
R2(config-router)#network 172.16.0.0

R3配置

R3(config)#router eigrp 1
R3(config-router)#eigrp router-id 3.3.3.3
R3(config-router)#auto-summary
R3(config-router)#network 172.16.0.0

R4配置

R4(config)#router eigrp 1
R4(config-router)#eigrp router-id 4.4.4.4
R4(config-router)#auto-summary
R4(config-router)#network 172.16.0.0

使用show ip route 查看R2的路由表

EIGRP配置_EIGRP_02

ping测试

EIGRP配置_ip地址_03