rebonding network interface..

Sometime we got more than one network interface..

let say one Ethernet Card and one wifi cards..

this will show you how to combine this into one.. and

get better throughout speed.

1. edit /etc/modprobe.conf to add bonding interface.

alias bond0 bondingoptions bond1 mode=1 miimon=100

2. edit some of the networking scripts with these :

cd /etc/sysconfig/network-scripts
touch ifcfg-bond0
vi ifcfg-bond0

add these lines.

DEVICE=bond0
USERCTL=no
ONBOOT=yes
BROADCAST=192.168.100.255
NETWORK=192.168.100.0
NETMASK=255.255.255.0
GATEWAY=192.168.100.1
IPADDR=192.168.100.21
[ad#postad]
 and..
vi ifcfg-eth0

add..

DEVICE=eth0
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:0c:29:30:41:de
ONBOOT=yes

and

vi ifcfg-wlan0
DEVICE=wlan0
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=0c:0c:29:30:41:de
ONBOOT=yes

to start using it..

ifup bond0

.. it should enslave both network cards..

and determine the ip  address..

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

3 Responses

  1. HawkEYE says:

    I got better one after a few minute..
    by adding this two line before line 602 (/usr/share/system-config-network/netconfpkg/gui/maindialog.py)


    if (not isinstance (host.Hostname, str)):
    continue

    now it works like charms again.. hehe.. 😎

    Reply
  2. UncleOp says:

    This was helpful. Summary: if the /etc/hosts file is not well-formed, the python script doesn’t handle it well. In my case, somehow a long entry that was commented out got “line wrapped”, leaving some uncommented garbage on the next line. Fixing the hosts file or adding the above patch “worked”. It seems that some complaint to the user should be generated in such a case, though.

    Reply
    • HawkEYE says:

      @UncleOp , Glad it help.. thanks for dropping by..

      Reply

Anything to add?

X