1-3 CentOS 7 configuring network environment

Time:2022-1-10

1. After the system is installed, the network environment needs to be configured to access the Internet.

2. Open VM virtual machine and select Edit virtual machine settings. Network connection — bridge mode.

1-3 CentOS 7 configuring network environment

3. Start the virtual machine, enter the account / password and log in to the system.

1-3 CentOS 7 configuring network environment

1-3 CentOS 7 configuring network environment

4. Configure network

1-3 CentOS 7 configuring network environment

1-3 CentOS 7 configuring network environment

1-3 CentOS 7 configuring network environment

1-3 CentOS 7 configuring network environment

Run CMD in windows and enter ipconfig to view the network adapter parameters.

1-3 CentOS 7 configuring network environment

Refer to the local IP configuration. Because the network connection mode used by the virtual machine is bridging. Therefore, the network configuration of CentOS system needs to be the same network segment as the local IP of windows.

1-3 CentOS 7 configuring network environment

VI / etc / sysconfig / grub, enter the grub file.

1-3 CentOS 7 configuring network environment

Regenerate grub configuration and update kernel parameters:

grub2-mkconfig -o /boot/grub2/grub.cfg

Reboot restart

1-3 CentOS 7 configuring network environment

After the system restarts, enter ifconfig, and you can see that the network card name has been changed to eth0. And also has IP.

1-3 CentOS 7 configuring network environment

ping www.baidu. com、www.qq. com、www.163. Com can ping.

1-3 CentOS 7 configuring network environment

Windows can ping CentOS IP by opening CMD

1-3 CentOS 7 configuring network environment

So far, the CentOS 7 network environment has been configured.

—————————————————————————————

Tips: if centos7 configures the network correctly and still Ping different networks, you can refer to the following practices.

VM — > Edit — > virtual network editor

1-3 CentOS 7 configuring network environment

Select the network card for the bridge mode, not auto. After setting, see if centos7 can connect to the Internet

1-3 CentOS 7 configuring network environment

Recommended Today

Lagrange interpolation — Python

Data analysis Data cleaning: missing value processing, 1 deleting records2 data interpolation3 no treatment Data inhttps://book.tipdm.org/jc/219Data and code in resource package in Chapter4 \ demo \ data \ cataling_ sale. xls Common interpolation methods Interpolation Lagrange interpolation According to mathematical knowledge, for n known points on the plane (no two points), n-1 polynomial can be […]