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