Add multiple IP segments to the same Nic

Source: Internet
Author: User
Enter multiple IP segments in the same NIC-Linux Enterprise Application-Linux server application information. For more information, see. 1. original IP configuration file

[Root @ UE-LOCAL-126 network-scripts] # cat ifcfg-eth0
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = static
IPADDR = 10.0.0.126
NETMASK = 255.255.255.0
GATEWAY = 10.0.0.1

2. Newly Added IP segment 1

[Root @ UE-LOCAL-126 network-scripts] # cat ifcfg-eth0-range0
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = static
IPADDR_START = 10.0.1.111
IPADDR_END = 10.0.1.115
CLONENUM_START = 0
GATEWAY = 10.0.1.1
NETMASK = 00000000000
NO_ALIASROUTING = yes

3. New IP Segment 2

[Root @ UE-LOCAL-126 network-scripts] # cat ifcfg-eth0-range1
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = static
IPADDR_START = 10.0.0.116
IPADDR_END = 10.0.0.119
CLONENUM_START = 5 (Note: corresponding to eth0: 5)
GATEWAY = 10.0.0.1
NETMASK = 00000000000
NO_ALIASROUTING = yes

You must use the network restart command for remote operations.

Ten thousand cannot be used such as ifdown ifcfg-eth0-range1, this will down the device eth0, resulting in network disconnection.

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.