Find the answer to your Linux question:
Results 1 to 4 of 4
I am new to Linux, however I have managed a Unix 11.00 system for the past few years so that experience has come in handy. We are currently setting up ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    2

    Question [SOLVED] Bonding questions

    I am new to Linux, however I have managed a Unix 11.00 system for the past few years so that experience has come in handy. We are currently setting up a RHEL5 system and I'm trying to get the NIC bonding to work for failover. I currently have it working on the system, however whenever the system reboots it will not start the bonding until I run the "ifup bond0" command. Once I run this command the bonding interface comes online without issue. Do I need to create a script to run this ifup command at startup or is there something I'm missing? Here is configuration of my NICS and the bond0 file.

    bond0:
    DEVICE=bond0
    IPADDR=10.10.*.58
    NETMASK=255.255.255.0
    USERCTL=no
    BOOTPROTO=none
    ONBOOT=yes
    GATEWAY=10.10.*.254

    eth0:
    DEVICE=eth0
    BOOTPROTO=none
    USERCTL=no
    ONBOOT=yes
    MASTER=bond0
    SLAVE=yes
    HWADDR=00:23:81:A9:**:90
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    ONBOOT=yes
    TYPE=Ethernet
    ETHTOOL_OPTS="speed 1000 duplex full autoneg on"

    eth1:
    "DEVICE=eth1
    BOOTPROTO=none
    USERCTL=no
    MASTER=bond0
    SLAVE=YES
    HWADDR=00:23:81:A9:**:8C
    ONBOOT=yes
    TYPE=Ethernet
    ETHTOOL__OPTS="speed 1000 duplex full autoneg on"

    Any insight would be greatly appreciated.

  2. #2
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    385
    When it comes to singular commands I just stick them in /etc/rc.d/rc.local, I'm not entirely sure where yours is as you're using sysvinit scripts but I imagine it would be /etc/rc.d/rc.3/rc.local, for example. You will need to choose the right runlevel to put it in, I'm assuming you're familiar with that. I hope this helps.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Quote Originally Posted by Krendoshazin View Post
    When it comes to singular commands I just stick them in /etc/rc.d/rc.local, I'm not entirely sure where yours is as you're using sysvinit scripts but I imagine it would be /etc/rc.d/rc.3/rc.local, for example. You will need to choose the right runlevel to put it in, I'm assuming you're familiar with that. I hope this helps.
    I would agree with this, that using rc.local to do this is probably the easiest way. I don't know if it is the BEST way, but it will work.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    2

    Lightbulb Thanks

    Thanks for your help. I did get the bonding to work, but I believe it was a syntax error on my end. Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...