1 关闭防火墙
iptables -F
systemctl stop firewalld
2 关闭selinux
setenforce 0
3 设置yum
cd /etc/yum.repos.d/
vim centos7.repo
[centos7]
name=this is centos.repo
baseurl=file:///mnt
enabled=1
gpgcheck=0
4 设置hostname
hostnamectl set-hostname breeze19-1
bash
5 设置IP
dhcp
cat /etc/sysconfig/network-scripts/ifcfg-ens32
桥接
6 设置host
hostname
ifconfig -a | grep inet | grep -v inet6 | grep -v 127.0.0.1 | awk '{print $2}' | head -1
echo "192.168.0.19 breeze19-1" >> /etc/hosts
ping breeze19-1