LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   interface alias. (https://www.linuxquestions.org/questions/slackware-14/interface-alias-4175424733/)

cod_liver_0il 08-30-2012 04:18 AM

interface alias.
 
Is it possible to give an interface, say wlan0 an alias of eth*?

Thanks.

clod89 08-30-2012 04:25 AM

I'm not sure about using an alias but you can change the name assigned to an interface by modifying the udev rules in /etc/udev/rules.d/70-persistent-net.rules

StreamThreader 08-30-2012 04:40 AM

Quote:

Originally Posted by clod89 (Post 4768123)
I'm not sure about using an alias but you can change the name assigned to an interface by modifying the udev rules in /etc/udev/rules.d/70-persistent-net.rules

In Slackware 14.0 in /lib/udev/rules.d

cod_liver_0il 08-30-2012 11:13 AM

Yes that is exactly what I was looking for, thanks to both replies. :)

T3slider 08-30-2012 11:21 AM

/lib/udev/rules.d is meant as an upstream source and should not be touched. If you want to override a rules file, copy it to /etc/udev/rules.d and edit it there. From CHANGES_AND_HINTS.TXT:
Code:

As with 13.37, the system udev rules now reside in /lib/udev/rules.d/ instead
  of /etc/udev/rules.d/ in older versions.  There should never be a reason
  to edit anything in /lib/udev/rules.d/, so if you think you have a case
  where this is required, either you're wrong or it needs to be addressed in
  the upstream source.  However, you can override default rules by placing
  one with an identical name inside /etc/udev/rules.d/  The rules files in
  /etc/udev/rules.d/ are still intended to (maybe) be edited as needed by
  local system administrators, and as such, the rules for optical and network
  devices will still be placed there.



All times are GMT -5. The time now is 07:20 PM.