Network connection configuration for CENTOS7 Linux system and local window system under VM VirtualBox

Source: Internet
Author: User
Tags ftp client vm virtualbox

To simulate the development of a production environment, install the virtual machine on your computer and record it here.

CentOS connecting to the native network1. Environment

Virtual Machines Virtualbox-5.2.0-118431-win

Linux image centos-7-x86_64-minimal-1708

computer WINDOW10

install these environments . the specific installation process is not listed here.

This article is done with the root permission as an example. Please add sudo before the command if you are not authorized to operate Linux

2. Setting up a CentOS network

set the CENTOS1 network, my image name here is centos1

The specific settings are as follows

3. set Global network settings for Vmbox

4. Specify IP for centos1

First login to CENTOS1, modify the network configuration file

CD etc/sysconfig/network-scripts/

Edit the configuration file, set Ip

Vi IFCFG-ENP0S3

Browser_only= "No"

Type= "Ethernet"

Proxy_method= "None"

Browser_only= "No"

bootproto= "Static"

Efroute= "Yes"

Ipv4_failure_fatal= "No"

ipv6init= "Yes"

ipv6_autoconf= "Yes"

Ipv6_defroute= "Yes"

Ipv6_failure_fatal= "No"

Ipv6_addr_gen_mode= "Stable-privacy"

Name= "ENP0S3"

Uuid= "358e416b-e729-414d-998f-6708ee29c3fe"

Device= "ENP0S3"

onboot= "Yes"

Ipaddr= "192.168.2.181"

netmask= "255.255.255.0"

Gateway= "192.168.2.11"

dns1= "192.168.2.11"

5. Restart network

Service Network restart

6. Turn off the window10 and linux firewalls

Close The firewall of the native WINDOW10, go to the Control Panel, locate the window Firewall, and then disable

shutting down the CENTOS1 firewall

Systemctl Stop Firewalld.service

7. making window bridging

go back to the WINDOW10 system, open the Network Sharing Center, click Change Network adapter , then check VirtualBox host-only and the WLAN (I am here when the wireless network, if it is wired, then check the local connection), right-click, bridging . this will appear

8. Test

9. ftp Connection

First install the FTP client tool, which is used here when xftp5.

10. Because my computer is also a server, so the IP can not be changed, but it is necessary to manually specify the IP

10. because my computer is also a server, so the IP can not be changed, but this will have to manually specify the IP

Network connection configuration for CENTOS7 Linux system and local window system under VM VirtualBox

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.