问答题
试题四(共 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(1) 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(2 )netmask(3 )
R1(corffig)# interface(4 )fastenthernet 0/0-1 R1(config-if)#ip nat(5 )
R1(config-if)#interface serial 0
Rl(config-if)#ip nat(6 )
R1(config-if)#exit
R1(config)#access-Iist l permit 192.168.0.0(7 )
Rl(config)#ip nat inside(8 )list(9 )pool(10 )(11 )
【正确答案】(1) 192.168.7.254
(2) 202.111.1.6
(3) 255.255.255.248
(4) range
(5) inside
(6) ouside
(7) 0.0.15.255
(8) source
(9) 1
(10) ss
(11) overlead
【答案解析】
问答题
【问题 2】.(每空 2 分,共 4 分)
在 R1、R2 和 R3 之间运行 OSPF 路由协议,其中 R1、R2 和 R3 的配置如下。
行号 配置代码
1 R1(config)#router ospf 1
2 R1(config-router)#network 192.168.4.0 0.0.3.255 area 0
3 Rl(config-router)#network 192.168.0.0 0.0.0.3 area 0
4 Rl(config-router)#network 192.168.0.8 0.0.0.3 area 0
5 R2>enable
6 R2#config terminal
7 R2(config)#router ospf 2
8 R2(config-router)#netvrork 192.168.8.0 0.0.3.255 area 0
9 R2 (config-router)#network 192.168.12.0 0.0.3.255 area 0
10 R2 (config-router)#network 192.168.0.4 00.0.3 area 0
11 R3>enable
12 R3#config terminal
13 R3(config)#router ospf 3
14 R3(config-router)#netvrork 192168.0.8 00.0.3 area 0
15 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