单选题
在Linux系统中,下列为主机网卡配置理地址的命令,正确的是( )。
A、
ifconfig 192 .168.0.5 netmask 255.255.255.0 up.
B、
ifconfig eth0 192.168.0.5 netmask 255.255.255.0 up
C、
ipconfig 192.168.0.5 netmask 255.255。255.0 up
D、
ipconfig eth0 192.168.0.5 netmask 255.255.255.0 up
【正确答案】
B
【答案解析】
Linux系统中用于给主机配置IP地址的命令是ifconfig,后面跟指定的接口比如eth0,在给定相应的IP地址掩码即可。
提交答案
关闭