Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP {haven't found an answer yet}
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fooby12
n00b
n00b


Joined: 24 Sep 2005
Posts: 6

PostPosted: Mon Sep 26, 2005 2:16 am    Post subject: DHCP {haven't found an answer yet} Reply with quote

Alright, I've searched, there are tons of threads on DHCP but none that fully answer my question.

I have Gentoo recognising my eth0, but I can't get an IP. I've checked all my settings against those who have networking, and it all seems to match up. Even when I ping my router I get "connect: Network is unreachable". Is there anything that I can provide that will help?
Thanks
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Mon Sep 26, 2005 2:17 am    Post subject: Reply with quote

I take it you are past the "dhcpcd eth0" stage ?
_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
fooby12
n00b
n00b


Joined: 24 Sep 2005
Posts: 6

PostPosted: Mon Sep 26, 2005 2:23 am    Post subject: Reply with quote

Yes, anytime dhcpcd is called the system waits and waits and then I get [!!] <--(denotes failure I assume).
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Mon Sep 26, 2005 2:26 am    Post subject: Reply with quote

You are using the /etc/init.d/net.* scripts? Try to get it working manually first. Does it work from the livecd?
_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
wjholden
l33t
l33t


Joined: 01 Mar 2004
Posts: 826
Location: Augusta, GA

PostPosted: Mon Sep 26, 2005 2:50 am    Post subject: Reply with quote

What happens if you ping localhost?

Also, what's in /etc/resolv.conf? If nothing's there that probably means you forgot to copy it over during the installation (trivial fix, boot the livecd and use it).
Back to top
View user's profile Send private message
fooby12
n00b
n00b


Joined: 24 Sep 2005
Posts: 6

PostPosted: Mon Sep 26, 2005 3:47 am    Post subject: Reply with quote

I am currently ping localhost. I get:

Code:
64 bytes from localhost (127.0.0.1): icmp_seq=137 ttl=64 time=0.065


I would not stop.

The contents of /etc/resolve.conf are:

Code:
nameserver 128.100.56.135
nameserver 128.100.102.201
nameserver 128.100.100.128
search wdw-res.utoronto.ca
domain homenetwork


Yes I am using /etc/init.d/net.* scripts and also trying to start eth0 at runtime.

I don't what you mean by getting it working manually unless you mean by using the above scripts.

Yes internet access does work from the livecd.
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Mon Sep 26, 2005 3:54 am    Post subject: Reply with quote

Code:
dhcpcd eth0

Also try emerging pump and
Code:
pump -i eth0

_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
fooby12
n00b
n00b


Joined: 24 Sep 2005
Posts: 6

PostPosted: Mon Sep 26, 2005 4:01 am    Post subject: Reply with quote

Code:
dhcpcd eth0


Results in a wait and then tux~#

Trying to emerge pump in the booted Gentoo Enviro results in attempted internet access to download the file. How can I emerge it from the CD (if that's possible)?
Thanks
Back to top
View user's profile Send private message
rjordan
n00b
n00b


Joined: 03 Aug 2004
Posts: 7

PostPosted: Mon Sep 26, 2005 5:40 am    Post subject: Reply with quote

Could you post the output of:
Code:
#route

as root.
_________________
Feel free to AIM/E-mail me regarding postings.
Back to top
View user's profile Send private message
wjholden
l33t
l33t


Joined: 01 Mar 2004
Posts: 826
Location: Augusta, GA

PostPosted: Mon Sep 26, 2005 6:19 am    Post subject: Reply with quote

fooby12 wrote:
Code:
dhcpcd eth0


Results in a wait and then tux~#

Trying to emerge pump in the booted Gentoo Enviro results in attempted internet access to download the file. How can I emerge it from the CD (if that's possible)?
Thanks
At any time you can boot your LiveCD, Knoppix, etc. and chroot into your Gentoo installation using the same steps as described in the handbook. For most people, it boils down to
Code:
net-setup eth0
hdparm -d 1 /dev/hda
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
swapon /dev/hda2
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile

Once in you can emerge whatever you want. It seems like I'm forgetting a step about networking...I think you have to create a symlink somewhere, so you'll have to read the handbook for that one. I'm tired.
Back to top
View user's profile Send private message
trip
n00b
n00b


Joined: 10 May 2005
Posts: 6
Location: nineth plane of hell

PostPosted: Mon Sep 26, 2005 7:25 am    Post subject: Reply with quote

i have a somewhat similar problem, as of yesterday the dhcp from the adsl modem doesnt work anymore, but the frustrating part is that if i unplug the server and jack in a winXP laptop from my room mate i works instantly! i have copied all info from "ipconfig /all" but even when i enter everything manual (ifconfig eth0 up ip.adr ,nano /etc/resolv.conf) it doesnt work. i even tried the old server(debian) but to no avail... any ideas
_________________
using linux since may 2005
using gentoo since sept. 2005

Testing and
Research
In
Progress
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum