Host-only mode
1. Host set up network share
2. Virtual Machine Network Settings
[Email protected] ~]# cd/etc/sysconfig/network-scripts/[[Email protected] network-scripts]# lsifcfg-ENP0S3 IFDOWN-PPP Ifup-ib ifup-teamifcfg-lo ifdown-routes IFUP-IPPP ifup-Teamportifdown Ifdown-sit Ifup-ipv6 ifup-Tunnelifdown-BNEP Ifdown-team ifup-isdn ifup-Wirelessifdown-eth Ifdown-teamport Ifup-plip init.ipv6-GlobalIfdown-ib Ifdown-tunnel Ifup-plusb network-Functionsifdown-IPPP ifup ifup-post network-functions-Ipv6ifdown-ipv6 ifup-aliases ifup-Pppifdown-ISDN IFUP-BNEP ifup-Routesifdown-post Ifup-eth ifup-Sit[[email protected] Network-scripts]# Cat ifcfg-ENP0S3 TYPE=Ethernetbootproto=Nonedefroute=Yesipv4_failure_fatal=Noipv6init=yesipv6_autoconf=Yesipv6_defroute=Yesipv6_failure_fatal=NoNAME=Enp0s3uuid=e5148472-bd96-4da0-97ca-3040fb54a102device=Enp0s3onboot=yesipaddr=192.168.137.105PREFIX= +GATEWAY=192.168.137.1DNS1=192.168.9.19Ipv6_peerdns=yesipv6_peerroutes=yesipv6_privacy=no
Virtual Machine Internet access