LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2003, 06:59 AM   #1
mmm
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 81

Rep: Reputation: 15
still DHCP problem


Hello, I want to get dhcp running, so I tried to edit /etc/network/interfaces , but it didn't work ok. This my interfaces file

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

I tried to implement ther the USE_DHCP=yes, but I wasn't succesfull. How should it be to get the dhcp working correctly? Thanks
 
Old 08-23-2003, 10:51 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I don't have debian so forgive me if this does not work.


It looks like you need to remove these line that seem to me like they setup the interface for a static ip


auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1


change to this..



auto eth0
#iface eth0 inet static
#address 192.168.0.2
#netmask 255.255.255.0
#network 192.168.0.0
#broadcast 192.168.0.255
#gateway 192.168.0.1



seriously this is only a wild guess.
 
Old 08-23-2003, 11:10 PM   #3
mmm
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 81

Original Poster
Rep: Reputation: 15
Thanks, I got it working with auto eth0 inet dhcp :-)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
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 problem re2 Linux - Networking 7 02-14-2005 10:35 AM
dhcp problem bruj3w Linux - Networking 1 07-19-2004 10:45 PM
dhcp problem pudhiyavan Linux - Networking 3 03-10-2004 10:28 AM
dhcp problem ava Slackware 3 03-19-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:04 PM.

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