RHEL6/Centos6中,查看主机名的命令是( )
A. host
B. name
C. hostname
D. systemctl
查看答案
用ifconfig命令对网卡eth0设置IP为192.168.0.10,子网掩码为255.255.255.0 正确的是( )
A. ifconfig 192.168.0.10 255.255.255.0
B. ifconfig 192.168.0.10eht0 netmask 255.255.255.0
C. ifconfig eth0 192.168.0.10 netmask 255.255.255.0
D. ifconfig 192.168.0.10 netmask 255.255.255.0 eth0
设置网关为192.168.1.254,下列命令正确的是( )
A. route add 192.168.1.254
B. route add default wg 192.168.1.254
C. route add default gw 192.168.1.254
D. route default gw 192.168.1.254
已知网卡配置文件如下[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0TYPE=EthernetBOOTPROTO=dhcpNAME=eth0DEVICE=eth0ONBOOT=yes那么网卡获取IP的方式为( )
A. 静态IP
B. 动态IP
C. 无法获取IP
D. eth0
REHL6/Centos6中重启网络服的命令是( )
A. service network stop
B. service network restart
C. service network enable
D. service network disable