Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.