在路由器上建立一个名为test的DHCP地址池 并为其分配IP地址202.112.7.0/2
问题详情
在路由器上建立一个名为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.0
B.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/24
C.Router(config) #ip dhcp exclude&address 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.255
D.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请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:D
解析:静态地址分配Router(config) #ip dhcp excluded-address 202.112.7.2 202.112.7.10
配置IP地址池的域名Router(config) #ip dhcp pool test
为test的DHCP地址池分配IP地址Router(dhcp-config) #network202.112.7.0 255.255.255.0