在linux系统中,为本机以太网卡配置IP地址为172.10.5.9,子网掩码为255.255.255.0,应执行()命令。A、ifconfig 172.10.5.9B、ifconfig 172.10.5.9 netmask 255.255.255.0C、ifconfig eth0 172.10.5.9D、ifconfig eth0 172.10.5.9 netmask 255.255.255.0

题目

在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

相似考题
更多“在linux系统中,为本机以太网卡配置IP地址为172.10.5.9,子网掩码为255.255.255.0,应执行()命令。A、ifconfig 172.10.5.9B、ifconfig 172.10.5.9 netmask 255.255.255.0C、ifconfig eth0 172.10.5.9D、ifconfig eth0 172.10.5.9 netmask 255.255.255.0”相关问题
  • 第1题:

    某单位客户机通过代理服务器Server访问Internet的连接方式如图2-3所示。在Linux操作系统中,为代理服务器中IP地址为192.168.0.1的网卡分配IP地址并激活该网络接口,应执行(68);为IP地址为192.168.0.100的PC配置默认网关,应执行(69)。配置完成并重启计算机后,运行(70)命令可显示出当前DNS服务器的地址和域名。

    A.ifconfig eth1 192.168.0.1 255.255.255.0 up

    B.ifconfig eth1 192.168.0.1 up netmask 255.255.255.0

    C.ifconfig 192.168.0.1/24 eth1 netmask 255.255.255.0 up

    D.ifconfig-up eth1 192.168.0.1/24


    正确答案:B

  • 第2题:

    在Linux操作系统中,为一块设备名为eth1的网卡分配IP地址和子网掩码的命令是(38)。

    A.ipaddress eth1 192.168.2.3 mask 255.255.255.0

    B.config eth1 192.168.2.3 mask 255.255.255.0

    C.serserial eth1 192.168.2.3 mask 255.255.255.0

    D.ifconfig eth1 192.168.2.3 mask 255.255.255.0


    正确答案:D
    解析:在Linux操作系统下安装网卡,如果操作系统没有内置的驱动程序,那么用户必须手工安装驱动程序且重新编译Linux内核,才能完成驱动程序的安装。命令ifconfigeth1192.168.2.3mask255.255.255.0可以为设备名为eth1的网卡配置IP地址和子网掩码。

  • 第3题:

    在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

  • 第4题:

    在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

  • 第5题:

    在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

  • 第6题:

    与”ifup eth0”命令功能相同的命令是哪个?()

    • A、ifdown eth0 up
    • B、ipconfig up eth0
    • C、ifconfig up eth0
    • D、ifconfig eth0 up

    正确答案:D

  • 第7题:

    有的时候,需要系统管理员手工更改网卡的硬件地址(MAC地址)。在RedHatLinux9系统中,更改正在工作的网卡eth0的硬件地址,一般需要使用下列()命令来完成。

    • A、ifconfig eth0 up
    • B、ifconfig eth0 down
    • C、ifconfig eth0 inet00:0c:29:78:9a:bc
    • D、ifconfig eth0 hwether00:00:0c:12:34:56

    正确答案:A,B,D

  • 第8题:

    修改eth0网卡的IP地址为172.18.48.56和子网掩码255.255.255.128的命令:()

    • A、ifconfigeth0javascript:void(0);172.18.48.56netmask255.255.255.128
    • B、ifconfig172.18.48.56netmask255.255.255.128
    • C、ipconfigeth0172.18.48.56netmask255.255.255.128
    • D、ifconfigup172.18.48.56netmask255.255.255.128

    正确答案:A

  • 第9题:

    在UNIX系统中,查看IP地址的命令为:()

    • A、is
    • B、cat
    • C、more
    • D、kill
    • E、ps
    • F、ifconfig

    正确答案:F

  • 第10题:

    How should TCP/IP be configured on the ent0 network adapter?()

    • A、ifconfig en0 192.168.10.1 netmask 255.255.255.0 gateway 192.168.10.254
    • B、ifconfig ent0 192.168.10.1 netmask 255.255.255.0 gateway 192.168.10.254
    • C、mktcpip h test61 -a 192.168.10.1 -i en0 m 255.255.255.0 g 192.168.10.254 -s
    • D、mktcpip h test61 -a 192.168.10.1 -i ent0 m 255.255.255.0 g 192.168.10.254 -

    正确答案:C

  • 第11题:

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

    ifconfigeth0192.168.1.1mask255.255.255.0

    B

    ifconfig192.168.1.1mask255.255.255.0up

    C

    ifconfigeth0192.168.1.1mask255.255.255.0up

    D

    ifconfig192.168.1.1255.255.255.0


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    在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


    正确答案: A
    解析: 暂无解析

  • 第13题:

    阅读以下利用Linux主机实现TCP/IP网络互联的技术说明,请将以下(1)~(15)空缺处的内容填写完整。

    【说明】

    某实验室4台Linux主机通过图6-14所示的拓扑方式互连。请将以下(1)~(15)空缺处填写完整以实现主机PC1与主机PC4之间的相互访问。

    1.运行(1)命令关闭主机PC2和主机PC3,分别在这两台主机上添加第二块网卡(eth1)。

    2.在Linux操作系统下安装网卡,如果操作系统没有内置的驱动程序,那么用户必须(2),才能完成驱动程序的安装。

    3.在主机PC2与PC3上为第二块网卡分配IP地址,并激活该网络接口:对于主机PC2应执行的配置命令是(3);对于主机PC3应执行的配置命令是(4)。

    【供选择的答案】

    (1) A.reboot B.shutdown C.init 1 D.init 6

    (2) A.用ifconfig命令配置网卡 B.手工修改“/dev/eth0”文件

    C.手工安装驱动程序且重新编译Linux内核 D.重启操作系统

    (4) A.ifconfig -up eth1 218.5.120.2/24

    B.ifconfig eth1 218.5.120.2 255.255.255.0 up

    C.ifconfig eth1 218.5.120.2 up netmask 255.255.255.0

    D.ifconfig eth1 218.5.120.2/8;ifconfig eth1 up


    正确答案:(1)B或shutdown (2)C或手工安装驱动程序且重新编译Linux内核 (3)ifconfig eth1 218.5.120.1 up netmask 255.255.255.0 (4)C或ifconfig eth1 218.5.120.2 up netmask 255.255.255.0
    (1)B或shutdown (2)C或手工安装驱动程序且重新编译Linux内核 (3)ifconfig eth1 218.5.120.1 up netmask 255.255.255.0 (4)C或ifconfig eth1 218.5.120.2 up netmask 255.255.255.0 解析:这是一道要求读者掌握Linux环境下TCP/IP网络的安装与配置方面的推理分析题。
    通过阅读图6-14所示的网络拓扑结构,可先将图中各主机网络接口的IP地址信息整理出来,见表 6-12。

    Linux系统中TCP/IP的配置包括主机名的设置、网络接口的IP地址的配置、路由的配置。其中:
    ①主机名的设置可用hosmame命令,如hosmame my_pc.gcz.name.com就可以设置机器的主机名。
    ②网卡接口的IP地址配置可用ifconfig命令来完成,如想将IP地址192.168.100.254分配给接口(或网卡)eth0,将IP地址218.5.120.2分配给接口.(或网卡)eth1,则可通过以下两条命令完成这些分配工作:
    ifconfig eth0 192.168.100.254 netmask 255.255.255.0
    ifconfig eth1 218.5.120.2 netmask 255.255.255.0
    以上命令中netmask是设置接口(或网卡)的子网掩码,后面紧跟的是掩码值。
    ③路由的配置可用route命令来完成。如想将IP地址218.5.120.2/24设为218.5.120.0网段的默认网关,则可输入“route add default gw 218.5.120.2”命令来完成这一设置。
    当输入“route add -net 192.168.100.0 eth0”命令时,则说明通过该路由器的网络接口eth0能访问的网络是192.168.100.0,即与本机eth0接口直连的网络。
    在Linux环境下有shutdown、halt、reboot及init等一些常用的关机/重启命令,它们都可以达到重启系统的目的,但每个命令的内部工作过程是不同的。其中,在系统关机前使用shutdown命令,系统就会将这一关机信息通知所有登录的用户,并将login指令冻结(即新的用户不能再登录)。本案例中,由于要为主机PC2、PC3添加第二块网卡(eth1),根据计算机使用常识可知,这一操作需在关闭计算机电源的状态下完成,因此(1)空缺处可使用能将系统安全关机的shutdown命令来关闭计算机PC2、PC3。对于其他供选择的答案,reboot及init 6是将操作系统重启的命令;init 1命令用于将操作系统切换到单用户模式。
    网卡硬件安装后,如果Linux操作系统没有内置的驱动程序,那么用户必须手工安装驱动程序且重新编译Linux内核,才能完成驱动程序的安装。
    由于(3)空缺处是填空题,而(4)空缺处是选择题,因此可以先完成(4)空缺处的选择,从中建立解题的思路,再回头完成(3)空缺处的填写。从图6-14所示的网络拓扑图中可知主机PC3上eth1接口的IP地址是218.5.120.2,该地址属于C类IP地址,其默认的子网掩码是255.255.255.0。因此可通过 ifconfig命令为主机PC3的eth1接口分配IP地址,并激活该网络接口。其配置命令是:ifconfig eth1 218.5.120.2 up netmask 255.255.255.0,其中参数up表示启动(激活)网卡。如不使用netmask选项来指定子网掩码,系统会自动加上掩码255.255.255.0,即命令ifconfig eth1 218.5.120.2 up与以上配置命令等效。
    同理,图6-14所示的主机PC2上eth1接口的IP地址是218.5.120.1,子网掩码是255.255.255.0。参照(4)空缺处的语法格式,(3)空缺处可填入命令ifconfig eth1 218.5.120.1 up netmask 255.255.255.0以完成对主机PC2的eth1接口分配IP地址,并激活该网络接口。

  • 第14题:

    在Linux 中,可以使用( )命令为计算机配置 IP地址。

    A. ifconfig B. config C. ip-address D. ipconfig


    正确答案:A

  • 第15题:

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

    A、ifdown eth0 up

    B、ipconfig up eth0

    C、ifconfig up eth0

    D、ifconfig eth0 up


    参考答案:D

  • 第16题:

    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文件中。

  • 第17题:

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

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

    正确答案:A,B

  • 第18题:

    修改eth0网卡的IP地址为172.18.48.65和子网掩码255.255.255.128的命令:()

    • A、ifconfigeth0172.18.48.65netmask255.255.255.128
    • B、ifconfig172.18.48.65netmask255.255.255.128
    • C、ipconfigeth0172.18.48.65netmask255.255.255.128
    • D、ifconfigup172.18.48.65netmask255.255.255.128

    正确答案:A

  • 第19题:

    如果我想要查看eth0的子网掩码需要用到的命令不可能是()?

    • A、ifconfig eth0
    • B、ifconfig eth0 up
    • C、ifup eth0
    • D、ifdown eth0

    正确答案:B,C,D

  • 第20题:

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

    • A、ifconfig eth0
    • B、ifup eth0
    • C、ifdown eth0
    • D、ifconfig eth0 up

    正确答案:C

  • 第21题:

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

    • A、ifconfigeth0192.168.1.1mask255.255.255.0
    • B、ifconfig192.168.1.1mask255.255.255.0up
    • C、ifconfigeth0192.168.1.1mask255.255.255.0up
    • D、ifconfig192.168.1.1255.255.255.0

    正确答案:C

  • 第22题:

    How should TCP/IP be configured on the ent0 network adapter?()

    • A、ifconfig en0 192.168.10.1 netmask 255.255.255.0 gateway 192.168.10.254
    • B、ifconfig ent0 192.168.10.1 netmask 255.255.255.0 gateway 192.168.10.254
    • C、mktcpip test61 -a 192.168.10.1 -i en0 255.255.255.0 192.168.10.254 -smktcpip ? test61 -a 192.168.10.1 -i en0 ? 255.255.255.0 ? 192.168.10.254 -s
    • D、mktcpip test61 -a 192.168.10.1 -i ent0 255.255.255.0 192.168.10.254 -smktcpip ? test61 -a 192.168.10.1 -i ent0 ? 255.255.255.0 ? 192.168.10.254 -s

    正确答案:C

  • 第23题:

    单选题
    在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


    正确答案: D
    解析: 暂无解析