Различия
Показаны различия между двумя версиями страницы.
| Следующая версия | Предыдущая версия | ||
| system:ifconfig [2012/10/27 02:22] – внешнее изменение 127.0.0.1 | system:ifconfig [2017/11/28 14:49] (текущий) – [Eror: bash: ifconfig: command not found] mirocow | ||
|---|---|---|---|
| Строка 33: | Строка 33: | ||
| iface eth0 inet dhcp | iface eth0 inet dhcp | ||
| </ | </ | ||
| + | |||
| + | ==== Eror: bash: ifconfig: command not found ==== | ||
| + | |||
| + | The ifconfig command has been deprecated and thus missing by default on Debian Linux, starting from Debian stretch. | ||
| + | |||
| + | <code bash> | ||
| + | # ifconfig | ||
| + | -bash: ifconfig: command not found | ||
| + | </ | ||
| + | |||
| + | The new and recommended alternative for examining a network configuration on Debian Linux is ip command. For example to use ip command to display a network configuration run the following: | ||
| + | |||
| + | < | ||
| + | # ip address | ||
| + | </ | ||
| + | |||
| + | The above [[system: | ||
| + | |||
| + | < | ||
| + | # ip a | ||
| + | </ | ||
| + | |||
| + | If you still prefer to use ifconfig as part of your daily sys admin routine, you can easily install it as part of the **net-tools** package. | ||
| + | |||