# Discourse-setup uses ifconfig to check the IP address for Let's Encrypt, but it's not available on Debian stretch

**URL:** <https://meta.discourse.org/t/discourse-setup-uses-ifconfig-to-check-the-ip-address-for-lets-encrypt-but-its-not-available-on-debian-stretch/61080>\
**Category:** Bug\
**Created:** [2017 年 4 月 16 日午後 9:14 UTC](https://meta.discourse.org/t/discourse-setup-uses-ifconfig-to-check-the-ip-address-for-lets-encrypt-but-its-not-available-on-debian-stretch/61080 "2017-04-16T21:14:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)\
**Post date:** [2017 年 4 月 17 日午前 2:52 UTC](https://meta.discourse.org/t/discourse-setup-uses-ifconfig-to-check-the-ip-address-for-lets-encrypt-but-its-not-available-on-debian-stretch/61080/5 "2017-04-17T02:52:04Z")

</div>

Not only Debian, but some other distro don’t install ifconfig by default in a minimal setup, including CentOS 7. It is still available in the `net-tools` package for CentOS 7 as part of the base repository, and I believe Debain should have it too, just not sure whether they use the same package name.

Newer distros moved to `iproute` package. The new `ip` command from this package now does ifconfig/route and many other tasks. To get IP address, just use `ip addr` (multiline output) or `ip -o addr` (single line output for each interface).

---

_[View the full topic](https://meta.discourse.org/t/discourse-setup-uses-ifconfig-to-check-the-ip-address-for-lets-encrypt-but-its-not-available-on-debian-stretch/61080)._
