设置网卡eth0
vim /etc/sysconfig/network-scripts/ifcfg-eth0
设置后的值
重启网卡:service network restart(root权限)
windows ping linux
linux ping windows
与授时中心同步时间
linux同步网络时间
1.安装 ntp服务
yum install ntpdate
2.执行同步
ntpdate -u ntp.api.bz