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
73 years of prosperity, building dreams of thousa...
[[400629]] Recently, 5G has become a hot topic on...
Overview The original intention of the project wa...
Ethernet IP has revolutionized the world of netwo...
2013 was the first year of 4G in China. Seven yea...
Tencent Cloud recently launched a limited-time sp...
The withdrawal of 2G network is actually not a ne...
5G networks are the next generation of wireless t...
LOCVPS (Global Cloud) launched its first promotio...
With the progress and development of human societ...
Where will the major domestic Internet companies ...
1. Recently, a strange phenomenon occurred in the...
South Korean telecom operator SK Telecom recently...
We talk about 5G every day, but do you know what ...
My girlfriend gets off work at 7 o'clock ever...