试题四(共 15 分)
阅读以下说明,回答问题 1 和问题 2,将解答填入答题纸对应的解答栏内。 【说明】
某公司有 3 个分支机构,网络拓扑结构及地址分配如图 4-1 所示。 【问题 1】(每空 1 分,共 11 分)
公司申请到 202.111.1.0/29 的公有地址段,采用 NAPT 技术实现公司内部访问互联网的要求,其中,192.168.16.0/22 网段禁止访问互联网。 R1、R2 和 R3 的基本配置已正确配置完成,其中 R1 的配置如下。请根据拓扑结构,完成下列配置代码。 R1 的基本配置及 NAPT 配置如下: R1>enable Rl#config tenrunal
R1(config)#interface fastenthemet 0/0
R1(config-if)#ip address 192.168.0.1 255.255.255.252 R1(config-if)#no shutdown Rl(config-if)#exit
R1(config)#interface fastenthemet 0/1
R1(config-if)#ip address 192.168.0.9 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#exit
R1(config)#interface fastenthernet 0/2
R1(config-if)#ip address( ) 255.255.252.0 //使用网段中最后一个地址 R1(config-if)#no shutdown R1(config-if)#exit
R1(config)#interface serial 0
R1(config-if)#ip address 202.111.1.1 255.255.255.248 R1(config-if)#no shutdown
R1(corffig)#ip nat pool ss 202.111.1.1( )netmask( ) R1(corffig)# interface( )fastenthernet 0/0-1 R1(config-if)#ip nat( ) R1(config-if)#interface serial 0 Rl(config-if)#ip nat( ) R1(config-if)#exit
R1(config)#access-Iist l permit 192.168.0.0( ) Rl(config)#ip nat inside( )list( )pool( )( ) 【问题 2】.(每空 2 分,共 4 分)
在 R1、R2 和 R3 之间运行 OSPF 路由协议,其中 R1、R2 和 R3 的配置如下。 行号 1 配置代码
R1(config)#router ospf 1
2 3 4
R1(config-router)#network 192.168.4.0 0.0.3.255 area 0 Rl(config-router)#network 192.168.0.0 0.0.0.3 area 0 Rl(config-router)#network 192.168.0.8 0.0.0.3 area 0 5 6 7 8 9
R2>enable R2#config terminal R2(config)#router ospf 2
R2(config-router)#netvrork 192.168.8.0 0.0.3.255 area 0 R2 (config-router)#network 192.168.12.0 0.0.3.255 area 0 1 0 R2 (config-router)#network 192.168.0.4 00.0.3 area 0 1 1 R3>enable
1 2 R3#config terminal 1 3 R3(config)#router ospf 3
1 4 R3(config-router)#netvrork 192168.0.8 00.0.3 area 0 1 5 R3(config-router)#network 192.168.0.4 0.0.0.3 area 0
1.配置完成后,在 R1 和 R2 上均无法 ping 通 R3 的局域网,可能的原因是( )( )备选答案:
A.在 R3 上未宣告局域网路由
B.以上配置中第 7 行和第 13 行配置错误 C.第 1 行配置错误
D.R1、R2 未宣告直连路由.
2.在 OSPF 中重分布默认路由的命令是:( ) ( )备选答案:
A.Rl#default-informaton originate
B. R1(config-if)#default-information originate C.R1(config-router)#default-information originate D.Rl(config)#default-information originate