home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 86,458 of 87,272   
   Petri Kaukasoina to alexias@nospam.mail   
   Re: Getting the IP address at startup   
   09 Oct 23 14:18:07   
   
   From: kaukasoina3dore73js4@sci.fi   
      
   Aelius Gallus   wrote:   
   >Petri Kaukasoina  wrote:   
   >> Aelius Gallus   wrote:   
   >>>Every time I start Slackware, I have to get its IP address using the   
   >>>dhclient or dhcpcd command with eth2 as a NIC number; it was eth0 before,   
   >>>but this is not a problem. How can I correct this situation?   
   >>   
   >> rm /etc/udev/rules.d/70-persistent-net.rules   
   >   
   >Removed the file, and after restart, eth2 became eth126. And had to use,   
   >as before, the dhcpcd command to get an IP address.   
      
   How many ethernet card do you have:   
      
   dmesg|grep eth   
      
   The idea of 70-persistent-net.rules is to keep the names of ethernet   
   interfaces constant even after adding extra cards. I have a machine which   
   has one built-in ethernet port (tigon3). udev has created a line in   
   70-persistent-net.rules for naming it eth0. I have later added another card   
   (intel e100). udev added a line naming it eth1. Because e100 is found first   
   after boot, it becomes eth0, and tg3 becomes eth1. With the help of   
   70-persistent-net.rules, udev then changes the names by renaming eth0 to   
   eth126, eth1 to eth125, eth126 to eth1, and finally eth125 to eth0. So tg3   
   is eth0 as originally!   
      
   If you removed 70-persistent-net.rules, you should only have eth0 in that   
   file after reboot. Or, if you have more than one ethernet chip, you could   
   see that shuffling take place in dmesg but eth126 should not be left there.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca