[Server configuration] ubuntu8.10 server sets multiple IP addresses

Source: Internet
Author: User
Two methods:
1> Modify/etc/Network/interface
The original interface file is as follows:
  1. Auto Lo
  2. Iface lo Inet loopback
  3. Auto eth0
  4. Iface eth0 Inet static
  5. Address 192.168.7.72
  6. Netmask 255.255.255.0

Now you need to add an IP address 192.168.53.75 with a mask of 255.255.255.128. In the above file, add the following content:

  1. 1. Auto eth0: 0
  2. 2. iface eth0: 0 Inet static
  3. 3. Address 192.168.53.75
  4. 4. netmask 255.255.255.255.128

You can add eth0: 1 eth0: 2 ......

2> in the above method, after the ubuntu8.10server is restarted, the 2nd IP addresses cannot be added.
You can also use the command line: ifconfig eth0: 0 192.168.53.75 netmask implements 255.255.255.128 up
Add/etc/rc. Local

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.