Networking Forums

Networking Forums > Computer Networking > Linux Networking > Debian DHCP problem?

Reply
Thread Tools Display Modes

Debian DHCP problem?

 
 
Chris
Guest
Posts: n/a

 
      12-03-2003, 11:14 AM
Hi,

I cant get my new debian install to get an ip address from my router
via dchp. I have booted into knoppix on the same machine and it works
fine, there is something I must not have configured correctly in
debian.

The card has the same irq and address in knoppix and debian. In both
the irq (10) is shared with other devices. I cant see any errors in
dmesg. In debian eth0 doesnt receive any packets at all.

In debian /etc/network/interfaces reads

auto eth0
iface eth0 inet dhcp

There is nothing about eth0 in this file in knoppix.

Any pointers on how to fix this debian, or on where the configuration
for the network cards is in knoppix would be appreciated.

Thanks
Chris
 
Reply With Quote
 
 
 
 
Conny
Guest
Posts: n/a

 
      12-03-2003, 02:12 PM

"Chris" <(E-Mail Removed)> skrev i meddelandet
news:(E-Mail Removed) om...
> Hi,
>
> I cant get my new debian install to get an ip address from my router
> via dchp. I have booted into knoppix on the same machine and it works
> fine, there is something I must not have configured correctly in
> debian.
>
> The card has the same irq and address in knoppix and debian. In both
> the irq (10) is shared with other devices. I cant see any errors in
> dmesg. In debian eth0 doesnt receive any packets at all.
>
> In debian /etc/network/interfaces reads
>
> auto eth0
> iface eth0 inet dhcp
>
> There is nothing about eth0 in this file in knoppix.
>
> Any pointers on how to fix this debian, or on where the configuration
> for the network cards is in knoppix would be appreciated.
>
> Thanks
> Chris


what happens if you type 'dhclient' at the prompt?



 
Reply With Quote
 
Chris
Guest
Posts: n/a

 
      12-04-2003, 03:42 PM
"Conny" <(E-Mail Removed)> wrote in message news:<d3nzb.40517$(E-Mail Removed)>...

>
> what happens if you type 'dhclient' at the prompt?


It just sits there and freezes.

Thanks for any help
Chris
 
Reply With Quote
 
P.T. Breuer
Guest
Posts: n/a

 
      12-04-2003, 04:00 PM
Chris <(E-Mail Removed)> wrote:
> "Conny" <(E-Mail Removed)> wrote in message news:<d3nzb.40517$(E-Mail Removed)>...
>
> >
> > what happens if you type 'dhclient' at the prompt?

>
> It just sits there and freezes.


No it doesn't - it times out and backgrounds itself after about 2
minutes. It's supposed to sit there first, pinging away. Anyway, the
command is

dhclient eth0

not "dhclient" (which will ping even on localhost!).

What happens if you look in the man page for dhclient and avail
yourself of the debugging facilities listed there?

What happens if you look at the interfaces you have up and tell us
about them?

Peter
 
Reply With Quote
 
Chris
Guest
Posts: n/a

 
      12-07-2003, 02:52 PM
(E-Mail Removed) (P.T. Breuer) wrote in message news:<(E-Mail Removed)>...

> What happens if you look in the man page for dhclient and avail
> yourself of the debugging facilities listed there?
>
> What happens if you look at the interfaces you have up and tell us
> about them?
>
> Peter


Hi,

Thanks for the reply.


This is the output I get when I try to bring up the SMC card.

>Listening on LPF/eth1/00:e0:29:1b:6a:5c
>Sending on LPF/eth1/00:e0:29:1b:6a:5c
>Sending on Socket/fallback
>DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
>DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
>DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
>DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
>DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
>DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
>DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
>No DHCPOFFERS received.
>No working leases in persistent database - sleeping.


The output when I bring up my other network card is below.

>run-parts: component /etc/dhcp3/dhclient-enter-hooks.d/debug-enter is

not an >executable plain file
>run-parts: component /etc/dhcp3/dhclient-exit-hooks.d/debug-exit is

not an >executable plain file
>Listening on LPF/eth0/00:40:05:a4:f6:a1
>Sending on LPF/eth0/00:40:05:a4:f6:a1
>Sending on Socket/fallback
>DHCPREQUEST on eth0 to 255.255.255.255 port 67
>DHCPACK from 10.0.0.2
>run-parts: component /etc/dhcp3/dhclient-enter-hooks.d/debug-enter is

not an >executable plain file
>run-parts: component /etc/dhcp3/dhclient-exit-hooks.d/debug-exit is

not an >executable plain file
>bound to 10.0.0.61 -- renewal in 72983 seconds.

 
Reply With Quote
 
P.T. Breuer
Guest
Posts: n/a

 
      12-07-2003, 03:50 PM
Chris <(E-Mail Removed)> wrote:
> (E-Mail Removed) (P.T. Breuer) wrote in message news:<(E-Mail Removed)>...
>
> > What happens if you look in the man page for dhclient and avail
> > yourself of the debugging facilities listed there?
> >
> > What happens if you look at the interfaces you have up and tell us
> > about them?


> This is the output I get when I try to bring up the SMC card.


How do you "try"? And what has that to do with dhcp? This is the output
from what? And output from where?

> >Listening on LPF/eth1/00:e0:29:1b:6a:5c
> >Sending on LPF/eth1/00:e0:29:1b:6a:5c


Why are you asking for dhcp on eth1? Why not eth0?

> >Sending on Socket/fallback
> >DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
> >DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
> >DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
> >DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
> >DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
> >DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
> >DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
> >No DHCPOFFERS received.
> >No working leases in persistent database - sleeping.



Well, that's all fine. Nobody is listening there. Tcpdump -i eth1 would
show you. Mind you I'd set the interface to up and a local net address
before launching dhclient eth1 (you don't say if that is what you did!).
Some servers don't like it otherwise.


> The output when I bring up my other network card is below.


What do you mean by "bring up"? What do you do? Where and what is this output
from? Please give all necessary data!

> run-parts: component /etc/dhcp3/dhclient-enter-hooks.d/debug-enter is


That makes it look as though you are running some weird compound
command. What?

> not an executable plain file



Well that's fine. Make it executable if you care. But you are running a
weird dhclient anyway. dhcp3 is not the place for it.

% dpkg -l dhcp-client
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii dhcp-client 2.0pl5-11 DHCP Client

and the listing contains nothing in dhcp3.

% dpkg -L dhcp-client
[dirs edited out]
/var/lib/dhcp
/usr/share/man/man5/dhclient.conf.5.gz
/usr/share/man/man5/dhclient.leases.5.gz
/usr/share/man/man5/dhcp-options-dhclient.5.gz
/usr/share/man/man8/dhclient.8.gz
/usr/share/man/man8/dhclient-script.8.gz
/usr/share/doc/dhcp-client/CHANGES
/usr/share/doc/dhcp-client/changelog.Debian.gz
/usr/share/doc/dhcp-client/doc/rfc951.txt.gz
/usr/share/doc/dhcp-client/doc/rfc2131.txt.gz
/usr/share/doc/dhcp-client/doc/rfc2132.txt.gz
/usr/share/doc/dhcp-client/dhcp-on-linux.txt
/usr/share/doc/dhcp-client/copyright
/usr/share/doc/dhcp-client/README.gz
/usr/share/doc/dhcp-client/RELNOTES.gz
/sbin/dhclient
/sbin/dhclient-2.0.x
/sbin/dhclient-2.2.x
/etc/dhclient-script
/etc/dhclient.conf

So I don't know what you are using!


> run-parts: component /etc/dhcp3/dhclient-exit-hooks.d/debug-exit is
> not an executable plain file


Well change it so it is then. If you care.


> >Listening on LPF/eth0/00:40:05:a4:f6:a1
> >Sending on LPF/eth0/00:40:05:a4:f6:a1
> >Sending on Socket/fallback
> >DHCPREQUEST on eth0 to 255.255.255.255 port 67
> >DHCPACK from 10.0.0.2


Well, that's clear. That network has a server replying fine on it.


> >run-parts: component /etc/dhcp3/dhclient-enter-hooks.d/debug-enter is

> not an >executable plain file
> >run-parts: component /etc/dhcp3/dhclient-exit-hooks.d/debug-exit is

> not an >executable plain file
> >bound to 10.0.0.61 -- renewal in 72983 seconds.


FIne.

What's your problem? There's no response on the eth1 network. As you
can check with tcpdump -i eth1.


Peter
 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"no free leases" problem with isc dhcp 3.0.1 on Debian ceremona@gmail.com Linux Networking 2 06-20-2006 10:59 PM
DHCP Server Question Debian Sarge hakim Linux Networking 2 05-23-2005 02:26 PM
Debian-sarge gateway refuses to renew it's DHCP-lease Willem Wever Linux Networking 0 02-26-2005 04:19 PM
HELP: Debian PCMCIA DHCP configuration cpmbfilms@yahoo.com Linux Networking 1 01-27-2005 09:08 PM
dhcp in Debian Jim Pharis Linux Networking 1 10-30-2003 05:55 PM



1 2 3 4 5 6 7 8 9 10 11