View previous topic :: View next topic |
Author |
Message |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Tue Nov 22, 2005 5:29 am Post subject: change device from eth1 to eth0 |
|
|
how would i go about changing a device from eth1 to eth0 |
|
Back to top |
|
 |
volumen1 Guru


Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Tue Nov 22, 2005 5:48 am Post subject: |
|
|
I believe the devices are numbered based on the order that they are loaded into the kernel. I'm not sure how you'd do it if both of your drivers were built into the kernel. But, if you are using modules, then you could change the order the modules load in /etc/modules.autoload.d/. I'm sure there is a way to do it if you are using coldplug, but I don't know off the top of my head. I suppose you could kludge it by building the drivers for the card you want to be eth0 into your kernel and then configuring the other card's driver to be a module? I'm sure there's a classier way, though. _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Tue Nov 22, 2005 5:48 am Post subject: |
|
|
You could try ifrename. _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
 |
volumen1 Guru


Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Tue Nov 22, 2005 6:48 am Post subject: |
|
|
Hmm... I've never heard of ifrename. Is it a debian tool? Is it in portage somewhere? "locate ifrename" on my machine only showed me some ifrename hotplug patches. _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|
Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Tue Nov 22, 2005 6:44 pm Post subject: |
|
|
How odd. I could swear it was in Portage. Maybe I'm imagining things, sorry. Maybe on of the net-misc/ packages. I'l have to try that out when I get home later. _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
 |
JohnDoe Tux's lil' helper

Joined: 15 Dec 2003 Posts: 96 Location: Lisbon, Portugal
|
Posted: Tue Nov 22, 2005 10:15 pm Post subject: |
|
|
You could use nameif I think
From nameif man page:
nameif renames network interfaces based on mac addresses.
nameif is part of sys-apps/net-tools. Read its man page before trying to use it as it gives some important info in the Notes section  |
|
Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Tue Nov 22, 2005 10:19 pm Post subject: |
|
|
That's the one! Thanks, JohnDoe. _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6837 Location: Blighty
|
|
Back to top |
|
 |
|