Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Halfway there and Networking not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
davlun
n00b
n00b


Joined: 14 Feb 2004
Posts: 11

PostPosted: Sun Feb 15, 2004 9:03 pm    Post subject: Halfway there and Networking not working Reply with quote

Hello all,

I am getting ready to congifure the kernel, step 7b and am unable to connect to download sources.

I would assume this means that networking is not working. The documentation has notes to set up networking, but those commands dont seem to work this far into the process (I am guessing from chroot in last step).

Is it too late to set up networking and continue or do I have to start all over....

David
_________________
Be Kind! I am a former ms user, but learning
Back to top
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Sun Feb 15, 2004 9:40 pm    Post subject: Reply with quote

Could you please post your output from the commands `lsmod`, `ifconfig`, `cat /etc/resolv.conf`, and `route -n `
_________________
Top notch image hosting. Great for screen shots! http://www.imagelink.org
Back to top
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Sun Feb 15, 2004 9:41 pm    Post subject: Reply with quote

You can un-chroot (type 'exit') and make sure it's all working.

Make *sure* you you've copied your /etc/resolv.conf over; not doing that causes all sorts of fun problems.

~Mac~
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 15, 2004 9:54 pm    Post subject: Reply with quote

MacMasta,

If you set a password before you chrooted, you can log in on another VT which will be outside the chroot. Press Ctrl-Alt-F2 for the next console.

Then the network setup will work.
_________________
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
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Sun Feb 15, 2004 10:53 pm    Post subject: Reply with quote

Didn't think of that, because I never remember to set that password...

:D

~Mac~

(oh, re: your sig, you should add 'people like Mac, who just use RAID-5')
Back to top
View user's profile Send private message
davlun
n00b
n00b


Joined: 14 Feb 2004
Posts: 11

PostPosted: Mon Feb 16, 2004 3:21 am    Post subject: Reply with quote

Thanks for all the help

OK, went to the beginning and tried to set up networking manuall, trying to piece things together. Here is where things are at:

here is the lsmode output
Code:

parport_pc       24520    0     
parport            22752    0     [parport_pc]
eepro100         18420    1
mii                   2192     0     [eepro100]
floppy             47004     0    (autoclean)
serial              489322   0    (autoclean)
isa-pump        28100     0     (autoclean)[serial]
cloop                5220     1
usb-storage     59372     0    (unused)
hid                  12564     0    (unused)
uhci                22944      0   (unused)
usbcore           55712     1   [usb-storage hid uhci]


And here is the results of ifconfig:
Code:

eth0
Link encap:ethernet   HWaddr 00:DO:B7:08:0B:42
inet6 addr: 192.168.0.5  bcast: 192.168.0.255  Mask: 255.255.252.0
UP BROADCAST RUNNING MULTICAST   MTU:1500   Metric: 1
RX Packets: 12193   errors:0  dropped:0  overruns:0  frame:0
TX Packets: 37  errors:0  dropped:0  overruns:0  frames:0
collisions:0  txqueuelen: 100
RX bytes:3863407 (3.6 Mb)   TX bytes 4768 (4.6 Kb)
Interupt: 11

lo
Link encap: Local Network
inet addr: 127.0.0.1  Mask:255.0.0.0
inet6 addr:  ::1/128   Scope: Host
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:0 errors:0  dropped:0 overruns:0  frame:0
TX packets:0 errors:0  dropped:0  overruns:0  frame:0
collisions:0  txqueuelen: 0
RX bytes: 0 (0.0b)  TX bytes:0 (0.0b)


and here is the route -n
Code:

192.168.0.0     0.0.0.0        255.255.252.0    U   0     0      0    eth0
127.0.0.0        127.0.0.1     255.0.0.0           UG 0     0      0    lo
0.0.0.0            192.168.0.1 0.0.0.0              UG  0     0     0    etho


the 'cat /etc/resolve.conf' did not find a file. Could mine be somewhere eles.


David
[/quote]
_________________
Be Kind! I am a former ms user, but learning
Back to top
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Mon Feb 16, 2004 3:41 am    Post subject: Reply with quote

Because you do not have the file /etc/resolv.conf, you cannot resolve any hostnames to IP addresses, so that is why your networking is not working. Check the installation guide for the part about copying /etc/resolv.conf

If you have already chrooted, you can just run the command
Code:
echo "nameserver 192.168.0.1" > /etc/resolv.conf

_________________
Top notch image hosting. Great for screen shots! http://www.imagelink.org
Back to top
View user's profile Send private message
davlun
n00b
n00b


Joined: 14 Feb 2004
Posts: 11

PostPosted: Mon Feb 16, 2004 3:59 am    Post subject: Reply with quote

OK. did the echo command and it seemed to work, however I still dont find a file.

However, if I get the cursor right, I am still at the cdimage prompt. I tried checking mount, to see where I could go, but I am all mixed up, not sure where 'c' drive is (if this was windows).

David
_________________
Be Kind! I am a former ms user, but learning
Back to top
View user's profile Send private message
davlun
n00b
n00b


Joined: 14 Feb 2004
Posts: 11

PostPosted: Mon Feb 16, 2004 4:03 am    Post subject: Reply with quote

LOL. Well while trying to figure this out... noticed something.

I think I should be trying cat /etc/resolv.conf, not cat /etc/resolve.conf

If that is the case, then I have a file there with the information included in your echo statement.

But when I try to ping 192.168.0.1 it says the network is unreachable.

David
_________________
Be Kind! I am a former ms user, but learning
Back to top
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Mon Feb 16, 2004 4:34 am    Post subject: Reply with quote

Is that your IP?

~Mac~
Back to top
View user's profile Send private message
davlun
n00b
n00b


Joined: 14 Feb 2004
Posts: 11

PostPosted: Mon Feb 16, 2004 4:44 am    Post subject: Reply with quote

That would be my gateway/router. It is something that I should be able to ping on internal network.

I tried that after trying ping www.google.com and receiving unknown host.



David
_________________
Be Kind! I am a former ms user, but learning
Back to top
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Mon Feb 16, 2004 7:56 am    Post subject: Reply with quote

Are you using DHCP or setting the IP/netmask manually? Because, for some reason, your netmask is 255.255.252.0 but I'm assuming it should be 255.255.255.0

Maybe that is a typo??

If you are using DHCP then check the router/gateway configuration.
_________________
Top notch image hosting. Great for screen shots! http://www.imagelink.org
Back to top
View user's profile Send private message
davlun
n00b
n00b


Joined: 14 Feb 2004
Posts: 11

PostPosted: Wed Feb 18, 2004 7:37 am    Post subject: Fixed Reply with quote

Well, chalk this up to mistake on my part #2.

I entered the mac address into the router wrong and so no connectivity was provided, even though settings were provided.

All I can say is thanks to you that helped. I have learned about networking in linux as a result of my mistake :oops:
_________________
Be Kind! I am a former ms user, but learning
Back to top
View user's profile Send private message
Jonandy
n00b
n00b


Joined: 02 Mar 2004
Posts: 1

PostPosted: Tue Mar 02, 2004 7:26 am    Post subject: Same problem, different solution... Reply with quote

I had a similar problem, where I couldn't resolve names when I chroot-ed. The problem was solved when I rebooted and copied resolv.conf to both resolv.conf and resolve.conf. So, something I did seemed to fix it. I know the first time around I only copied to resolv.conf, and was surprised to find a resolve.conf file in the chroot, immediately suspecting that this must have had something to do with the issue. Maybe in the chroot environment, resolve.conf does what resolv.conf does in the live cd root.

Or, maybe I'm the problem and initially copied to resolve.conf the first time around, then got confused. Either way, I've seen this issue posted in several places, and usually people seem to conclude it's a routing issue or something, not a dumb misspelling mistake.

...Hope this helps any other dolts who make the same mistake I did.
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Mon May 02, 2005 6:33 pm    Post subject: Reply with quote

Moved from IG, please follow up to resolve problems if necessary.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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