Home  >  Article  >  Operation and Maintenance  >  How to configure the network in linux

How to configure the network in linux

藏色散人
藏色散人Original
2019-11-12 09:37:463313browse

How to configure the network in linux

How to configure the network in Linux?

1. First, we need to ensure that the local computer can connect to the extranet, and then open the installed virtual machine.

How to configure the network in linux

Recommended: "Linux Tutorial"

2. Execute the command ifconfig to view the IP of the current virtual machine. The default system is to obtain it automatically. of.

How to configure the network in linux

3. Since the local computer is configured for static address Internet access, the IP address of the network card needs to be modified, so you can use the command: Vi/Etetcconfissetvicetsuptscfg-ithg-ith0. Open this interface.

How to configure the network in linux

#4. After the network card is configured, restart the network card and execute the command: /etc/init.d/network restart.

How to configure the network in linux

#5. After the configuration is completed, we will test the network connectivity, Ping www.baidu.com, the network is connected, so the configuration is completed.

How to configure the network in linux

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

Statement:
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