Simple syntax for linux bound continuous IP

Source: Internet
Author: User

Production environment encountered a single NIC multi-IP, we can add a virtual sub-network card to add IP, such as ifcfg-eth0:1 this format, but if we add the IP is continuous, you can use a concise method to achieve


The reference configuration file is as follows:


# Cat IFCFG-ETH0-RANGE0//(here is the keyword, eth0 according to their actual NIC name replacement, refer to/etc/init.d/network script)
Device=eth0
Bootproto=static
Onboot=yes
Type=ethernet
ipaddr_start=650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "spacer.gif"/>205.229.235.70//Up Start IP
ipaddr_end=650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "spacer.gif"/>205.229.235.78/ /End IP
Clonenum_start=1//(indicates the eth0:1, which has 9 IP, so it will be from eth0:1---eth0:9)
netmask=650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>255.255.255.0
No_aliasrouting=yes


The gateway parameter can be added according to your own situation

Simple syntax for linux bound continuous IP

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.