设置网卡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
本文介绍了如何在CentOS系统中设置网卡eth0,包括编辑 `/etc/sysconfig/network-scripts/ifcfg-eth0` 文件并重启网络服务。此外,还讲解了通过安装ntpdate并执行同步命令来与授时中心保持时间一致的方法,确保Linux系统时间的准确性。
设置网卡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
1661
1559
6351
2583

被折叠的 条评论
为什么被折叠?