随着Internet迅速发展,公网IP地址短缺已成为一个十分突出的问题。为了解决这一问题,出现了多种解决方案。而使用路由器的NAT/NAPT(Network Address Translation/Network Address Port Translation)功能是其中一种解决方法。
如图5-1所示,某企业通过租用ISP的线路(获得的公网IP网段为:218.94.86.0/29,除去两个互联的IP地址),实现企业的电子商务。其中,有一对外的Web服务器(内网IP地址为192.168.0.100/24),一OA服务器(内网IP地址为192.168.0.101/24)。
以下是本端路由器的配置摘要,请解释其中部分语句的含义(“//”后为注释内容)。
version 11.2 //版本
!
hostname RouterCOM //路由器名称
!
interface Seria10 //串口0
ip address 218.94.86.2 255.255.255.248 //串口0的ip地址
ip nat outside (1)
!
interface FastEthernet 0 //快速以太口0
ip address 192.168.0.1 255.255.255.0 //快速以太口0的ip地址
ip nat inside (2)
!
access-list 1 permit 192.168.0.0 0.0.0.255 (3)
!
ip nat pool natpool 218.94.86.5 218.94.86.6 netmask 255.255.255.248
(4)
ip nat inside source static 192.168.0.100 218.94.86.3 (5)
ip nat inside source statiC 192.168.0.101 218.94.86.4
ip nat inside source list 1 pool natpool overload (6)
……(略)
end
第1题:
在路由器上建立一个名为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
第2题:
配置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.0
B.ip dhcp excluded-address 193.45.98.10.193.45.98.30 network 193.45.98.0/24
C.ip dhcp excluded-address 193.45.98.10 193.45.98.30 network 193.45.98.0 0.0.0.255
D.ip dhcp excluded-address 193.45.98.10 193.45.98.30 network 193.45.98.0 255.255.255.0
第3题:
使用哪组命令可将路由器配置为 DHCP 路由器,从而将 IPv4 地址分配给 192.168.100.0/23 LAN,同时为静态分配保留前 10 个和最后一个地址?
A.dhcp pool LAN-POOL-100 ipdhcp excluded-address 192.168.100.1 192.168.100.9 ipdhcp excluded-address 192.168.100.254 network 192.168.100.0 255.255.254.0 default-router 192.168.101.1#B.ipdhcp excluded-address 192.168.100.1 192.168.100.10 ipdhcp excluded-address 192.168.100.254 ipdhcp pool LAN-POOL-100 network 192.168.100.0 255.255.254.0 default-router 192.168.100.1#C.ipdhcp excluded-address 192.168.100.1 192.168.100.10 ipdhcp exclu第4题:
配置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 network193.45.98.0 255.255.255.0
B.ip dhcp excluded-address 193.45.98.10,193.45.98.30 network 193.45.98.0/24
C.ip dhcp excluded-address 193.45.98.10,193.45.98.30 network 193.45.98.0 0.0.0.255
D.ip dhcp excluded-address 193.45.98.10,193.45.98.30 network 193.45.98.0 255.255.255.0
第5题:
配置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.0
B.ip dhcp excluded-address 193.45.98.10,193.45.98.30 network 193.45.98.0 /24
C.ip dhcp excluded-address 193.45.98.10 193.45.98.30 network 193.45.98.0 0.0.0.255
D.ip dhcp excluded-address 193.45.98.10 193.45.98.30 network 193.45.98.0 255.255.255.0