In linux, how to change the IP address to permanent effect in the following way vi/etc/sysconfig/network-scripts/ifcfg-eth0 (eth0, the first Nic, if the second is eth1) modify ipDEVICEeth0 as follows (if the second block is just eth1) BOOTPROTOstaticIPADDR...
In linux, how to change the IP address to take effect permanently follow the following method vi/etc/sysconfig/network-scripts/ifcfg-eth0 (eth0, the first Nic, if the second is eth1) modify ipDEVICE = eth0 as follows (if the second block is just eth1) BOOTPROTO = staticIPADDR = 192.168.0.11 (changed to the IP address to be set) NETMASK = 255.255.255.0 (subnet mask) GATEWAY = 192.168.0.1 (GATEWAY) ONBOO = yes, and then the service network restartIP address takes effect. after the system is restarted, it remains unchanged. if the IP address is changed temporarily and the original IP address is restored after the system is restarted, run the following command: ifconfig IP address netmask subnet mask
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service