niusouti.com

根据网络拓扑和要求说明,完成(或解释)路由器R1 的配置: R1#config R1(config)# interface FastEthernet 0/1 R1(config-if)#ip address (1) (2) R1(config-if)#no shutdown R1(config-if)#exit R1(config)#ip dhcp pool vlan 3 R1(dhcp-config)#network 192.168.3.0 255.255.255.0 R1(dhcp-config)#

题目

根据网络拓扑和要求说明,完成(或解释)路由器R1 的配置: R1#config R1(config)# interface FastEthernet 0/1 R1(config-if)#ip address (1) (2) R1(config-if)#no shutdown R1(config-if)#exit R1(config)#ip dhcp pool vlan 3 R1(dhcp-config)#network 192.168.3.0 255.255.255.0 R1(dhcp-config)#default-router 192.168.3.254 255.255.255.0 ; (3) R1(dhcp-config)#dns-server 192.168.2.1 ; (4) R1(dhcp-config)#lease 0 8 0 ; (5) R1(dhcp-config)#exit R1(config)#ip dhcp pool vlan 4 R1(dhcp-config)#network (6) (7) R1(dhcp-config)#default-router 192.168.4.254 255.255.255.0 R1(dhcp-config)#dns-server 192.168.2.1 R1(dhcp-config)#lease 0 8 0 R1(dhcp-config)#exit R1(config)#ip dhcp excluded-address (8) (9) R1(config)#ip dhcp excluded-address 192.168.3.254 //排除掉不能分配的IP 地址 R1(config)#ip dhcp excluded-address 192.168.4.254 R1(config)# (10) 192.168.3.0 255.255.255.0 FastEthernet0/1 //在以太网接口和VLAN3 间建立一条静态路由


相似考题
更多“根据网络拓扑和要求说明,完成(或解释)路由器R1 的配置: R1#config R1(config)# interface FastEthernet 0/1 R1(config-if)#ip address (1) (2) R1(config-if)#no shutdown R1(config-if)#exit R1(config)#ip dhcp pool vlan 3 R1(dhcp-config)#network 192.168.3.0 255.255.255.0 R1(dhcp-config)#d”相关问题
  • 第1题:

    阅读以下说明,回答问题1~5。

    [说明]

    某局域网通过两个路由器划分为3个子网,拓扑结构和地址分配如下图所示。

    下面是路由器R1的配置命令列表,在空白处填写合适的命令/参数,实现R1的正确配置。

    Router>en

    Router>conf term

    Router(config)hostname R1

    (1)

    R1(config-if)ip address 192.168.1.2 255.255.255.0

    R1(config-if)no shutdown

    R1(config-if)int s0

    R1(config-if)ip address(2)

    R1(config-if)no shutdown

    R1(config-if)clock rate 56000

    R1(config-if)exit

    R1(config)ip routing

    R1(config)ip route 0.0.0.0 0.0.0.0(3)

    R1(config)ip classless

    R1(config)exit

    R1copy run start


    正确答案:(1)R1(config)#int e0 (2)192.168.2.1 255.255.255.0 (3)192.168.2.2
    (1)R1(config)#int e0 (2)192.168.2.1 255.255.255.0 (3)192.168.2.2 解析:在基于IOS的路由器中,对路由器的配置也就是对I0S软件的操作。Cisco IOS软件的命令行界面CLI包括3个主模式,即用户执行模式、特权模式和配置模式。
    在用户执行模式下,用户只能发出有限的命令,这些命令对路由器的正常工作没有影响。
    在特权模式下,用户可以发出丰富的命令,以便控制和使用路由器。
    在配置模式下,用户可以创建和更改路由器的配置。
    配置模式又分为全局配置模式和多个配置子模式,如接口配置子模式、路由协议配置子模式和线路配置子模式等。
    新路由器或者删除配置文件以后的路由器启动后会提示你是否进入对话框配置模式,选择否(N)就可以进入用户执行模式。路由器各个模式的转换命令如下所示:
    Router>(用户执行模式提示符)
    Router>enable (进入特权模式命令)
    Router# (特权模式提示符)
    Router#config terminal (进入配置模式)
    Router(config)# (全局配置模式提示符)
    Router(config)#interface FastEthemet0/0 (进入接口配置子模式)
    Router(config-if)#(接口配置子模式提示符)
    Router(config-if)# exit (退出接口配置子模式)
    Router(config)# exit(退出全局配置模式,进入特权模式)
    Router# disable(退出特权模式)
    Router> (用户执行模式提示符)
    根据空白(1)处前后两个命令的提示,前面的命令是在全局配置模式,后一个命令是对接口e0的配置,所以这里应该是一条进入接口配置子模式的命令。
    在空白(2)处,根据网络拓扑结构图,路由器e0接口的地址应该是192.168.2.1 255.255.255.0。
    命令ip route destination subnet-mask next-hop [permanent]用于设置静态路由,目标地址设置为0.0.0.0 0.0.0.0表示默认路由,按照图中的拓扑结构,在空白(3)处应该填上192.168.2.2。

  • 第2题:

    某局域网通过两个路由器划分为三个子网,拓扑结构和地址分配如图1所示。

    1.以下是路由器R1的部分配置命令列表:

    Router>en

    Router>conf term

    Router (config) hostname R1

    Router (config) int e0

    R1 Router (config-if) (1)

    R1 Router (config-if) no shutdown

    R1 Router (config-if) (2)

    R1 Router (config) ip routing

    R1 Router (config) (3)

    请为空缺处(1)、(2)、(3)添加合适的命令/参数,实现R1的正确配置。

    2.以下是路由器R2的配置命令列表:

    Router>en

    Routerconf term

    Router (config) hostname R2

    R2 (config) int e0

    R2 (config-if) ip address 192.168.3.1 255.255.255.0

    R2 (config-if) no shutdown

    R2 (config-if) int s0

    R2 (config-if) ip address l92.168.2.2 255.255.255.0

    R2 (config-if) no shutdown

    R2 (config-if) (4)

    R2 (config) ip routing

    R2 (config) ip route 0.0.0.00.0.0.0 (5)

    R2 (config) ip classless

    R2 (config) exit

    R2copy run start

    请为空缺处(4)、(5)添加合适的命令/参数,实现R2的正确配置。


    正确答案:(1)ip address l92.168.1.2 255.255.255.0 (2) exit (3) ip route 0.0.0.0 192.168.2.2 (4) exit (5) 192.168.2.1
    (1)ip address l92.168.1.2 255.255.255.0 (2) exit (3) ip route 0.0.0.0 192.168.2.2 (4) exit (5) 192.168.2.1 解析:(1) 空缺处前面的命令为“R1 Router(config-if) #”,即该空缺处填写的配置语句用于为路由器R1的 e0接口配置IP地址信息,根据图1中的网络拓扑结构,知道路由器R1的e0接口的IP地址为“192.168.1.2”,这是一个C类IP地址,其默认的子网掩码是255.255.255.0,因此,空缺处应该填写的内容是 ip address 192.168.1.2 255.255.255.0。
    (2) 根据前后的语句知道,改空缺处应该填写exit。
    (3) 空缺处前面的命令为“R1 Router(config-if) #”,其作用是启动路由配置,如果没有这条命令,将导致配置的路由无效。由选项“ip router 0.0.0.0”可知,该命令用于完成某条静态路由的配置。目标地址设置为0.0.0.0,0.0.0.0表示默认路由,根据图1所示的拓扑结构可知,路由器R1到达192.168.3.0/24网段路由的下一跳地址是192.168.2.2,因此可知,空缺处所填的内容应该为ip route 0.0.0.0 192.168.2.2。
    (4) 从下一条的命令提示符即可判断,输入该命令后,即从接口配置方式退回到全局模式。
    (5) 路由器2的下一跳地址即对端路由器1的串口地址。

  • 第3题:

    【问题2】 (8分)

    根据网络拓扑和需求说明,完成(或解释)路由器R1的配置。

    R1#configure terminal ;进入全局配置模式

    R1(config)# interface ethernet0 :进入端口配置模式

    R1(confg-if)# ip address (3) (4) ;配置端口IP地址

    R1(config-if)# ipv6 nat ; (5)

    R1(config-if)#interface ethernet1

    R1(config-if)# ipv6 address (6) /64

    R1(config-if)# ipv6 nat

    R1(config) #ipv6 access-list ipv6 permit 2001:aaaa::1/64 any ; (7)

    R1(config) #ipv6 nat prefix (8)

    R1(confg) #ipv6 nat v6v4 pool ipv4-pool (9) (10) prefix-length 24

    R1(config) #ipv6 nat v6v4 source list ipv6 pool ipv4-pool

    R1(config) #exit


    正确答案:

     【问题2】(8分)

    (3)192.17.5.1

    (4)255.255.255.0

    (5)在接口上启用NAT-PT

    (6)2001:aaaa::1

    (7)指定IPv6网络中允许被转换的IPv6地址范围

    (8) 2001:aaaa:0:0:0:1::/96

    (9)16.23.31.10

    (10) 16.23.31.20

  • 第4题:

    阅读以下关于RIP动态路由配置的技术说明,结合网络拓扑图回答问题1至问题3。

    [说明]

    某大学城局域网的网络拓扑结构如图7-18所示,图中路由器R1、R2,R3均运行基于距离矢量算法的RIP路由协议,并且图中给出了路由器R1、R2、R3各端口的IP地址信息。

    结合图7-18所示的网络拓扑结构图,将以下路由器R1配置信息中(1)~(9)空缺处的内容填写完整,实现路由器R1的正确配置。

    Router>en (进入特权模式)

    Router config terminal (进入配置模式)

    Router (config) (1)

    R1 (config) no logging console

    R1 (config) interface fastethernet0/1

    R1 (config-if) ip addtess 192.168.100.1 155.255.255.0

    R1 (config-if) (2)

    (3)

    R1 (config) interface sellal 0 (进入端口S0配置子模式)

    R1 (config-if) (4) (设置当前端口IP地址)

    R1 (config-if) no shutdown

    R1 (config-if) (5)

    R1 (eonfig-if) ip address 192.168.65.2 255.255.255.0

    R1 (config-if) no shutdown

    R1 (config-if) exit (退出当前端口配置子模式)

    R1 (config) (6)

    R1 (config) (7)

    R1 (config-router) (8)

    R1 (conhg-router) network 192.168.65.0

    R1 (config-router) network 192.168.67.0

    R1 (config-router) end (退出回到特权模式)

    R1 (9) (将配置信息保存到非易失性RAM中)


    正确答案:(1)hostname R1(2)no shutdown (3)R1 (config-if)# exit(4)192.168.67.1 255.255.255.0 (5)interface serial 1(6)ip routing (7)router rip(8)network 192.168.100.0 (9)copy run start
    (1)hostname R1(2)no shutdown (3)R1 (config-if)# exit(4)192.168.67.1 255.255.255.0 (5)interface serial 1(6)ip routing (7)router rip(8)network 192.168.100.0 (9)copy run start 解析:这是一道将RIP路由协议配置与推理填空相结合的题目。其解题思路是先粗略浏览一下网络拓扑图及路由器R1已给出的配置信息;再重点推敲试题中(1)~(9)空缺处所填写的内容。以下给出题目中路由器R1所有配置命令的完全解释,其中带下划线的配置语句为所对应空缺处的答案。
    Router>enable (进入特权模式)
    Router# conf terminal (进入配置模式)
    Router (config) # hostname R1 (设置主机名为R1)
    R1 (config) # no logging console(避免大量的端口状态变化信息、报警信息影响配置过程)
    R1 (config) # interface fastethernet0/1(进入端口E0配置子模式)
    R1 (config-if)# ip address 192.168.100.1 255.255.255.0
    (设置E0端口IP地址)
    R1 (config-if) # no shutdown(激活该端口)
    R1 (config-if) # exit (退出端口配置子模式)
    R1 (config) # interface serial 0(进入端口S0配置子模式)
    R1 (config-if) #ip address 192.168.67.1 255.255.255.0
    (设置S0端口IP地址)
    R1 (config-if) # no shutdown(激活该端口)
    R1 (config-if) # interface serial 1 (进入端口S1配置子模式)
    R1 (config-if) # ip address 192.168.65.2 255.255.255.0
    (设置S1端口IP地址)
    R1 (config-if) # no shutdown(激活该端口)
    R1 (config-if) # exit (退出端口配置子模式)
    R1 (config) # ip routing(设置允许配置路由)
    R1 (config) # router rip(进入RIP协议配置子模式)
    R1 (config-router) #network 192.168.100.0 (指定与该路由器直连的网络地址信息192.168.100.0/24)
    R1 (config-router) # network 192.168.65.0 (声明与该路由器直连的网络地址信息192.168.65.0/24)
    R1 (config-router) # network 192.168.67.0 (声明与该路由器直连的网络地址信息192.168.67.0/24)
    R1 (config-router) # end(退出回到特权模式)
    R1# copy run start(将配置写入非易失性RAM中,
    否则下次启动时配置参数将丢失)

  • 第5题:

    阅读以下说明,回答问题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 Rlconfig 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) 【问题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 R2config 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 1 0 R2 (config-router)network 192.168.0.4 00.0.3 area 0 1 1 R3>enable 1 2 R3config 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的局域网,可能的原因是(12)。 (12)备选答案: A.在R3上未宣告局域网路由 B.以上配置中第7行和第13行配置错误 C.第1行配置错误 D.R1、R2未宣告直连路由. 2.在OSPF中重分布默认路由的命令是:(13)。 (13)备选答案: A.Rldefault-informaton originate B.R1(config-if)default-information originate C.R1(config-router)default-information originate D.Rl(config)default-information originate


    正确答案:【问题1】(每空1分,共11分)
    (1)192.168.7.254
    (2)202.111.1.6
    (3)255.255.255.248
    (4)range
    (5)inside
    (6)outside
    (7)0.0.15.255
    (8)source
    (9)1
    (10)ss
    (11)overload
    【问题2】(每空2分、共4分)
    (12)A
    (13)C

  • 第6题:

    阅读一下说明,回答问题1至问题4.将解答填入答题纸对应的解答栏内。 【说明】 某企业的内部子网1和内部子网2通过路由器R1与Internet互联,企业内部网络之间的互访要求采用RIP路由协议,对外的Internet接入要求采用静态路由协议,该企业网络结构和IP地址分配如图3-1所示。

    【问题1】(5分) 在对路由器进行首次设置时,通过Console端口进行连接,客户机系统为Windows XP,运行的终端仿真程序为超级终端,出现如图3-2所示的针对串口通信参数的设置,请给出正确的参数设置,以便进入路由器开始设置。 每秒位数(1),数据位(2),奇偶校验(3),停止位(4),数据流控制(5)。 (1)-(5)备选答案: A.115200 B.9600 C.4800 D.8 E.2 F.1 G.无 H.有 I.硬件 J.Xon/Xoff

    【问题2】(5分) 下面是路由器R1的基本配置信息,根据图3-1中拓扑信息,按照题目要求完成配置命令。 Router>enable Routerconfigure terminal Router(config)hostname(6) //给路由器更改名称 R1(config)interface F0/0 R1(config-if)ip addr (7) //为F0/0接口配置IP地址 R1(config-if)(8)//激活端口 R1(config-if)interface(9) R1(config-if) ip addr(10)//为F0/1接口配置IP地址 【问题3】(6分) 根据科目要求,该企业通过RIP路由协议完成子网之间的互访,同时使用静态路由接入互联网,根据图3-1中拓扑信息,根据题目要求完成路由器R1的配置命令。 …… R1(config)interface S0 R1(config-if)ip addr (11) //为S0接口配置IP地址 R1(config-if)no shutdown R1(config-if)exit R1(config)ip route (12)//配置默认路由 R1(config)(13) R1(config-router)network(14)//配置子网1参与RIP R1(config-router)network(15)//配置子网2参与RIP R1(config-router) (16)//退出至特权模式 R1 …….

    【问题4】(4分) RIP路由协议中,最大的跳数为(17),一旦超过,则意味着路径不可达。在RIP配置模式下,使用命令distance制定一个管理距离值,其有效的管理距离值为0-255,其中RIP的默认管理距离值为(18)。


    正确答案:

    【问题1】(5分)
    (1)B
    (2)D
    (3)G
    (4)F
    (5)G
    【问题2】(5分) 
    (6)R1
    (7)10.10.10.1 255.255.255.0
    (8)no shutdown
    (9)f0/1
    (10)10.10.11.1 255.255.255.0
    【问题3】(6分)
    (11)61.150.1.2 255.255.255.252
    (12)0.0.0.0 0.0.0.0 61.150.1.1
    (13)router rip
    (14)10.10.10.0
    (15)10.10.11.0
    (16)end
    【问题4】(4分)   
    (17)15
    (18)120
     


  • 第7题:

    [说明]

    某局域网通过两个路由器划分为3个子网,拓扑结构和地址分配如图5-1所示。

    [问题1] (6分)

    下面是路由器R1的配置命令列表,在空白处填写合适的命令/参数,实现R1的正确配置,

    Router>en

    Router>conf term

    Router(config)hostname Rl

    ___(1)___

    R1(config-if) ip address 192.168.1.2 255.255.255.0

    R1(config-if) no shutdown

    R1(config-if)int s0

    R1(config-if)ip address ___(2)___

    R1(config-if)no shutdown

    R1(config-if)clock rate 56000

    R1(config-if)exit

    R1(config)ip routing

    R1(config)ip route 0.0.0.0 0.0.0.0 ___(3)___

    R1(config)ip classless

    R1(config)exit

    R1copy run start

    [问题2] (3分)

    下面是路由器R2的配置命令列表,在空白处填写合适的命令参数,实现R2的正确配置。

    Router>en

    Routerconf term

    Router(config)hostname R2

    R2(config)int e0

    R2(config-if)ip address 192.168.3.1 255.255.255.0

    R2(config-i0no shutdown

    R2(config-if)int s0

    R2(config-if)ipaddress 192.168.2.2 255.255.255.0

    R2(config-if)no shutdown

    R2(config-if) ___(4)___

    R2(config)ip roudng

    R2(config) ip route 0.0.0.0 0.0.0.0 ___(5)___

    R2(config) ip classless

    R2(config) exit

    R2 copy run start

    [问题3] (2分)

    在以上配置命令列表中,命令ip routing的作用是什么

    [问题4] (2分)

    在以上配置命令列表中,命令ip classless的作用是什么

    [问题5] (2分)

    在以上配置命令列表中,命令copy run start的作用是什么


    正确答案:
    [问题1](1)R1(config)#inte0(2)192.168.2.1255.255.255.0(3)192.168.2.2[问题2](4)exit(5)192.168.2.1[问题3]配置路由器时要先使用"iprouting"设置允许配置路由,若没有这一步,将导致配置的路由无效。[问题4]"ipclassless"命令的作用是告诉路由器,当收到无法转发的包时,将其传递给默认路由,而不是简单地丢弃。[问题5]用"copyrunstart"命令将配置写入非易失性RAM(NVRAM)中,否则下次启动时配置参数将丢失。

  • 第8题:

    根据网络拓扑和需求说明,完成(或解释)路由器R1的配置。

    Router(config) ipv6 unicast-routing (3)

    Rl(config) interface Serial 1/0

    R1(config-io (4) address (5) (6) (设置串口地址)

    R1(config-if)no shutdown (开启串口)

    R1(config)interface FastEthemet0/0

    R1(config-if) (7) address (8) (设置以太口地址)

    R1(config-if)exit

    (3)


    正确答案:启动IPV6单播路由配置
    启动IPV6单播路由配置

  • 第9题:

    Whichseriesofcommands willconfigurerouterR1forLAN-to-LANcommunicationwithrouterR2?Theenterprisenetworkaddressis192.1.1.0/24andtheroutingprotocolinuseisRIP.()

    A.R1(config)#interfaceethernet0;R1(config-if)#ipaddress192.1.1.129255.255.255.192;R1(config-if)#noshutdown

    B.R1(config)#interfaceethernet0;R1(config-if)#ipaddress192.1.1.97255.255.255.192;R1(config-if)#noshutdown

    C.R1(config)#interfaceserial0;R1(config-if)#ipaddress192.1.1.4255.255.255.252;R1(config-if)#clockrate56000

    D.R1(config)#interfaceserial0;R1(config-if)#ipaddress192.1.1.6255.255.255.252;R1(config-if)#noshutdown

    E.R1(config)#routerrip;R1(config-router)#network192.1.1.4;R1(config-router)#network192.1.1.128

    F.R1(config)#routerrip;R1(config-router)#version2;R1(config-router)#network192.1.1.0


    参考答案:A, D, F

  • 第10题:

    根据网络拓扑和需求说明,完成路由器R1的配置。

    R1 (config)# interface Serial 1/0

    R1 (config-if)# ip address (3) 255.255.255..0 (设置串口地垃)

    R1 (config-if) #no shutdown (开高串口)

    R1 (config) #interface FastEthernet0/0

    R1 (config-if) #ip address (4) 255.255.255.0 (设置以太口地址)

    R1(config-if)#exit

    R1(config)#router ospf 1

    R1(config-router)#network 192.0.0.1 (5) area 0

    R1(config-router)#network 192.1.1.1 (6) area 0

    (3)


    正确答案:192.1.1.1
    192.1.1.1

  • 第11题:

    阅读以下说明,回答问题1至问题2,将解答填入答题纸对应的解答栏内。
      某公司建立局域网拓扑图如图4-1所示。公司计划使用路由器作为DHCP服务器,根据需求,公司内部使用C类地址段,服务器地址段为192.168.2.0/24,S2和S3分别为公司两个部门的接入交换机,分别配置VLAN 10和VLAN 20,地址段分别使用192.168.10.0/24
    和192.168.20.0/24,通过DHCP服务器自动为两个部门分配IP地址,地址租约期为12小时。其中,192.168.10.1 到192.168.10.10作为保留地址。



    【问题1】(10分,每空1分)下面是R1的配置代码,请将下面配置代码补充完整。
      R1#config t  R1(config)#interface FastEthernet0/0  R1(config-if)#ip address(1)(2)  R1(config-if)#no shutdown  R1(config-if)#exit  R1(config)#ip dhcp(3)depart1  R1(dhcp-config)#network 192.168.10.0 255.255.255.0  R1(dhcp-con fig)#default-router 192.168.10.254 255.255.255.0  R1(dhcp-config)#dns-server(4)  R1(dhcp-config)#lease 0(5)0R1(dhcp-config)#exit  R1(config)#ip dhcp pool depart2  R1(dhcp-config)#network(6)(7)  R1(dhcp-config)#default-router 192.168.20.254 255.255255.0  R1(dhcp-config)#dns-server 192.168.2.253  R1(dhcp-config)#lease 0 12 0  R1(dhcp-config)#exit  R1(config)#ip dhcp excluded-address(8)(9)  R1(config)#ip dhcp excluded-address(10)//排除掉不能分配的IP地址  R1(config)#ip dhcp excluded-address 192.168.20.254
    【问题2】(5分,每空1分)
    下面是S1的配置代码,请将下面配置代码或解释补充完整。
      S1#config terminal  S1(config)#interface vlan 5  S1(config-if)#ip address 192.168 . 2.254 255.255255.0  S1(config)#interface vlan 10  S1(config-if)#ip helper-address(11)//指定DHCP服务器的地址  S1(config-if)#exit  S1(config)#interface vlan 20  ...  S1(config)#interface f0/24  S1(config-if)#switchport mode(12)  S1(config-if)#switchport trunk(13)vlan all//允许所有VLAN数据通过S1(config)#interface f0/21
      S1(config-if)#switchport mode access  S1(config-if)#switchport access vlan 5  S1(config-if)#exit  S1(config)#interface f0/22  S1(config-if)#switchport mode access  S1(config-if)#switchport access(14)  S1(config)#interface f0/23  S1(config-if)#switchport mode access  S1(config-if)#switchport access(15)


    答案:
    解析:
    【问题1】(10分,每空1分)(1)192.168.1.2
    (2)255.255.255.0 (3)pool (4)192.168.2.253(5)12(6)192.168.20.0 (7)255.255.255.0 (8)192.168.10.1 (9)192.168.10.10 (10)192.168.10.254 【问题2】(5分,每空1分)(11)192.168.1.2
    (12)trunk (13)allow(14)vlan 10
    (15)vlan 20

  • 第12题:

    请问以下配置中,R1的OSPF路由器ID是什么() R1(config)#interface s0/0/0  R1(config-if)#ip add 192.168.2.1 255.255.255.252 R1(config)#int loopback 0  R1(config-if)# ip add 10.1.1.1 255.255.255.255 R1(config)#router ospf 1  R1(config-if)#network 192.168.2.0 0.0.3.255 area 0

    • A、192.168.2.1
    • B、10.1.1.1
    • C、192.168.2.0
    • D、255.255.255.255

    正确答案:B

  • 第13题:

    以下是路由器R1的部分配置。请完成配置命令。

    Rl(config)interface fastethemetO/0

    R1(config—if)ip address(12)(13)

    R1(config—if)ip nat inside

    R1(config)interface fastethernetO/1

    R1(config—if)ip address(14)(15)

    R1(config—if)ip nat outside


    正确答案:(12)10.10.10.1 (13)255.255.255.0 (14)55.23.12.98 (15)255.255.255.252
    (12)10.10.10.1 (13)255.255.255.0 (14)55.23.12.98 (15)255.255.255.252 解析:问题三中,路由器R1的配置为:
    R1(config)#interface fastethernetO/O
    R1(config—if)#ip address 10.10.10.1 255.255.255.0
    R1(eonfig—if)ip nat insideR1(config)#interface fastethemet0/1
    R1(config—if)#ip address 55.23.12.98 255.255.255.252
    R1(config—if)ip nat outside

  • 第14题:

    以下是路由器R1的部分配置,请完成其配置,或解释配置命令含义。

    !

    R1 (Config) interface fastethernet0

    R1(Config-if) ip address (6) (7)

    R1(Config-if) (8) (开启端口)

    !

    R1 (Config) interface serial 0

    R1(Config-if) ip address (9) (10)

    !

    R1 (Config) ip routing

    R1 (Config) router rip (11)

    R1 (Config-router) (12) (声明网络)

    R1 (Config-router) (13) (声明网络)

    R1 (Config-router) (14) (声明网络)

    R1 (Config-router) version 2 (15)

    !


    正确答案:(6)192.168.1.1 (7)255.255.255.0 (8)noshutdown (9)192.168.251.1 (10)255.255.255.0 (11)进入RIP配置模式 (12)network 192.168.1.0 (13)network 192.168.251.0 (14)network 192.168.253.0 (15)设置RIP协议版本2 注:(12)、(13)、(14)答案可互换
    (6)192.168.1.1 (7)255.255.255.0 (8)noshutdown (9)192.168.251.1 (10)255.255.255.0 (11)进入RIP配置模式 (12)network 192.168.1.0 (13)network 192.168.251.0 (14)network 192.168.253.0 (15)设置RIP协议版本2 注:(12)、(13)、(14)答案可互换 解析:由上图可知,路由器R1的e0的地址为192.168.1.1/24,s0的地址为192.168.251.1/24,使用network命令声明网络,分别是192.168.1.0、192.168.251.0、192.168.253.0。所以其配置应如下。
    !
    R1(Config)#interface fastethernet0
    R1(Config-if) #ip address192.168.1.1255.255.255.0
    R1(Config-if)# noshutdown (开启端口),
    !
    R1(Config)#interface serial 0
    R1(Config-if)# ip address 192.168.251.1 255.255.255.0
    !
    R1(Config)# ip routing
    R1 (Config) #router rip(进入RIP配置模式)
    R1(Config-router)# network 192.168.1.0(声明网络 192.168.1.0/24)
    R1(Config-router)# network 192.168.251.0(声明网络 192.168.251.0/24)
    R1(Config-router)# network 192.168.253.0(声明网络 192.168.253. 0/24)
    R1(Config-router) #version 2 (设置RIP协议版本2)

  • 第15题:

    一台Cisc0路由器R1的第3模块第1端口通过DDN的E1专线与一台远程路由器R2的第4模块第2端口相连,在R1的端口上封装PPP协议。为R1和R2端口分配的IP地址分别为193.42.91.201/30和193.42.91.202/30。下列R2的端口配置,正确的是( )。

    A.Router(cortfig)#interface s4/2Router(config-if)#bandwidth 2048Router(config-if)#ip address 193.42.91.202 255.255.255.252Router(config-if)#encapsulation PPPRouter(config-if)#exit

    B.Router(config)#interface a4/2Router(config-if)#bandwidth 2048Router(config-if)#ip address 193.42.91.202 255.255.255.252Router(config-if)#encapsulation PPPRouter(config-if)#exit

    C.Router(config)#interface s4/2Router(config-if)#bandwidth 2048Router(config-if)#ip address 193.42.91.201 255.255.255.252Router(config-if)#encapsulation hdleRouter(config-if)#exit

    D.Router(config)#interface a4/2Router(config-if)#bandwidth 2048Router(config-if)#ip address 193.42.91.202 255.255.255.252Router(config-if)#encapsulation hdlcRouter(config-if)#exit


    正确答案:A
    DDN专线,通常需要Serial接口连接。此外,R2的IP地址为193.42.91.202,子网掩码为30,即255.255.255.252。此外,Il2采用PPP协议。配置信息如下:Router(config)#interfaces4/2Router(config-if)#bandwidth2048(带宽为2M)Router(config-if)#ipaddress193.42.91.202255.255.255.252(设置IP地址)Router(eonfig-if)#encapsulationPPP(封装PPP协议)Router(eortfig-if)#exit因此答案选A。

  • 第16题:

    某局域网通过两个路由器划分为3个子网,拓扑结构和地址分配如图5-1所示。

    下面是路由器R1的配置命令列表,在空白处填写合适的命令/参数,实现R1的正确配置。

    Router>en

    Router>conf term

    Router(config)hostname R1 (1)

    R1(config-if)ip address 192.168.1.2 255.255.255.0

    R1(config-if)no shutdown

    R1(config-if)int s0

    R1(config-if)ip address (2)

    R1(config-if)no shutdown

    R1(config-if)clock rate 56000

    R1(config-if)exit

    R1(config)ip routing

    R1(config)ip route 0.0.0.0 0.0.0.0 (3)

    R1(config)ip classless

    R1(config)exit

    R1copy run start


    正确答案:R1(config)#int e0 192.168.2.1 255.255.255.0 192.168.2.2
    R1(config)#int e0 192.168.2.1 255.255.255.0 192.168.2.2

  • 第17题:

    阅读以下说明,回答问题1至问题2,将解答填入答题纸对应的解答栏内。 【说明】 某公司建立局域网拓扑图如图4-1所示。公司计划使用路由器作为DHCP服务器,根据需求,公司内部使用C类地址段,服务器地址段为192.168.2.0/24,S2和S3分别为公司两个部门的接入交换机,分别配置VLAN 10和VLAN 20,地址段分别使用192.168.10.0/24和192.168.20.0/24,通过DHCP服务器自动为两个部门分配IP地址,地址租约期为12小时。其中,192.168.10.1~192.168.10.10作为保留地址。图4-1

    【问题1】(10分,每空1分) 下面是R1的配置代码,请将下面配置代码补充完整。 R1config t R1 (config) interface FastEthernet0/0 R1 (config-if)ip address(1) (2) R1 (config-if)no shutdown R1 (config-if)exit R1 (config)ip dhcp(3) depart1 R1 (dhcp-config)network 192.168.10.0 255.255.255.0 R1 (dhcp-config)default-router 192.168.10.254 255.255.255.0 R1 (dhcp-config)dns-server(4) R1 (dhcp-config)lease 0 (5) 0 R1 (dhcp-config)exit R1 (config)ip dhcp pool depart2 R1 (dhcp-config) network(6) (7) R1 (dhcp-config)default-router 192.168.20.254 255.255.255.0 R1 (dhcp-config) dns-server 192.168.2.253 R1 (dhcp-config) lease 0 12 0 R1 (dhcp-config)exit R1 (config) ip dhcp excluded-address (8) (9) R1 (config) ip dhcp excluded-address(10) //排除掉不能分配的IP地址 R1 (config) ip dhcp excluded-address 192.168.20.254 ...... 【问题2】(5分,每空1分) 下面是S1的配置代码,请将下面配置代码或解释补充完整。 S1config terminal S1(config)interface vlan 5 S1(config-if)ip address 192.168.2.254 255.255.255.0 S1(config)interface vlan 10 S1(config-if)ip helper-address(11) ∥指定DHCP服务器的地址 S1(config-if)exit S1(config)interface vlan 20 ...... S1(config)interface f0/24 S1(config-if)switchport mode (12) S1(config-if) switchport trunk (13)vlan all ∥允许所有VLAN数据通过 S1(config-if)exit S1(config)interface f0/21 S1(config-if)switchport mode access S1(config-if)switchport access vlan 5 S1(config-if)exit S1(config)interface f0/22 S1(config-if)switchport mode access S1(config-if)switchport access(14) S1(config)interface f0/23 S1(config-if)switchport mode access S1(config-if)switchport access(15)


    正确答案:问题1:(每空1分,共10分)
    (1)192.168.1.2
    (2)255.255.255.0
    (3)pool
    (4)192.168.2.253
    (5)12
    (6)192.168.20.0
    (7)255.255.255.0
    (8)192.168.10.1
    (9)192.168.10.10
    (10)192.168.10.254
    问题2:(每空1分,共5分)
    (11)192.168.1.2
    (12)trunk
    (13)allowed
    (14)vlan 10
    (15)vlan 20

  • 第18题:

    某局域网通过两个路由器划分为3个子网,拓扑结构和地址分配如图5-3所示。

    以下是路由器R1的部分配置命令列表,请为(54)、(55)空缺处选择合适的命令/参数,实现R1的正确配置。

    Router(config)#hosmame R1

    R1(config)#int e0

    R1(config-if)#(54)

    R1(config-if)# no shutdown

    R1(config-if)#exit

    R1(config)#ip routing

    R1(config)#(55)

    A.ip address 192.168.2.1 255.255.255.0

    B.ip address 192.168.2.2 255.255.255.0

    C.ip address 192.168.3.1 255.255.255.0

    D.ip address 192.168.1.2 255.255.255.0


    正确答案:D

  • 第19题:

    阅读以下说明,回答问题1~3,将解答填入对应的解答栏内。

    某公司的分支机构通过一条DDN专线接入到公司总部,地址分配和拓扑结构如图5-1所示。在两台路由器之间可以使用静态路由,也可以使用动态路由。

    下面是分支机构路由器R1的配置命令列表,在空白处填写合适的命令/参数,实现R1的正确配置。

    Router>en

    Router>conf term

    Router(config)hostname R1

    Router(config)int e0

    R1(config-if)ip address (1)

    R1(config-if)no shutdown

    R1(config-if)int s0

    R1(config-if)ip address [ (2) ]

    R1(config-if)no shutdown

    R1(config-if)clock rate 56000

    R1(config-if)exit

    R1(config)ip routing

    R1(config)ip route [ (3) ]

    R1(config)ip classless

    R1(config)exit

    R1copy run start


    正确答案:(1)192.168.15.1 255.255.255.224 (2)192.168.15.1 255.255.255.252 (3)0.0.0.0 0.0.0.0 192.168.15.2或者0.0.0.0 0.0.0.0 s0
    (1)192.168.15.1 255.255.255.224 (2)192.168.15.1 255.255.255.252 (3)0.0.0.0 0.0.0.0 192.168.15.2或者0.0.0.0 0.0.0.0 s0 解析:所在命令是为R1的e0端口配置的IP地址。根据网络拓扑结构图可知,e0端口的IP地址为192.168.15.1,子网掩码长度为27,即255.255.255.224。
    空(2)所在命令是为R1的s0端口配置的IP地址。根据网络拓扑结构图可知,s0端口的IP地址为192.168.15.1,子网掩码长度为30,即255.255.255.252。
    空(3)所在的命令ip
    route的作用是设置静态路由,由于图中并没有标有公司总部的IP地址范围,只能使用缺省路由,下一跳应为路由器R2的s0端口,因此应填写“0.0.0.0
    0.0.0.0 192.168.15.2”或者“0.0.0.0 0.0.0.0 s0”。

  • 第20题:

    Refer to the exhibit. Router R1 is being used as a relay device for autoconfiguration of switch S1.Which configuration will acc omplish this? ()

    A.S1(config)# interface fastethernet 0/1S1(config - if)# ip helper - address 10.0.0.2

    B.S1(config)# interface fastethernet 0/1 S1(config - if)# ip helper - address 20.0.0.1

    C.R1(config)# interface fastethernet 0/0 R1(config - if)# ip help er - address 20.0.0.2R 1(config - if)# ip helper - address 20.0.0.3 R1(config - if)# ip helper - address 20.0.0.4 R1(config - if)# exit R1(config)# interface fastethernet 0/1 R1(config - if)# ip helper - address 10.0.0.1

    D.R1(config)# interface fastethernet 0/0 R1 (config - if)# ip helper - address 20.0.0.1 R2(config)# interface fastethernet 0/0 R2(config - if)# ip helper - address 20.0.0.1 R3(config)# interface fastethernet 0/0 R3(config - if)# ip helper - address 20.0.0.1 R4(config)# interface fastethernet 0/0 R4(config - if)# ip helper - address 20.0.0.1

    E.S1(config)# interface fastethernet 0/1 S1(config - if)# ip helper - address 10.0.0.2 R2(config)# interface fastethernet 0/0 R2(config - if)# ip helper - address 20.0.0.1 R3(config)# interface fastethernet 0/0 R3(config - if) # ip helper - address 20.0.0.1 R4(config)# interface fastethernet 0/0 R4(config - if)# ip helper - address 20.0.0.1


    参考答案:C

  • 第21题:

    ● (57)能够显示路由器配置了哪种路由协议

    (57)

    A. R1 (config)# show ip route

    B. R1 > show ip route

    C. R1 >show ip protocol

    D. R1 (config-if)# show ip protocol


    正确答案:C

  • 第22题:

    某单位的办公网和商务网通过路由器R1、R2、R3与Internet相连,网络连接和IP地址分配如图1所示。该单位要求通过RIP路由协议使办公网和商务网之间能够互相通信,并正常访问Internet

    请阅读以下R1的配置信息,并补充【6】~【10】空白处的配置命令或参数。按题目要求完成R1的正确配置。

    Router>enable

    Router

    Routerconfigure terminal

    Router(config)

    Router(config)hostname R1

    R1(config)interface f0/1

    R1(config-if)ip address 202.206.16.1 255.255.255.0

    R1(config-if)no shutdown

    R1(config-if)interfacef0/2

    R1(config-if)ip adress 202.206.17.1 255.255.255.0

    R1(config-if)no shutdown

    R1(config-if)exit

    R1(config)

    R1(config)interface s1

    R1(config-if)vlan ip adress 202.112.41.144 255.255.255.252

    R1(config-if)bandwidth 【6】 配置带宽为2.048Mbps

    R1(config-if)【7】 PPP 封装PPP协议

    R1(config-if)noshutdown

    R1(config-if)exit

    R1(config-if)iproute 【8】 配置缺省路由

    R1(config-if)router rip

    R1(config-router)network 【9】 配置参与RIP的网络

    R1(config-router)network 【10】 配置参与RIP的网络

    R1(config-router)end

    R1write

    R1


    正确答案:
    答案:【6】2048【7】encapsulation【8】0.0.0.00.0.0.0202.112.41.143【9】202.206.16.0【10】202.206.17.0

  • 第23题:

    You administer a network that uses two routers, R1 and R2, configured as an HSRP group to  provide redundancy for the gateway. Router R1 is the active router and has been configured as  follows:   R1#configure terminal   R1(config)#interface fa0/0   R1(config-if)#ip address 10.10.0.5 255.255.255.0   R1(config-if)#standby 1 priority 150   R1(config-if)#standby preempt delay minimum 50   R1(config-if)#standby 1 track interface fa0/2 15   R1(config-if)#standby 1 ip 10.10.0.20   Which of the following describes the effect the standby preempt delay minimum 50 command will  have on router R1?()

    • A、 The HSRP priority for router R1 will increase to 200.
    • B、 Router R1 will become the standby router if the priority drops below 50.
    • C、 The HSRP priority for router R1 will decrease to 50 points when Fa0/2 goes down.  
    • D、 Router R1 will wait 50 seconds before attempting to preempt the active router.

    正确答案:D