These are the steps to add the second IP address to your existing network adapter under non-SUSE distributions of Linux.
- Become root on your system, either by logging into that account or using the su command.
- Change your current directory to the /etc/sysconfig/network-scripts directory with the command:
cd /etc/sysconfig/network-scripts - Check for existing network adapters with the command:
ls ifcfg-*In most instances, you will see the files ifcfg-eth0 and ifcfg-lo. If you see other files with any other names and are unfamiliar with configuring TCP/IP, you may want to consult with your system administrator before proceeding or contact support@oclc.org.
- Edit /etc/hosts and add a line for your new address and name such as:
24.249.162.195 ezproxy.yourlib.org - To create the new interface, you will copy ifcfg-eth0 to ifcfg-eth0:0 with the command:
cp ifcfg-eth0 ifcfg-eth0:0Next, edit icfg-eth0:0 and change the DEVICE line to be similar to:
DEVICE=eth0:0and change the IPADDR line to be similiar to:
IPADDR=24.249.162.195 - To activate the new IP address, issue a command similar to:
./ifup eth0:0