My memory is getting worse and worse, just recording it. I have done it before, but forgot it after a while. In addition, I use CentOS most often, but many friends prefer Ubuntu or Debian. Today I encountered a cloud host with Ubuntu 18.04 system that changed its IP. The normal change of /etc/network/interfaces did not work. I record it here to avoid the trouble of going to Bing every time. Ubuntu 18.04 uses Netplan to configure IP addresses, so you need to modify the /etc/netplan/* file. The above picture shows the modification of /etc/network/interfaces. After the completion of the restart, the new IP is not accessible. Use the ifconfig command to check that it is still the old IP. Next, modify the yaml file under /etc/netplan/. The file name may be different. Correct the addresses and gateway in the file, save it after completion, and then use sudo netplan apply to apply the configuration. |
<<: RackNerd "Memorial Day" Sale: Los Angeles VPS from $14.99 per year
JuHost was registered in Hong Kong in early 2023,...
[51CTO.com original article] On July 26, 2018, th...
From the perspective of network implementation, n...
With the popularity of e-commerce and mobile paym...
1. Brief description of background technology Reg...
Once you enter the communications industry, you w...
On November 27, 2019, China Telecom, China Mobile...
IT infrastructure is changing rapidly. Specifical...
In the blink of an eye, we have entered 2018. In ...
2019 is the first year of 5G commercial deploymen...
Recently, the Ministry of Industry and Informatio...
With the development of communication technology,...
What was the past life like, what is the present ...
As we all know, since the first half of the year,...
What is a long connection? Long connection or sho...