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.
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.
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.
#4. After the network card is configured, restart the network card and execute the command: /etc/init.d/network restart.
#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.
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!