linux系统及编程基础

要想关闭掉eth0网卡需要的命令是()A、ifconfig eth0B、ifup eth0C、ifdown eth0D、ifconfig eth0 up

题目

要想关闭掉eth0网卡需要的命令是()

  • A、ifconfig eth0
  • B、ifup eth0
  • C、ifdown eth0
  • D、ifconfig eth0 up
参考答案和解析
正确答案:C
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

在Linux系统中,使用ifconfig设置接口的IP地址并启动该接口的命令是( )。

A.ifcorffig eth0 192.168.1.1 mask 255.255.255.0B.ifconfig 192.168.1.1 mask 255.255.255.0 upC.ifconfig eth0 192.168.1.1 mask 255.255.255.0 upD.ifconfig 192.168.1.1 255.255.255.0


正确答案:C

第2题:

与“ifup eth0”命令功能相同的命令是( )。

A、ifdown eth0 up

B、ipconfig up eth0

C、ifconfig up eth0

D、ifconfig eth0 up


参考答案:D

第3题:

● 在Linux系统中,把本机IP地址更改为192.168.1.1的正确命令是 (46) 。

(46)A. [/root]#ipconfig eth0 192.168.1.1 up

B. [/root]#ifconfig eth0 192.168.1.1 up

C. [/root]#ipconfig 192.168.1.1 up

D. [/root]#ifconfig 192.168.1.1 up


在linux系统中,可以用ifconfig的命令查看网络接口的配置或者对网络接口进行配置,查看网络接口配置的命令格式是“ifconfig 【interface】”,A、C是windows中的命令,D没有指定本机网络接口名称,都是错误的

第4题:

在linux系统中,为本机添加到192.168.1.0/25的路由信息,网关地址为172.16.1.1,应执行()命令。

  • A、route add -net 192.168.1.0 netmask 255.255.255.128 dev eth0
  • B、route add 192.168.1.0 netmask 255.255.255.128 gw 172.16.1.1 dev eth0
  • C、route add -net 192.168.1.0 netmask 255.255.255.0 gw 172.16.1.1 dev eth0
  • D、route add 192.168.1.0 netmask 255.255.255.192 gw 172.16.1.1 dev eth0

正确答案:A

第5题:

Linux系统中为一块设备名为eth0的网卡分配IP地址和子网掩码的命令是(请作答此空),如果不打算使用DNS进行地址解析,则可以将所有的主机名都放入文件( )中

A.serserial eth0 192.168.1.1 netmask 255.255.255.0
B.ifconfig eth0 192.168.1.1 netmask 255.255.255.0
C.minicom eth0 192.168.1.1 netmask 255.255.255.0
D.mount eth0 192.168.1.1 netmask 255.255.255.0

答案:B
解析:
Linux与windows中的基本命令是常考的内容,需要对常用的命令及参数了解。这里考的查看和配置接口命令。用的是ifconfig。
不用dns进行解析,则主机名和IP对应的关系应该存入/etc/hosts文件中。

第6题:

快速启动网卡“eth0”的命令是( )。

A、ifconfig eth0 noshut

B、ipconfig eth0 noshut

C、ifnoshut eth0

D、ifup eth0


参考答案:D

第7题:

在Linux中,给计算机分配IP地址正确的方法是( )。

A、ipconfig eth0 166. 111. 219.150 255. 255. 255.0

B、ifconfig eth0 166. 111. 219.150 255. 255. 255.0

C、ifconfig eth0 166. 111. 219.150 netmask 255.255.255.0

D、在Linux窗口配置中配置


参考答案:C

第8题:

在Linux系统中,把本机IP地址更改为192.168.1.1的正确命令是(46)。

A.[/root]#ipconfig eth0 192.168.1.1 up

B.[/root]gifconfig eth0 192.168.1.1 up

C.[/root]#ipconfig 192.168.1.1 up

D.[/root]#ifconfig 192.168.1.1 up


正确答案:B
解析:Linux系统中更改IP的命令为[/root]#ifconfig eth0 xx.xx. xx.xx。

第9题:

在linux系统中,为本机以太网卡配置IP地址为172.10.5.9,子网掩码为255.255.255.0,应执行()命令。

  • A、ifconfig 172.10.5.9
  • B、ifconfig 172.10.5.9 netmask 255.255.255.0
  • C、ifconfig eth0 172.10.5.9
  • D、ifconfig eth0 172.10.5.9 netmask 255.255.255.0

正确答案:D

第10题:

在linux系统中,查看本机网卡eth0的IP地址,可以执行()命令。

  • A、ifconfig
  • B、ifconfig eth0
  • C、ipconfig
  • D、ipconfig eth0
  • E、ipconfig/all

正确答案:A,B

更多相关问题