Virtual Machine Internet access

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.