[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /dev/eth a disparu ???



Le Sunday 21 September 2008 vers 20:57, Laurent Guignard(Laurent 
Guignard <lguignard2000@yahoo.fr>) a écrit:

Bonjour,

> >> Oups, je redirige vers user désolé pour le bruit sur devel ;)
> >
> > Que donne un
> > $ ls -l /dev/eth*
>
> ls -l /dev/eth*
> ls: /dev/eth*: Aucun fichier ou répertoire de ce type

Comme le dit Sylvain, les interfaces ne sont pas visibles dans /dev, 
mais sont listées dans /proc/net/dev. Par exemple, "awk -F: '/:/ 
{print $1}' /proc/net/dev" permet d'afficher toutes interfaces 
*vues* par la machine (comme le fait également la commande 
ifconfig -a).
A+
-- 
http://www.glennie.fr
The reasonable man adapts himself to the world; the unreasonable one 
persists in trying to adapt the world to himself. Therefore all 
progress depends on the unreasonable man.


Reply to: