Adding a Virtual Interface to a Linux Server
The standard APTARE server configuration uses two virtual hosts on the server. One host, identified by the sub-domain aptareportal, handles Portal requests to deliver APTARE StorageConsole administration and reporting functionality. The second host, identified by the sub-domain aptareagent, handles data collection functionality between the data collection agent and the various devices that report to the agent. These virtual hosts are defined in the Apache configuration file; the sub-domain names are used to identify the each host.
When using SSL, unique IP addresses must be assigned to each virtual host. Therefore, if SSL is to be enabled for both the Portal and Data Collection, two IP addresses are required. Two IP addresses can be assigned using two NICs or, on a Linux server, a virtual interface can be created so that two IP addresses can be assigned to a single NIC.
To verify the number of IP addresses assigned to a Linux server, use the command "ifconfig -a" to view detailed network configuration of the server. As sample result of the "ifconfig -a" command:
eth0 Link encap:Ethernet HWaddr 08:00:27:71:44:C4
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:310 errors:0 dropped:0 overruns:0 frame:0
TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63235 (61.7 KiB) TX bytes:28143 (27.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8762 errors:0 dropped:0 overruns:0 frame:0
TX packets:8762 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5422509 (5.1 MiB) TX bytes:5422509 (5.1 MiB)
Creating a Virtual Interface
You must have two Ethernet connections, identified by the "eth0" label. To add a virtual interface on a Linux server, with a second IP address, to the existing Ethernet interface, use the following command:
ifconfig eth0:0 111.222.333.444
where
111.222.333.444 is the new IP address for the virtual interface.
You must add a file to the network scripts to recreate the virtual interface when the server is rebooted. If the IP address assigned to the eth0 interface is static, make a copy of the ifcfg-eth0 file in /etc/sysconfig/network-scripts and name it ifcfg-eth0:0. Update the IP address in ifcfg-eth0:0 to be the new IP address assigned to the virtual interface.
If the IP address in the eth0 interface is dynamically assigned, as indicated by the line "BOOTPROTO=dhcp" in the ifcfg-eth0 file, create a file named ifcfg-eth0:0 with the following lines:
DEVICE=eth0:0
IPADDR=111.222.333.444
Finally, update your DNS server so that the new IP address is mapped to data collection URL (i.e., aptareagent.company.com).