Linux IP address authentication multi-IP configuration __linux

Source: Internet
Author: User
1.1 IP Address authentication Multi-IP configuration

Add an IP to a network card:

(1) Enter the/etc/sysconfig/network-scripts/directory, cd/etc/sysconfig/network-scripts/

(2) Copy an IP template to the directory, where the Ifcfg-eth0 as the template CP Ifcfg-eth0 ifcfg-eth0:100, will create a named ifcfg-eth0:100 IP address file

(3) Edit ifcfg-eth0:100 file to modify the device, IPADDR, NETMASK, gateway parameters,

The device value should be the part of the filename that begins with "eth0", where the new IP address is device=eth0:100,ipaddr=, netmask= the subnet mask corresponding to the IP address, the gateway to the Gateway= network card, and other properties that are not used for modification. Leave the default

(4) Save the file

(5) To make the IP effective need to execute the command ifup ifcfg-eth0\:100 (single IP), or/etc/rc.d/init.d/network (the changed IP all effective) restart

It is configured as shown in the following illustration:


If you need to configure more IP addresses, you can use the following client batches to generate an IP address file.

Download Address: http://download.csdn.net/detail/xh16319/7058891



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.