LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-07-2003, 10:59 AM   #1
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Rep: Reputation: 15
Question Cable Modem - How-to DHCP ?


Hi out there.

I need a quick fix or a good doc on how to setup an internet link via the SB4200E cable-modem and DHCP.

I managed to get the network interface eth0 up and running (ifconfig says it's OK) BUT I can't have DHCP working.

Thanks in advance.
 
Old 07-07-2003, 11:02 AM   #2
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
netconfig -d eth0
 
Old 07-07-2003, 11:23 AM   #3
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
I'm on Debian Woody

netconfig is unfortunaly a command not found !

I really need this link as I'v got pb with glic2.3.2, still no X running, and it's a real pain rebooting into W..suCks doing search on the Net and getting back to Woody again.

Thanx
 
Old 07-07-2003, 11:56 AM   #4
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
I think in debian is:

dhcpcd -t 10 -d eth0

or try 'linuxconf'

or:
http://www.tldp.org/HOWTO/mini/DHCP/index.html

One must work to set dhcp to your nic
 
Old 07-07-2003, 01:38 PM   #5
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
Actually, I already checked the following http://packages.debian.org/stable/net/dhcp-client.html and installed it but it didn't change anything.

Before that, I checked the mini-HOWTO you mention but the link http://ftp.debian.org/debian/dists/s...nary-i386/net/ they provide for Debian is broken

But I gonna try what you just said. See you after a few reboots
 
Old 07-07-2003, 02:52 PM   #6
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
The dhcpd service seems running .... (could stop/start it)

But then again, I can't ping a host on the Net.

Seems the pb come from the dhcpd.conf file because it uses bogus fields. How should I config it ?
 
Old 07-07-2003, 05:02 PM   #7
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
First, were you able to get an IP by DHCP??
 
Old 07-08-2003, 01:47 PM   #8
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
Unhappy

Still lost with that DHCP pb.

There's no inet addr value at all for eth0 in the ifconfig output !!!
 
Old 07-08-2003, 01:51 PM   #9
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
State of the pb NOW !

ifconfig says lo & eth0 are there. Unfortunately, eth0 didn't get any IP address at all.

I think the pb come from my conf files. But I don't know which ones !

As for now, I checked /etc/network/interfaces. It's written as follows :
#begin
auto lo eth0

iface lo inet loopback

iface eth0 inet dhcp
hostname myfakehost
#end

/etc/resolv.conf is as follows :
#begin
search myfai.net
nameserver xxx.xxx1
nameserver xxx.xxx2
#end

During install, I set the box as myfakehost.myfakedomain.net. Maybe I should remove that setting but in which conf file are they set?

I also have the FAI's DHCP server IP address. Where can I tell it to my dhcp client ??

Now, any other file I should check ??

Thnks for all the help guys!
 
Old 07-08-2003, 02:47 PM   #10
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
I've never used Debian, but in Red Hat you can set your hostname by editing /etc/sysconfig/network

Anyway I don't think that's the problem.... Is there any way that you could get the values you need (IP, gateway, DNS's, etc)? If you have a dual boot with windoze or maybe setting up your cable modem at other PC?

This is just to try entering the settings manually to see if it works...
 
Old 07-08-2003, 02:57 PM   #11
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
Thnx for ur help, Angelrod.

Ok, I have all the needed info for the connection (from W...suCks). Apparently, I never changed IP from the beginning.

I've already tried ifconfig eth0 xxx.allocated-ip.xxx but couldn't ping externally! What else should I do to get it working if we suppose that the IP won't change any time soon?
 
Old 07-08-2003, 02:59 PM   #12
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
edit the /etc/sysconfig/network-scripts/ifcfg-eth0 to your liking, then reboot the linux machine.
 
Old 07-08-2003, 03:05 PM   #13
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
Thx hakcenter.

Does ur hack work for the static IP case or the DHCP one ?
 
Old 07-09-2003, 06:16 AM   #14
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
Angry

Hi, guys !!!!

Still not working. The file you mention, hakcenter, isn't anywhere to be found on Woody.

Who knows all the files that dhcp-client needs in order to work ????
 
Old 07-09-2003, 02:34 PM   #15
iraysyvalo
Member
 
Registered: Jul 2003
Distribution: Woody 3.0r1
Posts: 30

Original Poster
Rep: Reputation: 15
Exclamation Really getting worse !

Isn't there ANY knowledgeable person on this website ???

Given the number of times this DHCP problem comes back here, still nobody with the solution ???
 
  


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
DHCP problems and cable modem wmeler Linux - Software 6 01-29-2004 04:49 PM
cable modem and dhcp dead_p00l Linux - Networking 3 11-30-2003 02:29 AM
DHCP & Cable Modem raypen Linux - Networking 4 08-06-2003 09:16 PM
DHCP set-up for cable-modem iraysyvalo Debian 5 07-16-2003 08:34 AM
floppyfw cable modem dhcp c0c0deux Linux - Security 2 06-01-2001 02:17 PM


All times are GMT -5. The time now is 10:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration