Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] 3c905 won't work after install
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
Divide Overflow
n00b
n00b


Joined: 15 Aug 2005
Posts: 3

PostPosted: Mon Aug 29, 2005 8:57 pm    Post subject: [solved] 3c905 won't work after install Reply with quote

A Linux novice here, installing Gentoo 2.6.12-r9 (genkernel option to keep things simple the first time around).
I was able to force an IP address for my install which seemed to go ok. After install I'm unable to get my eth0 interface to work. (Only one network card in system.)
I know the line and address is good. When I boot, I do not see any errors loading the 3c59X module or anywhere else.
The eth0 interface is brought up with the proper internet address and gateway route. I'm just not able to ping or connect to anything at all.

ifconfig shows a strange first line but the rest looks ok to me:
Link encap:UNSPEC HWaddr 00-02-3C-01-51-0C-72-91-00-00-00-00-00-00-00-00
inet addr: 192.168.1.100 Bcast: 192.168.1.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric:1
...

My /etc/conf.d/net:
config_eth0=( "192.168.1.100 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.1.1" )

When I boot the LiveCD, the mac address doesn't show those extra 00's and the link encapsulation shows ethernet.

I'm at my wit's end getting this to work properly. Any help would be welcome!


Last edited by Divide Overflow on Mon Aug 29, 2005 9:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Aug 29, 2005 9:05 pm    Post subject: Reply with quote

Divide Overflow,

Edit /etc/modules.autoload.d/kernel-2.6
add 3c59x on a line on its own after all the comments at the top of the file.

Your real nic will be getting eth1. Look with
Code:
ifconfig -a
while eth1394 (Ethernet over firewire) is getting eth0.
Logical interface names are allocated as the devices are initialised.
The above edit ensures the 3c59x is loaded before eth1394, so it gets eth0.
_________________
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
Divide Overflow
n00b
n00b


Joined: 15 Aug 2005
Posts: 3

PostPosted: Mon Aug 29, 2005 9:24 pm    Post subject: 3c905 won't work after install [solved] Reply with quote

NeddySeagoon wrote:

Edit /etc/modules.autoload.d/kernel-2.6
add 3c59x on a line on its own after all the comments at the top of the file.

Your real nic will be getting eth1. Look with
Code:
ifconfig -a
while eth1394 (Ethernet over firewire) is getting eth0.
Logical interface names are allocated as the devices are initialised.
The above edit ensures the 3c59x is loaded before eth1394, so it gets eth0.


NeddySeagoon,

Thanks for the response. I already had the 3c59x module in that file. I had no idea about that -a option for ifconfig. It seems to show my eth1 address for my real network card. What do I need to do in order to get it loading now? I changed my /etc/conf.d/net calls over to eth1 (is that correct?) but there's another step I know I'm forgetting. Autoloading eth1 instead of eth0? I forget how do do that...

EDIT:
Nevermind, I looked it up and tried
cp /etc/init.d/net.eth0 /etc/init.d/net.eth1
rc-update add net.eth1 default
rc-update del net.eth0 default

This seems to have worked, eth1 comes up and I'm able to ping and connect after loggin in. Thanks for your help, NeddySeagoon!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Aug 29, 2005 9:47 pm    Post subject: Reply with quote

Divide Overflow,

Its important that 3c59x appears above eth1394. in /etc/modules.autoload.d/kernel-2.6.
If eth1394 is built into the kernel it will always get eth0.

To automate eth1, you need to create a symbolic link called net.eth1 in /etc/init.d/ that points to net.lo, just like your net.eth0 does now.
Then you can rc-update add it (and remove net.eth0) so only net.eth1 is started.
_________________
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
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