CCNA视频:EIGRP专题实验1:EIGRP基本配置和常用show命令复习

wKioL1T2shbgKS_gAADwIvZJfx4369.jpg

实验配置:

1:配置接口地址

R1(config)#interfa0/0

R1(config-if)#ipadd 192.168.12.1 255.255.255.0

R1(config-if)#noshut

R1(config-if)#interlo 0

R1(config-if)#ipadd 10.1.0.1 255.255.255.0

R1(config-if)#interlo 1

R1(config-if)#ipadd 10.1.1.1 255.255.255.0

 

R2(config)#interfa0/0

R2(config-if)#ipadd 192.168.12.2 255.255.255.0

R2(config-if)#noshut

R2(config-if)#inters1/1

R2(config-if)#ipadd 192.168.23.1 255.255.255.0

R2(config-if)#noshut

R2(config-if)#interlo 0

R2(config-if)#ipadd 172.16.0.1 255.255.255.0

R2(config-if)#interlo 1

R2(config-if)#ipadd 172.16.1.1 255.255.255.0

 

R3(config)#inters1/0

R3(config-if)#ipadd 192.168.23.2 255.255.255.0

R3(config-if)#noshut

R3(config-if)#interlo 0

R3(config-if)#ipadd 192.168.0.1 255.255.255.0

R3(config-if)#interlo 1

R3(config-if)#ipadd 192.168.1.1 255.255.255.0

 

2:配置EIGRP

R1(config-if)#do show ip inter bri

Interface                  IP-Address      OK? Method Status                Protocol

FastEthernet0/0            192.168.12.1    YES manual up                    up     

Serial1/0                  unassigned      YES unset administratively down 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                  10.1.0.1        YES manual up                    up     

Loopback1                  10.1.1.1        YES manual up                    up     

 

R1(config-if)#do ping 192.168.12.2

Typeescape sequence to abort.

Sending5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:

.!!!!

Successrate is 80 percent (4/5), round-trip min/avg/max = 80/127/152 ms

 

R1(config)#routereigrp 100

R1(config-router)#noauto-summary

R1(config-router)#network192.168.12.0

R1(config-router)#network10.0.0.0

 

R1(config)#routereigrp 100

R1(config-router)#nonet 10.0.0.0

R1(config-router)#net10.1.0.0

R1(config-router)#

R1(config-router)#do show run | section router eigrp 100

routereigrp 100

 network 10.0.0.0

 network 192.168.12.0

 no auto-summary

 

R2(config)#routereigrp 100

R2(config-router)#noauto-summary

R2(config-router)#net192.168.12.0

R2(config-router)#net192.168.23.0

R2(config-router)#net172.16.0.0 0.0.0.255

R2(config-router)#net172.16.1.0 0.0.0.255

 

R2(config)#routereigrp 100

R2(config-router)#nonet 172.16.1.0 0.0.0.255

R2(config-router)#net172.16.1.0 255.255.255.0

R2(config-router)#do show run | section router eigrp 100

routereigrp 100

 network 172.16.0.0 0.0.0.255

 network 172.16.1.0 0.0.0.255

 network 192.168.12.0

 network 192.168.23.0

 no auto-summary

 

 

 

R3(config)#routereigrp 100

R3(config-router)#eigrprouter-id 3.3.3.3

R3(config-router)#noauto-summary

R3(config-router)#net192.168.23.0

R3(config-router)#net192.168.0.0

R3(config-router)#net192.168.1.0

 

其它配置方法:(下面的三种配置方法,show run的结果是一样的)

R2(config)#routereigrp 100

R2(config-router)#noauto-summary

R2(config-router)#net0.0.0.0

 

R2(config)#routerei 100

R2(config-router)#noauto-summary

R2(config-router)#net0.0.0.0 255.255.255.255

 

R2(config)#routerei 100

R2(config-router)#noauto-summary

R2(config-router)#net0.0.0.0 0.0.0.0

 

此种配置方法的问题:

 

1:会把本地所有接口通告出去

 

2:如果本地存在出口配置的静态默认路由,也会被通告给邻居

 

R2(config)#iproute 0.0.0.0 0.0.0.0 s1/1  (只能是出口配置的静态路由)

 

R1#show ip route eigrp

     172.16.0.0/24 is subnetted, 2 subnets

D       172.16.0.0 [90/156160] via 192.168.12.2,00:03:17, FastEthernet0/0

D       172.16.1.0 [90/156160] via 192.168.12.2,00:03:17, FastEthernet0/0

D    192.168.23.0/24 [90/2172416] via192.168.12.2, 00:03:17, FastEthernet0/0

D    192.168.0.0/24 [90/2300416] via192.168.12.2, 00:03:17, FastEthernet0/0

D    192.168.1.0/24 [90/2300416] via192.168.12.2, 00:03:17, FastEthernet0/0

D*   0.0.0.0/0 [90/2172416] via 192.168.12.2,00:00:17, FastEthernet0/0

 

3:查看动态路由协议的运行

R2#show ip protocols

RoutingProtocol is "eigrp 100"

  Outgoing update filter list for allinterfaces is not set

  Incoming update filter list for allinterfaces is not set

  Default networks flagged in outgoing updates

  Default networks accepted from incomingupdates

  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0

  EIGRP maximum hopcount 100

  EIGRP maximum metric variance 1

  Redistributing: eigrp 100

  EIGRP NSF-aware route hold timer is 240s

  Automatic network summarization is not in effect

  Maximum path: 4

  Routing for Networks:

    0.0.0.0

  Routing Information Sources:

    Gateway         Distance      Last Update

    192.168.12.1          90      00:05:19

    192.168.23.2          90      00:05:19

  Distance: internal 90 external 170

 

4:查看EIGRP邻居表

R2#show ip eigrp neighbors

IP-EIGRPneighbors for process 100

H   Address                 Interface       Hold Uptime   SRTT  RTO  Q  Seq

                                           (sec)         (ms)       Cnt Num

1   192.168.23.2            Se1/1             14 00:04:17   55  330  0  55

0   192.168.12.1            Fa0/0             14 00:04:17   87  522  0  63

 

5:查看EIGRP拓扑表

R2#show ip eigrp topology

IP-EIGRPTopology Table for AS(100)/ID(172.16.1.1)

 

Codes:P - Passive, A - Active, U - Update, Q - Query, R - Reply,

       r - reply Status, s - sia Status

 

P0.0.0.0/0, 1 successors, FD is 2169856

        via Rstatic (2169856/0)

P10.1.1.0/24, 1 successors, FD is 156160

        via 192.168.12.1 (156160/128256),FastEthernet0/0

P10.1.0.0/24, 1 successors, FD is 156160

        via 192.168.12.1 (156160/128256),FastEthernet0/0

P192.168.12.0/24, 1 successors, FD is 28160

        via Connected, FastEthernet0/0

P192.168.0.0/24, 1 successors, FD is 2297856

        via 192.168.23.2 (2297856/128256),Serial1/1

P192.168.1.0/24, 1 successors, FD is 2297856

        via 192.168.23.2 (2297856/128256),Serial1/1

P192.168.23.0/24, 1 successors, FD is 2169856

        via Connected, Serial1/1

P172.16.0.0/24, 1 successors, FD is 128256

        via Connected, Loopback0

P172.16.1.0/24, 1 successors, FD is 128256

        via Connected, Loopback1

 

 

6:查看EIGRP路由表

R2#show ip route eigrp

     10.0.0.0/24 is subnetted, 2 subnets

D       10.1.1.0 [90/156160] via 192.168.12.1,00:05:05, FastEthernet0/0

D       10.1.0.0 [90/156160] via 192.168.12.1,00:05:05, FastEthernet0/0

D    192.168.0.0/24 [90/2297856] via192.168.23.2, 00:05:04, Serial1/1

D    192.168.1.0/24 [90/2297856] via192.168.23.2, 00:05:04, Serial1/1


本文出自 “思科技术交流” 博客,转载请与作者联系!

你可能感兴趣的:(CCNA视频教程,CCNA视频,晁海江,思科CCNA,苏州VUE)