LinuxQuestions.org
Visit Jeremy's Blog.
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: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,860
Blog Entries: 36

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
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: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
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: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,860
Blog Entries: 36

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
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: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
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


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 + 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 03:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration