| Autor | 
    Nachricht | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: Persistent Ethernet interface namings 
             Verfasst am: 05.11.2006, 20:48 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 05. Nov 2006 
            Beiträge: 5 
             
            
            
           | 
         
       
     | 
    
      
        
          Hi,
 
 
The ethernet interface names on my Kanotix 2005-04 PC have shown not to be stable between different boots. Interfaces that were firstly named ethX can later change name to lanX. This will cause problems, since I need to refer to interface names in configuration files like those used for quagga.
 
 
What configs are need to ensure that the name of a particular HW interface is persistently assigned to a user defined name. The association between name and interface (e.g. MAC address) need to be kept unchanged between boots and also when hardware is added or removed?
 
 
/koia | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: RE: Persistent Ethernet interface namings 
             Verfasst am: 06.11.2006, 00:42 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 16. Aug 2004 
            Beiträge: 1905 
             
            
            
           | 
         
       
     | 
    
      
        
          | 
 Code: 
apt-get update
 
apt-get install kanotix-udev-config
 
fix-udev-lan
 
 | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 06.11.2006, 07:59 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 05. Nov 2006 
            Beiträge: 5 
             
            
            
           | 
         
       
     | 
    
      
        
          Thanks, 
 
I have installed and run. There are no console outputs. What does fix-udev-lan do? What files are impacted by running it?
 
/koia | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 06.11.2006, 21:57 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 05. Nov 2006 
            Beiträge: 5 
             
            
            
           | 
         
       
     | 
    
      
        
          The article http://www.debianadmin.com/rename-netwo ... linux.html describes for Debian Linux a way to assign a user defined name to an interface and associate the name with a MAC address in a persistent way. 
 
 
An example from the article assigs a name to an interface including the manufactrer by:
 
KERNEL==”eth*”, SYSFS{address}==”00:12:34:fe:dc:ba”, NAME=”eth-intel". 
 
 
In Debian Linux, the config shall go into the file /etc/udev/rules.d/010_netinterfaces.rules.
 
 
Since the file mentioned in the article is not in Kanotix distribution I tried to put a renaming rule of my own in  /etc/udev/persistent.rules, without success however. 
 
 
Any suggestions how to do it?
 
 
/koia | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 10.11.2006, 23:46 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 21. Jun 2006 
            Beiträge: 45 
             
            
            
           | 
         
       
     | 
    
      
        
          | yes i have this problem as well: Having 3 nics it luckily "only" happens for the two i dont use (so far). The fix-udev-lan didn't change anything | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 10.11.2006, 23:51 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 22. Jan 2006 
            Beiträge: 1296 
            Wohnort: Budapest 
            
            
           | 
         
       
     | 
    
      
        
          | Try
 Code: 
apt-get remove --purge ifrename
 
That solved a very similar problem for me months ago. It is not needed anymore.
 
 
hubi | 
         
        
          
          
            
          
             _________________ 
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 11.11.2006, 01:11 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 21. Jun 2006 
            Beiträge: 45 
             
            
            
           | 
         
       
     | 
    
      
        
          ifrename is not even installed on my system, maybe i should get it and see if that helps   | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
  
    | 
      
     |