Sie sind auf Seite 1von 2

Setup manually:

1. Create the network interfaces:


# ifconfig qfe0 plumb
# ifconfig qfe4 plumb
2. Create IP network multipathing group named "production":
# ifconfig qfe0 group production
# ifconfig qfe4 group production
3. Create address on each interface for data transmission and add the
'failover' flag. The 'failover' flag allows the address to migrate if
an interface failure is detected.
# ifconfig qfe0 svledb01 netmask + broadcast + failover up
# ifconfig qfe4 svledb01-1 netmask + broadcast + failover up
Another example:
The following commands configure a test address on each network interface.
These addresses are used by 'mpathd' to detect interface failures. Test
addresses should not be used by host applicatins for data communication.
Hence, they should be marked with the 'deprecated' flag. Test addresses
must not failover and should also be marked with '-failover' flag. It is
the presense of this '-failover' flag that causes 'in.mpathd' daemon to use
the address as a test address. If IPMP was used to detect failures and not
to provide failover, these test addresses could be omitted and the
'-failover' flag could be used to define the data addresses.
1. Setting up the interfaces:
# ifconfig qfe0 addif cameron-qfe0 netmask + broadcast + \
-failover deprecated up
# ifconfig qfe4 addif cameron-qfe4 netmask + broadcast + \
-failover deprecated up
2. Set it in hostname.qfe0 and hostname.qfe4 so that the configuration
can be persist after a reboot:
For /etc/hostname.qfe0:
cameron netmask + broadcast + failover up group production \
addif cameron-qfe0 netmask + broadcast + deprecated -failover up
For /etc/hostname.qfe4:
cameron-1 netmask + broadcast + failover up group production \
addif cameron-qfe4 netmask + broadcast + deprecated -failover up
------------------------------------------------------------------------------------3.3. NIC Bonding
RHEL 3
- modify /etc/modules.conf
alias bond0 bonding
options bond0 -o bonding0
alias bond1 bonding
options bond1 -o bonding1
- set up /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.119.131

NETMASK=255.255.254.0
BROADCAST=192.168.119.255
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
TYPE=Ethernet
- set up /etc/sysconfig/network-scripts/ifcfg-ethX and ifcfg-ethY (where X an
d Y are the interface number tied to bond0)
DEVICE=eth0
SERCTL=no
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
----------------Prob1
RHEL4 uses /etc/modprobe.conf instead of /etc/modules.conf
Prob2 - RHEL4 only allows 1 options line for bonding.
So the fix, in /etc/modprobe.conf:
alias bond0 bonding
alias bond1 bonding
options bonding mode=1 miimon=100 max_bonds=2

Das könnte Ihnen auch gefallen