【单选题】管理员用如下命令在路由器上配置了DHCP服务器: ip pool pool 1 network 10.10.10.0 mask 255.255.255.0 gateway-list in in 10.1 同时管理员希望给DHCP地址指定一个较短的租期,请问应该使用如下哪条命令?A.dhcp select relayB.lease day 1C.lease day 24D.lease week 1
【单选题】管理员用如下命令在路由器上配置了DHCP服务器: ip pool pool 1 network 10.10.10.0 mask 255.255.255.0 gateway-list in in 10.1 同时管理员希望给DHCP地址指定一个较短的租期,请问应该使用如下哪条命令?
A.dhcp select relay
B.lease day 1
C.lease day 24
D.lease week 1
参考答案和解析
C
相关考题:
在Cisco路由器上建立一个名为zw246的DHCP地址池,地址池的IP地址是176.115.246.0/24,其中不用于动态分配的地址有176.115.246.2~176.115.246.10,缺省网关为176.115.246.1,域名为tj.edu.cn,域名服务器地址为176.115.129.26,地址租用时间设定为6小时30分钟。下列DHCP地址池的配置,正确的是A)Router (config)#ip dhcp pool zw246Router (dhcp-config)#ip dhcp excluded-address 176.115.246.2 176.115.246.10Router (dhcp-config)#network 176.115.246.0 255.255.255.0Router (dhcp-config)#default-router 176.115.246.1Router (dhcp-config)#domain-name tj.edu.cnRouter (dhcp-config)#dns-server address 176.115.129.26Router (dhcp-config)#lease 0 6 30B)Router (config)#ip dhcp excluded-address 176.115.246.2-10Router (config)#ip dhcp pool zw246Router (dhcp-config)#network 176.115.246.0 255.255.255.0Router (dhcp-config)#default-router 176.115.246.1Router (dhcp-config)#domain-name tj.edu.cnRouter (dhcp-config)#dns-server address 176.115.129.26Router (dhcp-config)#lease 0 6 30C)Router (config)#ip dhcp excluded-address 176.115.246.2 176.115.246.10Router (config)#ip dhcp pool zw246Router (dhcp-config)#network 176.115.246.0 255.255.255.0Router (dhcp-config)#default-router 176.115.246.1Router (dhcp-config)#domain-name tj.edu.cnRouter (dhcp-config)#dns-server address 176.115.129.26Router (dhcp-config)#lease 0 6 30D)Router (config)#ip dhcp excluded-address 176.115.246.2 176.115.246.10Router (config)#ip dhcp pool zw246Router (dhcp-config)#network 176.115.246.0 255.255.255.0Router (dhcp-config)#default-router 176.115.246.1Router (dhcp-config)#domain-name tj.edu.cnRouter (dhcp-config)#dns-server address 176.115.129.26Router (dhcp-config)#lease 30 6 0
在路由器上建立一个名为test的DHCP地址池,并为其分配IP地址202.112.7.0、24,子网地址中的202.112.7.2~202.112.7.10作为静态地址分配,正确的DHCP配置是A.Router(config)#ip dhcp pool test Router(config)#ip dhcp excluded-address 202.112.7.2-10 Router(dhcp-config)#network 202.112.7.0 255.255.255.0B.Router(config)#ip dhcp excluded-address 202.112.7.2-10 Router(config)#ip dhcp pool test Router(dhcp-config)#network 202.112.7.0/24C.Router(config)#ip dhcp excluded-address 202.112.7.2-10 Router(config)#ip dhcp pool test Router(dhcp-config)#network 202.112.7.0 0.0.0.255D.Router(config)#ip dhcp excluded-address 202.112.7.2-10 Router(config)#ip dhcp pool test Router(dhcp-config)#network 202.112.7.0 255.255.255.0
●试题二某单位的网络要配置一台DHCP服务器,为网络内部的计算机自动分配IP,地址。在考虑DHCP服务器时,回答以下问题。[问题1]客户机是如何从DHCP服务器得到动态IP地址的?[问题2]被路由器隔离的两个子网能否共用一台DHCP服务器。[问题3]配置DHCP服务器应具备什么条件?[问题4]用户通过什么命令可以看到自己申请到的本机IP地址?用何命令可以重新向DHCP服务器申请IP地址?用何命令可以释放IP地址?
以下哪个命令是配置IP地址池的子网地址和子网掩码的?______。A.ip dhcp excluded-addressB.network address maskC.default-router addressD.ip dhcp pool<name>
下面是某路由器的 DHCP 配置信息ip dhcp exeluded-address 182.105.246.2 182.105.246.10!ip dhcp pool 246network 182.105.246.0 255.255.255.0default-router 182.105.246.1domain-name pku.edu.cndms-server 182.105.129.26 182.105.129.27 222.112.7.13lease 0.5根据上述信息, DHCP 客户端不可能从服务器获得的 IP 地址是A)182.105.246.5B)182.105.246.11C)182.105.246.192D)182.105.246.254
【问题5】(3分,每空1分)假如在图3.1中移除DHCP服务器,改由单位Router来提供DHCP服务,在Router上配置DHCP服务时用到了如下命令,请在下划线处将命令行补充完整。Router(config)ip(5)hkhk//配置DHCP地址池名为hkhkRouter(dhcp-config)(6)192.168.1.0 255.255.255.0Router(dhcp-config)(7)192.168.1.9
下面是某路由器的DHCP配置信息: ip dhcp excluded-address 182.105.246.2 182.105.246.10 ! ip dhcP Pool 246 network 182.105.246.0 255.255.255.0 default-router 182.105.246.1 domain-name pku.edu.cn dns-server 182.105.246.26 182.105.246.27 222.1A.182.105.246.5B.182.105.246.11C.182.105.246.192D.182.105.246.254
在路由器上建立一个名为test的DHCP地址池,并为其分配IP地址202.112.7.0/24,子网地址中的202.112.7.2~202.112.7.10作为静态地址分配,正确的DHCP配置是______。A.Router(config) #ip dhcp pool test Router(config) #ip dhcp excluded-address 202.112.7.2-10 Router(dhcp-config) #network 202.112.7.0-255.255.255.0B.Router(config) #ip dhcp excluded-address 202.112.7.2-202.112.7.10 Router(config) #ip dhcp pool test Router(dhcp-config) #network 202.112.7.0/24C.Router(config) #ip dhcp excludeaddress 202.112.7.2-202.112.7.10 Router(config) #ip dhcp pool test Router(dhcp-config) #network 202.112.7.0-0.0.0.255D.Router(config) #ip dhcp excluded-address 202.112.7.2-202.112.7.10 Router(config) #ip dhcp pool test Router(dhcp-config) #network 202.112.7.0-255.255.255.0
路由器的DHcP允许配置DHCP数据库代理。可以使用______命令取消地址冲突日志的记录功能。A.no ip dhcp conflict loggingB.ip dhcp conflict loggingC.dns-server addressD.ip dhcp pool
配置IP地址池的名称采用的命令是______。A.ip dhcp poolB.ip dhcp excluded-addressC.defau 配置IP地址池的名称采用的命令是______。A.ip dhcp pool<name>B.ip dhcp excluded-addressC.default-router addressD.dns-server address
假设要动态分配的地址段是:192.168.0.1/24—192.168.0.254/24,路由器网关地址:192.168.0.1。请填写以下Cisco路由器配置DHCP命令的描述。ip dhcp excluded—address 192.168.0.1 192.168.0.50 (1)ip dhcp pool test (2)network 192.168.0.0 255.255.255.0 (3)default—router 192.168.0.1 (4)dns—server***,***,***,*** (5)
在Cisc0路由器上建立-个名为zw246的DHCP地址池,地址池的IP地址是176.115.246.0/24,其中不用于动态分配的地址有176.115.246.2-176.115.246.10,缺省网关为l76.115.246.1,域名为tj.edu.en,域名服务器地址为l76.115.129.26,地址租用时间设定为6小时30分钟。下列DHCP地址池的配置,正确的是( )。A.Router(config)#ip dhcp pool zw246Router(dhcp-eonfig)#ip dhep excluded-address l76.1 15.246.2 176.1 15.246.10Router(dhcp-eonfig)#network l76.115.246.0 255.255.255.0Router(dhcp-config)#default-router l76.115.246.1Router(dhcp-config)#domain-name tj.edu.enRouter(dhcp-config)#dns-server address 176.1 15.129.26Router(dhcp-config)#lease 0 6 30B.Router(config)#ip dhcp excluded-address 176.115.246.2-10Router(config)#ip dhcp pool zw246Router(dhcp-config)#network l76.1 15.246.0 255.255.255.0Router(dhcp-config)#default-router l76.115.246.1Router(dhcp-config)#domain-name tj.edu.caRouter(dhcp-config)#dns-server address l76.115.129.26Router(dhcp-config)#lease 0 6 30C.Router(config)#ip dhcp excluded-address l76.115.246.2 176.115.246.10Router(config)#ip dhcp pool zw246Router(dhcp-config)#network 176.115.246.0 255.255.255.0Router(dhcp-config)#default-muter l76.115.246.1Router(dhcp-config)#domain -name tj.edu.anRouter(dhcp-config)#dns-server address 176.115.129.26Router(dhcp-config)#lease 0 6 30D.Router(config)#ip dhcp excluded-address 176.1 15.246.2 176.1 15.246.10Router(config)#ip dhcp pool zw246Router(dhcp-config)#network 176.1 15.246.0 255.255.255.0Router(dhcp-config)#default-router 176.1 15.246.1Router(dhcp-config)#domain-name tj.edu.cnRouter(dhcp-config)#dns-server address 176.115.129.26Router(dhcp-config)#lease 30 6 0
试题三(共15分)阅读以下说明,回答问题1至问题3,将解答填入答题纸对应的解答栏内。【说明】在大型网络中,通常采用DHCP完成基本网络配置会更有效率。【问题1】(1分)在Linux 系统中,DHCP服务默认的配置文件为 (1) 。(1)备选答案:A. /etc/dhcpd.conf B. /etc/dhcpd.configC. /etc/dhcp.conf D. /etc/dhcp.config【问题2】 (共4分)管理员可以在命令行通过 (2) 命令启动 DHCP服务;通过 (3) 命令停止DHCP服务。(2) 、(3)备选答案:A. service dhcpd start B. service dhcpd upC. service dhcpd stop D. service dhcpd down【问题3】(10分)在Linux 系统中配置DHCP服务器,该服务器配置文件的部分内容如下:subnet 192.168.1.0 netmask 255.255.255.0 {option routers 192.168.1.254;option subnet-mask 255.255.255.0;option broadcast-address 192.168.1.255;option domain-name-servers 192.168.1.3;range 192.168.1.100 192.168.1.200;default-lease-time 21600;max-lease-time 43200;host webserver {hardware ethernet 52:54:AB:34:5B:09;fixed-address 192.168.1.100;}}在主机webserver 上运行ifconfig命令时显示如下,根据DHCP配置,填写空格中缺少的内容。该网段的网关IP地址为 (7) ,域名服务器 IP地址为 (8) 。
配置DHCP服务器IP地址池的地址为193.45.98.0/24,其中193.45.98.10~193.45.98.30用做静态地址分配,正确的配置语句是______。A.ip dhcp excluded-address 193.45.98.10.193.45.98.30 network 193.45.98.0 255.255.255.0B.ip dhcp excluded-address 193.45.98.10.193.45.98.30 network 193.45.98.0/24C.ip dhcp excluded-address 193.45.98.10 193.45.98.30 network 193.45.98.0 0.0.0.255D.ip dhcp excluded-address 193.45.98.10 193.45.98.30 network 193.45.98.0 255.255.255.0
在某台Cisco路由器中定义一个名为test的DHCP地址池(192.168.3.0/26),并保留192.168.3.62/29的IP地址。下列正确的配置语句是(29)。A.Router(config)#ip dhcp pooltest Router(dhcp-config)#network 192.168.3.00.0.0.63 Router(dhcp-config)#ip dhcp excluded-address192.168.3.62B.Router(config)#ip dhcp poo1 test Router(dhcp-config)#network 192.168.3.0255.255.255.192 Router(dhcp-config)#ip dhcp excluded-address 192.168.3.62255.255.255.248C.Router(config)#ip dhcp poo1 test Router(dhcp-config)#network 192.168.3.0/26 Router(dhcp-config)#ip dhcp excluded-address 192.168.3.62/29D.Router(config)#ip dhcp excluded-address 192.168.3.56192.168.3.62 Router(config)#ip dhcp pool test Router(dhcp-config)#network 192.168.3.0/26
DHCP服务器和DHCP客户端的交换过程如下:DHCP客户机广播“DHCP发现”消息,试图找到网络中的DHCP服务器,以便从DHCP服务器获得一个IP地址。由于DHCP客户机还未配置IP地址,它只能使用广播方式发送消息,并且源IP地址设置为( )。A.0.0.0.0B.255.255.255.255C.255.255.255.0D.0.0.0.255
路由器的DHCP允许配置其数据库代理。可以使用下列哪一命令取消地址冲突日志的记录功能( )。A.no ip dhcp conflict loggingB.ip dhcp conflict loggingC.dns-server addressD.ip dhcp pool
配置DHCP服务器IP地址池的地址为193.45.98.0/24,其中193.45.98.10至193.45.98.30用作静态地址分配,正确的配置语句是A.ip dhcp excluded-address 193.45.98.10,193.45.98.30 network 193.45.98.0 255.255.255.0B.ip dhcp excluded-address 193.45.98.10,193.45.98.30 network 193.45.98.0 /24C.ip dhcp excluded-address 193.45.98.10 193.45.98.30 network 193.45.98.0 0.0.0.255D.ip dhcp excluded-address 193.45.98.10 193.45.98.30 network 193.45.98.0 255.255.255.0
管理员在交换机设置某条指令的时候,出现下述错误,Error:The network section should be within the subnet of the pool.则最可能执行的指令是( )A.[Huawei-ip-pool-x]network 192.168.1.1 mask 24 [Huawei-ip-pool-x]gateway-list 192.168.2.2B.[Huawei-ip-pool-x]network 192.168.1.1 mask 24 [Huawei-ip-pool-x]dns-list 192.168.2.2C.[Huawei-ip-pool-x]network 192.168.1.1 mask 24 [Huawei-ip-pool-x]lease day 1000D.[Huawei-ip-pool-x]network 192.168.1.1 mask 24 [Huawei-ip-pool-x]next-server 192.168.2.2
阅读下列说明,一回答问题1至问题2,将解答填入答题纸的对应栏内。【说明】图4-1是某学校的的网络拓扑图,运营商分配的公网IP地址为113.201.60.1/29,运营商的网关地址为 113.201.60.1,内部用户通过路由器代理代理上网,代理地址为113.201.60.2.核心交换机配置基于全局的DHCP服务,为办公楼和宿舍楼用户提供DHCP服务。内部网络划分为3个Vlan,其中vlan 10的地 址是10.0.10.1/24,vlan20的地址是10.0.20.1/24,vlan 30的地址是10.0.30.1/24.结合案例,回答下列问题。问题一;路由器的配置片段如下,根据图4- 1,补齐(1) ~(6) 空缺 的命令system-view Huawei] sysname( 1) [Router] interface( 2 )[Router-GigabitEthernet1/0/0] ip address(3)[Router-GigabitEthernet1/0/0] quit[Router] ip route-static 0.0.0.0 0.0.0.0( 4 )[Router-acI-basic-2000][Router-acI-basic-2000] rule 5 permit source 10.0.0.0( 5 )[Router-acl-basic-2000] quit[Router] interface GigabitEthernet1/0/0[Router-GigabitEthernet1/0/0] nat outbound(6 )[Router-GigabitEthernet1/0/0] quit……其他配置略问题二:核心交换机的配置片段如下,根据图 4-1,补齐 (7)~(10) 空缺的命令。#配置GE0/0/2接口加入VLAN20,并配置对应VLAN接口地址[Switch]vlan batch 20[Switch]interface GigabitEthernet0/0/2[Switch-GigabitEthernet0/0/2]port link-type( 7 )[Switch-GigabitEthernet0/0/2]port hybrid pvid vlan20[Switch-GigabitEthernet0/0/2]port hybrid untagged vlan20[Switch-GigabitEthernet0/0/2]quit[Switch] interface vlanif 20[Switch-Vlanif20] ip address( 8 )[Switch-Vlanif20]Quit.......其他配置略#配置DHCP服务,租期3天[Switch] dhcp(9 )[Switch] ip pool pool1[Switch-ip-pool-pool1] network 10.0.20.0 mask 225.225.255.0[Switch-ip-pool-pool1] dns-list 10.010.2[Switch-ip-pool-pool1] gateway-list 10.0.20.1[Switch-ip-pool-pool1] lesae day( 10 )[Switch-ip-pool-pool1] quit[Switch] interface vlanif 20[Switch-Vlanif20] dhcp select global[Switch-Vlanif20] quit......其他配置略
管理员在Router上进行了如下配置,完成之后,在该路由器的G1/0/0接口下连接了一台交换机,则关于此主机的IP地址描述正确的是( )。[Router]ip pool pool1[Router-ip-pool-pool1]network 10.10.10.0 mask 255.255.255.0[Router-ip-pool-pool1]gateway-list 10.10.10.1[Router-ip-pool-pool1]quit[Router]ip pool pool2[Router-ip-pool-pool2]network 10.20.20.0 mask 255.255.255.0[Router-ip-pool-pool2]gateway-list 10.20.20.1[Router-ip-pool-pool2]quit[Router]interface GigabitEthernet 1/0/0[Router-GigabitEthernet 1/0/0]ip address 10.10.10.1.24[Router-GigabitEthernet 1/0/0]dhcp select globalA.获取的IP地址属于10.10.10.0/24网络B.获取的IP地址属于10.20.20.0/24网络C.主机获取不到IP地址D.获取的IP地址可能属于10.10.10.0/24网络,也可能属于10.20.20.0/24网络
管理员在Router上进行了如下配置,完成之后,在该路由器的G1/0/0接口下连接了一台交换机,则关于此主机的IP地址描述正确的是( )。[Router]ip pool pool1[Router-ip-pool-pool1]network 10.10.10.0 mask 255.255.255.0[Router-ip-pool-pool1]gateway-list 10.10.10.1[Router-ip-pool-pool1]quit[Router]ip pool pool2[Router-ip-pooA.获取的IP地址属于10.10.10.0/24网络B.获取的IP地址属于10.20.20.0/24网络C.主机获取不到IP地址D.获取的IP地址可能属于10.10.10.0/24网络,也可能属于10.20.20.0/24网络
在路由器上执行如下配置命令:[Router]dhcpenable[Router]serverforbidden-ip192.168.1.10[Router]serverforbidden-ip192.168.1.254[Router]dhcpserverip-pool0[Router-dhcp-pool-0]network192.168.1.0mask255.255.255.0[Router-dhcp-pool-0]gateway-list192.168.1.254[Router-dhcp-pool-0]dns-list192.168.1.10[Router-dhcp-pool-0]expiredday5完成以上配置后,如下哪些说法是正确的?()A、路由器具有DHCP中继功能B、路由器可以分配给主机的地址有252个C、路由器具有DHCP服务器功能D、主机通过DHCP服务能够从路由器获得DNS服务器地址192.168.1.10
在路由器上开启DHCP服务的正确配置命令是()。A、[Router]dhcpB、[Router-dhcp-pool-0]dhcpC、[Router]dhcpenableD、[Router-dhcp-pool-0]dhcpenable
在路由器RTA上启用DHCP后,需要设定地址池的地址范围为192.168.1.0/24,给主机分配的默认网关地址是192.168.1.254。下列哪些配置能够满足这些要求?()。A、[Router]dhcpserverip-pool0B、[Router-dhcp-pool-0]network192.168.1.0mask255.255.255.0C、[Router-dhcp-pool-0]gateway-list192.168.1.254D、[Router-dhcp-pool-0]dns-list192.168.1.10
单选题在Cisco路由器上建立一个名为zw246的DHCP地址池,地址池的IP地址是176.115.246.0/24,其中不用于动态分配的地址有176.115.246.2~176.115.246.10,缺省网关为176.115.246.1,域名为tj.edu.cn,域名服务器地址为176.115.129.26,地址租用时间设定为6小时30分钟。下列DHCP地址池的配置,正确的是( )。ARouter(config)#ip dhcp pool zw246Router(dhcp-config)#ip dhcp excluded-address 176.115.246.2 176.115.246.10Router(dhcp-config)#network 176.115.246.0 255.255.255.0Router(dhcp-config)#default-router176.115.246.1Router(dhcp-config)#domain-name tj.edu.caRouter(dhcp-config)#dns-server address 176.115.129.26Router(dhcp-config)#lease 0 6 30BRouter(config)#ip dhcp excluded-address 176.115.246.2-10Router(config)#ip dhcp pool zw246Router(dhcp-config)#network 176.115.246.0 255.255.255.0Router(dhcp-config)#default-router 176.115.246.1Router(dhcp-config)#domain-name tj.edu.cnRouter(dhcp-config)#dns-server address 176.115.129.26Router(dhcp-config)#1ease 0 6 30CRouter(config)#ip dhcp excluded-address 176.115.246.2 176.115.246.10Router(config)#ip dhcp pool zw246Router(dhcp-config)#network 176.115.246.0 255.255.255.0Router(dhcp-config)#default-router 176.115.246.1Router(dhcp-config)#domain-name tj.edu.cnRouter(dhcp-config)#dns-server address 176.115.129.26Router(dhcp-config)#lease 0 6 30DRouter(config)#ip dhcp excluded-address 176.115.246.2 176.115.246.10Router(config)#ip dhcp pool zw246Router(dhcp-config)#network 176.115.246.0 255.255.255.0Router(dhcp-config)#default-router 176.115.246.1Router(dhcp-config)#domain-name tj.edu.cnRouter(dhcp-config)#dns-server address 176.115.129.26Router(dhcp-config)#lease 3 0 60