环境搭建
由于rhel8在企业中尚未普及,所以企业部分我们需要安装rhel7.6的虚拟机完成项目。
此实验中我们需要三台虚拟机:
宿主机home:172.25.1.10
server1:172.25.1.1
server2:172.25.1.2
虚拟机的封装
1.主机名称修改
[zxn@localhost ~]$ hostnamectl set-hostname home
[zxn@localhost ~]$ hostname
home
2.网络文件配置
[zxn@localhost network-scripts]$ vim ifcfg-ens33
[zxn@localhost network-scripts]$ cat ifcfg-ens33
BOOTPROTO=none
DEVICE=ens33
ONBOOT=yes
IPADDR=172.25.1.10
PREFIX=24
3.配置主机解析
[zxn@localhost network-scripts]$ vim /etc/hosts
[zxn@localhost network-scripts]$ cat /etc/hosts
4.禁用项目
<