CCNA实验大全(4)

2019-04-04 22:38

r2(config)#router eigrp 100

r2(config-router)#network 192.168.1.0 r2(config-router)#network 172.16.0.0 4.在R3上的配置。

r3(config)#router eigrp 100 r3(config-router)#net 172.16.0.0 r3(config-router)#network 10.0.0.0 5.在R4上的配置。

r4(config)#router eigrp 100 r4(config-router)#net 10.0.0.0

6.用show ip route查看配置的路由表,进行全网互ping。 r4#show 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

D 172.16.0.0/16 [90/2681856] via 10.1.1.1, 00:00:41, Serial1/0 C 10.0.0.0/8 is directly connected, Serial1/0

D 192.168.1.0/24 [90/3193856] via 10.1.1.1, 00:00:41, Serial1/0 (D表示EIGRP) r4#ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 408/454/504 ms r1#ping 10.1.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 144/229/288 ms

十、 EIGRP的路由汇总。

错误!

R1 172.16.1.1

255.255.255.0

172.16.2.1

S1/1 A 192.168.1.1/24 S1/0 B R2 192.168.1.2/24 255.255.255.0

实验要求:使用EIGRP进行两种方式的路由汇总。

注:实现汇总有两种方式,一种是aut-summary 默认下开启,也可以再接口下实现汇总, 格式 ip summary-address eigrp <网段> <标准子网掩码> 实验步骤:

1. 基本信息的配置。 Router(config)#hostname R1 R1(config)#no ip domain-lookup R1(config)#line con 0

R1(config-line)#logging syn R1(config-line)#exec-timeout 0 R1(config)#interface s1/1 R1(config-if)#no shutdown

R1(config-if)#ip address 192.168.1.1 255.255.255. r1(config-if)#exit

r1(config)#interface loopback 0

r1(config-if)#ip address 172.16.1.1 255.255.255.0 r1(config-if)#exit

r1(config)#interface loopback 1

r1(config-if)#ip address 172.16.2.1 255.255.255.0 r1(config-if)#exit

r1(config)#router eigrp 100

r1(config-router)#net 172.16.0.0 255.255.0.0 r1(config-router)#net 192.168.1.0 Router(config)#hostname R2 R2(config)#no ip domain-lookup R2(config)#line con 0

R2(config-line)#logging syn R2(config-line)#exec-timeout 0 R2(config)#interface s1/0 R2(config-if)#no shutdown

R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#exit

R2(config)#router eigrp 100

R2(config-router)#net 192.168.1.0 2. 在R2查看路由汇总信息 r2#show 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

D 172.16.0.0/16 is directly connected, Serial1/1 (路由自动汇总) C 192.168.1.0/24 is directly connected, Serial1/0

3. 禁用路由汇总并查看R2的路由表,在R1中的s1/1上配置接口汇总。 r1(config)#router eigrp 100

r1(config-router)#no auto-summary r1(config-router)#exit

r2#show 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

172.16.0.0/24 is subnetted, 2 subnets

D 172.16.1.0 [90/2297856] via 192.168.1.1, 00:00:02, Serial1/0

D 172.16.2.0 [90/2297856] via 192.168.1.1, 00:00:02, Serial1/0 (取消路由自动汇总) C 192.168.1.0/24 is directly connected, Serial1/0

在s1/1配置接口汇总: r1(config)#interface s1/1

r1(config-if)#ip summary-address eigrp 100 172.16.0.0 255.255.0.0 4. 在R2查看路由汇总信息。 r2#show 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

D 172.16.0.0/16 is directly connected, Serial1/1 (接口设置后的路由汇总) C 192.168.1.0/24 is directly connected, Serial1/0

R1 1.1.1.1 十一、EIGRP的认证。 S1/1 S1/0 A 192.168.1.1 B 192.168.1.2 R2 3.3.3.3

实验要求:在两个接口上进行路由信息的验证。

注:认证信息中name可以不一致,但password要一致才能相互认证。直连的两台路由即使

设置了认证不一致,也能连通!认证只支持密文MD5。注意格式与RIP V2的区别, Ip authentication key-chain eigrp Ip authentication mode eigrp md5 实验步骤:

1.配置基本信息。

Router(config)#hostname R1 R1(config)#no ip domain-lookup R1(config)#line con 0

R1(config-line)#logging syn R1(config-line)#exec-timeout 0 r1(config)#router eigrp 100

r1(config-router)#network 192.168.1.0 r1(config-router)#network 1.0.0.0 R1(config)#interface s1/1 R1(config-if)#no shutdown

R1(config-if)#ip address 192.168.1.1 255.255.255 R1(config)#interface lookback 0

R1(config-if)#ip address 1.1.1.1 255.0.0.0

Router(config)#hostname R2 R2(config)#no ip domain-lookup R2(config)#line con 0

R2(config-line)#logging syn R2(config-line)#exec-timeout 0 R2(config)#router eigrp 100

R2(config-router)#network 192.168.1.0 R2(config-router)#net 3.0.0.0 R2(config)#interface s1/0

R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#no shutdown

R2(config)#interface lookback 0

R2(config-if)#ip address 3.3.3.3 255.0.0.0

2.在R1的s1/1口上配置认证信息,检测R2能否访问R1。 r1(config)#key chain ccna r1(config-keychain)#key 1

r1(config-keychain-key)#key-string 123 r1(config-keychain-key)#exi r1(config-keychain)#exi r1(config)#interface s1/1

r1(config-if)#ip authentication key-chain eigrp 100 ccna (注意格式与RIP的区别) r1(config-if)#ip authentication mode eigrp 100 md5 r1(config-if)#end

r2#ping 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: …..(不通)

Success rate is 100 percent (0/5)

3.在R2的s1/0口上配置与R1 s1/1口相同的认证信息,ping通。 R2(config)#key chain ccnp (名字可以不同) R2(config-keychain)#key 1

R2(config-keychain-key)#key-string 123 (密码一定相同) R2(config-keychain-key)#exi R2(config-keychain)#exi R2(config)#interface s1/0

R2(config-if)#ip authentication key-chain eigrp 100 ccnp R2(config-if)#ip authentication mode eigrp 100 md5 R2(config-if)#end

r2#ping 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 52/107/144 ms

十二、OSPF单区域配置。

10.1.1.255.0.0.0 192.168.1.1 255.255.255.0 S1/1 1 2 S1/0 172.16.1.1 255.255.0.0 S1/0 3 S1/1 172.16.1.2 255.255.0.0 S1/1 S1/0 4 192.168.1.1 255.255.255.0 10.1.1.1 255.0.0.0


CCNA实验大全(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2013年第三届知网杯搜索竞赛试题 (1)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: