作者:網絡白領 實驗指導:鑫飄雪
實驗環境說明:
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
SW1(config-if)#sw acc vlan 2
SW1(config-if)#exit
4.將Fa1/15端口設爲全雙工模式,並劃入VLAN2:
SW1(config)#int fa1/15
SW1(config-if)#speed 100
SW1(config-if)#duplex full
SW1(config-if)#sw acc vlan 2
SW1(config-if)#exit
5.將Fa1/14端口設爲全雙工模式,並劃入VLAN3:
SW1(config)#int fa1/14
SW1(config-if)#speed 100
SW1(config-if)#duplex full
SW1(config-if)#sw acc vlan 3
SW1(config-if)#exit
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 0.0.0.0
R1(config-router)#network 192.168.1.1 0.0.0.255
R1(config-router)#exit
R1(config)#exit
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
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
查看每臺路由器的鄰居表:#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