cisco高级路由综合练习题

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

《高级路由技术》综合测试题实验拓扑结构如下图所示,请按要求完成实验:

1.路由器各端口的IP分配如下(掩码长度均为24位):

2.运行路由协议的接口划分:

3.实验要求:

(1)按照要求配置路由器各个端口的IP地址,保证直连链路通。

(2)配置OSPF路由协议,保证OSPF各区域路由正常;

R1(config)#router ospf 110 注意:进程号是cisco的私有技术

R1(config-router)#network 1.1.1.0 0.0.0.255 area 0 (正/反掩码皆可)

R1(config-router)#network 12.1.1.0 255.255.255.0 area 0

①将区域2配置成nssa区域;

router ospf 110

area 2 nssa

area 2 nssa default-information-originate

注意:NSSA区域不会自动产生默认路由,要手动下发一条

②区域0需要MD5认证,密码为cisco;区域2需要简单口令认证,密码ccna

第一步:进程下启用

router ospf 110

area 0 authentication Message-digest //启动密文认证

第二步:接口下配密码

int s1/0

ip ospf message-digest-key 1 md5 cisco //配密文密码

③R1的s0/0的hello interval 设置为5秒,dead-interval设置为20秒

④控制DR选举,使得R2没有机会成为DR.

R1(config-if)#ip ospf hello-interval 5

R1(config-if)#ip ospf dead-interval 20

R2(config-if)#ip ospf priority 0 修改优先级

(3)配置RIP V2路由协议,KEYCHAIN名字为CCIE,路由器R1和R5采用MD5验证,key的ID为1,密码为cisco,路由器R4和R6采用明文验证,密码是cisco。

key chain CCIE //本地有效

key 1 //建议两端一致

key-string cisco

int s0

ip rip authentication key-chain CCIE

int s0

ip rip authentication mode [md5|text]

R1#show key chain

R1#debug ip rip

(4)配置EIGRP路由协议,采用MD5验证,KEYCHAIN名字为EI,,key的ID为1,密码为cisco,并且关闭自动汇总。

R2(config)#router eigrp 90

R2(config-router)#network 192.23.1.0 0.0.0.255

R2(config-router)#network 3.3.0.0 255.255.0.0(正/反掩码皆可)

key chain EI

key 1 (两端一致)

key-string cisco

int s0/1

ip authentication key-chain eigrp 90 EI //在接口下指定使用哪个密码库

ip authentication mode eigrp 90 md5 //开启认证

(5)R1和R5配置EBGP路由协议,用环回接口做更新源,通告R5的L50和L55。在路由器R1上配置BGP属性,使得:

A: L50的as-path属性追加300 400 500

R1(config)#access-list 50 permit 50.50.50.50

R1(config)#route-map bgp

R1(config-route-map)#match ip address 50

R1(config-route-map)#set as-path prepend 300 400 500

R1(config-route-map)#set local-preference 2000

B: L55的起源为EGP 600

R1(config)#access-list 55 permit 55.55.55.55

R1(config)#route-map bgp

R1(config-route-map)#match ip address 55

R1(config-route-map)#set origin egp 600

C:L50的local-preference值为2000

(6)在R1上向OSPF网络注入一条默认路由,并将OSPF网络重分布到BGP中,为了确保网络的畅通,请在R5上配置一条指向192.15.1.1的默认路由。

R1(config)#router ospf 1

R1(config-router)#router-id 1.1.1.1

R1(config-router)#default-information originate always 强制下发默认路由

R1(config)#router bgp 100

R1(config-router)#redistribute ospf 1

R1(config-router)#default-metric 3

R1(config-router)#redistribute connected

R1(config-router)#redistribute static

R5(config)#ip route 0.0.0.0 0.0.0.0 192.15.1.1

(7)在路由器R2上执行EIGRP和OSPF的双向重分布:

①将EIGRP路由重分布到OSPF时,用route-map实现,第三位为奇数的路由条目,类型为1,度量值为130,第三位为偶数的路由条目,类型为2,度量值为50,其他路由条目采用默认,不做控制。

相关文档
最新文档