Steps for networking of linux system
This article will explain the steps of linux system networking in detail for you. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Log into the Linux system. First, log in to the linux interface with your root account and password (Note: it must be an administrator user or permission). If other users log in, use the su command to switch users and enter the password. The result is as follows:
Modify the Linux ip address. Use the command vi / etc/sysconfig/network-scripts/ifcfg-eth0 to change the ip address of the Linux system to the network segment allowed by the router or network switch, add a command DNS = 8.8.8.8, press the keyboard ESC key after modification, and type wq to save and exit, as shown in the following figure:
Verify that Linux is connected to the network. Use the ping command to directly ping a website. If the host cannot be identified, it indicates that it is not connected to the network. The ping Baidu of this department takes Baidu as an example. The result shows that it is not online as shown in the following figure:
Linux networking. The command vi / etc/resolv.conf writes nameserver 8.8.8.8 in the open text, and the result is shown in the figure:
Restart the Nic: use the command: service network restart to restart, and the result is as follows:
Verify. Use the ping Baidu command to check whether there is a reply. If so, the network is successful. The result is shown below:
On the linux system networking steps to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.