参考这篇文章
https://www.cnblogs.com/jasmine-Jobs/p/5928218.html
记得要修改/etc/sysconfig/network文件的网关配置,因为ip变动之后,没有修改此处导致无法联网