When using a Virtual Appliance for backups it may be necessary to add a second NIC in order to connect to the repository.
To add a second NIC:
Power off the Virtual Appliance
Locate the VA in the vSphere client and Right click > Edit Settings
On the Hardware tab, select Add > Ethernet Adapter and then click next. Select the Type (E1000 is recommended), the network to connect to and check 'Connect at power on'.
Complete the wizard and power on the VA.
Logon as root
To verify the NIC was recognized and determine what device name was assigned run:
dmesg | grep 'eth'
eth0 will be the original nic, the second nic will most often be eth1 as shown below.
root:~# dmesg | grep "eth"
[ 3.594525] e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
[ 3.982804] e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
[ 8.252071] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
[ 8.411722] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Change directories to /etc/sysconfig/network-devices
Create a directory for the second nic. In the example above you would type:
mkdir ifconfig.eth1
Change directories to the newly created direcotry - ifconfig.eth1
If you want to use DHCP, copy the network script (dhcpcd) from /etc/sysconfig/network-devices/ifconfig-eth0 into the newly created directory.
To assign an IP address use the vi editor to create a file named ipv4 in the newly created directory using the following command:
vi ipv4
Enter the following within the file:
ONBOOT=yes
SERVICE=ipv4-static
IP=<ip address for this nic>
GATEWAY= (only 1 nic should have a GATEWAY. if eth0 has a GATEWAY do not enter the GATEWAY line)
PREFIX=<subnet mask>
BROADCAST=<broadcast ip address for this subnet>
MTU=<OPTIONAL - Leave this line out if it is not needed.>
Press the ESC key then :wq to save the file
Restart the network service using this command:
/etc/rc.d/init.d/network restart