Koozali.org: home of the SME Server

bonding success but dhcpd failing

Offline tariqf

  • *****
  • 179
  • +0/-0
bonding success but dhcpd failing
« on: April 11, 2007, 10:13:17 PM »
I've got 3 nics in my sme 7.1.3 box. Have set like this

bond0 - 2 gigabit lan
eth0 - gigabit bond0 slave
eth1 - internet
eth2 - gigabit bond0 slave

All appears to be working fine and my lan accesses the server via bond0 however I get this repeating message in the logs;

No subnet declaration for eth0 (0.0.0.0).
Apr 11 21:04:17 sme dhcpd: ** Ignoring requests on eth0.  If this is not what
Apr 11 21:04:17 sme dhcpd:    you want, please write a subnet declaration
Apr 11 21:04:17 sme dhcpd:    in your dhcpd.conf file for the network segment
Apr 11 21:04:17 sme dhcpd:    to which interface eth0 is attached. **
Apr 11 21:04:17 sme dhcpd:
Apr 11 21:04:17 sme dhcpd:
Apr 11 21:04:17 sme dhcpd: Not configured to listen on any interfaces!


I have tried editing /etc/rc.d/dhcpd and forcing it to listen on bond 0 with

# Start daemons.
        echo -n $"Starting $prog: "
        #daemon /usr/sbin/dhcpd ${DHCPDARGS} 2>/dev/null
        daemon /usr/sbin/dhcpd bond0 2>/dev/null

But still the error persists. How can I make sure that dhcp only listens on bond0 and get rid of this error? It's driving me nuts.

my ifconfig output is
bond0     Link encap:Ethernet  HWaddr 00:0E:0C:D0:63:36
          inet addr:10.145.81.1  Bcast:10.145.83.255  Mask:255.255.252.0
          UP BROADCAST RUNNING ALLMULTI MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:218631 errors:0 dropped:0 overruns:0 frame:0
          TX packets:142166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:54739200 (52.2 MiB)  TX bytes:74640222 (71.1 MiB)

eth0      Link encap:Ethernet  HWaddr 00:0E:0C:D0:63:36
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:187477 errors:0 dropped:0 overruns:0 frame:0
          TX packets:139895 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:51564854 (49.1 MiB)  TX bytes:72995125 (69.6 MiB)
          Base address:0xa000 Memory:f4020000-f4040000

eth1      Link encap:Ethernet  HWaddr 00:14:85:8F:BC:D3
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:61818 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25212 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:25232592 (24.0 MiB)  TX bytes:3020746 (2.8 MiB)
          Interrupt:185 Base address:0xe000

eth2      Link encap:Ethernet  HWaddr 00:0E:0C:D0:63:36
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:31154 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2271 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3174346 (3.0 MiB)  TX bytes:1645097 (1.5 MiB)
          Base address:0xa400 Memory:f4040000-f4060000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:20533 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20533 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6576598 (6.2 MiB)  TX bytes:6576598 (6.2 MiB)

Offline byte

  • *
  • 2,183
  • +2/-0
bonding success but dhcpd failing
« Reply #1 on: April 11, 2007, 11:51:16 PM »
Moving this topic to the SME Server 7.x forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline byte

  • *
  • 2,183
  • +2/-0
Re: bonding success but dhcpd failing
« Reply #2 on: April 11, 2007, 11:52:36 PM »
Quote from: "tariqf"
I've got 3 nics in my sme 7.1.3 box.


FYI - SME Server 7.x doesn't support 3 network cards.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: bonding success but dhcpd failing
« Reply #3 on: April 12, 2007, 12:35:30 AM »
Quote from: "tariqf"
I've got 3 nics in my sme 7.1.3 box. Have set like this

bond0 - 2 gigabit lan
eth0 - gigabit bond0 slave
eth1 - internet
eth2 - gigabit bond0 slave

All appears to be working fine and my lan accesses the server via bond0 however I get this repeating message in the logs;
How often are they repeating. It is just saying that eth0 is not listening to anything (which is correct)?

How have you defined your interfaces in the console (ie. eth1=external, bond0=internal)? If you have eth0 defined as internal, smeserver WILL be expecting it to be 'connected'.

You may want to give some more information about your non-standard setup so that we can help..... :-)

Offline tariqf

  • *****
  • 179
  • +0/-0
bonding success but dhcpd failing
« Reply #4 on: April 12, 2007, 11:36:19 AM »
Hi thanks for you reply's I came in this morning and restarted dhcpd to find the errors have gone and dhcpd is working perfect on bond0 now with my change above.

Adding this to my growing list of sme7 howto's which I'm putting online very soon at www.yourproblemsolved.com

Thanks

Offline mabma

  • 1
  • +0/-0
Re: bonding success but dhcpd failing
« Reply #5 on: December 01, 2009, 05:51:10 PM »
Hi thanks for you reply's I came in this morning and restarted dhcpd to find the errors have gone and dhcpd is working perfect on bond0 now with my change above.

Adding this to my growing list of sme7 howto's which I'm putting online very soon at www.yourproblemsolved.com

Thanks

Bro, how you setup the bond in SME7. May I have the howto's?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: bonding success but dhcpd failing
« Reply #6 on: December 01, 2009, 07:40:35 PM »
Bro, how you setup the bond in SME7. May I have the howto's?

I subscribe this.. Tariqf, could you please create an howto in the wiki?
thank you in advance

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: bonding success but dhcpd failing
« Reply #7 on: December 01, 2009, 07:58:32 PM »
Adding this to my growing list of sme7 howto's which I'm putting online very soon at www.yourproblemsolved.com

Please ensure that your HOWTOs have a suitable license, so that they may be copied elsewhere. Otherwise they will be lost to the community if/when www.yourproblemsolved.com disappears or changes content.

Or better yet, put them in the wiki, where they may be improved or kept up to date by others.
« Last Edit: December 01, 2009, 08:00:16 PM by CharlieBrady »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: bonding success but dhcpd failing
« Reply #8 on: December 01, 2009, 07:59:37 PM »
Moving this topic to the SME Server 7.x forum, it is more appropriate there. Thanks!

Probably not, since this involves significant modifications of the standard install.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: bonding success but dhcpd failing
« Reply #9 on: December 01, 2009, 08:01:49 PM »

# Start daemons.
        echo -n $"Starting $prog: "
        #daemon /usr/sbin/dhcpd ${DHCPDARGS} 2>/dev/null
        daemon /usr/sbin/dhcpd bond0 2>/dev/null

But still the error persists.

That's not the appropriate way to start dhcpd in SME server. dhcpd is supervised in SME server. Search here if you are unfamiliar with 'supervised' and 'runit'.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: bonding success but dhcpd failing
« Reply #10 on: December 01, 2009, 11:32:09 PM »
Probably not, since this involves significant modifications of the standard install.

Quite right.

Moving this topic to the SME Contribs 7.x forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!