Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alright, i've narrowed my problem.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Polarism
n00b
n00b


Joined: 22 Aug 2004
Posts: 8

PostPosted: Sun Aug 22, 2004 6:41 pm    Post subject: Alright, i've narrowed my problem. Reply with quote

My internet connection is not detected properly. If I leave the laptop connected to the router, ifconfig at least sees the 192.168.1.101, but if I plug the connection directly into the laptop, all it can see is itself (127.0.0.1), and yeah i've rebooted trying to fix it..

So none of the emerge stuff works. =\
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Aug 22, 2004 6:58 pm    Post subject: Reply with quote

Polarism,

Does your router provide dhcp or do you have to configure yor netwoek devices with static IPs ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Polarism
n00b
n00b


Joined: 22 Aug 2004
Posts: 8

PostPosted: Sun Aug 22, 2004 7:01 pm    Post subject: Reply with quote

Router provides DHCP.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Aug 22, 2004 7:14 pm    Post subject: Reply with quote

Polarism,

Does you chroot environment contain a /etc/resolv.conf with correct contents?
Since you have a router, you probably have caching DNS there, so it should point to the router.

If thats OK, please post the output of /sbin/ifconfig.
Provided the kernel module for the network interface is loaded, eth0 should exist. When eth0 is not connected to the router at startup, it will not aquire an address when it is subsequently plugged in. You will need to run
Code:
/etc/init.d/net.eth0 restart
to restsrt the interface and have it ask for an address.

The output of /sbin/route -n is also of interest. You may wish to conceal your public IP if its listed here. It shouldn't be though.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Polarism
n00b
n00b


Joined: 22 Aug 2004
Posts: 8

PostPosted: Sun Aug 22, 2004 7:18 pm    Post subject: Reply with quote

Ok after screwing around a bit, if I exit chroot, I can ping sites, like google.com.

If I go back into chroot /mnt/gentoo /bin/bash
env-update

etc, and try to emerge something, it cannot resolve URL.


eth0 still has the correct router assigned IP (192.168.1.101) whether i'm in the livecd, or in chroot.

Oh also I don't know how to STOP a ping once it starts... lol

Anyway, doing that stuff above.
Back to top
View user's profile Send private message
Polarism
n00b
n00b


Joined: 22 Aug 2004
Posts: 8

PostPosted: Sun Aug 22, 2004 7:30 pm    Post subject: Reply with quote

Okay, all the network stuff is correct.

I just re-did the partitions and am going to try this whole thing again.
What exactly should I mount? The documentation barely covers this at all. I just want to have *something* that works so I can break it and stuff, heh..
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Aug 22, 2004 7:45 pm    Post subject: Reply with quote

Polarism,

You should mount your root partition om /mnt/gentoo
then make directories in /mnt/gentoo for any other partitions you have except swap.
e.g. mkdir /mnt/gentoo/boot
mount /dev/hdLN /mnt/gentoo/boot -t ext2 or whatever for your boot partition.

Your networking was broken inside the chroot because you haven'y copied /etc/resolv.conf to /mnt/gentoo/etc/resolv.conf so when you are chrooted, you can't find a nameserver to convert names to IP addresses.

You can have one virtual terminal (VT) inside the chroot and one outside if you want.
Use the passwd command to set a root password that you know, then use Ctrl-Alt-F2 to get to VT2 and log in as root.
Ctrl-Alt-F1 will take you back to VT1
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Polarism
n00b
n00b


Joined: 22 Aug 2004
Posts: 8

PostPosted: Sun Aug 22, 2004 7:58 pm    Post subject: Reply with quote

Okay, will try this after dinner.

Thanks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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