# Debian ifconfig -a alternative?

**URL:** <https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831>\
**Category:** Support Debian\
**Created:** [Janvier 25, 2021, 4:04 UTC](https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831 "2021-01-25T16:04:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![James8078](https://www.debian-fr.org/user_avatar/www.debian-fr.org/james8078/32/10284_2.png) [@James8078](https://www.debian-fr.org/u/James8078)\
**Post date:** [Janvier 25, 2021, 4:04 UTC](https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831/1 "2021-01-25T16:04:18Z")

</div>

bonjour,

sur mon debian, `ifconfig` ne focntionne pas, je comprends que `ip a` le remplacerait mais est ce que `ip a` a le resultat identique à `ifconfig -a`?  
merci

---

<div class="post-metadata">

**Author:** ![PascalHambourg](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pascalhambourg/32/5837_2.png) [@PascalHambourg](https://www.debian-fr.org/u/PascalHambourg)\
**Post date:** [Janvier 25, 2021, 4:12 UTC](https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831/2 "2021-01-25T16:12:10Z")

</div>

Ça dépend de ce dont on a besoin. Les informations ne sont pas exactement les mêmes. Par exemple `ifconfig` affiche des statistiques de paquets que `ip a` n’affiche pas, il faut ajouter l’option -s pour cela.  
On peut installer le paquet net-tools qui contient ifconfig, route, netstat…

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Janvier 25, 2021, 4:38 UTC](https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831/3 "2021-01-25T16:38:36Z")

</div>

Un bon article (en anglais) pour débuter et comprendre les différences entre `ip` et `ifconfig` :

> **[Why you need to drop ifconfig for ip](https://opensource.com/article/21/1/ifconfig-ip-linux)**
>
> For a long time, the ifconfig command was the default method for configuring a network interface.

---

<div class="post-metadata">

**Author:** ![James8078](https://www.debian-fr.org/user_avatar/www.debian-fr.org/james8078/32/10284_2.png) [@James8078](https://www.debian-fr.org/u/James8078)\
**Post date:** [Janvier 25, 2021, 4:46 UTC](https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831/4 "2021-01-25T16:46:36Z")

</div>

Merci.

J’ai installé net-tools mais ifconfig n’est pas trouvé comme commande.

---

<div class="post-metadata">

**Author:** ![PascalHambourg](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pascalhambourg/32/5837_2.png) [@PascalHambourg](https://www.debian-fr.org/u/PascalHambourg)\
**Post date:** [Janvier 25, 2021, 4:49 UTC](https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831/5 "2021-01-25T16:49:00Z")

</div>

ifconfig est dans /sbin qui n’est pas dans le $PATH des utilisateurs normaux. Il faut soit indiquer le chemin complet /sbin/ifconfig, soit l’exécuter en tant que root qui a /sbin dans son $PATH.

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Janvier 25, 2021, 5:36 UTC](https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831/6 "2021-01-25T17:36:37Z")

</div>

Soit rajouter /sbin dans le path.

---

<div class="post-metadata">

**Author:** ![James8078](https://www.debian-fr.org/user_avatar/www.debian-fr.org/james8078/32/10284_2.png) [@James8078](https://www.debian-fr.org/u/James8078)\
**Post date:** [Janvier 25, 2021, 5:37 UTC](https://www.debian-fr.org/t/debian-ifconfig-a-alternative/83831/7 "2021-01-25T17:37:21Z")

</div>

Merci à tous
