Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

DHCP client and bonding

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2003, 08:10 AM
Default DHCP client and bonding



RedHat 9, kernel version: 2.4.20.80
I am bonding etc1 and eth2 (machine has 3 NICs). Each NIC gets IP address
via DHCP. Bond0 is configured for 10.0.0.1. DHCP server givesIPs from
192.168.222.0 network.

1. When in the slave mode, neither eth1 nor eth2 gets IP from the DHCP
server (I don't think DHCP request is even send)
2. When interface is NOT in the slave mode, DHCP works fine.
why?
thanks




LB
Reply With Quote
  #2  
Old 11-26-2003, 03:41 AM
icywind
Guest
 
Posts: n/a
Default Re: DHCP client and bonding

"LB" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> RedHat 9, kernel version: 2.4.20.80
> I am bonding etc1 and eth2 (machine has 3 NICs). Each NIC gets IP address
> via DHCP. Bond0 is configured for 10.0.0.1. DHCP server givesIPs from
> 192.168.222.0 network.
>
> 1. When in the slave mode, neither eth1 nor eth2 gets IP from the DHCP
> server (I don't think DHCP request is even send)
> 2. When interface is NOT in the slave mode, DHCP works fine.
> why?
> thanks


Either you're a little confused you just answered your own question.

You said bond0 is configured for 10.0.0.1 which means it's not going
to get a dhcp address. From what I understand, when eth1-2 are in bond
mode, they don't each need their own IP address; that would be
redundant.

Just to clear some stuff up, please post the contents of
/etc/sysconfig/network-scripts/ifcfg-bond0 (or something named similar
- I'm not sure how distro-dependent that name is).

-icy
Reply With Quote
  #3  
Old 11-27-2003, 03:47 AM
LB
Guest
 
Posts: n/a
Default Re: DHCP client and bonding

Correct, eth1-2 don't need their own IPs. I was trying to use DHCP to assign
IP to the newly created bond0. Here is the bond file (exactly from
http://www.redhat.com/docs/manuals/e...ERFACES-CHAN):

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=10.0.1.27
USERCTL=noWhen I set BOOTPROTO=dhcp none of the NIC get initialize. Is it by
design?thanks

"icywind" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> "LB" <(E-Mail Removed)> wrote in message

news:<(E-Mail Removed)>...
> > RedHat 9, kernel version: 2.4.20.80
> > I am bonding etc1 and eth2 (machine has 3 NICs). Each NIC gets IP

address
> > via DHCP. Bond0 is configured for 10.0.0.1. DHCP server givesIPs from
> > 192.168.222.0 network.
> >
> > 1. When in the slave mode, neither eth1 nor eth2 gets IP from the DHCP
> > server (I don't think DHCP request is even send)
> > 2. When interface is NOT in the slave mode, DHCP works fine.
> > why?
> > thanks

>
> Either you're a little confused you just answered your own question.
>
> You said bond0 is configured for 10.0.0.1 which means it's not going
> to get a dhcp address. From what I understand, when eth1-2 are in bond
> mode, they don't each need their own IP address; that would be
> redundant.
>
> Just to clear some stuff up, please post the contents of
> /etc/sysconfig/network-scripts/ifcfg-bond0 (or something named similar
> - I'm not sure how distro-dependent that name is).
>
> -icy



Reply With Quote
  #4  
Old 11-27-2003, 04:10 AM
LB
Guest
 
Posts: n/a
Default Re: DHCP client and bonding

Also since eth1 and eth2 inherit the SAME address from bond0, how can I
physically plug in eth1 and eth2 to two DIFFERENT sub-nets? The grand
objective is to bond two connections from two ISPs
thanks



"LB" <(E-Mail Removed)> wrote in message
news:RO-dncVrIZUo7liiRVn-(E-Mail Removed)...
Correct, eth1-2 don't need their own IPs. I was trying to use DHCP to
assign
IP to the newly created bond0. Here is the bond file (exactly from

http://www.redhat.com/docs/manuals/e...ERFACES-CHAN):

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=10.0.1.27
USERCTL=noWhen I set BOOTPROTO=dhcp none of the NIC get initialize. Is it
by
design?thanks


> "icywind" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) om...
> > "LB" <(E-Mail Removed)> wrote in message

> news:<(E-Mail Removed)>...
> > > RedHat 9, kernel version: 2.4.20.80
> > > I am bonding etc1 and eth2 (machine has 3 NICs). Each NIC gets IP

> address
> > > via DHCP. Bond0 is configured for 10.0.0.1. DHCP server givesIPs from
> > > 192.168.222.0 network.
> > >
> > > 1. When in the slave mode, neither eth1 nor eth2 gets IP from the DHCP
> > > server (I don't think DHCP request is even send)
> > > 2. When interface is NOT in the slave mode, DHCP works fine.
> > > why?
> > > thanks

> >
> > Either you're a little confused you just answered your own question.
> >
> > You said bond0 is configured for 10.0.0.1 which means it's not going
> > to get a dhcp address. From what I understand, when eth1-2 are in bond
> > mode, they don't each need their own IP address; that would be
> > redundant.
> >
> > Just to clear some stuff up, please post the contents of
> > /etc/sysconfig/network-scripts/ifcfg-bond0 (or something named similar
> > - I'm not sure how distro-dependent that name is).
> >
> > -icy

>
>



Reply With Quote
  #5  
Old 11-28-2003, 05:55 AM
icywind
Guest
 
Posts: n/a
Default Re: DHCP client and bonding

"LB" <(E-Mail Removed)> wrote in message news:<N-SdnUbUF9OF5FiiRVn-(E-Mail Removed)>...
> Also since eth1 and eth2 inherit the SAME address from bond0, how can I
> physically plug in eth1 and eth2 to two DIFFERENT sub-nets? The grand
> objective is to bond two connections from two ISPs
> thanks
>
>
>
> "LB" <(E-Mail Removed)> wrote in message
> news:RO-dncVrIZUo7liiRVn-(E-Mail Removed)...
> Correct, eth1-2 don't need their own IPs. I was trying to use DHCP to
> assign
> IP to the newly created bond0. Here is the bond file (exactly from
>
> http://www.redhat.com/docs/manuals/e...ERFACES-CHAN):
>
> DEVICE=bond0
> BOOTPROTO=none
> ONBOOT=yes
> NETWORK=10.0.1.0
> NETMASK=255.255.255.0
> IPADDR=10.0.1.27
> USERCTL=noWhen I set BOOTPROTO=dhcp none of the NIC get initialize. Is it
> by
> design?thanks
>
>
> > "icywind" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed) om...
> > > "LB" <(E-Mail Removed)> wrote in message

> news:<(E-Mail Removed)>...
> > > > RedHat 9, kernel version: 2.4.20.80
> > > > I am bonding etc1 and eth2 (machine has 3 NICs). Each NIC gets IP

> address
> > > > via DHCP. Bond0 is configured for 10.0.0.1. DHCP server givesIPs from
> > > > 192.168.222.0 network.
> > > >
> > > > 1. When in the slave mode, neither eth1 nor eth2 gets IP from the DHCP
> > > > server (I don't think DHCP request is even send)
> > > > 2. When interface is NOT in the slave mode, DHCP works fine.
> > > > why?
> > > > thanks
> > >
> > > Either you're a little confused you just answered your own question.
> > >
> > > You said bond0 is configured for 10.0.0.1 which means it's not going
> > > to get a dhcp address. From what I understand, when eth1-2 are in bond
> > > mode, they don't each need their own IP address; that would be
> > > redundant.
> > >
> > > Just to clear some stuff up, please post the contents of
> > > /etc/sysconfig/network-scripts/ifcfg-bond0 (or something named similar
> > > - I'm not sure how distro-dependent that name is).
> > >
> > > -icy

> >
> >


You misunderstand the purpose of ethernet bonding. The idea is not to
bond two connections to two different places, but rather to bond two
connections to the same place, thus creating a single interface that
has twice as much bandwidth.

When eth1-2 are in bonded mode, their configurations are ignored and
bond0's configuration alone is used.

As listed, the configuration file of bond0 doesn't use dhcp at all. If
you do actually want to use a bonded ethernet connection (which
doesn't solve your problem, by the way) you would modify bond0's
configuration file to say this:
DEVICE="bond0"
BOOTPROTO="dhcp"
ONBOOT="yes"
NETWORK=""
NETMASK=""
IPADDR=""
USERCTL="no"

I'd say you're going down the wrong path to achieve what you want.
Ethernet bonding is an experimental feature only really intended for
serious network hackers.

-icy
Reply With Quote
Reply

Tags
bonding, client, dhcp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.