6–Configuring NIC Functionality in the Converged Network Adapter
Configuring the NIC in a Linux Environment
FE0254601-00 A 6-49
In this command:
bond0 is the bonding interface created by the ifconfig command in
Step 1.
eth0 and eth1 are the QLogic adapter network interfaces form a part
of this bond.
Persistent Bonding Configuration
1. Create a bond0 configuration file. RHEL 5-based Linux distributions
persistently store network configurations in the
/etc/sysconfig/network-scripts/ directory. The following
demonstrates how to create a network configuration file for a bonding
interface:
a. Create or open the file
/etc/sysconfig/network-scripts/ifcfg-bond0X with an
editor:
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
b. Append the following commands to the file to modify the network. For
example:
DEVICE=bond0
IPADDR=<ip_address>
NETWORK=<network_address>
NETMASK=<netmask>
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
2. Save the file, and then exit the editor.
3. Modify the network interface scripts for the physical interfaces that are to be
bonded.
NOTE:
Persistent configuration changes are preserved across server reboots. To
make persistent configuration changes, edit the Linux networking scripts in
the /etc/sysconfig/network-scripts/ directory. For information
about dismantling a bonding network interface, refer to “Disabling a Bonding
Network Interface” on page 6-51.