**Linux configuration system network (static)**

Enter this command line static network configuration: the
Insert picture description here
steps are as follows:
Slice description

![Insert picture description here](https://img-blog.csdnimg.cn/20201002142612632.png#pic_centerInsert picture description here
Insert picture description here

Static IP defines its own IP
Netmask fixed format 255.255.255.0
Default gateway IP subnet mask must be the same as in the screenshot below
DNS fixed format 8.8.8.8

Insert picture description here

Then click OK and save it all the time.
Insert picture description here
Insert picture description here
View the unique representation of the virtual machine (MAC address):
Insert picture description here
MAC address needs to be recorded in detail (very critical) ! ! !
Insert picture description here

Modify the file vi /etc/sysconfig/network-scripts/ifcfg-eth0

Insert picture description here
Finally restart the system and ping www.baidu.com to see if the ping works

Guess you like

Origin blog.csdn.net/weixin_44704605/article/details/108901825