Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
The network interface is still eth0 in /etc/udev/rules.d/70-persistent-net.rules:
Normally that file keeps the OLD MAC address (which isn't there anymore) as eth0, so the new detected one becomes eth1
The solution mostly is to remove /etc/udev/rules.d/70-persistent-net.rules altogether and reboot to let it be REgenerated with the curently present MAC address for the the interface.
Thanks guys. That was it. The old MAC address from the previous MB was in the /etc/udev/rules.d/70-persistent-net.rules file.
I should have figured that one out myself. Duh!
I removed the old rules file and rebooted -but- I suppose I could have also just edited that rules file with the new MAC and run /etc/rc.d/rc.inet restart
I suppose some clever person (who frequently swaps out his NIC or MB) has written a start-up script to clobber and replace that file if the MAC (in the rules file) is not detected on boot.
IIRC, via network manager (aka network mangler) or rc.inet1.conf, you can clone/spoof the MAC address for each interface. For eth0, add, for example,
Code:
# Config information for eth0:
IPADDR[0]="192.168.1.3"
NETMASK[0]="255.155.255.0"
IPALIASES[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
HWADDR[0]="30:9c:23:b6:10:0c"
Now when /etc/udev/rules.d/70-persistent-net.rules for fixed IP it will get that MAC and never see the one from the motherboard - you can then plug that HD in into any motherboard - no scripts required.
Thanks so much kingbeowulf! Your suggestion of using fixed IP addresses might just solve another issue. One even more pressing is the machines that use IPV6 by default on my local network (i.e. over IPV4) have name resolution issues with the older machines that default to IPV4. This would no longer be an issue since I could then use a /etc/hosts file with fixed addresses. I have always just assumed that my home (AT&T) router will only assign addresses via DHCP. It might be perfectly happy with static IP addresses but I haven't really tried configuring it to do so. I will look into this. Thanks!
wirelessmc,
I have a few fixed IP on my home network. I use that IP and MAC reservervations in the Netgear wifi router (DD-WRT) so that they too get a human readable name. Better than having to remember to update hosts files on serveral boxes!
Look for services management, dhcp static leases. Also may need to enable dnsmasq (DD-wrt and OpenWRT). On some factory stock router firmware (Netgear I am looking at you!), setting up static leases and hostnames (DNS) is not possible. Thus for a dhcp lease 192.168.1.x -> name.domain but for a static IP just the IP, no name (unless you just go ahead an fire up a slackware box to do local DNS).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.