LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-15-2004, 09:04 PM   #1
thom
Member
 
Registered: Feb 2002
Location: Washington DC
Distribution: SuSE 9.1/Slackware 10
Posts: 193

Rep: Reputation: 30
DHCP failure on test candidate 1


Just tried the sarge netinst.iso and am unable to get DHCP working during
install. I skipped the network setup and installed the base system. I know I got DHCP on other distors working. Is there some way to configure this, but then DHCP should be just there right?
Thanks
 
Old 06-15-2004, 09:49 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
First, check out if "ifconfig" command lists eth0 in its output.

Then try (as root) "etherconf" command. (I'm not sure if etherconf is included in the base system installation.)

Alternatively, you can manually edit the network config files.


/etc/network/interfaces:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp


/etc/resolv.conf:

nameserver xxx.xxx.xxx.xxx


You need to replace xxx.xxx.xxx.xxx with your DNS address. If you've got two DNS addresses, just add a second line below the first using similar format.

Hope this helps!
 
Old 06-15-2004, 10:05 PM   #3
thom
Member
 
Registered: Feb 2002
Location: Washington DC
Distribution: SuSE 9.1/Slackware 10
Posts: 193

Original Poster
Rep: Reputation: 30
thanks a bunch
 
Old 06-16-2004, 07:20 AM   #4
thom
Member
 
Registered: Feb 2002
Location: Washington DC
Distribution: SuSE 9.1/Slackware 10
Posts: 193

Original Poster
Rep: Reputation: 30
Tried this to no avail.
I wonder if I should go with a stable install. I think there is a bug with the test release and DHCP.

I imagine a stable .iso will give me everything other than the 2.6 kernel option, which I don't want anyway.
Can I just use the smallext net install? rather than the giant siize isos? the software after apt will all be the same as the sarge test right?

thanks (new to debian)
 
Old 06-16-2004, 08:17 AM   #5
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
i have used both the beta4 and TC installs for sarge.....both worked DHCP as well as static assignment....
 
Old 06-16-2004, 08:48 AM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Forgot to mention that you need to restart networking for the changes to take effect. If unsure how to do this, just reboot. Then check (as root) with "ifconfig" command whether eth0 accepts packets.

If still no joy, check that there are no typos in the config files.
 
Old 06-16-2004, 09:00 AM   #7
thom
Member
 
Registered: Feb 2002
Location: Washington DC
Distribution: SuSE 9.1/Slackware 10
Posts: 193

Original Poster
Rep: Reputation: 30
Thanks I'll try that.

The older net installes don't seem to give me the reiser kernel option so I would like to try sarge test.
I just got the mini. net iso of test and will try again from scratch.
Note that the older Debian 3 isos of net install seem to wrk, but give me no kernel option.
 
Old 06-16-2004, 09:47 AM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Woody installer generally uses 2.2 kernel that doesn't support reiserfs but, if I remember correctly, installation CD 5 contains bf2.4 kernel that allows you to create and use reiserfs partitions.

Of course, Sarge installer has much better hardware support -- if you only manage to get it working. Anyway, good luck!
 
Old 06-16-2004, 10:59 AM   #9
thom
Member
 
Registered: Feb 2002
Location: Washington DC
Distribution: SuSE 9.1/Slackware 10
Posts: 193

Original Poster
Rep: Reputation: 30
Success

Success.
I went with the original Sarge Test installer, but this time set bios to failsafe just in case.
DHCP works and I am now installing with Apt 650M of packages.
My soyo mobo Dragon Ultra has an onboard Lan, but was enabled before so I am not sure what failsafe did. Maybe ports/or hardware order.
Will check when I get back
Thanks FOR THE HELP dEAD pARROT.
 
Old 06-16-2004, 06:44 PM   #10
Shade00
LQ Newbie
 
Registered: May 2004
Location: israel
Distribution: Fedora Core 2-3
Posts: 17

Rep: Reputation: 0
DHCP on debian

having run a debian sarge b4, i know its a pain to get it up and running and all...
so i'll post my cable dialer up and hope it solves problems for other users.



#!/bin/bash

USERNAME="$1"
IFACE="$2"
PPTPS=<server name> /*cables.isp.xxx.xxx*/

ifdown $IFACE
ifup $IFACE

NVGW=$(host $PPTPS | cut -d" " -f4 | cut -f3 | tail -1)
CABLEGW=$(grep routers /var/lib/dhcp/dhclient-$IFACE.leases | tail -n 1 | cut -d ";" -f1 | cut -d "t" -f3 | cut -d "o" -f4 | cut -d ' ' -f2)

route add -host $NVGW gw $CABLEGW

./pptp $NVGW debug user $USERNAME mtu 1380 mru 1380 defaultroute persist

sleep 7

NEWGW=$(ifconfig ppp0 | grep inet | cut -d":" -f3 | tail -1 | cut -d" " -f1)

route add default gw $NEWGW
route del default gw $CABLEGW

echo nameserver 194.90.1.5 > /etc/resolv.conf


Notes

Setup:

Required:
ppp package installed,
NIC driver (eth0/1/2...) configured to get the IP & DNS info from DHCP client !
(that is usually done in GUI\config files), some older\odder distro's have no DHCP client,
or the client doesn't have the lease files located where the scripts usually expect,
on such systems the gateway can be set in the script' "CABLEGW" variable manually...
it is the def. gateway IP in this case & can be taken from 'route' (-n) command output -
in the "default" line it is the IP in "Gateway" tab.

1: unpack ('tar -zxvf ...'), this will create a directory - "nvc" with the script & files needed
2: edit the '/etc/ppp/pap-secrets' - add a new line with "user" * "passwd" (with your info, quotes needed)
3: run - e.g. './cablestart.v021 username eth0' output is obscure, check your configuration if something fails.

makini4

hope this helps any, even if i'm a day late.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lets test KDE 3.5 Release Candidate Ygrex Linux - News 4 11-19-2005 11:18 AM
Dead SCSI devices / Media test Failure manudath Linux - Hardware 7 02-17-2005 10:10 AM
Fedora media test failure gone crazy joakimbs Linux - General 3 11-01-2004 10:56 AM
Sarge or Woody and Beta 4 or Test Candidate 1 linda Debian 1 06-15-2004 08:36 AM
make test failure ekdya Programming 0 10-05-2003 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration