Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi all,
I have two NIC cards in my system. However, NIC1 is assigned to eth1 and NIC2 is assigned to eth0. Beside manually swap MAC address from /etc/udev/rules.d/70-persistent-net.rules to make it change NIC1 to eth0 and NIC2 to eth2, there is another way? When and where the system detect the nic card at boot up and assign to the port? I am running Fedora 10. Thanks in advance.
I don't know what you have against udev, but if you the two nics use different drivers, you would try modprobe'ing the drivers in the order that you want the devices named. Another option is a tool called ifrename: that is what I used to use back in the dark ages.
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329
Rep:
The udev way is the easiest one, it can't get easier than that. Just edit a text file, and reboot (rebooting perhaps not needed?). Or you're looking for a point-and-click interface for that?
Using udev in this way does *not* swap your mac address.
Evo2.
What I am saying is modify etc/udev/rules.d/70-persistent-net.rules how it's eth order to MAC address. I also have to modify ifcfc-eth file to the right MAC address that was assign in 70-persistent-net.rules file.
What I am saying is modify etc/udev/rules.d/70-persistent-net.rules how it's eth order to MAC address. I also have to modify ifcfc-eth file to the right MAC address that was assign in 70-persistent-net.rules file.
Sorry, I don't follow what you are talking about. What are you trying to do related to the mac address? Are you spoofing the mac address with calls like?
Code:
ifconfig eth0 hw ether 00:11:22:33:44:55
If so, this is unrelated to the udev rule which should be run before the above and use the real mac address of the device.
I finally use ifrename with specific config. The reason I like to setup this way is because I am going to setup multiple units having the same hardware. Thanks all for your comments and suggestions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.