6–Configuring NIC Functionality in the Converged Network Adapter Configuring the NIC in a Linux Environment

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

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.

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.

FE0254601-00 A

6-49

Page 217
Image 217
Q-Logic 8100 SERIES manual Persistent Bonding Configuration, # vi /etc/sysconfig/network-scripts/ifcfg-bond0