LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-14-2011, 07:43 PM   #1
dave247
Member
 
Registered: May 2004
Posts: 206

Rep: Reputation: 30
didn't configure networking during installation, now confused about setting up dhcp


hey guys i have small issue. I just installed Debian 5 on my system and I didnt have it on the network and I chose not to configure networking during installation.

I plan to use static ip to stay on a private network most the time, but right now I want to quickly get out on the net to get some things..... So I want to get dhcp going and connect to my router to get out.

I set up my interfaces file to say:
Code:
auto eth0
iface eth0 inet dhcp
but it's not really finding my dhcp router... I know I am physically connected to the net because I am dual booting with Windows 7 and it has internet access just fine.

I am wondering, do I need to install any other packages to get my networking working?

I do not have /etc/resolve.conf.... I think I saw a message about that.

can someone help me figure out what to do?

thanks
 
Old 01-14-2011, 08:51 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Try
Code:
dhclient eth0
You should also check out the LQ Wiki on Networking to see if any articles pertain to your problem which may assist you.

Last edited by sag47; 01-14-2011 at 08:56 PM.
 
Old 01-14-2011, 08:53 PM   #3
dave247
Member
 
Registered: May 2004
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by sag47 View Post
Try
Code:
dhclient eth0
by itself? where? doesnt work... it fails
 
Old 01-14-2011, 08:56 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
assume root or sudo and type lspci -nn and post it.
 
Old 01-14-2011, 08:57 PM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
It's a terminal command. You've got to open up a terminal an run it as root.

Switch to root with one of the following commands:
Code:
su
sudo bash
sudo for Ubuntu-like systems. Then re-run the previously mentioned command.

What distro/version are you using?

SAM
 
Old 01-14-2011, 09:07 PM   #6
dave247
Member
 
Registered: May 2004
Posts: 206

Original Poster
Rep: Reputation: 30
nvm ill just reinstall Debian.
 
Old 01-14-2011, 09:47 PM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
nvm ill just reinstall Debian.
I wonder why I try to help.
Ok nvm.
sudo dhclient eth0 this will cause auto Dynamic Host Configuration Protocol and you would have been done.
for other systems it would have been "ifconfig eth0 up" then "dhcpcd eth0".
Now this thread will make a little since 2 years down the road. instead of nvm
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp + pppoe + kppp + security = confused aikidoist72 Linux - Networking 6 02-16-2005 04:45 PM
DHCP or general networking problem and setting half-duplex.. this is a tuffy xmnemonic Linux - Networking 5 09-09-2003 07:40 PM
Setting up DHCP AFTER installation. RJWMU Linux - Newbie 3 05-17-2003 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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