Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NIC interfaces swapped after moving from 2.4 to 2.6 kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
lazloman
Guru
Guru


Joined: 27 Dec 2003
Posts: 343
Location: Skokie, Il. USA

PostPosted: Fri Aug 27, 2004 2:07 am    Post subject: NIC interfaces swapped after moving from 2.4 to 2.6 kernel Reply with quote

Took me a while to figure what happened, but after moving from 2.4 to 2.8.7, my NICs got swapped such that what was eth0 is now eth1 and what was eth1 is now eth0. Not that it bothers me, but how do I go about setting those aliases? I might flip that back.
TIA
_________________
Gentoo x86
2x Dell Optiplex GX200

"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Fri Aug 27, 2004 9:36 am    Post subject: Re: NIC interfaces swapped after moving from 2.4 to 2.6 kern Reply with quote

lazloman wrote:
Took me a while to figure what happened, but after moving from 2.4 to 2.8.7, my NICs got swapped such that what was eth0 is now eth1 and what was eth1 is now eth0. Not that it bothers me, but how do I go about setting those aliases? I might flip that back.
TIA

This probably depends on which driver loads first. If you have the NIC drivers compiled in as modules, you could try fiddling with it so that the module you want loads first.

An easier approach for consistant interface naming is nameif (man nameif). Create an /etc/mactab configuration file which has a format of:
Code:
devicename   00:11:22:33:44:55:66 (MAC-address)

This way you can be sure that the NIC with the corresponding MAC address gets the proper interface name. Then add nameif to your startup scripts so that this gets configured during boot.
Of course you are not bound to any naming scheme, e.g. I have my Ethernet interface named "eth" and my Airport card named "wlan". Be aware that those custom names might break some scripts/programs.

hth,
disk
Back to top
View user's profile Send private message
lazloman
Guru
Guru


Joined: 27 Dec 2003
Posts: 343
Location: Skokie, Il. USA

PostPosted: Sun Aug 29, 2004 1:57 pm    Post subject: Reply with quote

Will this work if I have them compiled into the kernel? Thanks for the reply.
_________________
Gentoo x86
2x Dell Optiplex GX200

"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Aug 29, 2004 2:00 pm    Post subject: Reply with quote

If you decide to use nameif, it will work either way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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