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