当前位置:网站首页>VMware uses wireless network card NAT to access the Internet under Windows

VMware uses wireless network card NAT to access the Internet under Windows

2022-07-23 11:43:00 Youth without fame

Environmental Science

host :window10

Virtual machine software :vmware

Linux System :centos7(2009)

1、 Configuration of host wireless network card .IP Address :192.168.1.31( Attribute is auto get )

2、 Virtual machine network settings , Network segment IP by 10.10.10.0

 

3、VMware Related services are in the start state .

 

4、 Turn off firewall .

5、VMware Network Adapter VMnet8 Network card configuration

 6、 virtual machine Linux System static IP To configure .

cd /etc/sysconfig/network-scripts/
vi ifcfg-ens33

appear PING IP When the address is normal ,ping Domain name is abnormal , Need to set up

DNS1="8.8.8.8"

Restart network service service network restart

Content :


TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="ens33"
UUID="9de91a5a-7005-493a-9efd-14cb9724ae79"
DEVICE="ens33"
ONBOOT="yes"
IPADDR="10.10.10.11"
PREFIX="24"
GATEWAY="10.10.10.2"
DNS1="8.8.8.8"
DNS2="10.10.10.2"
IPV6_PRIVACY="no"
 

7、 Set up yum Source

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
yum clean all && yum makecache
yum install net-tools -y
systemctl stop firewalld
systemctl disable firewalld
sudo sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenforce 0
yum install -y vim wget git

原网站

版权声明
本文为[Youth without fame]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207230538280945.html