第四篇:EIGRP路由!_CCNA

 -----------------------------------------------------------------------------------------------

第一步:基本IP通讯!

R1>en
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
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.  End with CNTL/Z.
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.  End with CNTL/Z.
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              -------10代表AS号,所有必须一致,否则学习不到路由信息的!
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
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

   192.168.12.0/24 is directly connected, Serial0/0
     1.0.0.0/24 is subnetted, 1 subnets
      1.1.1.0 is directly connected, Loopback0
   192.168.13.0/24 is directly connected, Serial0/1
     2.0.0.0/24 is subnetted, 1 subnets
      2.2.2.0 [90/2297856] via 192.168.12.2, 00:03:51, Serial0/0
   3.0.0.0/8 [90/2297856] via 192.168.13.3, 00:03:30, Serial0/1
R1#

-------------------------------------------------------------------------------------------------
R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

   192.168.12.0/24 is directly connected, Serial0/0
     1.0.0.0/24 is subnetted, 1 subnets
      1.1.1.0 [90/2297856] via 192.168.12.1, 00:03:58, Serial0/0
   192.168.13.0/24 [90/2681856] via 192.168.12.1, 00:03:58, Serial0/0
     2.0.0.0/24 is subnetted, 1 subnets
      2.2.2.0 is directly connected, Loopback0
   3.0.0.0/8 [90/2809856] via 192.168.12.1, 00:03:35, Serial0/0
R2#

-------------------------------------------------------------------------------------------------
R3#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

   192.168.12.0/24 [90/2681856] via 192.168.13.1, 00:03:42, Serial0/1
     1.0.0.0/24 is subnetted, 1 subnets
      1.1.1.0 [90/2297856] via 192.168.13.1, 00:03:42, Serial0/1
   192.168.13.0/24 is directly connected, Serial0/1
     2.0.0.0/24 is subnetted, 1 subnets
      2.2.2.0 [90/2809856] via 192.168.13.1, 00:03:42, Serial0/1
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
      3.3.3.0/24 is directly connected, Loopback0
      3.0.0.0/8 is a summary, 00:03:39, Null0
R3#

-------------------------------------------------------------------------------------------------

第四步:查看EIGRP邻居!

R1#sh ip eigrp neighbors
IP-EIGRP neighbors for process 10
  Address                 Interface       Hold Uptime   SRTT   RTO  Seq
                                            (sec)         (ms)       Cnt Num
  192.168.13.3            Se0/1             13 00:05:20  100   600  3
  192.168.12.2            Se0/0             11 00:05:42   55   330  4
R1#

-------------------------------------------------------------------------------------------------
R2#sh ip eigrp neighbors
IP-EIGRP neighbors for process 10
  Address                 Interface       Hold Uptime   SRTT   RTO  Seq
                                            (sec)         (ms)       Cnt Num
  192.168.12.1            Se0/0             12 00:05:31   56   336  5
R2#

-------------------------------------------------------------------------------------------------
R3#sh ip eigrp neighbors
IP-EIGRP neighbors for process 10
  Address                 Interface       Hold Uptime   SRTT   RTO  Seq
                                            (sec)         (ms)       Cnt Num
  192.168.13.1            Se0/1             12 00:05:03  460  2760  4
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#

-------------------------------------------------------------------------------------------------

好了,本教程也就此告一段落!我们的学习是一个循序渐进的过程!可能有的朋友会说这里面还有许多知识没涉及到啊!

我打算将在后面再为朋友们献上,等大家都有一定的基础的时候,那个时候学习起来会轻松多了!谢谢……

          在这里祝大家:学习愉快!