Automatically modify the NIC ip address and mask script in Linux
Source: Internet
Author: User
Automatically modify the NIC ip address and mask script in Linux-Linux Enterprise Application-Linux server application information. For more information, see the following. For more information, see.
After reading some questions from the Internet, I wrote a simple script, which is not strictly enough. For example, I can only modify the e'h0 and cannot modify eth1, you can also add it to the script by yourself. This small shell only provides some help. I am also a beginner in shell. Please give me more instructions.
Change the ip address, IP_MODI = ××××, and mask MASK_MODI = ××××.
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