ipconfig
ping 目标ip #测试当前服务器是否能够链接目的主机
vim /etc/sysconfig/network-scripts/ifcfg-eth0
`修改配置文件后,要重启网络服务才能生效linux
service network restart