LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-30-2012, 04:18 AM   #1
cod_liver_0il
Member
 
Registered: Apr 2012
Location: India
Distribution: Slackware, FreeBSD
Posts: 48

Rep: Reputation: Disabled
interface alias.


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

Thanks.
 
Old 08-30-2012, 04:25 AM   #2
clod89
Member
 
Registered: Jun 2012
Distribution: Slackware gentoo debian
Posts: 41

Rep: Reputation: Disabled
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

Last edited by clod89; 08-30-2012 at 04:29 AM.
 
1 members found this post helpful.
Old 08-30-2012, 04:40 AM   #3
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Slackware
Posts: 152

Rep: Reputation: 64
Quote:
Originally Posted by clod89 View Post
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
 
1 members found this post helpful.
Old 08-30-2012, 11:13 AM   #4
cod_liver_0il
Member
 
Registered: Apr 2012
Location: India
Distribution: Slackware, FreeBSD
Posts: 48

Original Poster
Rep: Reputation: Disabled
Yes that is exactly what I was looking for, thanks to both replies.
 
Old 08-30-2012, 11:21 AM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
/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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface alias does not receive broadcast traffic bratch Linux - Networking 1 09-27-2010 02:26 PM
Cannot create an IPv6 virtual IP (alias interface) using ioctl(SIOCSIFADDR) the_rock Linux - Newbie 2 08-20-2010 04:14 PM
Wildcard email alias in /etc/alias file custangro Linux - Enterprise 1 10-02-2009 12:17 PM
MAC Address spoofing on alias/secondary interface tara Linux - Networking 3 08-31-2005 09:22 PM
Adding Network Interface alias from command line WireLine Fedora 2 06-08-2005 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration