1. Enter the network card configuration directory first2. Edit the configuration file of ifcfg-ens33 network cardvim ifcfg-ens33 is as follows: After modification, it is as follows: Exit and save, use ip add to view your own IP address, ip route to view the gateway, and then continue to edit the ifcfg-ens33 network card configuration file Exit and save (wq) The analysis is as follows: BOOTPROTO=none #Set the network card to statically configure the IP address none static configuration (manually specify the IP address) dhcp means that the virtual machine dynamically obtains the IP address 3. Refresh network services ---》centos7: How to check the version of centos: Refresh the network service and check the IP address and gateway again 4. Test whether ping Baidu can access the Internetctrl+c to force terminate ping This is the end of this article about the detailed steps of manually configuring the IP address in Linux. For more relevant content about configuring the IP address in Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Example of how to set div background transparent
>>: Some useful meta setting methods (must read)
background A specific device is used to perform i...
Table of contents 1. What is block scope? 2. Why ...
<br />How to remove the dividing lines of a ...
Sometimes you need to set several areas on a pict...
Table of contents Basic database operations 2) Vi...
Recently, there have been many database-related o...
Brief review: Browser compatibility issues are of...
Say it in advance We all know that Docker can ach...
1. HTML part <Col span="2">Upload...
This article example shares the specific code of ...
Sometimes we save a lot of duplicate data in the ...
1. System environment [root@localhost home]# cat ...
Table of contents 1.1. Network access between con...
Introduction The Docker community has created man...
1. Download the repository image docker pull regi...