实验拓扑图: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />
实验环境说明:
1.
将路由器 R1 Fa0/0 端口配置 ip 172.16.0.1/24 S1/2 端口配置 ip 192.168.1.1/24
2.
将路由器 R2 Fa0/0 端口配置 ip 192.168.3.2/24 S1/2 端口配置 ip 192.168.1.2/24
3.
将路由器 R3 Fa0/0 端口配置 ip 172.16.0.3/24
4.
将交换机 SW1 分别划分两个 VLAN2 VLAN3 ,将端口 Fa1/13 Fa1/15 划入 VLAN2 ,将端口 Fa1/14 划入 VLAN3

实验结果:要求路由器间两两可以互相通信

配置过程详解:

交换机 SW1 的配置清单:

1. 首先禁用错误命令当域名解析和关闭超时退出控制台:
SW1(config)#no ip domain-loo
SW1(config)#line con 0
SW1(config-line)#no exec-t
SW1(config-line)#exit
2. 划分 VLAN
SW1#vlan data
SW1(vlan)#vlan 2
SW1(vlan)#vlan 3
SW1(vlan)#exit
3. Fa1/13 端口设为全双工模式,并划入 VLAN2
SW1(config)#int fa1/13
SW1(config-if)#speed 100
SW1(config-if)#duplex full
 
5. Fa1/14 端口设为全双工模式,并划入 VLAN3
SW1(config)#int fa1/14
SW1(config-if)#speed 100
SW1(config-if)#duplex full
SW1(config-if)#sw mod acc
SW1(config-if)#sw acc vlan 3
SW1(config-if)#exit 

SW1(config-if)#sw acc vlan 2
SW1(config-if)#exit 
4. Fa1/15 端口设为全双工模式,并划入 VLAN2
SW1(config)#int fa1/15
SW1(config-if)#speed100
SW1(config-if)#duplex full
SW1(config-if)#sw modacc
SW1(config-if)#sw acc vlan 2
SW1(config-if)#exit 
路由器 R1 的配置清单:

1. 首先禁用错误命令当域名解析和禁用超时退出控制台:
R1(config)#no ip domain-loo
R1(config)#line con 0
R1(config-line)#no exec-t
R1(config-line)#exit
2. Fa0/0 端口设为全双工模式并配置 ip
R1(config)#int fa0/0
R1(config-if)#speed 100
R1(config-if)#duplex full
R1(config-if)#ip add 172.16.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
3. S1/2 端口配置 ip
R1(config)#int s1/2
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
4. 在路由器 R1 上配置 EIGRP
R1(config)#router eigrp 100
R1(config-router)#no auto-summary
R1(config-router)#network 172.16.0.1 <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0.0.0.0
R1(config-router)#network 192.168.1.1 0.0.0.255
R1(config-router)#exit
R1(config)#exit

路由器 R2 的配置清单:

1. 首先禁用错误命令当域名解析和禁用超时退出控制台:
R2(config)#no ip domain-loo
R2(config)#line con 0
R2(config-line)#no exec-t
R2(config-line)#exit
2. Fa0/0 端口设为全双工模式并配置 ip
R2(config)#int fa0/0
R2(config-if)#speed 100
R2(config-if)#duplex full
R2(config-if)#ip add 192.168.3.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
3. S1/2 端口配置 ip
R2(config)#int s1/2
R2(config-if)#ip add 192.168.1.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
4. 在路由器 R2 上配置 EIGRP
R2(config)#router eigrp 100
R2(config-router)#network 192.168.3.0 0.0.0.255
R2(config-router)#network 192.168.1.0 0.0.0.255
R2(config-router)#exit
R2(config)#exit

路由器 R3 的配置清单:

1. 首先禁用错误命令当域名解析和禁用超时退出控制台:
R3(config)#no ip domain-loo
R3(config)#line con 0
R3(config-line)#no exec-t
R3(config-line)#exit
2. Fa0/0 端口设为全双工模式并配置 ip
R3(config)#int fa0/0
R3(config-if)#speed 100
R3(config-if)#duplex full
R3(config-if)#ip add 172.16.0.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#exit
3. 在路由器 R3 上配置 EIGRP
R3(config)#router eigrp 100
R3(config-router)#no auto-summary
R3(config-router)#network 172.16.0.3 0.0.0.0
R3(config-router)#exit
R3(config)#exit

验证 EIGRP 配置:
查看每台路由器的邻居表: #show ip eigrp nei
R1 的邻居表:
R1#show ip eigrp nei
IP-EIGRP neighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
1   172.16.0.3              Fa0/0             11 00:00:48  168  1008  0  4
0   192.168.1.2             Se1/2             14 00:25:23  244  1464  0  3
R2 的邻居表:
R2#show ip eigrp nei
IP-EIGRP neighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
0   192.168.1.1             Se1/2             14 00:28:34  195  1755  0  5
R3 的邻居表:
R3r#show ip eigrp nei
IP-EIGRP neighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
0   172.16.0.1              Fa0/0             12 00:02:07  134   804  0  8

实验的最终结果是每台路由器之间都可以 ping 通其他的路由器,实验过程到此结束。呵呵,再次感谢导师 鑫飘雪 的耐心指导!