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
[[406692]] The Linkerd 2.10 Chinese manual is bei...
Integrated wiring is a modular and highly flexibl...
Hengchuang Technology is an IDC brand under Hong ...
With the hot and continuous iteration of large mo...
Observability refers to the ability to measure th...
[51CTO.com original article] F5 Networks recently...
[[239400]] Image source: Visual China The CDN pri...
On September 7, the third day of the All-Connect ...
A new report released by IndexBox: "World – ...
In July this year, Gartner released the 2019 Data...
5G networks are being hailed as the next-generati...
[51CTO.com original article] On May 18-19, 2018, ...
On April 5, while China was going crazy for the &...
LigaHosting.ro is a Romanian hosting company that...
As functional evolution and experience improvemen...