第一步:基本IP通讯!
R1>en
R1#conf t
Enter configuration commands, one per line.
R1(config)#int s0/0
R1(config-if)#ip add 192.168.12.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int s0/1
R1(config-if)#ip add 192.168.13.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int lo 0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#
------------------------------------------------------------------------------------------------
R2>en
R2#conf t
Enter configuration commands, one per line.
R2(config)#int s0/0
R2(config-if)#ip add 192.168.12.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#int lo 0
R2(config-if)#ip add 2.2.2.2 255.255.255.0
R2(config-if)#exit
R2(config)#
------------------------------------------------------------------------------------------------
R3>en
R3#conf t
Enter configuration commands, one per line.
R3(config)#int s0/1
R3(config-if)#ip add 192.168.13.3 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#int lo 0
R3(config-if)#ip add 3.3.3.3 255.255.255.0
R3(config-if)#exit
R3(config)#
------------------------------------------------------------------------------------------------
第二步:EIGRP宣告路由!
R1(config)#router eigrp 10
R1(config-router)#no au
R1(config-router)#net 192.168.12.0
R1(config-router)#net 192.168.13.0
R1(config-router)#net 1.1.1.0
R1(config-router)#end
R1#
-------------------------------------------------------------------------------------------------
R2(config)#router eigrp 10
R2(config-router)#no au
R2(config-router)#net 192.168.12.0
R2(config-router)#net 2.2.2.0
R2(config-router)#end
R2#
-------------------------------------------------------------------------------------------------
R3(config)#router eigrp 10
R3(config-router)#net 192.168.13.0
R3(config-router)#net 3.3.3.0
R3(config-router)#end
R3#
-------------------------------------------------------------------------------------------------
第三步:查看路由表!
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
Gateway of last resort is not set
C
C
C
D
D
R1#
-------------------------------------------------------------------------------------------------
R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
Gateway of last resort is not set
C
D
D
C
D
R2#
-------------------------------------------------------------------------------------------------
R3#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
Gateway of last resort is not set
D
D
C
D
C
D
R3#
-------------------------------------------------------------------------------------------------
第四步:查看EIGRP邻居!
R1#sh ip eigrp neighbors
IP-EIGRP neighbors for process 10
H
1
0
R1#
-------------------------------------------------------------------------------------------------
R2#sh ip eigrp neighbors
IP-EIGRP neighbors for process 10
H
0
R2#
-------------------------------------------------------------------------------------------------
R3#sh ip eigrp neighbors
IP-EIGRP neighbors for process 10
H
0
R3#
------------------------------------------------------------------------------------------------
第五步:ping测试!
R3#ping 1.1.1.1 source 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 3.3.3.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/37/48 ms
R3#
-------------------------------------------------------------------------------------------------
R3#ping 2.2.2.2 source 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 3.3.3.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/28/56 ms
R3#
-------------------------------------------------------------------------------------------------
好了,本教程也就此告一段落!我们的学习是一个循序渐进的过程!可能有的朋友会说这里面还有许多知识没涉及到啊!
我打算将在后面再为朋友们献上,等大家都有一定的基础的时候,那个时候学习起来会轻松多了!谢谢……