View previous topic :: View next topic |
Author |
Message |
davlun n00b
Joined: 14 Feb 2004 Posts: 11
|
Posted: Sun Feb 15, 2004 9:03 pm Post subject: Halfway there and Networking not working |
|
|
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 |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Sun Feb 15, 2004 9:40 pm Post subject: |
|
|
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 |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Sun Feb 15, 2004 9:41 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Feb 15, 2004 9:54 pm Post subject: |
|
|
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 |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Sun Feb 15, 2004 10:53 pm Post subject: |
|
|
Didn't think of that, because I never remember to set that password...
~Mac~
(oh, re: your sig, you should add 'people like Mac, who just use RAID-5') |
|
Back to top |
|
|
davlun n00b
Joined: 14 Feb 2004 Posts: 11
|
Posted: Mon Feb 16, 2004 3:21 am Post subject: |
|
|
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 |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Mon Feb 16, 2004 3:41 am Post subject: |
|
|
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 |
|
|
davlun n00b
Joined: 14 Feb 2004 Posts: 11
|
Posted: Mon Feb 16, 2004 3:59 am Post subject: |
|
|
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 |
|
|
davlun n00b
Joined: 14 Feb 2004 Posts: 11
|
Posted: Mon Feb 16, 2004 4:03 am Post subject: |
|
|
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 |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Mon Feb 16, 2004 4:34 am Post subject: |
|
|
Is that your IP?
~Mac~ |
|
Back to top |
|
|
davlun n00b
Joined: 14 Feb 2004 Posts: 11
|
Posted: Mon Feb 16, 2004 4:44 am Post subject: |
|
|
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 |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Mon Feb 16, 2004 7:56 am Post subject: |
|
|
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 |
|
|
davlun n00b
Joined: 14 Feb 2004 Posts: 11
|
Posted: Wed Feb 18, 2004 7:37 am Post subject: Fixed |
|
|
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 _________________ Be Kind! I am a former ms user, but learning |
|
Back to top |
|
|
Jonandy n00b
Joined: 02 Mar 2004 Posts: 1
|
Posted: Tue Mar 02, 2004 7:26 am Post subject: Same problem, different solution... |
|
|
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 |
|
|
amne Bodhisattva
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Mon May 02, 2005 6:33 pm Post subject: |
|
|
Moved from IG, please follow up to resolve problems if necessary. _________________ Dinosaur week! (Ok, this thread is so last week) |
|
Back to top |
|
|
|