仮想マシンのNICを再起動します。

1、centos6カードの再起動方法:

service network restart

centos7カードの再起動方法:

systemctl restart network

2、DNSの設定ファイル:cat /etc/resolv.conf

ホストとIPバインディング情報を設定します。cat /etc/hosts 
ホスト名を設定します。cat /etc/hostname

3、テキストボックスには、IPを変更nmtui使用することができます
4、ファイアウォールをオフにして、ブートが起動しない設定

ファイアウォールの状態を確認します:systemctl status firewalld.service 
オフ:systemctl stop firewalld 
オン:systemctl start firewalld 
ブートは自動的にシャットダウン:systemctl disable firewalld 
起動時:systemctl enable firewalld 
ブートを有効にするかどうかを確認します。chkconfig --list|grep network(RHLE6)

5、一時的および恒久的な閉鎖のSELinux

臨時休業: 
_getenforceの 
施行

_setenforce 0 
setenforce:SELinuxが無効になっています

永久閉鎖:

_vim /etc/selinux/config

おすすめ

転載: www.cnblogs.com/xiaolizikj/p/11362188.html