1.設置為橋接
2.編輯-〉虛擬網絡編輯器 自動橋接
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.如果改變虛擬機配置,需要重新連網
[root@mina0 hadoop]# systemctl stop NetworkManager
[root@mina0 hadoop]# systemctl disable NetworkManager
然后:重啟網卡:
[root@mina0 hadoop]# systemctl restart network
[root@mina0 hadoop]# ifconfig
posted on 2018-05-16 10:34
長春語林科技 閱讀(233)
評論(0) 編輯 收藏 所屬分類:
linux