LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-2870/)

linuxnoob 05-28-2001 03:07 PM

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

jrockey 05-28-2001 03:23 PM

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

SensFan 05-28-2001 03:24 PM

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 :D


[Edited by SensFan on 05-28-2001 at 04:27 PM]

jharris 05-28-2001 04:23 PM

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


All times are GMT -5. The time now is 01:32 AM.