某公司搭建一个小型局域网,局域网内有200台PC机,网络中配置一台linux服务器作为Internet接入服务器,Linux服务器E0网卡的IP地址为192.168.1.1,E1网卡的IP地址为202.100.20.30,该网络结构如图2-1所示。
为了方便局域网IP地址管理,决定在Linux Server中配置DHCP服务,要求DHCP服务的配置满足几个条件:
1.考虑今后扩展需求,当前只使用从192.168.1.1到192.168.1.201的IP地址;
2.PC100(MAC地址为00:A0:78:8E:9E:AA)作为内部文件服务器,需要使用固定的IP地址192.168.1.100;
3.在Linux Server上配置DNS服务;
【问题1】(9分)
根据题目要求补充完成DHCP服务器配置文件dhcpd.conf的配置项
【问题2】(4分)
依据DHCP协议约定和问题1的配置,DHCP客户端PC1从获取IP地址后经过(10)分钟需要到DHCP服务器申请租约更新。此时PC1发送到DHCP服务器的消息是(11),如果DHCP服务器同意租约更新,响应的消息是(12),如果DHCP服务器不同意租约更新,响应的消息是(13)。
【问题3】(2分)
在DHCP客户端,还可以通过Windows命令(14)来释放申请到IP地址,通过命令(15)来立即重新申请租约。
正确答案及解析
正确答案
解析
【问题1】(共9分,每空1分)
(1)192.168.1.255
(2)192.168.1.1
(3)192.168.1.1
(4)192.168.1.0
(5)255.255.255.0
(6)192.168.1.2
(7)192.168.1.201
(8)00:A0:78:8E:9E:AA
(9)192.168.1.100
【问题2】(4分,每空1分)
(10)10
(11)DHCPREQUEST
(12)DHCPACK
(13)DHCPNACK
【问題3】(2分,每空1分)
(14)ipconfig/release
(15)ipconfig/renew
【问题1】
考查Linux下DHCP服务器的配置命令。需要注意的是在Linux下DHCP服务可以配置诸如租约时间、网络ID、广播地址、网关地址、DNS服务器、地址池范围、特定服务器MAC地址与IP地址的绑定等内容。
default-lease-time 1200;//默认租约时间为1200秒(20分钟)
max-lease-time 9200;//最大租约时间为9200秒(153.33分钟)
option subnet-mask 255.255.255.0;//配置子网掩码
option broadcast-address 192.168.1.255;//配置广播地址
option routers 192.168.1.1;//配置网关地址为Linux服务器的内网卡地址
option domain-name-servers 192.168.1.1;//指定DHCP服务器本身也是DNS服务器
subnet 192.168.1.0?netmask?255.255.255.0//子网申明(地址池)
{
range 192.168.1.2 192.168.1.201//配置地址申明范围
}
host fixed{//host申明一台特定主机
hardware ethernet 00:A0:78:8E:9E:AA;//指定特定主机的MAC(物理)地址
fixed-address 192.168.1.100;//特定主机绑定一个固定的IP地址
}
【问题2】
考查Linux下地址租约的内容。当客户端地址租约时间到达默认租约时间的50%时(题干中配置命令“default-lease-time 1200”已经指明其默认租约时间为20分钟,其50%为10分钟)DHCP客户端会向DHCP服务器单播DHCP Request包,实现续约请求。若服务器同意则直接单播回复DHCP ACK,若服务器不同意租约则回复DHCP NACK包。
【问题3】
windows下DHCP客户端释放IP地址的命令是“ipconfig/release”。
重新申请租约的命令是“ipconfig/renew”。
包含此试题的试卷
你可能感兴趣的试题
Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.
-
- A.Artificial Intelligence
- B.Cloud Computing
- C.Internet of Things
- D.Big Data
- 查看答案
In project human resource management , ( )is not a source of power for the project manager.
-
- A.referent power
- B.expert power
- C.reward power
- D.audit power
- 查看答案
At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.
-
- A.detail feasibility analysis
- B.opportunity analysis
- C.economic feasibility analysis
- D.risk analysis
- 查看答案
( )is a grid that shows the project resources assigned to each work package.
-
- A.Stakeholder engagement assessment matrix
- B.Requirements traceability matrix
- C.Probability and impact matrix
- D.Responsibility assignment matrix
- 查看答案
Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.
-
- A.digital
- B.networking
- C.intelligentize
- D.informatization
- 查看答案