LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   didn't configure networking during installation, now confused about setting up dhcp (https://www.linuxquestions.org/questions/linux-networking-3/didnt-configure-networking-during-installation-now-confused-about-setting-up-dhcp-856415/)

dave247 01-14-2011 07:43 PM

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

sag47 01-14-2011 08:51 PM

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.

dave247 01-14-2011 08:53 PM

Quote:

Originally Posted by sag47 (Post 4224799)
Try
Code:

dhclient eth0

by itself? where? doesnt work... it fails

Drakeo 01-14-2011 08:56 PM

assume root or sudo and type lspci -nn and post it.

sag47 01-14-2011 08:57 PM

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

dave247 01-14-2011 09:07 PM

nvm ill just reinstall Debian.

Drakeo 01-14-2011 09:47 PM

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


All times are GMT -5. The time now is 08:28 PM.