2020-10-21 19:37:18 -04:00
|
|
|
# ifconfig
|
|
|
|
|
|
|
|
> Configurateur des interfaces réseau.
|
2021-10-07 09:37:39 +02:00
|
|
|
> Plus d'informations : <https://net-tools.sourceforge.io/man/ifconfig.8.html>.
|
2020-10-21 19:37:18 -04:00
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Affiche les paramètres de réseau d'un adaptateur ethernet :
|
2020-10-21 19:37:18 -04:00
|
|
|
|
2020-10-21 23:26:43 -04:00
|
|
|
`ifconfig {{eth0}}`
|
2020-10-21 19:37:18 -04:00
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Affiche les détails de toutes les interfaces, y compris les interfaces désactivées :
|
2020-10-21 19:37:18 -04:00
|
|
|
|
|
|
|
`ifconfig -a`
|
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Désactive l'interface eth0 :
|
2020-10-21 19:37:18 -04:00
|
|
|
|
2020-10-21 23:26:55 -04:00
|
|
|
`ifconfig {{eth0}} down`
|
2020-10-21 19:37:18 -04:00
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Active l'interface eth0 :
|
2020-10-21 19:37:18 -04:00
|
|
|
|
2020-10-21 23:27:02 -04:00
|
|
|
`ifconfig {{eth0}} up`
|
2020-10-21 19:37:18 -04:00
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Assigne une adresse IP à l'interface eth0 :
|
2020-10-21 19:37:18 -04:00
|
|
|
|
2020-10-21 23:27:08 -04:00
|
|
|
`ifconfig {{eth0}} {{addresse_ip}}`
|