Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network unreachable
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
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Mon Oct 11, 2004 12:37 am    Post subject: Network unreachable Reply with quote

I try to ping my gateway and get the network unreachable error. This is a fresh install and I am in the OS through grub for the first time. (before I could only chroot in) I am intersted in learning as much about Gentoo as possible. I have gone back to the network part of the install guide and done what I can and checked to make sure most of it was still in tact.
Any and all help will be greatly apreciated.
Damon
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Mon Oct 11, 2004 12:48 am    Post subject: Reply with quote

Did you run /sbin/ifconfig and /sbin/route with their respective commands?
Back to top
View user's profile Send private message
wescott
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 183
Location: A giant shoe

PostPosted: Mon Oct 11, 2004 3:15 am    Post subject: Reply with quote

are you using adsl or a business/school network?
_________________
Sometimes you feel like a nut, sometimes you don't
Gentoo Forum Member #43303

Yoda of Borg are we: Futile is resistance. Assimilate you, we will.
Back to top
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Wed Oct 13, 2004 2:08 am    Post subject: my network Reply with quote

I am on a windows dominated lan that works through a router to the internet. I am not on an adsl.

Damon
Back to top
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Wed Oct 13, 2004 2:11 am    Post subject: start up errors Reply with quote

I dont know if this helps but it is asking me if I have $ifconfig_eth1 set in /etc/conf.d/net?

It is also telling me that "netmount" was not started.
Back to top
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Wed Oct 13, 2004 7:20 am    Post subject: Reply with quote

Did networking work during the install?
_________________
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Back to top
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Wed Oct 13, 2004 9:36 pm    Post subject: yes Reply with quote

The network worked just fine durring the install. I do not have any idea why it does not work now.
Back to top
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Wed Oct 13, 2004 10:20 pm    Post subject: Reply with quote

Wow long time since i have posted on this forum... But lets see what we can find out on this.

First off does your network connection work at all?

Post the results of:
Code:
ifconfig


Also when you did the install did you use genkernel or did you build it by hand? If you did it by hand did you include the drivers for the nic in the kernel and if so was it a module or directly in?

If you compiled it as a module then you will need to make sure that you load it on boot if you are going to be using it the whole time the PC is up.

Also make sure that you have setup the connection in the /etc/conf/net file. In there you will need to make sure that you either have it setup as a DHCP connection or Staticly assigned.
_________________
Come and play in my land
Back to top
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Thu Oct 14, 2004 3:27 am    Post subject: Thanx for your help and here are the answers Reply with quote

ifconfig:
Code:
 lo      Link encap:Local Loopback
inet addr: 127.0.0.1  Mask:255.0.0.0
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 carrier:0 collisions:0 txquenelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


I installed the kernel by hand and am not sure about the modules. If it is possible to check I will do so if someone can tell me how. :) :?:

I do not have an /etc/conf/net file. I tried to cat it and it did nothing then went to /etc and could not find a /conf file or directory there.

Deathwing: what are the respective commands to /sbin/ifconfig and /sbin/route? If this is even relevent any more.

Again thanx to everyone for their patience and help. I enjoy learning as much as possible about linux and Gentoo. It has been a long install but I am looking forward to having it all up and running.
Damon 8)
Back to top
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Thu Oct 14, 2004 6:04 am    Post subject: Reply with quote

Its not a config issue at this point IMO. This is what I would do: boot using the livecd, (no need to chroot in), verify that your network is up and running, run lsmod to see what module is in use for your nic. (if youre not sure write down all of em, there should only be a handful; post it here and well help) then reboot. Run lsmod again and compare the lists to determine what module is missing. Also lspic | grep -i ethernet would be helpful. Do you get any errors during boot? dmesg will allow you to sift through..

Even if you didnt compile the correct modules when you built your kernel it wont be hard to get them in there, once we know what is missing :)
_________________
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Back to top
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Fri Oct 15, 2004 2:27 am    Post subject: lsmod and boot Reply with quote

I ran lsmod with the livecd after verifying that it does have network access by pinging something when I could not ping anything in the system its-self. Here are the results:
Code:
module      size   used by      Not installed
3c59x      23152   1
serial      48676   0      (autoclean)
sbp2      15284   0      (unused)
usb-storage   60800   0      (unused)
hid      19652   0      (unused)
uhci      21916   0      (unused)
usbcore      53676   1      [usb-storage hid uhci]


here are the errors I get during boot.
Code:
 eth0: unknown interface : No such device
Modprobe: modprobe: Cant't open dependencies file /lib/modules/2.4.26-gentoo-r6/modules.dep (no such file or directory)
* Please make sure that /etc/conf.d/net has $ifconfig_eht1 set
* (or $iface_ethi1 for old-style configuration)
* ERROR:  Problem starting needed services.
* "netmount"  was not started.
Back to top
View user's profile Send private message
xbmodder
Guru
Guru


Joined: 25 Feb 2004
Posts: 404

PostPosted: Fri Oct 15, 2004 3:42 am    Post subject: Reply with quote

do this and post it
dmesg|grep eth
lsmod
lspci
cat /etc/conf.d/net
ifconfig
route
also you want to post what your ip settings should be
and post you kernel's .config
Back to top
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Fri Oct 15, 2004 11:25 pm    Post subject: the results Reply with quote

cat /etc/conf.d/net:
Code:
 iface_eth0="192.168.1.6 broadcast 192.168.1.6 netmask 255.255.255.0"
gateway="192.168.1.1"
iface_eth0="up"

There are other notes in this file but these were the only lines that were not noted (start with #)

lsmod gave me nothing but the headers of Module Size Used by and Not tainted.

lspci told me command not found

ifconfig gave me:
Code:
lo      Link encap:Local Loopback
inet addr: 127.0.0.1  Mask:255.0.0.0
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 carrier:0 collisions:0 txquenelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


route:
Code:
 Destination Gateway Genmask Flags Metric Ref Use Iface
loopback 127.0.0.1 255.0.0.0 UG 0 0 0 lo


My IP setting should be that I am 192.168.1.6 and my default gateway should be 192.168.1.1 and my netmask should be 255.255.255.0.

Excuse my ignorance but where is my kernel's .config file.

Again thx for all the help and patience.
Damon
Back to top
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Sat Oct 16, 2004 6:07 am    Post subject: Reply with quote

lspic is usally /sbin/lspci. It may not be in your default users path, its in roots though. One problem that I see initially is that in confd.net you have your IP address and your broadcast address listed as the same. Change this. Your broadcast should be 192.168.1.255. On every network REGARDLESS of the range (wether its a full class C, B, a /29, whatever) you have a network and a broadcast address. Network address = the first address in the network, not useable. The last address in the network is also not useable, last address = Broadcast; in case you didn't know. The other obvious issue is that you dont have a gateway. You can resolve this by editing the gateway directive in /etc/conf.d/net. It'll probably be commented out at present, just un comment it and add your gateway, the .1 address. Heres what mine looks like:
Code:
root@MindW@rp grady # grep -i gateway /etc/conf.d/net
# For setting the default gateway
gateway="eth0/192.168.25.1"
root@MindW@rp grady #

Please post the output of lspci, and the output of lsmod. (even if they show not in use) as it will be extremely helpful here. Also can you post what happens if you:
Code:
/etc/init.d/net.eth0 start

If its already started ^start^restart.

Your kernel config is found in /usr/src/linux/kernel-config.
_________________
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Back to top
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Sun Oct 17, 2004 5:21 pm    Post subject: Reply with quote

Ok this seems to be a straight forward issue, you simply do not have the correct module/driver installed into the kernel or you are not loading it.

if the lsmod that you have listed above was when you were using the boot cd and your network was working then you will need to load/install the module that goes with "3c59x". If you are loading this as a module and not right into the kernel then make sure that you are having the module loaded on boot or before you try to connect to the network.

Load at boot entries go into:
Code:
/etc/modules.autoload.d/kernel-2.x


if you want to load it manualy look into modprobe.

As far as the lspci not working, did you emerge that package?
Code:
emerge -va pciutils

_________________
Come and play in my land
Back to top
View user's profile Send private message
labyrinth
Apprentice
Apprentice


Joined: 03 Oct 2004
Posts: 158

PostPosted: Thu Oct 21, 2004 1:28 am    Post subject: Reply with quote

I just started following this forum 5 minutes ago as I had the same problem. All I had to do was put the name of the module in the /etc/modules.autoload.d/kernel-2.4 like you said, and it worked great.

Thanks for the help everyone, and hope you got yours working damon.
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