| |
c) /etc/sysconfig/network-scripts/ifcfg-etho file: This is the Red Hat Linux network configuration file used by the system during the boot process. If you are not using bonding driver we can configure this file. File looks like below. |
|
| |
[root@linuxhost mail]# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=etho
BOOTPROTO=static
IPADDR=11.65.31.100
NETMASK |
|
| |
d) If you would like your Linux server to use DHCP rather than a static IP address, configure /etc/sysconfig/network-scripts/ifcfg-eth0 file with BOOTPROTO to dhcp. |
|
| |
Network bonding is essential for high availability and especially so when setting up RAC. It also improves performance by sending packets from both NIC actively. Red Hat Linux allows binding multiple network interfaces into a single channel/NIC using a special kernel module called bonding. |
|
| |
To setup bonding involves simple four tasks. |
|
| |
TASK 1: First, you need to create bond0 config file: |
|
| |
# vi /etc/sysconfig/network-scripts/ifcfg-bond0 Append following lines to DEVICE=bond0 |
|
| |
BOOTPROTO=static
ONBOOT=yes
IPADDR=11.65.21.82
NETMASK=255.255.255.0
GATEWAY=11.65.21.1
USERCTL=no |
|
| |
TASK 2: Modify eth0 and eth1 config files: |
|
| |
Open both configuration using VI text editor and make sure file read as follows for eth0 and eth1 interfaces. |
|
| |
[root@linuxhost network-scripts]# more ifcfg-eth0 |
|
| |
DEVICE=eth0
ONBOOT=no
MASTER=bond0
SLAVE=yes
USERCTL=no |
|
| |
[root@linuxhost network-scripts]# more ifcfg-eth1 |
|
| |
DEVICE=eth1
ONBOOT=no
MASTER=bond0
SLAVE=yes
USERCTL=no |
|
| |
TASK 3: Load driver module: |
|
| |
Make sure bonding module is loaded when the channel-bonding interface (bond0) is brought up. You need to modify the kernel modules configuration file so that it looks like the one below. |
|
| |
[root@linuxhost network-scripts]# more /etc/modprobe.conf |
|
| |
alias bond0 bonding
options bond0 mode=balance-alb miimon=100 |
|
| |
TASK 4: Test configuration by modprobe and service network restart commands. |
|
| |
[root@linuxhost network-scripts]# modprobe bonding
[root@linuxhost network-scripts]# service network restart |
|