2.編輯-〉虛擬網(wǎng)絡(luò)編輯器 自動橋接
3.vi /etc/sysconfig/network-script/ifcfg-ens33
ONBOOT=yes
BOOTPROTO=static
GATEWAY=192.168.0.1
IPADDR=192.168.0.91
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=114.114.114.114
4.service network restart
5.如果改變虛擬機配置,需要重新連網(wǎng)
[root@mina0 hadoop]# systemctl stop NetworkManager
[root@mina0 hadoop]# systemctl disable NetworkManager
然后:重啟網(wǎng)卡:
[root@mina0 hadoop]# systemctl restart network
[root@mina0 hadoop]# ifconfig