LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-03-2004, 11:51 AM   #1
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Rep: Reputation: 16
Unhappy DHCP won't come up...


I just got myself a cable modem installed. It's a Motorola Surfboard. I did some googling(is that how you write it?) and found-out that my provider is using dhcp for our connections. So I tell myself what could be easyer to set up?
My nforce2 ethernet controller is compiled into my kernel. I did a netconfig and set it up dhcp. But when I run rc.inet1, it gives my ethernet card's mac address takes a couple seconds and then times out.
By the way my connection works fine in windows, I just boot and it works by itself. No authentication so I'm sure its actualy dhcp.
My operating system is slackware-current but before slack 10 came-out.
Did I miss something? Is there anything else to set-up? thanks for any help.

Last edited by jplev22; 10-03-2004 at 11:54 AM.
 
Old 10-03-2004, 11:59 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Try:

killall dhcpcd
ifconfig eth0 down
dhcpcd eth0
ifconfig eth0

of course, change eth0 to match your net card config.

I took that from: http://www.linuxquestions.org/questi...ht=get+dhcpd+e

If that works, we can see then how init scripts are run and see why it's not hapenning automatically.

Last edited by gbonvehi; 10-03-2004 at 12:59 PM.
 
Old 10-03-2004, 12:04 PM   #3
nirvanix
Member
 
Registered: May 2003
Location: Calgary, Canada
Distribution: Arch Linux
Posts: 194

Rep: Reputation: 30
Hi there,

rc.inet1 only initializes the network hardware (modprobes the kernel module?), but for services such as dhcp you need to run rc.inet2 as well. If you look into the file /etc/rc.d/rc.M you will see this is done normally.
 
Old 10-03-2004, 02:57 PM   #4
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16
I tried gbonvehi's suggestion but when I do dhcpcd eth0 the command gets executed but never ends so I guess it is unable to aquire an ip adress.
Would installing a router between by modem and computer solve the problem?
 
Old 10-03-2004, 07:15 PM   #5
fphillips
Member
 
Registered: Sep 2004
Location: KS
Distribution: Slack 10-current
Posts: 87

Rep: Reputation: 15
Quote:
when I do dhcpcd eth0 the command gets executed but never ends
What do you mean "never ends"? If it just returns a prompt w/ no output, that is normal behavior.
Quote:
Would installing a router between by modem and computer solve the problem?
<deleted>. You probably don't need one unless you have multiple computers and want to setup your own private network.

Last edited by fphillips; 10-04-2004 at 11:41 AM.
 
Old 10-04-2004, 10:36 AM   #6
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16
It does not return to a prompt, it's like the command never ends. anyways it kinna sucks. What I meant by the router is that it might connect easier thru it. I don't know how but it seemed that when some of the guys in the thread liked in the first reply removed their routers the the same problem started. Anyone can shed light on this?

Last edited by jplev22; 10-04-2004 at 10:37 AM.
 
Old 10-04-2004, 11:35 AM   #7
fphillips
Member
 
Registered: Sep 2004
Location: KS
Distribution: Slack 10-current
Posts: 87

Rep: Reputation: 15
I think despite what your provider says, you need to run pppoe rather than just straight dhcp to get connected. You can use your update tool to grab rp-pppoe (or it's in slackware/n on the cdrom), you'll have to run adsl-setup and answer some questions to get it configured, then adsl-start. Some connections (like my Charter cable) only need dhcp, others need pppoe.

What I said earlier about router inbetween modem and internet was just plain wrong, I was confused. It should go _before_ the modem.

Last edited by fphillips; 10-04-2004 at 11:40 AM.
 
Old 10-04-2004, 08:03 PM   #8
jplev22
Member
 
Registered: Dec 2003
Location: New Brunswick, Canada
Distribution: Debian 10 Buster
Posts: 85

Original Poster
Rep: Reputation: 16
Thanks for your advice but I did try pppoe before even thinking about using dhcp. Actualy I didn't receive any information from the isp I read on another forum that it was the protocol used by that particular provider. Thanks anyways
 
Old 11-03-2004, 04:03 PM   #9
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Rep: Reputation: 30
Quote:
My operating system is slackware-current but before slack 10 came-out.
I had a similar problem using a slackware variant called Topologilinux. My connection was recieved via dchp in windows, but the dchp server wouldn't work in linux. I tried manually entering my tcp\ip settings, but that also didn't work. I had luck with a gui program called netgo (do a google for it), I entered my info into it, rebooted, said go on netgo and it now works fine.
 
  


Reply



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
DHCP problems - multiple DHCP servers sat86 Linux - Networking 4 10-02-2005 05:43 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

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

All times are GMT -5. The time now is 01:46 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