ipconfig
ping 目標ip #測試當前服務器是否能夠鏈接目的主機
vim /etc/sysconfig/network-scripts/ifcfg-eth0
`修改配置文件後,要重啓網絡服務才能生效linux
service network restart