LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How To Rename Ethernet Card Eth1 to Eth0 (https://www.linuxquestions.org/questions/linux-networking-3/how-to-rename-ethernet-card-eth1-to-eth0-314641/)

chammoud 04-18-2005 04:52 PM

How To Rename Ethernet Card Eth1 to Eth0
 
I have Mandrake 10.1.
I downloaded a file and tried to register it. This file looks for ethernet card and expects eth0 , otherwise it doesn't register. Originally I had two cards, a buit-in (eth1) and a RealTek(eth0). Later, I removed the Realtek (eth0) and the built-in still named eth1 by Mandrake.
How can I configure the eth1 card to be eth0.

Thanks in advance

jonaskoelker 04-18-2005 05:27 PM

Can't you just change the file to expect eth1 instead?
$ sed -i -e 's/eth0/eth1/g' filename #but make a backup first :)
also, you should file a bug report for lame hardcoded behavior to the maintainers.

chammoud 04-18-2005 11:06 PM

i already asked about the vendor about changing the file script to expect eth1, but the technician wasn't helpful.
I tried the above command and still wasn't able to register the file.

Any other suggestion?

Thanks

chammoud 04-18-2005 11:33 PM

At the booting time, Mandrake still tries to activate eth0 device and fail although card eth0 was removed, but Mandrake doesn't seems to see that.

Any suggestions please?

jonaskoelker 04-20-2005 06:01 AM

regarding the `bug' report:
I was thinking more in the lines of suggesting a command-line/config-file option that lets the user select which file to act on (be it /dev/eth0, /dev/eth1, /dev/hda (*grin*) or whatever); maybe they'd be more understanding.

Asking to change one hardcoded value to another hardcoded value (that works for you) is never the Right Thing. Have you tried the sed approach?

I'm sorry, but I don't know how to remap eth[01] into the other; gurus?

--Jonas


All times are GMT -5. The time now is 07:13 PM.