Discussion:
udev, net device alias
Michal Filka
2012-05-22 10:08:58 UTC
Permalink
Hi,

is it possible to create an alias for an ethernet device using udev rules?
E.g. to have eth0 accessible even as "eth0" and "eth-alias" at the same
time.

Thanks for info
Michal Filka
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hannes Reinecke
2012-05-22 10:14:21 UTC
Permalink
Post by Michal Filka
Hi,
=20
is it possible to create an alias for an ethernet device using udev
rules? E.g. to have eth0 accessible even as "eth0" and "eth-alias"
at the same time.
=20
Here holds the Highlander-Mantra:

There can only be one.

Network devices do not have symlinks, but rather live in the kernel
namespace. And the name is the primary key for finding this device.
To have network device aliases you would need to implement an
additional infrastructure within the kernel.

And get that past Dave Miller :-)

Cheers,

Hannes
--=20
Dr. Hannes Reinecke zSeries & Storage
***@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg
GF: J. Hawn, J. Guild, F. Imend=C3=B6rffer, HRB 16746 (AG N=C3=BCrnberg=
)
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug=
" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...