LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-11-2004, 09:09 AM   #1
TaNeK
Member
 
Registered: Dec 2004
Posts: 59

Rep: Reputation: 15
DHCP client configuration


Hello.

I installed Debian sarge about 1 week ago, and it's getting to the point where it's working smoothly . Just now I'm trying to get bittorrent to work, and I found a wierd thing. Before I got my new kernel 2.6.8 I could easly connect the other computers in my LAN behind a Dlink DI-604 router and also I coould configure the firewall to not block incomming traffic on the ports that bittorrent uses , but now I can't. This, I believe has something to do with my not having configured a DHCP-client on this machine. So my very basic question is: How do I configure my computer to use the router 192.168.0.1 as a DHCP-server, and then, how do I get hold of my IP adress in the LAN?
 
Old 12-12-2004, 06:23 AM   #2
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
If you have not already installed a dhcp client:

apt-get update
apt-get install dhcp-client etherconf

Then do

dpkg-reconfigure etherconf

Say yes to "Configure device ethX" and make sure it uses dhcp.

I don't think you need to choose your dhcp server. I think dhclient just makes a broadcast and any dhcp server(s) respond. If you do have many dhcp servers in the same subnet, check "man dhclient", it might help. Never had to worry about several dhcp servers.

To obtain your ip-address give to you do a

ifconfig

You can also do

cat /var/log/daemon.log|grep bound

Dec 12 04:56:33 localhost dhclient: bound to 192.168.0.197 -- renewal in 43200 s

Btw. you have to do most of this as root.
 
  


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
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
DHCP Client Configuration jpr9898 Linux - Networking 2 12-05-2004 12:54 AM
Firestarter "No DHCP client configuration found" Locura Linux - General 1 12-10-2003 10:05 AM
DHCP client configuration - debian pe2338 Linux - Networking 8 08-15-2003 12:11 PM
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


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