How to configure network connection in centos

王林
Release: 2020-05-21 09:38:34
Original
8693 people have browsed it

How to configure network connection in centos

First set VMware to NAT mode

How to configure network connection in centos

Click "Virtual Network Editor" in "Edit" and check the DHCP service Assign the IP address to the virtual machine and set the subnet IP

How to configure network connection in centos

Click NAT Settings next to NAT mode, and then modify the gateway IP in the same network segment as the subnet IP. Click "Confirm" to save the settings

How to configure network connection in centos

Enter the network configuration directory /etc/sysconfig/network-scripts, as shown below

How to configure network connection in centos

Use vi command to edit ifcfg-ens33, press shift i to enter insert editing mode, set BOOTPROTO to dhcp, set ONBOOT to yes, press Esc to enter command mode and enter: wq to save and exit

How to configure network connection in centos

Enter service network restart to restart the network card to make the network card settings take effect, and then you can access the Internet.

Recommended tutorial: centos tutorial

The above is the detailed content of How to configure network connection in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template