Linux network configuration - the most detailed in the whole network - you must be able to understand

Linux network configuration - the most detailed network

Follow the operation step by step

Find Network and Internet in Settings

  1. Click on Network and Sharing Center

  2. Change adapter settings

  3. enableSee if it is enabled on your computer as shown in the picture
    insert image description here
    insert image description here

  4. Check whether the service is enabled on windows (usually it is automatically enabled, just in case check it)
    as follows: Start these three servicesinsert image description here

  5. Set the virtual machine network adapter - NAT mode
    insert image description here

  6. Click on Virtual Network Editor
    insert image description here
    insert image description here
    insert image description hereinsert image description here

  7. Enter the Linux system to start configuration

    1. Enter the root account and open the terminal

    2. input the commandifconfig

    3. insert image description here

    4. input the command vim /etc/sysconfig/network-scripts/ifcfg-ens33
      insert image description here

    5. Modify the file and save
      insert image description here
      insert image description here

    6. Restart the network service
      and enter the commandservice network restart

  8. Check if the connection is successful

        ping www.baidu.com
    

insert image description here
insert image description here

Once you get here, you have successfully connected to the Internet! ! ! ! !

Guess you like

Origin blog.csdn.net/weixin_46286150/article/details/124523421
Recommended