设置网关为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
c双下哪个命令可以用来显示server正在监听的端口( )
A. ifconfig
B. netlist
C. iptables
D. netttstat
快速启用网卡eth0的命令是()
A. ifconfig eth0 noshut
B. ipconfig eth0 noshut
C. ifnoshut eth0
D. ifup eth0