CentOS7 配置外網靜态ip
[root@localhost ~]# cd /etc/sysconfig/
[root@localhost sysconfig]# vi network
指令行承上繼續輸入,會看到如下檔案ifcfg-ens33,這個檔案名不固定,字首固定ifcfg-*
[root@localhost sysconfig]# cd network-scripts/
編輯檔案内容
[root@localhost network-scripts]# systemctl restart network.service
實體機ping虛拟機ip
虛拟機ping實體機ip
注:日常記錄