Storage location of IP under Linux

Source: Internet
Author: User

Under Linux, it is usually eth0 to configure multiple IPs.0.. Eth0.1 .. eth0.x and so on, then if you want to configure a large number of IP, so configuration is also possible, but cumbersome, although this situation is very small. For the addition of a large number of IP, there are certain provisions, RHCE/The CentOS system provides a fast way to bind an IP range so that we no longer need to create a large number of files to save time. such as: # VIM/etc/sysconfig/network-scripts/ifcfg-eth0-Range0ipaddr_start=10.1.0.100Ipaddr_end=10.1.0.200Clonenum_start=0NETMASK=255.255.255.0Ipaddr_start is the first IP, Ipaddr_end is the last IP. Clonenum_start is the start number of the interface that will be assigned to a series of interfaces (the instance is starting from eth0:0). Activating the NIC: # ifdown eth0&& ifup eth0

Storage location of IP under Linux

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.