单选题
客户端通过代理服务器Server访问Internet的连接方式如下图所示。在Linux操作系统中,为代理服务器中IP地址为192.168.0.1的网卡分配IP地址并激活该网络接口,应执行 __________ ;为IP地址为192.168.0.100的PC配置默认网关,应执行 __________ 。配置完成后,运行 __________ 命令重启计算机,通过 __________ 命令显示当前DNS服务器的地址和域名。
A、
ifeonfig -up ethl 192.168.0.1/24
B、
ifconfig ethl 192.168.0.1 255.255.255.0 up
C、
ifconfig ethl 192.168.0.1 up netmask 255.255.255.0
D、
ifconfig 192.168.0.1/24 ethl netmask 255.255.255.0即
【正确答案】
C
【答案解析】
A、
route add default 192.168.0.1
B、
route add up 192.168.0.1
C、
route add -net 0.0.0.0/32 gw 192.168.0.1
D、
route add -host 192.168.0.100/24 gw 192.168.0.1
【正确答案】
A
【答案解析】
A、
reboot
B、
shutdown
C、
init 0
D、
poweroff
【正确答案】
A
【答案解析】
A、
resolve
B、
ping
C、
nslookup
D、
testdns
【正确答案】
C
【答案解析】
提交答案
关闭