EIGRP 基本配置实验
- 格式:doc
- 大小:62.00 KB
- 文档页数:9
EIGRP 实验 --董老师指导
1.基本配置
R1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line con
Router(config)#line console 0
Router(config-line)#no ex
Router(config-line)#no exec-t
Router(config-line)#no exec-timeout
Router(config-line)#EXIT
Router(config)#no ip do
Router(config)#no ip domain look
Router(config)#no ip domain lookup
Router(config)#int s1/0
Router(config-if)#ip add
Router(config-if)#ip address 172.16.12.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#int lo0
Router(config-if)#ip add 1.1.1.1 255.255.255.0
Router(config-if)#no shut
Router#show ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Serial1/0 172.16.12.1 YES manual up down
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down down
Loopback0 1.1.1.1 YES manual up up
R2
Router>en
Router#conf t Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s1/1
Router(config-if)#ip address 192.168.23.2 255.255.255.0
Router(config-if)#no shut
Router(config)#int s1/0
Router(config-if)#ip add 172.16.12.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#do show ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Serial1/0 172.16.12.2 YES manual up up
Serial1/1 192.168.23.2 YES manual up up
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down down
R3
Router>en
Router#conf t
Router(config)#int s1/0
Router(config-if)#ip address 192.168.23.3 255.255.255.0
Router(config-if)#no shut
Router(config-if)#int lo0
Router(config-if)#ip address 3.3.3.3 255.255.255.0
Router(config-if)#no shut
2.能ping通直连
R1
Router#ping 172.16.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/47/104 ms
Router#
R2
Router#ping 172.16.12.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/30/60 ms
Router#ping 192.168.23.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.23.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/57/140 ms
Router#
3.配route协议
R1
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router eigrp 90
Router(config-router)#no auto-summary
4.修改metric值
Router(config-router)#metric weights 0 0 1 1 1 1
5.精确宣告
Router(config-router)#network 1.1.1.1 0.0.0.0
Router(config-router)#network 172.16.12.1 0.0.0.0
R2配置
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router eigrp 90
Router(config-router)#no auto-summary
6.排错,r2上宣告时报错
Router(config-router)#network 172.16.12.2 0.0.0.0
Router(config-router)#
*Mar 1 00:24:31.143: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 172.16.12.1 (Serial1/0)
is down: Interface Goodbye received
*Mar 1 00:24:35.435: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 172.16.12.1 (Serial1/0)
is down: Interface Goodbye received
*Mar 1 00:24:39.747: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 172.16.12.1 (Serial1/0)
is down: K-value mismatch
*Mar 1 00:24:44.011: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 172.16.12.1 (Serial1/0)
is down: K-value mismatch
*Mar 1 00:24:48.323: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 172.16.12.1 (Serial1/0)
is down: K-value mismatch
原因: K值不一致邻居起不来,解决办法: 在r1上将metric值改回来。
R1
Router(config-router)#router eigrp 90
Router(config-router)#
*Mar 1 00:28:51.499: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 172.16.12.2 (Serial1/0)
is down: K-value mismatch
*Mar 1 00:28:56.155: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 172.16.12.2 (Serial1/0)
is down: K-value mismatch
*Mar 1 00:29:00.603: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 172.16.12.2 (Serial1/0)
is down: K-value mismatch