书城教材教辅组网技术实训
22843800000010

第10章 项目4EIGRP路由(2)

Current configuration:452bytes

Version12.2

no serVice passWord-encryption

hostname Router1

enable passWord cisco

ip ssh Version1

interface FastEthernet0/0

ip address10.1.1.1255.255.255.0

duplex auto

speed auto

interface FastEthernet0/1

ip address172.16.0.1255.255.255.0

duplex auto

speed auto

router eigrp100

netWork10.1.1.00.0.0.255

netWork172.16.0.00.0.0.255

auto-summary

ip classless

line con0

line Vty04

login!

end

Router1#

(2)对于Router2,进行下面配置:

(下面是Router2的路由部分的配置,其基本配置省略。)

Router2(config)#router eigrp100//同一个AS中,AS号100必须相同

Router2(config-router)#netWork172.16.0.0?

A.B.C.D EIGRP Wild card bits//注意是通配符掩码

< cr>

Router2(config-router)#netWork172.16.0.00.0.0.255 ?

< cr>

Router2(config-router)#netWork172.16.0.00.0.0.255

Router2(config-router)#netWork192.168.2.00.0.0.255

Router2(config-router)#^ Z

%SYS-5-CONFIG_I:Configured from console by console

Router2#

查看Router2的运行配置:

Router2#shoW running-config

Building configuration...

Current configuration:448 bytes

Version12.2

no serVice passWord-encryption

hostname Router2

enable passWord cisco

ip ssh Version1

interface FastEthernet0/0

ip address192.168.2.1255.255.255.0

duplex auto

speed auto

interface FastEthernet0/1

ip address172.16.0.2255.255.255.0

duplex auto

speed auto

router eigrp100

netWork172.16.0.00.0.0.255

netWork192.168.2.00.0.0.255

auto-summary

ip classless

line con0

line Vty04

login

end

Router2#

可以看出Router1、Router2都已经配置好,现在使用下面命令逐项查看EIGRP协议配置信息:

Router#shoW ip route//显示整个路由表

Router#shoW ip protocols//查看配置的路由协议

Router#shoW ip eigrp interface//查看启用IPEIGRP接口

Router#shoW ip eigrp neighbors//显示所有EIGRP邻居

Router#shoW ip eigrp topology//显示EIGRP拓扑表中的项目

Router2#shoW ip route

Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRP external,O-OSPF,IA-OSPF inter area

N1-OSPF NSSA external type1,N2-OSPF NSSA external type2

E1-OSPF external type1,E2-OSPF external type2,E-EGP

i-IS-IS,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

D10.0.0.0/8[90/30720] Via172.16.0.1,00:10:07,FastEthernet0/1

172.16.0.0/16is Variably subnetted,2subnets,2masks

D172.16.0.0/16is a summary,00:21:51,Null0

C172.16.0.0/24is directly connected,FastEthernet0/1

C192.168.2.0/24is directly connected,FastEthernet0/0

Router2#

Router1#shoW ip route

Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRP external,O-OSPF,IA-OSPF inter area

N1-OSPF NSSA external type1,N2-OSPF NSSA external type2

E1-OSPF external type1,E2-OSPF external type2,E-EGP

i-IS-IS,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