Add multiple IP addresses to a linux Nic

Source: Internet
Author: User

As a result of work, you need to configure three IP addresses for a server with only two network ports. The system is linux.

Now we will sort out the process as follows. If you leave it for later use, you can also refer to it.

IP1: 10.110.97.68

IP2: 10.115.20.68

IP3: 10.116.20.68

10.115.000068 is configured on eth2 and 10.110.97.68 is configured on eth3.

Now you need to configure 10.116.20.68 to eth2.

First we copy the configuration file of eth2 and name it ifcfg-eth2: 1

[Root @ iucs network-scripts] # cp ifcfg-eth2 ifcfg-eth2: 1

Delete most of the content in the configuration file and keep the following content.


After setting the IP address and subnet mask, you can report an error file.

To verify availability, restart the server. If the configuration is correct, you can use the ifconfig command to view the NIC information.


If you can see this, the configuration is completed theoretically, and the rest is nothing more than setting routing and other information.

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.