LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-28-2001, 03:07 PM   #1
linuxnoob
LQ Newbie
 
Registered: May 2001
Posts: 1

Rep: Reputation: 0

Does DHCP really work with a windows lan i have a cable modem and all the ips for my network are supplied by my cable company. But i dont seem to get access to the internet after i boot into linux i just installed it and during installation it asked if i wanted to specify an ip but i said no and told it to do DHCP but i get no acces and i dont know how to reconfigure the ethernet card that is if i can
and i also dont know how to acces my cdrom

running mandrake 8.0
 
Old 05-28-2001, 03:23 PM   #2
jrockey
LQ Newbie
 
Registered: May 2001
Posts: 17

Rep: Reputation: 0
I'm using DHCP on a cable modem. I couldn't find a way to configure it graphically. All you need to know is the computer name of your computer (given to you by your LAN admin or cable company). If your ID is 12345678 then you need to open a terminal window as root and type:

dhcpcd -h "123456789"

Then you're set. If you get a dhcpcd command-not-found error, you need to install it. It's on your Mandrake 8.0 CD 1. To install, put your CD in and if your CD is at /mnt/cdrom type:

cd /mnt/cdrom/Mandrake/RPMS
rpm -i dhcpcd-1.3.19pl4-1mdk.i586.rpm
rpm -i dhcp-client-2.0pl5-6mdk.i586.rpm

If you want DHCP to start automatically every time you boot, edit th file /etc/rc.local and put the dhcpcd -h "12345678" line at the end of the file.

Julian
 
Old 05-28-2001, 03:24 PM   #3
SensFan
Member
 
Registered: May 2001
Location: Toronto, Canada
Distribution: Slackware
Posts: 67

Rep: Reputation: 15
Red face

try
dhcpcd -h hostname -I eth0

(or whatever ethx interface your using)

I'm pretty sure that is correct, I had that problem yesterday, I will confirm the correct syntax when I get home from work.

edit: oops didn't mean to repeat the info


[Edited by SensFan on 05-28-2001 at 04:27 PM]
 
Old 05-28-2001, 04:23 PM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
If you're cable modem is on et0 then you can be really lazy and just do
Code:
dhcpcd
otherwise you will want to go with
Code:
dhcpcd -d ethX
where X is your interface number. On my system I just run
Code:
/sbin/dhcpcd -R -d eth1
the -R stops dhcpcd rewriting /etc/resolv.conf as I use my own nameserver, no the details gleamed from the DHCP server.

HTH

Jamie...
 
  


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 - 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 - Networking

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