启用vmnet8虚拟网络
vmware---vmnet8---网络:192.168.200.0/24,关闭DHCP
临时IP,# ip addr add 192.168.200.11/24 dev/ens33
1、配置网络
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
BOOTPROTO=static
NAME=ens33
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.200.11
PROFIX=24
GATEWAY=192.168.200.2
DNS1=114.114.114.114
[root@localhost ~]# systemctl restart network
[root@localhost ~]# ip addr show ens33
[root@localhost ~]# ping www.qq.com
2、配置主机名
[root@localhost ~]# hostnamectl set-hostname node01
[root@localhost ~]# bash
3、关闭防火墙
[root@node01 ~]# systemctl stop firewalld --now
4、关闭SeLinux
[root@node01 ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
6、配置路由转发
[root@node01 ~]# vi