Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eth? increases on every reboot [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Lars-Inge
n00b
n00b


Joined: 08 Nov 2007
Posts: 3
Location: Arendal

PostPosted: Thu Nov 08, 2007 2:52 pm    Post subject: eth? increases on every reboot [SOLVED] Reply with quote

Hi there

First of all I'll have to say that english is not my native language...and I'm also pretty new with Linux...

To the case then...

After a few tries I finally got Gentoo (kernel 2.6.22-r9) up and running almost like I want it...a few things left, but nothing I can't find out on my own. The problem is my network card.

The network card was detected during installation and after I got the correct drivers it even worked after reboot... *S*

But...on the next reboot it didn't work (eth0) wasn't detected. After a while I found out that eth4 (ifconfig -a) running, but without any IP-adress. I then did the following commands:
# ifconfig eth4 192.168.1.30
# route add default gw 192.168.1.2
# echo nameserver 192.168.1.2 > /etc/resolv.conf

...and the network is running...

So...after a new reboot the same problem occured, only this time the card was detected as eth6...and so it goes on...

Can anyone please point me in the right direction to solve this?

I guess I'm using the correct drivers and everything since it works after entering the above commands?

I've tried searching the forums, but has not been able to find anything about this...
_________________
Best regards
Lars-Inge

ClassicVAG - M/V Seisquest


Last edited by Lars-Inge on Thu Nov 08, 2007 7:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Nov 08, 2007 3:37 pm    Post subject: Reply with quote

There is a mechanism in udev that associates a particular MAC address with a particular ethx interface name. My guess is that your Ethernet interface is coming up with a different MAC address each time. Look at the HWaddr value being reported by ifconfig to see if this is the case.

For each new MAC address encountered, udev adds a rule to "/etc/udev/rules.d/70-persistent-net.rules". You can erase that file to start over but that's not the real problem. You may have to force a MAC address for the interface to make it stay the same. See the "mac_eth0" example in "/etc/conf.d/net.example".

- John
Back to top
View user's profile Send private message
Lars-Inge
n00b
n00b


Joined: 08 Nov 2007
Posts: 3
Location: Arendal

PostPosted: Thu Nov 08, 2007 3:54 pm    Post subject: Reply with quote

Great, I'll have a look at it.

Maybe this has something to do with "dmesg" reporting "Invalid MAC address detected xx:xx:xx:xx:xx:xx"?
_________________
Best regards
Lars-Inge

ClassicVAG - M/V Seisquest
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Nov 08, 2007 5:31 pm    Post subject: Reply with quote

Most likely, yes. :)

- John
Back to top
View user's profile Send private message
Lars-Inge
n00b
n00b


Joined: 08 Nov 2007
Posts: 3
Location: Arendal

PostPosted: Thu Nov 08, 2007 7:57 pm    Post subject: Reply with quote

Finally...I got it...*S*

Have done 4-5 reboots and it's up and running every time.

Now I'll start struggling with my wireless interface...XServer and Gnome.

Thanks for pointing me in the right direction.
_________________
Best regards
Lars-Inge

ClassicVAG - M/V Seisquest
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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